/* --- ROOT DEFINITIONS & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', 'Times New Roman', Times, serif; 
    scroll-behavior: smooth;
}

:root {
    --brand-navy: #2d2675;
    --brand-gold: #dfc38a;
    --text-deep: #1a1a1a;
    --text-muted: #666666;
    --soft-white: #fcfbfa;
    --clean-border: #e2e0dc;
}

body {
    background-color: #ffffff;
    color: var(--text-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.standard-max-width {
    max-width: 850px;
}

.split-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- UPPER UTILITY CONTROL STRIP --- */
.top-utility-bar {
    background-color: var(--brand-navy);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-links {
    color: var(--brand-gold);
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.meta-links span { margin-right: 20px; }
.meta-links i { margin-right: 6px; color: #ffffff; }

.premium-login-btn {
    background-color: var(--brand-gold);
    color: #0f0b36;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.premium-login-btn:hover { background-color: #ebd3a2; }

/* --- LOGO & HEADER BANNER --- */
.main-site-header {
    background-color: var(--brand-navy);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-block { display: flex; align-items: center; }

.emblem-logo {
    width: 55px; height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, var(--brand-gold));
    border: 2px solid var(--brand-gold);
    display: flex; justify-content: center; align-items: center;
    margin-right: 14px;
}

.emblem-text { font-weight: 900; color: var(--brand-navy); font-size: 18px; }

.title-meta h1 { color: #ffffff; font-size: 20px; letter-spacing: 1px; }
.title-meta h2 {
    color: var(--brand-gold); font-size: 12px; margin-top: 2px;
    display: flex; align-items: center; gap: 8px; font-family: 'Segoe UI', sans-serif;
}

.estd-pill {
    font-size: 9px; background: rgba(255, 255, 255, 0.15);
    padding: 1px 6px; border-radius: 10px; color: #ffffff;
}

.navigation-panel ul { display: flex; list-style: none; }
.navigation-panel ul li { margin-left: 20px; }
.nav-item {
    color: #ffffff; text-decoration: none; font-size: 13px; font-weight: 600;
    font-family: 'Segoe UI', sans-serif; letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.nav-item:hover, .nav-item.active-item { color: var(--brand-gold); }

/* --- HERITAGE HERO SECTION --- */
.heritage-showcase-hero {
    position: relative;
    background-image: url('club.png'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.dark-overlay-filter {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 8, 36, 0.78); 
    z-index: 1;
}

.heritage-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 90%;
}

.heritage-card.transparent-variant {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px 60px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    max-width: 950px;
    text-align: left;
    width: 100%;
}

.gold-text { color: var(--brand-gold) !important; }
.light-heading { color: #ffffff; font-size: 32px; letter-spacing: 1px; }
.gold-accent-line { width: 80px; height: 3px; background: var(--brand-gold); margin: 15px 0 25px 0; }

.main-intro.light-text {
    font-size: 17.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
}

.hub-title.light-sub {
    font-family: 'Segoe UI', sans-serif;
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

.features-bullet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

.transparent-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 6px;
}

.transparent-box h4 {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.light-text-muted {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.gold-border-text {
    font-size: 16.5px;
    font-style: italic;
    font-weight: 500;
    color: var(--brand-gold);
    border-left: 3px solid var(--brand-gold);
    padding-left: 18px;
    margin-top: 30px;
    line-height: 1.7;
}

/* --- LEADERSHIP & MESSAGE SECTION --- */
.leadership-section { padding: 80px 0; background-color: #ffffff; }
.message-card blockquote {
    font-style: italic; font-size: 18px; color: var(--brand-navy);
    line-height: 1.6; border-left: 3px solid var(--brand-gold); padding-left: 15px; margin: 20px 0;
}
.leader-signature { font-family: 'Segoe UI', sans-serif; font-weight: bold; color: var(--text-muted); }
.structure-list { list-style: none; margin-top: 20px; }
.structure-list li {
    padding: 12px 0; border-bottom: 1px solid var(--clean-border);
    font-family: 'Segoe UI', sans-serif; font-size: 14.5px;
}

/* --- BULLETIN: NOTICES & EVENTS --- */
.bulletin-section { padding: 60px 0; background-color: var(--soft-white); border-top: 1px solid var(--clean-border); border-bottom: 1px solid var(--clean-border); }
.block-title { font-size: 20px; color: var(--brand-navy); margin-bottom: 25px; letter-spacing: 0.5px; }
.notice-item { background: #ffffff; padding: 20px; border-radius: 4px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.date-badge {
    display: inline-block; background: var(--brand-navy); color: #ffffff;
    font-family: 'Segoe UI', sans-serif; font-size: 11px; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px;
}
.event-item { display: flex; gap: 15px; background: #ffffff; padding: 15px; border-radius: 4px; margin-bottom: 15px; }
.event-date {
    background: var(--brand-gold); color: #000; width: 50px; height: 50px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 4px; flex-shrink: 0;
}
.event-date strong { font-size: 18px; line-height: 1; }
.event-date span { font-size: 10px; font-family: 'Segoe UI', sans-serif; font-weight: bold; }
.event-details h4 { font-size: 16px; color: var(--text-deep); }
.event-details p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* --- FACILITIES GRID --- */
.premium-carousel-section { background-color: #ffffff; padding: 80px 0; }
.carousel-main-heading { text-align: center; font-size: 32px; color: var(--brand-navy); }
.heading-sub-underline { width: 60px; height: 2px; background-color: var(--brand-gold); margin: 12px auto 40px auto; }
.facilities-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.premium-display-card {
    background-color: #ffffff; border: 1px solid var(--clean-border);
    border-radius: 4px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.card-visual-media { height: 220px; background-size: cover; background-position: center; }

/* Updated from gallery2.jpg to target ground.jpg directly */
.grounds-bg { background-image: url('ground.jpg'); }
.taekwondo-bg { background-image: url('https://images.unsplash.com/photo-1555597673-b21d5c935865?q=80&w=500'); }
.gym-bg { background-image: url('https://images.unsplash.com/photo-1540497077202-7c8a3999166f?q=80&w=500'); }
.lounge-bg { background-image: url('https://images.unsplash.com/photo-1560624052-449f5ddf0c31?q=80&w=500'); }
.library-bg { background-image: url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?q=80&w=500'); }
.indoor-games-bg { background-image: url('https://images.unsplash.com/photo-1611195974226-a6a9be9dd763?q=80&w=500'); }

.card-meta-label { padding: 15px; text-align: center; font-size: 15px; color: var(--brand-navy); font-weight: 600; }

/* --- SLIDESHOW RESPONSIVE GALLERY PLATFORM --- */
.gallery-section { 
    padding: 80px 0; 
    background: var(--soft-white); 
    border-top: 1px solid var(--clean-border);
}

.slideshow-wrapper {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px; 
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--clean-border);
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    background-position: center;
}

/* Control Navigation Handles */
.slide-nav-prev, .slide-nav-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(45, 38, 117, 0.7);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    user-select: none;
    transition: all 0.2s ease;
    z-index: 10;
    text-decoration: none;
}

.slide-nav-prev { left: 15px; }
.slide-nav-next { right: 15px; }

.slide-nav-prev:hover, .slide-nav-next:hover {
    background: var(--brand-gold);
    color: var(--brand-navy);
}

/* Tracking Navigation Node System */
.slide-tracker-dots {
    text-align: center;
    padding: 18px 0 0 0;
}

.dot-indicator {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #cbc8c1;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s;
}

.active-dot, .dot-indicator:hover {
    background-color: var(--brand-navy);
    transform: scale(1.2);
}

/* Animation Modifiers */
.fade {
    animation-name: fadeTransition;
    animation-duration: 0.4s;
}

@keyframes fadeTransition {
    from { opacity: 0.4; } 
    to { opacity: 1; }
}

/* --- CONTACT HUB --- */
.contact-hub-section { padding: 80px 0; background: #ffffff; }
.contact-details-card p { margin-bottom: 15px; font-family: 'Segoe UI', sans-serif; font-size: 15px; }
.contact-details-card i { color: var(--brand-gold); margin-right: 10px; width: 20px; }
.map-placeholder { background: #e5e3df; height: 250px; border-radius: 4px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--clean-border); font-family: 'Segoe UI', sans-serif; color: #888; font-size: 14px; }

/* --- FOOTER REGAL SYSTEM --- */
.premium-site-footer { background-color: var(--brand-navy); color: #ffffff; padding: 60px 0 0 0; }
.footer-grid-system { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 40px; }
.footer-grid-column h3 { font-size: 16px; color: #ffffff; margin-bottom: 12px; font-family: 'Segoe UI', sans-serif; letter-spacing: 0.5px; }
.footer-title-line { width: 30px; height: 2px; background-color: var(--brand-gold); margin-bottom: 20px; }
.footer-grid-column ul { list-style: none; }
.footer-grid-column ul li { margin-bottom: 10px; }
.footer-grid-column ul li a {
    color: rgba(255, 255, 255, 0.7); text-decoration: none;
    font-family: 'Segoe UI', sans-serif; font-size: 13.5px; transition: color 0.2s;
}
.footer-grid-column ul li a:hover { color: var(--brand-gold); }
.social-media-icon-row { display: flex; gap: 10px; }
.social-circle-btn {
    width: 35px; height: 35px; border-radius: 50%; background-color: rgba(255,255,255,0.06);
    display: flex; justify-content: center; align-items: center; color: #ffffff; text-decoration: none; transition: all 0.2s;
}
.social-circle-btn:hover { background-color: var(--brand-gold); color: var(--brand-navy); transform: translateY(-2px); }

.bottom-legal-strip { background-color: var(--brand-gold); color: #0d0a33; padding: 15px 0; font-family: 'Segoe UI', sans-serif; font-size: 12px; }
.legal-flex-container { display: flex; justify-content: space-between; align-items: center; }

/* ==========================================================================
   ⚡ MOBILE RESPONSIVENESS AND ENGINE STABILITY FIX
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-grid-system { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .slideshow-container { height: 420px; }
}

@media (max-width: 768px) {
    .split-grid-two, .header-layout, .utility-flex, .legal-flex-container {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .utility-flex { gap: 12px; }
    .meta-links span { display: block; margin: 6px 0; }
    .brand-block { flex-direction: column; }
    .emblem-logo { margin-right: 0; margin-bottom: 10px; }
    .navigation-panel ul { flex-wrap: wrap; justify-content: center; gap: 14px; }
    .navigation-panel ul li { margin-left: 8px; margin-right: 8px; }
    
    .heritage-showcase-hero { 
        padding: 40px 0; 
        background-attachment: scroll !important; 
        background-position: center center !important; 
        background-size: cover !important;
    }
    
    .heritage-card.transparent-variant { 
        padding: 30px 15px; 
        text-align: center; 
        background: rgba(10, 8, 36, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .slideshow-container { 
        height: 280px; 
    }
    .slide-nav-prev, .slide-nav-next {
        width: 36px;
        height: 36px;
    }
    .slide-nav-prev { left: 8px; }
    .slide-nav-next { right: 8px; }
    
    .features-bullet-grid { grid-template-columns: 1fr; gap: 18px; }
    .transparent-box { text-align: left; }
    .gold-accent-line { margin: 15px auto; }
    .gold-border-text { text-align: left; }
    .event-item, .structure-list li, .contact-details-card { text-align: left; }
}