/* OE Parts - Main Stylesheet */

/* ========== CSS Variables ========== */
:root {
  --primary-color: #1a5276;
  --primary-dark: #154360;
  --secondary-color: #2980b9;
  --accent-color: #e74c3c;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --background-color: #f8f9fa;
  --white: #ffffff;
  --border-color: #e1e8ed;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --radius: 8px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-color);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* ========== Layout ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

.main-content {
  min-width: 0;
}

/* ========== Header ========== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-color);
}

.logo:hover {
  color: var(--primary-dark);
}

/* ========== Navigation ========== */
.main-nav ul {
  display: flex;
  gap: 5px;
}

.main-nav a {
  display: block;
  padding: 10px 18px;
  font-weight: 500;
  color: var(--text-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-color);
  color: var(--white);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-small {
  padding: 50px 0;
}

.hero-small h1 {
  font-size: 2.25rem;
  margin-bottom: 10px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #c0392b;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--background-color);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ========== Cards ========== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-image {
  aspect-ratio: 16/9;
  background: var(--border-color);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
}

.card-meta {
  display: flex;
  gap: 15px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.card-meta a {
  color: var(--secondary-color);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-title a {
  color: var(--text-color);
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-excerpt {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover {
  gap: 10px;
}

/* ========== Article / Post ========== */
.article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-bottom: 30px;
}

.article-header {
  margin-bottom: 30px;
}

.article-title {
  font-size: 2rem;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-featured-image {
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ========== Sidebar ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
}

.widget-title {
  font-size: 1.1rem;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  display: flex;
  justify-content: space-between;
  color: var(--text-color);
}

.widget ul li a:hover {
  color: var(--primary-color);
}

.category-count {
  background: var(--background-color);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== Category Page ========== */
.category-header {
  margin-bottom: 30px;
}

.category-description {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.pagination a:hover,
.pagination span.current {
  background: var(--primary-color);
  color: var(--white);
}

/* ========== Contact Form ========== */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ========== Contact Info ========== */
.contact-info {
  display: grid;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  margin-bottom: 5px;
}

.contact-info-item p {
  color: var(--text-light);
  margin: 0;
}

/* ========== About Page ========== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-text h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.feature-item {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 20px;
}

.feature-item h3 {
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-light);
  margin: 0;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-about p {
  opacity: 0.8;
  line-height: 1.7;
}

.footer-widget h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-widget ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
}

/* ========== Breadcrumbs ========== */
.breadcrumbs {
  padding: 15px 0;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--text-light);
}

.breadcrumbs span {
  margin: 0 8px;
  color: var(--text-light);
}

.breadcrumbs .current {
  color: var(--text-color);
}

/* ========== Tags ========== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--background-color);
  color: var(--text-color);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ========== Search Box ========== */
.search-form {
  display: flex;
}

.search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem;
}

.search-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-form button {
  padding: 12px 20px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.search-form button:hover {
  background: var(--primary-dark);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    order: -1;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav a {
    padding: 12px 15px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .article {
    padding: 25px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Utility Classes ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-6 { padding-top: 60px; padding-bottom: 60px; }

.hidden { display: none; }
