/*
Theme Name: Custom BasicAchieve Theme
Theme URI: http://example.com/custom-basichage-theme
Author: Your Name
Author URI: http://example.com
Description: A clean and simple custom WordPress theme inspired by BasicAchieve.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-basichage
Tags: custom, clean, simple, responsive
*/

/* Basic styling */

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */

#site-header {
  background: var(--primary-color);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

#site-header h1 {
  margin: 0;
  font-size: 1.8em;
}

#site-header a {
  color: #fff;
}

/* Navigation Menu */

#site-navigation {
  margin-top: 10px;
  flex-grow: 1;
  text-align: right;
}

#site-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 15px;
}

#site-navigation li {
  display: inline;
}

#site-navigation a {
  color: #fff;
  font-weight: bold;
  padding: 6px 10px;
  display: inline-block;
  border-radius: 3px;
}

#site-navigation a:hover,
#site-navigation .current-menu-item > a {
  background: rgba(255,255,255,0.2);
}

/* Main content + Sidebar layout */

#site-content {
  display: flex;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 15px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  gap: 30px;
  box-sizing: border-box;
}

.content-area {
  flex: 3;
  padding: 20px;
  box-sizing: border-box;
}

.widget-area {
  flex: 1;
  background: #f5f5f5;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.widget-title {
  font-size: 1.2em;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
}

/* Entry styles */

.entry-header h2, .entry-header h1 {
  margin-top: 0;
}

.entry-content {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Footer */

#site-footer {
  text-align: center;
  padding: 20px;
  background: #eee;
  margin-top: 40px;
  font-size: 0.9em;
  color: #666;
}

/* Responsive layout for mobile */

@media (max-width: 768px) {

  #site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #site-navigation {
    text-align: left;
    margin-top: 15px;
    width: 100%;
  }

  #site-navigation ul {
    flex-direction: column;
    gap: 5px;
  }

  #site-content {
    flex-direction: column;
    max-width: 100%;
    margin: 15px auto;
    padding: 0 10px;
  }

  .widget-area {
    margin-top: 30px;
    padding: 15px 10px;
  }
}
