

/* Notice Bar - Mountain Brown */
.notice-bar {
  background: var(--blue);
  color: var(--white);
  padding: var(--space-12) var(--space-20);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-tight);
}

.notice-content {
  text-align: center;
}

.notice-close {
  position: absolute;
  right: var(--space-20);
  background: none;
  border: none;
  color: var(--hf-white);
  font-size: var(--font-size-xl);
  cursor: pointer;
  padding: var(--space-4);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.notice-close:hover {
  transform: scale(1.1);
}

.notice-close:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

/* Main Header */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-16) var(--space-20);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.logo-icon {
  width: 100px;
}

.logo-icon svg,
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--hf-primary);
  letter-spacing: var(--letter-spacing-tight);
}

.logo-tagline {
  font-size: var(--font-size-xs);
  color: var(--hf-light-green);
  letter-spacing: var(--letter-spacing-tight);
  font-weight: var(--font-weight-medium);
}

/* Mobile Header Actions */
.mobile-header-actions {
  display: flex;
  align-items: center;
}

.mobile-call-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-normal) var(--ease-standard);
  border: none;
  cursor: pointer;
}

.mobile-call-icon:active {
  background: var(--hf-dark-green);
}

.mobile-call-icon:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

/* Mobile Search and Menu Bar */
.mobile-search-menu-bar {
  background: var(--blue);
  padding: var(--space-12) var(--space-16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-12);
  position: relative;
  z-index: 1001;
}

.mobile-search-toggle {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  padding: var(--space-10) var(--space-12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--font-size-sm);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: background var(--duration-normal) var(--ease-standard);
}

.mobile-search-toggle:active {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-search-toggle:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

.mobile-search-toggle i {
  font-size: var(--font-size-md);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  position: relative;
  z-index: 1002;
}

.mobile-menu-toggle:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

/* Hamburger Icon */
.hamburger-icon {
  width: var(--space-24);
  height: var(--space-16);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: var(--space-2);
  width: 100%;
  background: var(--white);
  border-radius: var(--space-2);
  transition: all var(--duration-normal) var(--ease-standard);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu-text {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-tight);
  font-weight: var(--font-weight-semibold);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

.nav-menu {
  display: flex;
  gap: var(--space-32);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: var(--blue);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-md);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  transition: color var(--duration-normal) var(--ease-standard);
  cursor: pointer;
  letter-spacing: var(--letter-spacing-tight);
}

.nav-item > a:hover {
  color: var(--hf-light-green);
}

.nav-item > a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

.nav-item > a i {
  font-size: var(--font-size-xs);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.nav-item.active > a i {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--duration-normal) var(--ease-standard);
  padding: var(--space-12) 0;
  border-radius: var(--radius-md);
  margin-top: var(--space-24);
  z-index: 1100;
  list-style: none;
}

.nav-item.active > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: var(--space-12) var(--space-20);
  color: var(--hf-text);
  transition: all var(--duration-normal) var(--ease-standard);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.dropdown-menu li a:hover {
  background: var(--hf-light-bg);
  color: var(--hf-primary);
  padding-left: var(--space-12);
  border-left: 3px solid var(--hf-primary);
}

.dropdown-menu li a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

/* Nested Dropdown */
.dropdown-menu .sub-menu {
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--hf-white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all var(--duration-normal) var(--ease-standard);
  padding: var(--space-12) 0;
  border-radius: var(--radius-md);
  margin-left: var(--space-8);
  list-style: none;
  border-top: 3px solid var(--hf-secondary);
}

.dropdown-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Base mega menu – hidden by default */
.nav-item.mega-menu-trigger > .dropdown-menu {
  position: absolute;
  top: 100%; /* appears below the nav item */
  left: 50%;
  transform: translate(-50%, 10px); /* centered + little offset down */

  width: min(90vw, var(--container-lg)); /* centered in screen */
  padding: var(--space-32);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-32);
  border-top: 4px solid var(--hf-accent);
  z-index: 1000;

  /* HIDE IT when not active */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s 0.25s; /* delay visibility so fade-out looks clean */
}

/* When parent has .active (or :hover) – show mega menu */
.nav-item.mega-menu-trigger.active > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0); /* slide up slightly */

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s; /* no delay when showing */
}

/* Your existing inner styles can stay the same: */
.nav-item.mega-menu-trigger > .dropdown-menu li {
  border: none;
}

.nav-item.mega-menu-trigger > .dropdown-menu li a {
  padding: var(--space-12) 0;
  border-bottom: none;
  font-weight: var(--font-weight-semibold);
  color: var(--hf-primary);
  font-size: var(--font-size-md);
}

.nav-item.mega-menu-trigger > .dropdown-menu li a:hover {
  background: transparent;
  color: var(--hf-light-green);
  padding-left: 0;
  border-left: none;
}

.nav-item.mega-menu-trigger > .dropdown-menu .sub-menu {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  padding: 0;
  margin-top: var(--space-12);
  background: transparent;
  border-top: none;
}

.nav-item.mega-menu-trigger > .dropdown-menu li > .sub-menu li a {
  padding: var(--space-8) 0;
  font-weight: var(--font-weight-normal);
  color: var(--hf-text);
  font-size: var(--font-size-sm);
}

.nav-item.mega-menu-trigger > .dropdown-menu li > .sub-menu li a:hover {
  padding-left: var(--space-10);
  background: var(--hf-light-bg);
  border-left: 3px solid var(--hf-light-green);
  border-radius: var(--radius-sm);
}


/* Header Actions - Desktop */
.header-actions {
  display: none;
  align-items: center;
  gap: var(--space-24);
}

.search-toggle {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--blue);
  cursor: pointer;
  padding: var(--space-6);
  transition: color var(--duration-normal) var(--ease-standard);
}

.search-toggle:hover {
  color: var(--hf-light-green);
}

.search-toggle:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

.search-toggle.active i:before {
  content: "\f00d";
}

.contact-info {
  text-align: right;
}

.contact-label {
  font-size: var(--font-size-xs);
  color: var(--green);
  display: block;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-tight);
  font-weight: var(--font-weight-semibold);
}

.contact-phone {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--blue);
  margin-top: var(--space-2);
}

/* Desktop Search Bar - BOTTOM POPUP */
.desktop-search-bar {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--hf-white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-20) var(--space-24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1001;
  min-width: 380px;
  border-top: 4px solid var(--hf-secondary);
  margin-top: var(--space-8);
}

.desktop-search-bar.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-search-container {
  padding: 0;
}

.desktop-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--hf-light-bg);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4) 0 var(--space-16);
  border: 2px solid var(--hf-primary);
  transition: border-color var(--duration-normal) var(--ease-standard);
}

.desktop-search-wrapper:focus-within {
  border-color: var(--hf-light-green);
}

.search-icon-inside {
  color: var(--hf-primary);
  font-size: var(--font-size-md);
  margin-right: var(--space-12);
}

.desktop-search-input {
  flex: 1;
  padding: var(--space-12) var(--space-10) var(--space-12) 0;
  border: none;
  background: transparent;
  font-size: var(--font-size-sm);
  outline: none;
  color: var(--hf-text);
}

.desktop-search-input::placeholder {
  color: var(--hf-light-green);
  font-weight: var(--font-weight-medium);
}

.desktop-search-input:focus-visible {
  outline: none;
}

.desktop-search-submit {
  background: var(--hf-primary);
  color: var(--hf-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-standard);
  flex-shrink: 0;
  font-weight: var(--font-weight-semibold);
}

.desktop-search-submit:hover {
  background: var(--hf-light-green);
  box-shadow: var(--shadow-md);
}

.desktop-search-submit:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
  z-index: 997;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  left: 0;
  width: 100%;
  background: var(--blue);
  z-index: 998;
  overflow-y: auto;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  visibility: hidden;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  max-height: calc(100vh - 300px);
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav > ul > li:last-child {
  border-bottom: none;
}

.mobile-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16) var(--space-20);
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  transition: background var(--duration-normal) var(--ease-standard);
  letter-spacing: var(--letter-spacing-tight);
}

.mobile-nav li a:active {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-nav li a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

.mobile-nav li a i {
  font-size: var(--font-size-xs);
  transition: transform var(--duration-normal) var(--ease-standard);
}

/* Mobile Submenu */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(var(--color-teal-700-rgb), 0.8);
  list-style: none;
}

.mobile-submenu.active {
  max-height: 1500px;
}

.mobile-submenu li a {
  padding: var(--space-12) var(--space-20) var(--space-12) var(--space-32);
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.mobile-submenu .mobile-submenu {
  background: rgba(var(--color-teal-700-rgb), 0.95);
}

.mobile-submenu .mobile-submenu li a {
  padding-left: 52px;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -3px 12px var(--hf-shadow);
  padding: var(--space-12) var(--space-16);
  display: flex;
  align-items: center;
  gap: var(--space-12);
  z-index: 1500;
}

.footer-whatsapp {
  width: 48px;
  height: 48px;
  background: #25d366;
  color: var(--hf-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-standard);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  border: none;
  cursor: pointer;
}

.footer-whatsapp:active {
  transform: scale(0.95);
}

.footer-whatsapp:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

.footer-contact {
  flex: 1;
}

.footer-contact-label {
  font-size: var(--font-size-xs);
  color: var(--green);
  display: block;
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-tight);
  font-weight: var(--font-weight-semibold);
}

.footer-contact-phone {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--blue);
  display: block;
  margin-top: var(--space-2);
}

/* WhatsApp Button - Desktop */
.whatsapp-btn {
  position: fixed;
  bottom: var(--space-32);
  left: var(--space-32);
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4xl);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--duration-normal) var(--ease-standard);
  border: none;
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--space-2);
}

/* Site Footer */
.site-footer {
  background: var(--hf-dark-green);
  color: var(--hf-white);
  padding: var(--space-24) var(--space-20);
  text-align: center;
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-tight);
}

.site-footer .copy {
  margin: 0;
}

/* Responsive - Mobile Portrait */
@media (max-width: 480px) {
  .header-container {
    padding: var(--space-12) var(--space-16);
  }
  
  .logo-name {
    font-size: var(--font-size-lg);
  }
  
  .mobile-search-menu-bar {
    padding: var(--space-10) var(--space-12);
    gap: var(--space-10);
  }
  
  .mobile-search-toggle {
    padding: var(--space-8) var(--space-10);
    font-size: var(--font-size-xs);
  }
  
  .mobile-sticky-footer {
    padding: var(--space-10) var(--space-12);
    gap: var(--space-10);
  }
  
  .footer-whatsapp {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-xl);
  }
  
  .footer-contact-phone {
    font-size: var(--font-size-sm);
  }
  
  .whatsapp-btn {
    bottom: var(--space-20);
    left: var(--space-20);
    width: 50px;
    height: 50px;
    font-size: var(--font-size-2xl);
  }
  
  .nav-item.mega-menu-trigger > .dropdown-menu {
    width: 95vw;
    padding: var(--space-20);
    gap: var(--space-24);
  }
}

/* Responsive - Desktop */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .mobile-header-actions,
  .mobile-search-menu-bar,
  .mobile-sticky-footer {
    display: none !important;
  }

  .desktop-nav {
    display: block;
  }

  .header-actions {
    display: flex;
    position: relative;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }

  /* Search popup opens from bottom-right on desktop */
  .desktop-search-bar {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border-top: 3px solid var(--hf-secondary);
    border-bottom: none;
    z-index: 999;
  }

  .desktop-search-bar.active {
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 767px) {
  .desktop-nav,
  .header-actions {
    display: none !important;
  }

  .desktop-search-bar {
    display: none !important;
  }

  .whatsapp-btn.desktop-only {
    display: none !important;
  }
}
/* ==========================================================================
   Page Template Styles
   ========================================================================== */

/* ==========================================================================
   Page Template Styles - Updated
   ========================================================================== */

/* Hero Section */
.page-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
}

.page-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero__content {
    text-align: center;
    padding: var(--space-24);
    max-width: var(--container-lg);
    margin: 0 auto;
}

.page-hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--white);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Hero without featured image */
.page-hero--no-image {
    height: 250px;
}

.page-hero--no-image .page-hero__title {
    color: var(--white);
}

/* Hero Separator - Torn Paper Effect */
.hero-separator {
    position: relative;
    height: 80px;
    background: var(--white);
    margin-top: -1px;
}

.hero-separator::before {
    content: '';
    position: absolute;
    top: -79px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: polygon(
        0% 100%,
        0.5% 95%,
        1% 98%,
        2% 92%,
        3% 96%,
        4% 90%,
        5% 94%,
        6% 88%,
        7% 93%,
        8% 87%,
        9% 91%,
        10% 85%,
        11% 90%,
        12% 84%,
        13% 88%,
        14% 82%,
        15% 87%,
        16% 81%,
        17% 86%,
        18% 80%,
        19% 85%,
        20% 79%,
        21% 84%,
        22% 78%,
        23% 83%,
        24% 77%,
        25% 82%,
        26% 76%,
        27% 81%,
        28% 75%,
        29% 80%,
        30% 74%,
        31% 79%,
        32% 73%,
        33% 78%,
        34% 72%,
        35% 77%,
        36% 71%,
        37% 76%,
        38% 70%,
        39% 75%,
        40% 69%,
        41% 74%,
        42% 68%,
        43% 73%,
        44% 67%,
        45% 72%,
        46% 66%,
        47% 71%,
        48% 65%,
        49% 70%,
        50% 64%,
        51% 70%,
        52% 65%,
        53% 71%,
        54% 66%,
        55% 72%,
        56% 67%,
        57% 73%,
        58% 68%,
        59% 74%,
        60% 69%,
        61% 75%,
        62% 70%,
        63% 76%,
        64% 71%,
        65% 77%,
        66% 72%,
        67% 78%,
        68% 73%,
        69% 79%,
        70% 74%,
        71% 80%,
        72% 75%,
        73% 81%,
        74% 76%,
        75% 82%,
        76% 77%,
        77% 83%,
        78% 78%,
        79% 84%,
        80% 79%,
        81% 85%,
        82% 80%,
        83% 86%,
        84% 81%,
        85% 87%,
        86% 82%,
        87% 88%,
        88% 83%,
        89% 89%,
        90% 84%,
        91% 90%,
        92% 85%,
        93% 91%,
        94% 86%,
        95% 92%,
        96% 87%,
        97% 93%,
        98% 88%,
        99% 94%,
        99.5% 89%,
        100% 100%
    );
    filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.08));
}

/* Page Content Container - Wider Width */
.page-content {
    background: var(--white);
    padding: 0 var(--space-24) var(--space-48);
}

.page-content__container {
    max-width: 980px; /* Increased from 760px */
    margin: 0 auto;
}

.page-content__body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-loose);
    color: var(--gray-dark);
    letter-spacing: var(--letter-spacing-normal);
}

/* Typography Styles for Content */
.page-content__body h1,
.page-content__body h2,
.page-content__body h3,
.page-content__body h4,
.page-content__body h5,
.page-content__body h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-top: var(--space-32);
    margin-bottom: var(--space-16);
    color: var(--dark);
    letter-spacing: var(--letter-spacing-tight);
}

.page-content__body h2 {
    font-size: var(--font-size-3xl);
    padding-bottom: var(--space-12);
    border-bottom: 2px solid var(--light);
}

.page-content__body h3 {
    font-size: var(--font-size-2xl);
}

.page-content__body h4 {
    font-size: var(--font-size-xl);
}

.page-content__body h5 {
    font-size: var(--font-size-lg);
}

.page-content__body h6 {
    font-size: var(--font-size-md);
}

/* Enhanced Paragraphs */
.page-content__body p {
    margin-bottom: var(--space-24);
    line-height: 1.9;
    color: #4a5568;
    font-size: var(--font-size-md);
    text-align: justify;
    hyphens: auto;
    word-spacing: 0.05em;
}

.page-content__body p:first-of-type {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--gray-dark);
}

.page-content__body p:first-of-type::first-letter {
    font-size: 3.5em;
    font-weight: var(--font-weight-bold);
    line-height: 0.9;
    float: left;
    margin: 0.1em 0.15em 0 0;
    color: var(--primary);
    font-family: Georgia, serif;
}

.page-content__body p:last-child {
    margin-bottom: 0;
}

.page-content__body p + p {
    text-indent: var(--space-32);
}

.page-content__body p strong {
    font-weight: var(--font-weight-bold);
    color: var(--dark);
}

.page-content__body p em {
    font-style: italic;
    color: var(--gray);
}

/* Links */
.page-content__body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    border-bottom: 2px solid transparent;
    transition: all var(--duration-normal) var(--ease-standard);
    position: relative;
}

.page-content__body a:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.page-content__body a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* External links indicator */
.page-content__body a[href^="http"]:not([href*="yourdomain.com"])::after {
    content: " ↗";
    font-size: var(--font-size-sm);
    opacity: 0.6;
}

/* Blockquote Styles */
.page-content__body blockquote {
    position: relative;
    margin: var(--space-40) 0;
    padding: var(--space-32) var(--space-40);
    background: linear-gradient(
        135deg,
        rgba(30, 86, 165, 0.04),
        rgba(30, 86, 165, 0.01)
    );
    border-left: 5px solid var(--blue);
    border-radius: var(--radius-md);
    font-style: italic;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--gray-dark);
    box-shadow: var(--shadow-sm);
}

.page-content__body blockquote::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 80px;
    font-weight: var(--font-weight-bold);
    color: var(--blue);
    opacity: 0.12;
    font-family: Georgia, serif;
    line-height: 1;
}

.page-content__body blockquote p {
    margin-bottom: var(--space-16);
    text-indent: 0;
}

.page-content__body blockquote p:last-child {
    margin-bottom: 0;
}

.page-content__body blockquote cite {
    display: block;
    margin-top: var(--space-16);
    font-size: var(--font-size-sm);
    font-style: normal;
    color: var(--gray);
    font-weight: var(--font-weight-semibold);
}

.page-content__body blockquote cite::before {
    content: "— ";
}

/* Unordered Lists */
.page-content__body ul {
    list-style: none;
    margin: var(--space-32) 0;
    padding: 0;
}

.page-content__body ul li {
    position: relative;
    padding-left: var(--space-40);
    margin-bottom: var(--space-16);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-md);
}

.page-content__body ul li::before {
    content: "";
    position: absolute;
    left: var(--space-8);
    top: 12px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(30, 86, 165, 0.3);
}

/* Nested list items */
.page-content__body ul ul {
    margin-top: var(--space-16);
    margin-bottom: var(--space-16);
}

.page-content__body ul ul li::before {
    width: 7px;
    height: 7px;
    background: var(--gray);
    top: 13px;
}

/* Ordered Lists */
.page-content__body ol {
    margin: var(--space-32) 0;
    padding-left: var(--space-40);
    counter-reset: custom-counter;
}

.page-content__body ol li {
    position: relative;
    margin-bottom: var(--space-16);
    line-height: var(--line-height-relaxed);
    padding-left: var(--space-16);
    counter-increment: custom-counter;
    font-size: var(--font-size-md);
}

.page-content__body ol li::marker {
    content: counter(custom-counter) ". ";
    color: var(--primary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-md);
}

/* Images */
.page-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-md);
    margin: var(--space-32) 0;
    display: block;
}

.page-content__body figure {
    margin: var(--space-40) 0;
}

.page-content__body figcaption {
    margin-top: var(--space-12);
    font-size: var(--font-size-sm);
    color: var(--gray);
    text-align: center;
    font-style: italic;
}

/* Code Blocks */
.page-content__body code {
    background: var(--light);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    color: var(--danger);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.page-content__body pre {
    background: var(--gray-dark);
    padding: var(--space-24);
    border-radius: var(--radius-base);
    overflow-x: auto;
    margin: var(--space-32) 0;
    box-shadow: var(--shadow-md);
}

.page-content__body pre code {
    background: transparent;
    padding: 0;
    color: var(--light);
    border: none;
}

/* Tables */
.page-content__body table {
    width: 100%;
    margin: var(--space-40) 0;
    border-collapse: collapse;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-base);
    overflow: hidden;
}

.page-content__body table th {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-16) var(--space-20);
    text-align: left;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.page-content__body table td {
    padding: var(--space-16) var(--space-20);
    border-bottom: 1px solid var(--light);
}

.page-content__body table tr:last-child td {
    border-bottom: none;
}

.page-content__body table tr:nth-child(even) {
    background: rgba(0, 123, 255, 0.02);
}

/* Horizontal Rule */
.page-content__body hr {
    margin: var(--space-48) 0;
    border: none;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--light) 20%,
        var(--light) 80%,
        transparent
    );
}

/* Page Links (Pagination) */
.page-links {
    margin-top: var(--space-40);
    padding-top: var(--space-24);
    border-top: 2px solid var(--light);
    font-weight: var(--font-weight-medium);
}

.page-links a {
    display: inline-block;
    margin: var(--space-4);
    padding: var(--space-8) var(--space-16);
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-base);
    transition: all var(--duration-normal) var(--ease-standard);
    border-bottom: none !important;
}

.page-links a:hover {
    background: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        height: 300px;
    }

    .page-hero__title {
        font-size: var(--font-size-2xl);
    }

    .page-hero--no-image {
        height: 200px;
    }

    .hero-separator {
        height: 60px;
    }

    .hero-separator::before {
        top: -59px;
        height: 60px;
    }

    .page-content {
        padding: 0 var(--space-16) var(--space-32);
    }

    .page-content__body {
        font-size: var(--font-size-sm);
    }

    .page-content__body p {
        font-size: var(--font-size-base);
        text-align: left;
    }

    .page-content__body p:first-of-type::first-letter {
        font-size: 2.8em;
    }

    .page-content__body h2 {
        font-size: var(--font-size-2xl);
    }

    .page-content__body h3 {
        font-size: var(--font-size-xl);
    }

    .page-content__body blockquote {
        padding: var(--space-20) var(--space-24);
        font-size: var(--font-size-base);
    }

    .page-content__body table {
        font-size: var(--font-size-xs);
    }

    .page-content__body table th,
    .page-content__body table td {
        padding: var(--space-8) var(--space-12);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .page-content__container {
        max-width: 860px;
    }
}

@media (min-width: 1025px) {
    .page-content__container {
        max-width: 980px;
    }
}

    /* ==============================================
   Single Blog Post Styles
   ============================================== */

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Article Structure */
article {
    background: #fff;
}

/* Entry Header */
.entry-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

/* Blog Title */
.entry-title {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Entry Meta */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
}

.entry-meta .date::before {
    content: "📅 ";
    margin-right: 5px;
}

.entry-meta .author::before {
    content: "✍️ ";
    margin-right: 5px;
}

.entry-meta .categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.entry-meta .categories a {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.entry-meta .categories a:hover {
    background: #0066cc;
    color: #ffffff;
}

/* Featured Image */
.featured-image {
    margin: 0 0 40px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Entry Content - Main Text Styling */
.entry-content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.8;
    color: #2f2f2f;
    margin-bottom: 60px;
}

/* Paragraphs */
.entry-content p {
    margin: 0 0 28px;
    text-align: left;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* Headings within Content */
.entry-content h2 {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    color: #1a1a1a;
    margin: 48px 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.entry-content h3 {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 600;
    color: #2a2a2a;
    margin: 40px 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.entry-content h4 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
    margin: 32px 0 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Links */
.entry-content a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    color: #004499;
    text-decoration: none;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 0 0 28px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Custom Bullet Points */
.entry-content ul li {
    list-style: none;
    position: relative;
    padding-left: 10px;
}

.entry-content ul li::before {
    content: "→";
    position: absolute;
    left: -20px;
    color: #0066cc;
    font-weight: bold;
}

/* Ordered Lists */
.entry-content ol li {
    padding-left: 10px;
}

/* Blockquotes */
.entry-content blockquote {
    border-left: 4px solid #0066cc;
    margin: 32px 0;
    padding: 20px 30px;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
    border-radius: 4px;
}

.entry-content blockquote p {
    margin-bottom: 0;
}

/* Images within Content */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
    display: block;
}

/* Code Blocks */
.entry-content code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 16px;
    color: #d63384;
}

.entry-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: #abb2bf;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.entry-content table th,
.entry-content table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.entry-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.entry-content table tr:hover {
    background: #f8f9fa;
}

/* ==============================================
   Recent Posts Section - NEW
   ============================================== */

.recent-posts-section {
    background: #f8f9fa;
    padding: 80px 0;
    margin-top: 60px;
    border-top: 1px solid #e5e5e5;
}

.recent-posts-section .container {
    max-width: 1200px;
}

.recent-posts-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Recent Posts Grid */
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Recent Post Item */
.recent-post-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Recent Post Thumbnail */
.recent-post-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.recent-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumbnail img {
    transform: scale(1.05);
}

/* Recent Post Content */
.recent-post-content {
    padding: 20px;
}

/* Recent Post Title */
.recent-post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.recent-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: #0066cc;
}

/* Recent Post Meta */
.recent-post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

/* Recent Post Excerpt */
.recent-post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Recent Post Link */
.recent-post-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.recent-post-link:hover {
    border-bottom-color: #0066cc;
}

/* ==============================================
   Responsive Design
   ============================================== */

@media (max-width: 768px) {
    .single-blog {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .entry-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .entry-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .entry-content {
        font-size: 17px;
        line-height: 1.7;
    }
    
    .entry-content h2 {
        font-size: 26px;
        margin: 36px 0 16px;
    }
    
    .entry-content h3 {
        font-size: 22px;
        margin: 30px 0 14px;
    }
    
    .entry-content h4 {
        font-size: 20px;
        margin: 24px 0 12px;
    }
    
    .entry-content ul,
    .entry-content ol {
        padding-left: 24px;
    }
    
    .entry-content blockquote {
        padding: 16px 20px;
        margin: 24px 0;
    }
    
    .featured-image {
        margin: 0 -16px 30px;
        border-radius: 0;
    }
    
    .featured-image img {
        border-radius: 0;
    }
    
    /* Recent Posts Responsive */
    .recent-posts-section {
        padding: 60px 0;
        margin-top: 40px;
    }
    
    .recent-posts-title {
        font-size: 26px;
        margin-bottom: 35px;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 24px;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .entry-content h2 {
        font-size: 22px;
    }
    
    .entry-content h3 {
        font-size: 20px;
    }
    
    .recent-posts-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .recent-post-title {
        font-size: 16px;
    }
    
    .recent-post-thumbnail {
        height: 150px;
    }
}

/* ==============================================
   Print Styles
   ============================================== */

@media print {
    .entry-meta .categories,
    .recent-posts-section {
        display: none;
    }
    
    .entry-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}