/* User-provided CSS pasted */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Updated to Greyish White Theme */
    --primary-grey: #f1f5f9;
    --dark-grey: #64748b;
    --dark-blue: #1a365d;
    --bright-yellow: #fbbf24;
    --peach: #fed7aa;
    --golden-yellow: #f59e0b;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #94a3b8;
    --text-dark: #000000;
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Prevent any element from causing horizontal overflow */
* {
    max-width: 100%;
}

/* Offset the fixed header so content doesn't sit underneath it */
main { margin-top: 70px; }

/* Global heading styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-blue) !important;
}

/* Global text color */
p, span, div, li, a {
    color: var(--text-dark) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Header and Navigation */
.header {
    background: var(--primary-grey) !important;
    color: var(--text-dark) !important;
    box-shadow: 0 4px 20px rgba(148, 163, 184, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 0.4rem 0;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-link { display: inline-flex; align-items: center; }
.logo-img { height: 60px; width: 60px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)); transform: scale(1.25); transform-origin: center center; }
.logo-img.small { height: 45px; width: 45px; }
.nav-logo { display: flex; flex-direction: column; align-items: center; }
.logo-tagline { padding-top: 10px; font-size: 12px; color: var(--dark-grey) !important; font-weight: 700; line-height: 1.1; text-align: center; }

@media (max-width: 768px) {
  .logo-img {
    transform: scale(1.12);
  }
  .logo-tagline { font-size: 11px; margin-top: 8px; }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Dropdown */
.nav-item.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1001;
}
.dropdown-menu.show { display: block !important; }
/* Force-disable hover-open globally */
.nav-item.dropdown:hover .dropdown-menu:not(.show) { display: none !important; }
.dropdown-menu li { list-style: none; }
.dropdown-link { display: block; padding: 0.6rem 1rem; color: var(--text-dark); text-decoration: none; white-space: nowrap; }
.dropdown-link:hover { background: var(--bright-yellow); color: var(--text-dark) !important; }

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--bright-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero { 
    background: url('../images/Hero-Section-5.jpg') center/cover no-repeat;
    padding: 24px 0 40px; 
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Disable legacy ::before overlay for Home hero, we use .hero-overlay like Gallery */
.hero::before { content: none; }

/* Remove ::after background layer; using direct background on .hero */
.hero::after { content: none; }

/* Match Gallery/About overlay element style for Home hero */
.hero .hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.hero .hero-container { position: relative; z-index: 2; }

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content { color: var(--white); position: relative; }
.hero-content h1, .hero-content h2, .hero-content p { color: var(--white) !important; }

/* Home page hero: set text to white */
#home.hero .hero-content,
#home.hero .hero-content h1,
#home.hero .hero-content h2,
#home.hero .hero-content p { color: #ffffff !important; }

/* Decorative watermark behind hero text */
.hero-content::before {
  content: '';
  position: absolute;
  left: -40px;
  top: -30px;
  width: 520px;
  height: 520px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'><defs><radialGradient id='g' cx='50%' cy='50%' r='50%'><stop offset='0%' stop-color='%232563eb' stop-opacity='0.18'/><stop offset='100%' stop-color='%232563eb' stop-opacity='0'/></radialGradient></defs><circle cx='300' cy='300' r='280' fill='url(%23g)'/></svg>") center/contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

/* Right-side hero image (inline) */
.hero-image { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-img { width: 100%; height: auto; max-width: 520px; max-height: 80vh; object-fit: contain; object-position: center; display: block; }

/* Soft glow behind the hero image */
.hero-image::before {
  content: '';
  position: absolute;
  inset: -30px -40px -30px -40px;
  background:
    radial-gradient(420px 280px at 60% 40%, rgba(185, 28, 28, 0.32), transparent 60%),
    radial-gradient(360px 220px at 40% 70%, rgba(245, 158, 11, 0.20), transparent 62%);
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-img { 
    max-width: 320px; 
    max-height: 55vh; 
    width: 100%;
    height: auto;
  }
  .hero-content::before { left: -20px; top: -20px; width: 360px; height: 360px; }
  .hero-image {
    padding: 0 20px;
  }
}

/* Page Hero (shared) */
.page-hero { background: url('../images/Hero-Section-1.jpg') center/cover no-repeat; padding: 24px 0 40px; min-height: 68vh; display: flex; align-items: center; position: relative; color: var(--white); }
/* About hero (standalone to avoid double background) */
.about-hero { background: url('../images/Hero-Section-1.jpg') center/cover no-repeat; padding: 24px 0 40px; min-height: 68vh; display: flex; align-items: center; position: relative; color: var(--white); }

/* Reduce the gap between hero and the next section on all pages */
.hero, .page-hero, .about-hero { margin-bottom: 0; }
.hero + .section, .page-hero + .section, .about-hero + .section { padding-top: 24px; }
/* Ensure specific page hero images */
.page-hero.membership-hero { background-image: url('../images/Hero-Section-3.jpg'); }
.page-hero.events-hero { background-image: url('../images/Hero-Section-4.jpg'); }
.page-hero.gallery-hero { background-image: url('../images/Hero-Section-5.jpg'); }
.page-hero.contact-hero { background-image: url('../images/Hero-Section-2.jpg'); }

.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; white-space: nowrap; }
.hero-subtitle { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; opacity: 0.9; }
.hero-description { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; line-height: 1.7; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn { 
    padding: 12px 30px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: var(--transition); 
    display: inline-block; 
    border: 2px solid transparent; 
    position: relative; 
}
.btn-primary { 
    background-color: var(--bright-yellow); 
    color: var(--text-dark); 
}
/* Hover effects only on devices that support hover & fine pointer (desktop/laptop) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { 
    background-color: var(--golden-yellow); 
    border-color: var(--bright-yellow); 
    color: var(--text-dark); 
    transform: translateY(-2px); 
  }
  .btn-secondary:hover { 
    background-color: var(--white); 
    color: var(--text-dark); 
    transform: translateY(-2px); 
  }
}
/* Touch devices: keep stable, provide tap feedback via active state */
@media (hover: none), (pointer: coarse) {
  .btn, .btn-primary, .btn-secondary { 
    transform: none; 
  }
}
/* Active/pressed visual feedback */
.btn:active { 
    transform: translateY(0); 
    filter: brightness(0.98); 
}
/* Focus visibility for keyboard users */
.btn:focus-visible { 
    outline: 3px solid rgba(37, 99, 235, 0.45); 
    outline-offset: 2px; 
}

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

/* Blue button for 'Already a Member' */
.btn-blue { 
    background-color: #2563eb; 
    color: #fff !important; 
    border: 2px solid #2563eb; 
    transition: var(--transition); 
}
@media (hover: hover) and (pointer: fine) {
  .btn-blue:hover { 
    filter: brightness(1.05); 
    transform: translateY(-2px); 
  }
}

.temple-silhouette { font-size: 8rem; opacity: 0.3; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

/* Section Styles */
.section { padding: var(--section-padding); }
.bg-light { background-color: var(--light-gray); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.2rem; color: var(--dark-gray); max-width: 600px; margin: 0 auto; }

/* About Section */
.about-content { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: center; }
.about-text h3 { font-size: 1.5rem; color: var(--dark-blue); margin-bottom: 1rem; margin-top: 2rem; }
.about-text h3:first-child { margin-top: 0; }
.about-text p { margin-bottom: 1.5rem; color: var(--dark-gray); line-height: 1.7; }
.values-list { list-style: none; margin-top: 1rem; }
.values-list li { display: flex; align-items: center; margin-bottom: 0.8rem; color: var(--dark-gray); }
.values-list i { color: var(--bright-yellow); margin-right: 1rem; font-size: 1.2rem; }
.about-image { display: flex; justify-content: center; }
.image-placeholder { width: 200px; height: 200px; background: linear-gradient(135deg, var(--peach) 0%, var(--bright-yellow) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--dark-blue); box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3); }

/* About OM image styling */
.about-image { display: flex; justify-content: center; align-items: center; }
.about-om-img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
@media (max-width: 768px) {
  .about-om-img { width: 180px; height: 180px; }
}
@media (max-width: 480px) {
  .about-om-img { width: 150px; height: 150px; }
}

/* Activities Section */
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.activity-card { background: var(--white); padding: 2rem; border-radius: 15px; text-align: center; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); transition: var(--transition); border-top: 4px solid var(--bright-yellow); }
.activity-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); }
.card-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--bright-yellow) 0%, var(--golden-yellow) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: var(--dark-blue); }

/* Events Grid & Cards */
.events-grid.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.event-card { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.08); cursor: pointer; transition: var(--transition); display:flex; flex-direction:column; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.12); }
.event-card-image { width: 100%; height: 220px; background: var(--light-gray); display:flex; align-items:center; justify-content:center; }
.event-card-image img { width: 100%; height: 100%; object-fit: cover; display:block; }
.event-card-body { padding: 1rem 1.1rem 1.25rem; }
.event-title { color: var(--dark-blue); margin: 0 0 0.35rem 0; font-size: 1.1rem; font-weight: 700; }
.event-caption { color: var(--dark-gray); margin: 0 0 0.5rem 0; }
.event-meta { color: var(--dark-gray); margin: 0 0 0.25rem 0; font-size: 0.95rem; }

/* Pagination */
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.page-btn { padding: 0.6rem 1rem; border-radius: 30px; background: var(--white); border: 2px solid #e2e8f0; text-decoration: none; color: var(--dark-blue); font-weight: 600; display:inline-block; }
.page-btn.disabled { opacity: 0.5; pointer-events: none; }
.page-btn.prev { justify-self: start; }
.page-btn.next { justify-self: end; }
.page-info { color: var(--dark-gray); font-weight:600; }

/* Event Modal */
.event-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 99999; }
.event-modal.open { display: flex; }
.event-modal-content { background: var(--white); border-radius: 14px; width: min(1000px, 95vw); max-height: 90vh; overflow-y: auto; padding: 1rem 1.25rem 1.25rem; box-shadow: 0 20px 60px rgba(0,0,0,0.2); position: relative; }
.event-modal-content h3 { color: var(--dark-blue); margin-top: 0.25rem; }
.modal-image { max-width: 100%; height: auto; object-fit: contain; object-position: center; border-radius: 10px; display: block; margin: 0.5rem auto 0.75rem; }
.modal-close { position: absolute; top: 8px; right: 12px; background: transparent; border: none; font-size: 2rem; line-height: 1; color: #111827; cursor: pointer; }

/* Redesigned modal content */
.event-modal-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.event-modal-main { min-width: 0; }
.event-modal-aside { min-width: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0.75rem; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.6rem; border-radius: 8px; background: #e5e7eb; color: #111827; font-weight: 600; font-size: 0.9rem; }
.chip.info { background: #06b6d4; color: white; }
.info-box { display: flex; align-items: center; gap: 0.5rem; background: #dbeafe; color: #0f172a; padding: 0.6rem 0.8rem; border-radius: 8px; border: 1px solid #bfdbfe; }
.info-box i { color: #0ea5e9; }
.subhead { margin: 1rem 0 0.35rem; color: #0f172a; }
.aside-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0.75rem 0.9rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); overflow: hidden; }
.aside-card h4 { margin: 0 0 0.75rem; color: #0f172a; }
.details-list { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 0.5rem; }
.details-list li { display: grid; grid-template-columns: 22px 90px 1fr; align-items: flex-start; gap: 0.5rem; }
.details-list i { color: #2563eb; }
.details-list strong { color: #111827; }
.details-list span { color: #374151; word-break: break-word; overflow-wrap: anywhere; }
.meta-muted { font-size: 0.9rem; color: #6b7280; display: grid; gap: 0.25rem; }
.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 8px; font-weight: 700; font-size: 0.8rem; }
.badge.success { background: #10b981; color: white; }
.badge.secondary { background: #e5e7eb; color: #111827; }

/* single-column layout keeps details below */

@media (max-width: 992px) {
  .events-grid.cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .events-grid.cards-3 { grid-template-columns: 1fr; }
  .event-card-image { height: 200px; }
}

/* Prevent background scroll when modal is open */
body.modal-open { overflow: hidden; }

/* Membership Section */
.membership-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.membership-content.single { grid-template-columns: 1fr; }
.membership-intro-box {
  background: var(--primary-grey);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(0,0,0,0.06);
}
.benefits-list { list-style: none; margin-top: 1rem; }
.benefits-list li { display: flex; align-items: center; margin-bottom: 1rem; color: var(--dark-gray); }
.benefits-list i { color: var(--bright-yellow); margin-right: 1rem; font-size: 1.1rem; }
.membership-form { background: var(--white); padding: 2rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); }
.membership-form h3 { color: var(--dark-blue); margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-family: var(--font-family); transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--bright-yellow); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1); }

/* Contact Section */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-item { display: flex; align-items: flex-start; margin-bottom: 2rem; }
.contact-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--bright-yellow) 0%, var(--golden-yellow) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 1rem; color: var(--dark-blue); font-size: 1.2rem; }
.contact-details h4 { color: var(--dark-blue); margin-bottom: 0.5rem; }
.contact-details p { color: var(--dark-gray); line-height: 1.6; }
.map-placeholder { background: linear-gradient(135deg, var(--peach) 0%, var(--bright-yellow) 100%); height: 300px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--dark-blue); font-size: 1.2rem; }
.map-placeholder i { font-size: 3rem; margin-bottom: 1rem; }

/* Contact responsive grids */
.contact-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .contact-content { grid-template-columns: 1fr; gap: 2rem; }
  .contact-address-grid { grid-template-columns: 1fr; }
  .contact-cards-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 576px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
}

/* Contact page cards */
.contact-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.contact-card:hover {
  background: #f3f4f6; /* slightly greyish */
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.contact-subcard {
  background: var(--light-gray);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.contact-subcard:hover {
  background: #eef2f7; /* slightly darker grey */
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Fix long email text wrapping and button styling */
.contact-card a[href^="mailto:"],
.contact-card a[href^="tel:"] {
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.3;
  max-width: 100%;
  display: inline-block;
}

/* Mobile improvements for contact cards */
@media (max-width: 768px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-card {
    padding: 1.25rem !important;
  }
  
  .contact-card a[href^="mailto:"] {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    word-break: break-all;
    line-height: 1.2;
  }
  
  .contact-card a[href^="tel:"] {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  
  .contact-address-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-card {
    padding: 1rem !important;
  }
  
  .contact-card a[href^="mailto:"] {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
  }
  
  .contact-card h3 {
    font-size: 1rem;
  }
  
  .card-icon {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Footer */
.footer { background: var(--primary-grey); color: var(--text-dark); padding: 3rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h4 { color: var(--bright-yellow); margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: var(--text-dark); text-decoration: none; transition: var(--transition); }
.footer-section a:hover { color: var(--bright-yellow) !important; }
.footer-logo { margin-bottom: 0.5rem; }
.footer-tagline { font-style: italic; font-weight: 700; color: var(--dark-grey) !important; margin: 0.25rem 0 0.75rem; }
.contact-inline { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.contact-inline a { white-space: nowrap; }
/* Extra-specific selector to guarantee hover color on footer quick links */
.footer .footer-content .footer-section ul li a:hover { color: var(--bright-yellow) !important; }
.footer-logo .logo-circle.small { width: 50px; height: 50px; margin-bottom: 1rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 40px; height: 40px; background: var(--bright-yellow); color: var(--text-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-links a:hover { background: var(--dark-grey); color: var(--white); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(100, 116, 139, 0.2); padding-top: 1rem; text-align: center; color: var(--medium-gray); }
/* Smaller footer note text and consistent muted link color */
.footer-bottom p { font-size: 0.85rem; margin: 0.25rem 0 0; }
.footer-bottom a { color: var(--medium-gray) !important; text-decoration: none; }
.footer-bottom a:hover { color: var(--dark-grey) !important; text-decoration: underline; }
@media (max-width: 576px) { .footer-bottom p { font-size: 0.8rem; } }

/* FusiontecSoftware link color (match logo blue) */
.footer-bottom .fusiontec-link { color: #2563eb !important; font-weight: 700; }
.footer-bottom .fusiontec-link:hover { color: #1e40af !important; }

/* Responsive */
@media (max-width: 992px) {
}
@media (max-width: 768px) {
  /* Reduce offset on smaller screens */
  main { margin-top: 88px; }
  .hero, .page-hero, .about-hero { padding-top: 20px; padding-bottom: 36px; }
  .hero + .section, .page-hero + .section, .about-hero + .section { padding-top: 18px; }
  .hamburger { display: flex; }
  .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background-color: var(--primary-grey); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); padding: 2rem 0; }
  .nav-menu.active { left: 0; }
  .nav-menu li { margin: 1rem 0; }
  .nav-item.dropdown { width: 100%; }
  .nav-item.dropdown .dropdown-menu { position: static; display: none; box-shadow: none; background: transparent; padding: 0; min-width: auto; }
  .nav-item.dropdown .dropdown-menu.show { display: block; }
  .nav-item.dropdown:hover .dropdown-menu:not(.show) { display: none !important; }
  .dropdown-link { padding: 0.5rem 1.25rem; border-radius: 8px; }
  
  /* Hero section mobile improvements */
  .hero-container { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 2rem; 
    padding: 0 15px;
  }
  .hero-content {
    order: 2;
    padding: 0 10px;
  }
  .hero-image {
    order: 1;
    margin-bottom: 1rem;
  }
  .hero-title { 
    font-size: 2.2rem; 
    line-height: 1.1;
    margin-bottom: 1rem;
    white-space: normal;
  }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 0 10px;
  }
  .hero-buttons { 
    justify-content: center;
    gap: 0.8rem;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 200px;
    text-align: center;
    padding: 12px 20px;
  }
  
  /* Other responsive adjustments */
  .about-content, .membership-content, .contact-content { grid-template-columns: 1fr; gap: 2rem; }
  .activities-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
  .nav-logo { align-items: center; }
  .logo-tagline { text-align: center; font-size: 0.9rem; margin-top: 0.5rem; }
  
  /* About Us page mobile improvements */
  .about-hero .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  .about-hero .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }
  .about-hero .hero-quote {
    max-width: 100%;
    padding: 0.8rem 1rem;
    margin: 1rem 10px 0;
  }
  .about-hero .hero-quote p {
    font-size: 0.95rem;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .stat-item {
    padding: 1rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .about-logo {
    height: 180px;
    width: 180px;
  }
  .image-decoration {
    width: 220px;
    height: 220px;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-logo {
    height: 180px;
    width: 180px;
  }
  .image-decoration {
    width: 220px;
    height: 220px;
  }
}
@media (max-width: 480px) {
  /* Further reduce offset for very small screens */
  main { margin-top: 80px; }
  .hero, .page-hero, .about-hero { padding-top: 16px; padding-bottom: 28px; }
  .hero + .section, .page-hero + .section, .about-hero + .section { padding-top: 14px; }
  
  /* Hero improvements for small screens */
  .hero-container {
    padding: 0 10px;
    gap: 1.5rem;
  }
  .hero-title { 
    font-size: 1.8rem; 
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    padding: 0 5px;
  }
  .hero-buttons .btn {
    width: 180px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .hero-img {
    max-width: 280px;
    max-height: 50vh;
  }
  
  /* Other adjustments */
  .section-title { font-size: 1.8rem; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  
  /* About Us page small screen improvements */
  .about-hero .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  .about-hero .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 10px;
  }
  .about-hero .hero-quote {
    padding: 0.6rem 0.8rem;
    margin: 0.8rem 5px 0;
  }
  .about-hero .hero-quote p {
    font-size: 0.85rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
  }
  .stat-item {
    padding: 1rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .about-logo {
    height: 150px;
    width: 150px;
  }
  .image-decoration {
    width: 180px;
    height: 180px;
  }
  .philosophy-card {
    padding: 1.5rem;
  }
  
  /* Phone optimizations */
  .nav-menu { top: 64px; }
}
.about-hero .hero-overlay, .page-hero .hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.about-hero .container, .page-hero .container { position: relative; z-index: 2; }
.about-hero .hero-content, .page-hero .hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.about-hero .hero-title, .page-hero .hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--white) !important; }
.about-hero .hero-subtitle, .page-hero .hero-subtitle { font-size: 1.3rem; margin-bottom: 2rem; opacity: 0.9; color: var(--white) !important; }

/* About Introduction */
.about-intro { padding: 80px 0; background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }

/* Mobile responsive overrides for intro-grid */
@media (max-width: 768px) {
  .intro-grid { 
    grid-template-columns: 1fr !important; 
    gap: 2rem !important; 
    text-align: center !important; 
  }
  .intro-content { order: 1; }
  .intro-image { order: 2; margin-top: 1rem; }
}

@media (max-width: 480px) {
  .intro-grid { gap: 1.5rem !important; }
  .intro-content { padding: 0 10px; }
}
.section-badge { display: inline-block; background: var(--bright-yellow); color: var(--text-dark); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.intro-text { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.5rem; color: var(--text-dark) !important; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.stat-item { text-align: center; padding: 1.5rem; background: var(--light-gray); border-radius: 10px; transition: var(--transition); }
.stat-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--dark-blue) !important; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; color: var(--dark-grey) !important; font-weight: 500; }
.intro-image { display: flex; justify-content: center; align-items: center; }
.image-container { position: relative; display: flex; justify-content: center; align-items: center; }
.about-logo { height: 250px; width: 250px; object-fit: contain; z-index: 2; position: relative; }
.image-decoration { position: absolute; width: 300px; height: 300px; background: linear-gradient(135deg, var(--bright-yellow) 0%, var(--golden-yellow) 100%); border-radius: 50%; opacity: 0.1; z-index: 1; }

/* Philosophy */
.philosophy-section { padding: 80px 0; background: var(--light-gray); }
.text-center { text-align: center; }
.section-description { font-size: 1.1rem; color: var(--dark-grey) !important; max-width: 600px; margin: 0 auto; }
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.philosophy-card { background: var(--white); padding: 2rem; border-radius: 15px; text-align: center; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); transition: var(--transition); border-top: 4px solid var(--bright-yellow); position: relative; overflow: hidden; }
.philosophy-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent); transition: var(--transition); }
.philosophy-card:hover::before { left: 100%; }
.philosophy-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.philosophy-card.featured { border-top-color: var(--bright-yellow); background: var(--white); color: var(--text-dark); }
.philosophy-card.featured .card-icon { background: linear-gradient(135deg, var(--bright-yellow) 0%, var(--golden-yellow) 100%); color: var(--white); }
.philosophy-card .card-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--bright-yellow) 0%, var(--golden-yellow) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: var(--white); transition: var(--transition); }
.philosophy-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--dark-blue) !important; }
.philosophy-card p { line-height: 1.6; color: var(--text-dark) !important; }

/* Events Section */
.events-section { padding: 80px 0; background: var(--white); }
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.event-category { background: var(--light-gray); padding: 2rem; border-radius: 15px; transition: var(--transition); }
.event-category:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.category-title { display: flex; align-items: center; gap: 1rem; font-size: 1.4rem; color: var(--dark-blue) !important; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--bright-yellow); }
.category-title i { color: var(--bright-yellow); font-size: 1.5rem; }
.event-list { display: flex; flex-direction: column; gap: 1rem; }
.event-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--white); border-radius: 10px; transition: var(--transition); }
.event-item:hover { background: var(--bright-yellow); transform: translateX(10px); }
.event-item i { color: var(--dark-blue); font-size: 1.1rem; width: 20px; }
.event-item span { color: var(--text-dark) !important; font-weight: 500; }

.events-cta { text-align: center; margin-top: 3rem; padding: 2rem; background: var(--light-gray); border-radius: 15px; }
.events-cta p { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-dark) !important; }
.cta-button { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--bright-yellow); color: var(--text-dark) !important; padding: 1rem 2rem; border-radius: 30px; text-decoration: none; font-weight: 600; transition: var(--transition); }
.cta-button:hover { background: var(--golden-yellow); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3); }

/* Smooth Scrolling */
html { scroll-behavior: smooth; }

/* Loading Animation */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }
.section { animation: fadeInUp 0.6s ease-out; }

/* Contact page cards */
.contact-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.contact-card:hover {
  background: #f3f4f6; /* slightly greyish */
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.contact-subcard {
  background: var(--light-gray);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.contact-subcard:hover {
  background: #eef2f7; /* slightly darker grey */
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Membership page customizations */
.banner-dark {
  background: var(--dark-blue);
  color: var(--white);
  padding: 2rem 1.25rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
.banner-dark .section-title,
.banner-dark .section-subtitle {
  color: var(--white) !important;
}

/* Reduce gap between hero and content on membership page */
.page-hero.membership-hero + main .section {
  padding-top: 40px;
}

@media (max-width: 768px) {
  .page-hero.membership-hero + main .section {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .page-hero.membership-hero + main .section {
    padding-top: 15px;
  }
}

.benefit-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.benefit-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.benefit-card.grey { background: var(--light-gray); }
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.benefit-card .card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
}
.benefit-card h4 { color: var(--dark-blue) !important; margin-bottom: 0.35rem; }
.benefit-card p { color: var(--dark-grey) !important; margin: 0; }

/* Blue button for 'Already a Member' */
.btn-blue {
  background-color: #2563eb;
  color: #fff !important;
  border: 2px solid #2563eb;
  transition: var(--transition);
}
.btn-blue:hover {
  background-color: #1e40af;
  border-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .benefit-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .benefit-cards { grid-template-columns: 1fr; }
}

/* Layered quote styling for About hero */
.about-hero .hero-quote {
  position: relative;
  display: inline-block;
  max-width: 780px;
  margin: 1rem auto 0;
  padding: 1rem 1.25rem 0.9rem 1.25rem;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* subtle layered cards behind */
.about-hero .hero-quote::before,
.about-hero .hero-quote::after {
  content: "";
  position: absolute;
  inset: -10px -12px -10px -12px;
  border-radius: 16px;
  z-index: -1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.about-hero .hero-quote::before {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(-1.5deg) translateY(6px);
  filter: blur(0.2px);
}
.about-hero .hero-quote::after {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(2deg) translateY(12px);
  filter: blur(0.2px);
}

/* quote content */
.about-hero .hero-quote i {
  color: var(--bright-yellow);
  margin-right: 8px;
}
.about-hero .hero-quote p {
  display: inline;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff !important;
}
.about-hero .hero-quote .quote-author {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #e5e7eb !important;
  opacity: 0.95;
}

/* slight lift on hover (desktop) */
@media (hover:hover) {
  .about-hero .hero-quote:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
}