/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f8f8f8;
  color: #333; 
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: linear-gradient(135deg, #272727, #6e96bb);
  color: #fff;}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo h1 {
  font-size: 2rem;
  font-weight: bold;
}

.logo span {
  color: #e74c3c;
  font-size: 0.9rem;
  font-weight: normal;
}
.main-nav ul {
  display: flex;
  gap: 20px;             /* Spacing between nav items */
  padding: 0;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #5803b9;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #7ba3c9, #272727); 
  color: #ffffff;

  padding: 60px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Main Layout */
.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

/* Category Sections */
.category-section {
  margin-bottom: 3rem;
}

.category-header {
  position: relative;
  z-index: 101;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #2c3e50;
  font-family: 'GFS Didot', serif; /* This applies the font */
  font-weight:600; /* Didot looks best at normal weight */
  letter-spacing: 0.5px; /* Optional: improves readability */
}

.category-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #cc9e1f;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.article-card {
  background: #fff;
  border-radius: px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-content {
  padding: 20px;
}

.article-card h3 {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.article-card p {
  color: #666;
  margin-bottom: 1.25rem;
}

/* Sidebar */
/* Existing most-popular styles */
.most-popular {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 30px;
}

/* Mobile-specific styles for most-popular sidebar */
/* Mobile-specific styles for article and sidebar */
@media (max-width: 768px) {
  /* Article part - 75% width on mobile */
  .article-content {
    width: 90%;
    margin: 0 auto;
    padding: 15px;
  }
  
  /* Most-popular sidebar adjustments */
  .most-popular {
    /* Full width on mobile */
    width: 100%;
    
    /* Adjust padding for smaller screens */
    padding: 15px;
    
    /* Remove excessive margin/padding */
    margin-left: 0;
    margin-right: 0;
    
    /* Slightly reduce shadow for mobile */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    
    /* Add some space above */
    margin-top: 20px;
  }

  /* Make sidebar sections stack nicely */
  .sidebar-section {
    margin-bottom: 20px;
  }

  /* Adjust title sizing */
  .sidebar-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  /* Optimize the modern list for mobile */
  .modern-list li {
    padding: 10px 0;
  }

  .modern-list li a {
    font-size: 0.9rem;
  }

  /* Make sure cards don't have too much internal padding */
  .sidebar-card {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  /* If you have any images in sidebar */
  .most-popular img {
    max-width: 100%;
    height: auto;
  }
  
  /* Adjust article grid for mobile */
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  /* Ensure article cards look good on mobile */
  .article-card {
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* Adjust article layout for mobile */
  .article-layout {
    display: flex;
    flex-direction: column;
  }
}

/* Buttons */
.button {
  display: inline-block;
  background:#505799;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #141414, #59738b);
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

.site-footer nav {
  margin-top: 1rem;
}

.site-footer a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
}
.most-popular {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px;
}

.sidebar-section {
  margin-bottom: 28px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 1.1rem;
  color: #2d3748;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f7fafc;
  transition: all 0.2s ease;
}

.modern-list li:hover {
  background: #f8fafc;
  transform: translateX(2px);
}

.modern-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.modern-list li a:hover {
  color: #3182ce;
}

.modern-list li a::before {
  content: "→";
  color: #a0aec0;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.modern-list li:hover a::before {
  color: #3182ce;
  transform: translateX(3px);
}

/* Modern card styling */
.sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
}

/* Sidebar Styling */
aside.most-popular {
  background-color: #f9f9f9; /* Light gray background for sidebar */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

aside .article-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

aside h3 {
  color: #2c3e50; /* Softer blue-gray for headings */
  font-size: 1.25rem;
  margin-top: 0;
}

aside ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

aside li {
  padding: 8px 0;
  border-bottom: 1px solid #eee; /* Lighter border for separation */
}

aside li:last-child {
  border-bottom: none; /* Remove border from the last item */
}

aside a {
  color: #bc891a; /* Teal color for links */
  text-decoration: none;
}

aside a:hover {
  text-decoration: underline;
}

/* Article Content Styling */
article.article-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

article h2 {
  color: #2c3e50; /* Softer blue-gray for headings */
  font-size: 1.75rem;
  margin-bottom: 15px;
}

article h3 {
  color: #2c3e50;
  font-size: 1.25rem;
  margin-top: 0;
}

article p,
article li {
  font-size: 1rem;
  color: #555; /* Slightly softer text color for paragraphs */
  line-height: 1.6;
}

article a {
  color: #1abc9c; /* Teal color for links */
  text-decoration: none;
}

article a:hover {
  text-decoration: underline;
}

/* Highlighted Sections in Article */
.highlight {
  background-color: #e8f8f5; /* Light teal background for highlights */
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Call-to-Action Boxes in Article */
.cta-box {
  background-color: #afd0f3; /* Soft yellow for CTAs */
  padding: 15px;
  border-left: 4px solid #f39c12; /* Accent border */
  border-radius: 4px;
  margin-bottom: 20px;
}

.cta-box p {
  margin: 0;
  color: #333;
}

/* ARTICLE NAVIGATION NUMBERS */
/* Add this to your existing CSS */
.article-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  padding: 20px 0;
}

.article-pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #edf2f7;
  border-radius: 50%;
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.article-pagination a:hover,
.article-pagination a.active {
  background: #e74c3c;
  color: white;
}

.separator {
  display: flex;
  align-items: center;
  padding: 0 5px;
  color: #718096;
}

/* PAGINATION STYLES */
.article-page { display: none; }
.article-page.active { display: block; }
.article-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
  padding: 20px 0;
}
.article-pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #edf2f7;
  border-radius: 50%;
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.article-pagination a:hover,
.article-pagination a.active {
  background: #e74c3c;
  color: white;
}
.separator {
  display: flex;
  align-items: center;
  padding: 0 5px;
  color: #718096;
}

/* PAGINATION STYLES */
.article-page { display: none; }
.article-page.active { display: block; }
.article-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
  padding: 20px 0;
}
.article-pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #edf2f7;
  border-radius: 50%;
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.article-pagination a:hover,
.article-pagination a.active {
  background: #e74c3c;
  color: white;
}
.separator {
  display: flex;
  align-items: center;
  padding: 0 5px;
  color: #718096;
}

/* Add these styles to your existing CSS */

/* Mobile Menu Toggle Styles */
.mobile-menu-checkbox {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 100;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: #2c3e50; /* Solid dark blue */
    z-index: 9999; /* Higher than everything else (e.g., hamburger z-index: 100) */
    transition: all 0.3s ease;
    padding: 20px;
    overflow-y: auto;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Show menu when checkbox is checked */
  .mobile-menu-checkbox:checked ~ .main-nav {
    left: 0;
  }
  
  /* Hamburger to X animation */
  .mobile-menu-checkbox:checked + .hamburger .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-checkbox:checked + .hamburger .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-checkbox:checked + .hamburger .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
.logo {
  text-decoration: none; /* Removes underline */
  color: inherit; /* Inherits text color */
  display: inline-block; /* Maintains layout */
}

.logo:hover {
  text-decoration: none; /* Ensures no underline on hover */
}

/* If you need specific hover effects */
.logo:hover h1 {
  color: #e74c3c; /* Example hover color */
  transition: color 0.3s ease;
}

.category-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px; /* Space around the section */
  border: 1px solid #ccc; /* Optional: Adds a border for clarity */
}

.category-header {
  margin-top: 10px; /* Space above the heading */
  margin-bottom: 10px; /* Space below the heading */
  font-size: 1.5rem; /* Ensures the font size is appropriate */
  line-height: 1.5; /* Improves spacing within the text */
}
