/* === STICKY HEADER (Apple-style smooth shrink) === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 58, 138, 0.85); /* navy with transparency */
  backdrop-filter: blur(10px);
  padding: 18px 40px;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* offset for fixed header */
body {
  padding-top: 80px;
}

/* logo / site title */
.site-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: font-size 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
}

/* nav layout */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.main-navigation ul li a {
  color: #f3f4f6;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.main-navigation ul li a:hover {
  background: #facc15;
  color: #1e3a8a;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
}

/* === SHRINK ON SCROLL === */
.site-header.shrink {
  padding: 10px 28px;
  background: rgba(15, 30, 80, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.site-header.shrink .site-title {
  font-size: 1.4rem;
  opacity: 0.9;
  transform: translateY(-1px);
}

/* === MOBILE === */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-navigation ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(30, 58, 138, 0.95);
    width: 100%;
    margin-top: 12px;
    border-radius: 8px;
    padding: 10px 0;
  }

  .main-navigation.active ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
/* =========================================
   SINGLE POST PAGE STYLING (Custom Layout)
   ========================================= */

.single-post .post-hero {
  background: linear-gradient(135deg, #1e3a8a, #facc15);
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 40px;
}

.single-post .post-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.single-post .post-hero .meta {
  font-size: 0.95rem;
  opacity: 0.9;
}

.single-post .site-main {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
}

.single-post .related-posts {
  background: #f9fafb;
  border-radius: 10px;
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
}

.single-post .related-posts h2 {
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 30px;
}

.single-post .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.single-post .related-grid article {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.single-post .related-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.single-post .related-grid article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a8a;
}

.single-post .related-grid article a {
  text-decoration: none;
  color: inherit;
}

/* ================================
   MOBILE RESPONSIVE OPTIMIZATION
   ================================ */
@media (max-width: 768px) {
  .single-post .site-main {
    padding: 20px;
  }

  .single-post .post-hero {
    padding: 40px 15px;
  }

  .single-post .post-hero h1 {
    font-size: 1.6rem;
  }

  .single-post .related-posts {
    padding: 30px 15px;
  }
}
/* =========================================
   CATEGORY & BLOG LIST PAGE STYLING
   ========================================= */

.archive .page-header {
  text-align: center;
  background: linear-gradient(135deg, #2563eb, #7dd3fc);
  color: white;
  padding: 60px 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.archive .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.archive .page-header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Grid layout for post cards */
.archive .site-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
  background-color: #f8fafc;
  border-radius: 10px;
}

.archive .post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.archive .post:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.archive .post .entry-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 20px;
}

.archive .post .entry-summary {
  font-size: 0.95rem;
  color: #475569;
  margin: 0 20px 20px 20px;
}

.archive .post a.read-more {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
}

.archive .post a.read-more:hover {
  background-color: #1e40af;
}

/* =========================================
   SIDEBAR STYLING
   ========================================= */

.sidebar {
  background: #f9fafb;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.sidebar h2,
.sidebar .widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a8a;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 12px;
}

.sidebar ul li a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.sidebar ul li a:hover {
  color: #2563eb;
  padding-left: 5px;
}

/* =========================================
   MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 768px) {
  .archive .site-main {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .archive .page-header {
    padding: 40px 15px;
  }

  .archive .page-header h1 {
    font-size: 1.6rem;
  }

  .sidebar {
    margin-top: 30px;
    padding: 20px 15px;
  }
}
/* Remove unwanted gradient from single post header */
.single .page-hero,
.single .entry-hero,
.single .inside-article .entry-header {
  background: none !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* Adjust post title styling for clarity */
.single .entry-title {
  color: #111827 !important;
  text-shadow: none !important;
}
