@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&family=Raleway:wght@300;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Ensure scrollbar is always present */
html {
    overflow-y: scroll; /* Always show scrollbar */
    scroll-behavior: smooth;
}

/* main in home*/
main {
    width: 100%; 
    display: flex; 
    flex-direction: column;
    align-items: center;
}

:root {
    --primary: #2D3E50; /* Deep modern navy for text & accents */
    --primary-light: #6A8D73; /* Soft sage green for highlights */
    --secondary: #C2A477; /* Muted gold for accent elements */
    --secondary-light: #F8F6F2; /* Soft warm off-white for sections */
    --secondary-dark: #A58C65; /* Rich brownish-gold for depth */
    --text-dark: #2E2E2E; /* Deep charcoal for strong readability */
    --text-light: #6D6F6E; /* Muted gray for subtle contrast */
    --white: #FFFFFF; /* Clean white */
    --off-white: #F4ECE1; /* Slightly darker beige for variation */
    --accent-blue: #1E71B8; /* Deep, refined blue for optional accents */
    --shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Softer shadow for modern effect */
    --shadow-strong: 0px 6px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
}

body {
    display: flex;
    flex-direction: column;
    background: #FFFFFF; /* White background */
    color: #4A4E4D; /* Deep Olive for text */
    font-family: "Poppins", sans-serif; /* Consistent modern font */
    align-items: center;
    justify-content: flex-start;
    min-height: 250vh;
    padding-top: 0;
    margin-bottom: 0;
}

/* ===============================================
   HEADER STYLES
   =============================================== */

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    padding: 40px 100px;
    background: #F4ECE1; /* Warm Sand - Light, Elegant, and Inviting */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

/* Logo */
.logo img {
    height: 120px;
    width: auto;
    background: transparent;
}

/* Navigation */
.navigation {
    display: flex;
    align-items: center;
}

.navigation a {
    font-size: 1.1em;
    color: #4A4E4D; /* Deep Olive for modern contrast */
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
    font-family: "Poppins", sans-serif;
}

.navigation a:hover {
    color: #C2A477; /* Muted Gold accent */
}

/* Dropdown Wrapper */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Mega Dropdown */
.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #F4ECE1; /* Matches header */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    display: grid;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    min-width: 400px;
}

/* Mobile scrollable mega dropdown styles */
    .mobile-scrollable {
        /* Custom scrollbar for webkit browsers */
        scrollbar-width: thin;
        scrollbar-color: rgba(194, 164, 119, 0.6) rgba(244, 236, 225, 0.3);
    }
    
    .mobile-scrollable::-webkit-scrollbar {
        width: 8px;
    }
    
    .mobile-scrollable::-webkit-scrollbar-track {
        background: rgba(244, 236, 225, 0.3);
        border-radius: 4px;
        margin: 4px 0;
    }
    
    .mobile-scrollable::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, 
            rgba(194, 164, 119, 0.8) 0%, 
            rgba(165, 140, 101, 0.9) 100%);
        border-radius: 4px;
        border: 1px solid rgba(244, 236, 225, 0.5);
    }
    
    .mobile-scrollable::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, 
            rgba(194, 164, 119, 1) 0%, 
            rgba(165, 140, 101, 1) 100%);
    }
    
    /* Smooth scroll behavior for mobile dropdowns */
    .mega-dropdown.mobile-scrollable {
        scroll-padding: 8px;
        overscroll-behavior: contain;
    }
    
    /* Add subtle fade at top and bottom for long scrollable lists */
    .mega-dropdown.mobile-scrollable::before {
        content: '';
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: linear-gradient(180deg, 
            rgba(244, 236, 225, 1) 0%, 
            rgba(244, 236, 225, 0) 100%);
        z-index: 1;
        pointer-events: none;
    }
    
    .mega-dropdown.mobile-scrollable::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: linear-gradient(0deg, 
            rgba(244, 236, 225, 1) 0%, 
            rgba(244, 236, 225, 0) 100%);
        z-index: 1;
        pointer-events: none;
    }
    
    /* Enhanced mega-item spacing in scrollable containers */
    .mobile-scrollable .mega-item {
        margin-bottom: 8px;
    }
    
    .mobile-scrollable .mega-item:last-child {
        margin-bottom: 4px;
    }
    
    /* Touch-friendly scroll indicators */
    .mobile-scrollable .mega-item:first-child {
        margin-top: 4px;
    }

/* Mega Menu Items */
.mega-item {
    padding: 15px;
    background: #E0D6CF; /* Light Beige */
    border-radius: 8px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    font-family: "Poppins", sans-serif;
}

/* Keep Dropdown Open While Hovering */
.dropdown:hover .mega-dropdown,
.mega-dropdown:hover {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover Effects */
.mega-item:hover {
    background: #C2A477; /* Muted Gold */
    color: #4A4E4D;
    transform: scale(1.05);
}

/* GIVE BUTTON */
.btnLogin-popup {
  width: 130px;
  height: 50px;
  background: transparent;
  border: 2px solid #C2A477; /* Muted Gold */
  outline: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 1.1em;
  color: #C2A477;
  font-weight: 500;
  margin-left: 40px;
  transition: 0.5s;
}

.btnLogin-popup:hover {
  background: #C2A477;
  color: #F4ECE1;
}

/* LOGIN BUTTON */
.btn-login {
  width: 130px;
  height: 50px;
  background: #2d3e50; /* Primary navy color */
  border: none;
  outline: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 1.1em;
  color: #ffffff;
  font-weight: 500;
  margin-left: 15px;
  transition: 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-login i {
  margin-right: 8px;
  font-size: 0.9em;
}

.btn-login:hover {
  background: var(--secondary-dark); /* e.g., a soft green or light navy */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ===============================================
   FOOTER STYLES
   =============================================== */

/* Main Footer Container */
.footer {
    background: #F4ECE1;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    color: #4A4E4D;
    margin-top: 0;
}

/* Footer Content Layout */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 40px;
    align-items: start;
}

/* Individual Footer Sections */
.footer-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-section h2 {
    font-size: 1.3em;
    font-weight: 700;
    color: #C2A477;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    flex-shrink: 0;
}

.footer-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #C2A477;
    border-radius: 1px;
}

/* Mission Statement */
.mission-text {
    font-style: italic;
    font-size: 0.95em;
    line-height: 1.6;
    color: #4A4E4D;
    background: linear-gradient(135deg, rgba(194, 164, 119, 0.08), rgba(194, 164, 119, 0.12));
    padding: 16px 18px;
    border-radius: 6px;
    border-left: 3px solid #C2A477;
    margin-bottom: 20px;
    position: relative;
    flex-grow: 1;
}

.mission-text::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 2em;
    color: #C2A477;
    opacity: 0.3;
    font-family: "Poppins", sans-serif;
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 8px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6D6F6E;
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.quick-links a i {
    width: 12px;
    color: #C2A477;
    font-size: 0.8em;
}

.quick-links a:hover {
    color: #C2A477;
    transform: translateX(8px);
}

/* Service Times */
.service-time-item {
    background: linear-gradient(135deg, rgba(194, 164, 119, 0.08), rgba(194, 164, 119, 0.12));
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #C2A477;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-time-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 164, 119, 0.1));
    transition: width 0.3s ease;
}

.service-time-item:hover {
    background: linear-gradient(135deg, rgba(194, 164, 119, 0.12), rgba(194, 164, 119, 0.16));
    transform: translateX(3px);
}

.service-time-item:hover::before {
    width: 100%;
}

.service-day {
    font-weight: 700;
    color: #C2A477;
    font-size: 1.1em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-day::before {
    content: '📅';
    font-size: 0.9em;
}

.service-details {
    font-size: 0.9em;
    color: #6D6F6E;
    line-height: 1.4;
    margin-left: 24px;
}

/* Contact Information */
.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #6D6F6E;
    font-size: 0.95em;
}

.contact-info i {
    color: #C2A477;
    width: 16px;
    margin-top: 2px;
    font-size: 1em;
}

.contact-info a {
    color: #6D6F6E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #C2A477;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6D6F6E;
    text-decoration: none;
    padding: 8px 0;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.social-links a i {
    width: 20px;
    font-size: 1.2em;
    color: #C2A477;
}

.social-links a:hover {
    color: #C2A477;
    transform: translateX(5px);
}

/* Footer Buttons */
.footer-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-buttons a {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
}

.footer-buttons .visit {
    background: #6A8D73;
    color: white;
    border-color: #6A8D73;
}

.footer-buttons .visit:hover {
    background: transparent;
    color: #6A8D73;
}

.footer-buttons .contact {
    background: #4A4E4D;
    color: white;
    border-color: #4A4E4D;
}

.footer-buttons .contact:hover {
    background: transparent;
    color: #4A4E4D;
}

/* Footer Map Section */
.footer-map-section {
    grid-column: span 2;
    min-width: 300px;
}

.footer-map {
    margin-top: 15px;
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.footer-map iframe:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-map-section {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-map-section {
        grid-column: span 1;
    }
}

/* Copyright Section */
.footer-copyright {
    background: #4A4E4D;
    color: #F4ECE1;
    text-align: center;
    padding: 25px 0;
    position: relative;
    margin-top: 20px;
}

.footer-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #C2A477;
}

.copyright-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright-main {
    font-size: 1em;
    margin-bottom: 12px;
    font-weight: 500;
}

.copyright-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.copyright-links a {
    color: #F4ECE1;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.copyright-links a:hover {
    color: #C2A477;
}

.copyright-links span {
    color: #8A8A8A;
    font-size: 0.8em;
}

/* ===============================================
   RESPONSIVE DESIGN STYLES
   =============================================== */
/* all responsive*/
/* Responsive Design for countdown */
@media (max-width: 768px) {
    .countdown-timer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .time-box {
        width: 100%;
        max-width: 150px;
    }
}
/* responsive for 2 side-buttons in home */
@media (max-width: 768px) {
  .side-buttons {
      flex-direction: column;
      align-items: center;
      top: auto;
      bottom: 20px;
      transform: none;
  }

  .side-button {
      margin: 5px 0;
  }
}


/* Responsive Design for hero in visit */
@media (max-width: 768px) {
    .hero-visit {
        height: 50vh;
    }
    .hero-visit-content h1 {
        font-size: 2.8rem;
    }
}


/* Responsive Design for footer */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .footer-section {
        text-align: center;
        padding: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .quick-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-info p {
        justify-content: center;
    }

    .social-links {
        align-items: center;
    }

    .footer-buttons {
        justify-content: center;
    }

    .copyright-links {
        flex-direction: column;
        gap: 10px;
    }

    .copyright-links span {
        display: none;
    }
}



/* Responsive Design for card in location in visit - below "nestle..." */
@media (max-width: 900px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
}


/* Responsive Design in visit-section under 3 cards in visit */
@media (max-width: 900px) {
    .visit-section {
        padding: 50px 5%;
    }

    .visit-container {
        flex-direction: column;
        text-align: center;
    }

    .visit-buttons {
        justify-content: center;
    }

    .visit-icons {
        justify-content: center;
    }

    .visit-image img {
        max-width: 100%;
    }
}

/* Responsive for baptism.html */
@media (max-width: 992px) {
    .baptism-hero h1 {
        font-size: 3rem;
    }
    
    .baptism-hero p {
        font-size: 1.3rem;
    }
    
    .process-step:not(:last-child):after {
        display: none;
    }
}

@media (max-width: 768px) {
    .baptism-hero {
        height: 50vh;
        margin-top: 80px;
    }
    
    .baptism-hero h1 {
        font-size: 2.5rem;
    }
    
    .baptism-hero p {
        font-size: 1.1rem;
    }
    
    .baptism-intro h2,
    .baptism-why h2,
    .baptism-process h2,
    .baptism-stories h2,
    .baptism-registration h2,
    .baptism-faq h2,
    .baptism-contact h2 {
        font-size: 2rem;
    }
    
    .baptism-scripture blockquote {
        font-size: 1.1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .baptism-hero h1 {
        font-size: 2rem;
    }
    
    .baptism-hero p {
        font-size: 1rem;
    }
    
    .baptism-form {
        padding: 20px;
    }
    
    .contact-option {
        min-width: 100%;
    }
}

/* Responsive for ministries.html */
@media (max-width: 992px) {
    .ministries-hero h1 {
        font-size: 3rem;
    }
    
    .ministries-hero p {
        font-size: 1.3rem;
    }
    
    .ministry-nav {
        top: 80px;
    }
}

@media (max-width: 768px) {
    .ministries-hero {
        height: 50vh;
        margin-top: 80px;
    }
    
    .ministries-hero h1 {
        font-size: 2.5rem;
    }
    
    .ministries-hero p {
        font-size: 1.1rem;
    }
    
    .ministry-nav {
        position: relative;
        top: 0;
    }
    
    .ministry-nav-item {
        padding: 10px 15px;
    }
    
    .ministry-intro h2,
    .ministry-header h2,
    .get-involved h2 {
        font-size: 2rem;
    }
    
    .ministry-scripture blockquote {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .ministries-hero h1 {
        font-size: 2rem;
    }
    
    .ministries-hero p {
        font-size: 1rem;
    }
    
    .ministry-card {
        min-width: 100%;
    }
    
    .get-involved-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Responsive for stories.html */
@media (max-width: 992px) {
    .stories-hero h1 {
        font-size: 3rem;
    }
    
    .stories-hero p {
        font-size: 1.3rem;
    }
}




  /* Responsive for vol */
  @media (max-width: 1200px) {
    .testimonial-content {
      flex-direction: column;
      text-align: center;
    }
  
    .testimonial-image {
      margin: 0 auto 20px;
    }
  }
  
  @media (max-width: 992px) {
    .volunteer-hero h1 {
      font-size: 3rem;
    }
  
    .volunteer-hero p {
      font-size: 1.3rem;
    }
  
    .form-row {
      grid-template-columns: 1fr;
    }
  
    .opportunities-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .volunteer-hero {
      height: 50vh;
      margin-top: 90px;
    }
  
    .volunteer-hero h1 {
      font-size: 2.5rem;
    }
  
    .volunteer-hero p {
      font-size: 1.1rem;
    }
  
    .tabs-navigation {
      flex-direction: column;
      gap: 10px;
    }
  
    .tab-btn {
      width: 100%;
    }
  
    .volunteer-form {
      padding: 30px;
    }
  
    .step {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  }
  
  @media (max-width: 576px) {
    .volunteer-hero h1 {
      font-size: 2rem;
    }
  
    .volunteer-hero p {
      font-size: 1rem;
    }
  
    .intro-section h2,
    .why-volunteer h2,
    .volunteer-opportunities h2,
    .volunteer-testimonials h2,
    .volunteer-form-section h2,
    .next-steps h2 {
      font-size: 2rem;
    }
  
    .scripture-box blockquote {
      font-size: 1.2rem;
    }
  
    .checkbox-grid {
      grid-template-columns: 1fr;
    }
  }

/* ===============================================
   MOBILE MENU
   =============================================== */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 14px;
    border: 2px solid #C2A477;
    background: linear-gradient(135deg, #F4ECE1 0%, #E0D6CF 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 52px;
    min-height: 52px;
    justify-content: center;
    align-items: center;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    box-shadow: 0 6px 20px rgba(194, 164, 119, 0.25), 
                0 2px 8px rgba(194, 164, 119, 0.15);
    overflow: hidden;
}

/* Elegant shimmer effect on hover */
.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.6s ease;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #C2A477 0%, #A58C65 100%);
    border-color: #A58C65;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(194, 164, 119, 0.4),
                0 4px 16px rgba(194, 164, 119, 0.25);
}

.mobile-menu-toggle:hover::before {
    left: 100%;
}

.mobile-menu-toggle:active {
    transform: translateY(-1px) scale(0.96);
    box-shadow: 0 4px 16px rgba(194, 164, 119, 0.3),
                0 2px 8px rgba(194, 164, 119, 0.2);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #4A4E4D 0%, #2D3E50 100%);
    margin: 3.5px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    transform-origin: center;
    display: block;
    position: relative;
    box-shadow: 0 1px 2px rgba(74, 78, 77, 0.2);
}

.mobile-menu-toggle:hover span {
    background: linear-gradient(90deg, #F4ECE1 0%, #FFFFFF 100%);
    box-shadow: 0 2px 4px rgba(244, 236, 225, 0.3);
}

/* Smooth and elegant hamburger to X transformation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: linear-gradient(90deg, #F4ECE1 0%, #FFFFFF 100%);
    box-shadow: 0 2px 6px rgba(244, 236, 225, 0.4);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: linear-gradient(90deg, #F4ECE1 0%, #FFFFFF 100%);
    box-shadow: 0 2px 6px rgba(244, 236, 225, 0.4);
}

/* Enhanced active state for toggle */
.mobile-menu-toggle.active {
    background: linear-gradient(135deg, #4A4E4D 0%, #2D3E50 100%);
    border-color: #2D3E50;
    box-shadow: 0 8px 25px rgba(74, 78, 77, 0.4),
                0 3px 12px rgba(74, 78, 77, 0.3);
    transform: translateY(-2px);
}

.mobile-menu-toggle.active::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(244, 236, 225, 0.3), 
        transparent);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Override desktop mega-dropdown styles for mobile */
    .mega-dropdown {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        min-width: auto !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Show mobile toggle on mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide mobile navigation by default */
    .navigation {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: #F4ECE1;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Show mobile navigation when active */
    .navigation.active {
        transform: translateX(0);
    }
    
    /* Mobile navigation links */
    .navigation a {
        font-size: 1.2em;
        margin: 8px 0;
        padding: 15px 20px;
        width: 90%;
        text-align: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.5);
        color: #4A4E4D;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        font-weight: 500;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .navigation a:hover,
    .navigation a:focus,
    .navigation a:active {
        background: #C2A477;
        color: #F4ECE1;
        border-color: #A58C65;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(194, 164, 119, 0.3);
    }
    
    /* Mobile dropdown */
    .dropdown {
        width: 90%;
        margin-bottom: 12px;
        border-radius: 12px;
        overflow: hidden;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.9) 0%, 
            rgba(244, 236, 225, 0.8) 100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 16px rgba(194, 164, 119, 0.15),
                    0 2px 8px rgba(194, 164, 119, 0.1);
        border: 1px solid rgba(194, 164, 119, 0.3);
    }
    
    .dropdown > a {
        background: linear-gradient(135deg, #4A4E4D 0%, #2D3E50 100%);
        color: #F4ECE1;
        font-weight: 600;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 48px;
        padding: 0 16px;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        transition: all 0.3s ease;
        border-radius: 12px 12px 0 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .dropdown > a:hover {
        background: linear-gradient(135deg, #C2A477 0%, #A58C65 100%);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(194, 164, 119, 0.3);
    }
    
    .dropdown > a::after {
        content: "▼";
        font-size: 0.9em;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .dropdown.active > a {
        background: linear-gradient(135deg, #C2A477 0%, #A58C65 100%);
        border-radius: 12px 12px 0 0;
    }
    
    .dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .mega-dropdown {
        position: static !important;
        display: none !important;
        background: linear-gradient(135deg, 
            #F4ECE1 0%, 
            #E0D6CF 100%);
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 12px;
        min-width: auto;
        width: 100%;
        border-radius: 0 0 12px 12px;
        margin-top: 0;
        box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.08),
                    0 2px 8px rgba(194, 164, 119, 0.15);
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        z-index: 1001;
        border: none;
        border-top: 2px solid rgba(194, 164, 119, 0.3);
    }
    
    .dropdown.active .mega-dropdown {
        display: grid !important;
        animation: slideDownElegant 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(135deg, 
            #F4ECE1 0%, 
            #E0D6CF 100%) !important;
        border: none !important;
        border-top: 2px solid #C2A477 !important;
        z-index: 1002 !important;
        box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.08),
                    0 4px 16px rgba(194, 164, 119, 0.2) !important;
    }

    /* Enhanced slide-down animation */
    @keyframes slideDownElegant {
        0% {
            opacity: 0;
            transform: translateY(-10px) scale(0.98);
            max-height: 0;
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
            max-height: 500px;
        }
    }
    
    .mega-item {
        padding: 16px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.9) 0%, 
            rgba(244, 236, 225, 0.8) 100%);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(194, 164, 119, 0.3);
        min-height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        box-shadow: 0 2px 8px rgba(194, 164, 119, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    .mega-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(194, 164, 119, 0.2), 
            transparent);
        transition: left 0.5s ease;
    }
    
    .mega-item:hover::before {
        left: 100%;
    }
    
    .mega-item:hover,
    .mega-item:focus,
    .mega-item:active {
        background: linear-gradient(135deg, #C2A477 0%, #A58C65 100%);
        color: #F4ECE1;
        transform: translateY(-2px) translateX(3px);
        border-color: #A58C65;
        box-shadow: 0 6px 20px rgba(194, 164, 119, 0.3),
                    0 2px 10px rgba(194, 164, 119, 0.2);
    }
    
    .mega-item:hover i,
    .mega-item:focus i,
    .mega-item:active i {
        color: #F4ECE1;
        transform: scale(1.1);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .mega-item:hover h3,
    .mega-item:focus h3,
    .mega-item:active h3 {
        color: #F4ECE1;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .mega-item:hover p,
    .mega-item:focus p,
    .mega-item:active p {
        color: rgba(244, 236, 225, 0.9);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .mega-item i {
        color: #C2A477;
        margin-bottom: 6px;
        font-size: 1.3em;
        transition: all 0.3s ease;
        text-shadow: 0 1px 2px rgba(194, 164, 119, 0.2);
    }
    
    .mega-item h3 {
        color: #4A4E4D;
        font-size: 1.05em;
        margin-bottom: 4px;
        font-weight: 600;
        transition: all 0.3s ease;
        text-shadow: 0 1px 1px rgba(74, 78, 77, 0.1);
    }
    
    .mega-item p {
        color: #6A6E6D;
        font-size: 0.85em;
        line-height: 1.4;
        margin: 0;
        transition: all 0.3s ease;
    }
    
    /* Mobile buttons */
    .btnLogin-popup,
    .btn-login {
        width: 90%;
        margin: 10px auto;
        font-size: 1em;
        font-weight: 600;
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        cursor: pointer;
    }
    
    .btnLogin-popup:hover,
    .btnLogin-popup:active,
    .btn-login:hover,
    .btn-login:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(45, 62, 80, 0.3);
    }
}

/* Tablet and smaller mobile styles */
@media (max-width: 1024px) {
    header {
        padding: 20px 40px;
        height: 100px;
    }
    
    .logo img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    header {
        height: 70px;
        padding: 10px 15px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navigation {
        top: 70px;
        height: calc(100vh - 70px);
        padding: 15px;
    }
}

/* Visual feedback while scrolling */
    .mobile-scrollable.scrolling {
        box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.12),
                    0 4px 16px rgba(194, 164, 119, 0.25),
                    inset 0 0 0 1px rgba(194, 164, 119, 0.4) !important;
    }
    
    .mobile-scrollable.scrolling .mega-item {
        transition: transform 0.1s ease;
    }