/* --- Global Styles --- */

/* This removes the default white space around the website */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}


:root {
    --primary: #003366; /* Deep Blue */
    --secondary: #D4AF37; /* Gold */
    --text: #333;
    --light-bg: #f8f9fa;
    --white: #fff;
    --dark: #111;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { color: var(--text); line-height: 1.6; }
a { text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background: var(--light-bg); }
.bg-blue { background: var(--primary); }
.bg-dark { background: var(--dark); }
.text-white { color: var(--white); }
.bg-gold { background-color: var(--secondary) !important; }

/* --- Hero Slideshow Styles --- */
.hero {
    width:100%;
    height:auto;
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.mySlides {
    display: none;
    height: 100%;
}

.mySlides img {
    height: 85vh;
    object-fit: cover; /* Keeps image from stretching */
    filter: brightness(60%); /* Darkens images so text is readable */
}

/* Hero Content Overlay */
.hero-overlay {
    width:100%;
    height:auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Animation: Fade */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Navigation Dots */
.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot {
    background-color: var(--secondary); /* Gold color */
}

/* Responsive Fix */
@media (max-width: 768px) {
    .hero {
        margin-top:2rem;
    }
    .hero, .mySlides img {
        height: 90vh;
    }

    .hero-btns {
        width:100%;
        height:auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 0.5rem;
        margin-bottom:3rem;

    }

    .hero-btns a{
        width:fit-content;
        height:auto;
    }
}


.logo {
    width:fit-content;
    height:auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 0.5rem;
}

.logo img{
    width:50px;
    height:50px;
}

/* --- Typography & Buttons --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); text-transform: uppercase; margin-bottom: 10px; }
.section-header.text-white h2 { color: var(--white); }
.divider { width: 80px; height: 4px; background: var(--secondary); margin: 0 auto; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: 600; transition: 0.3s; }
.btn-primary { background: var(--secondary); color: var(--primary); }
.btn-primary:hover { background: #b3922d; }
.btn-secondary { border: 2px solid var(--white); color: var(--white); margin-left: 10px; }
.btn-secondary:hover { background: var(--white); color: var(--primary); }

/* --- Navigation --- */
header { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo h1 { color: var(--primary); font-size: 2rem; line-height: 1; }
.logo span { font-size: 0.7rem; color: #666; font-weight: 600; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: var(--primary); font-weight: 600; }
.nav-links a:hover { color: var(--secondary); }
.hamburger { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* --- Hero --- */
.hero { background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover; height: 85vh; position: relative; }
.hero-overlay { width: 100%; height: 100%; display: flex; align-items: center; }
.hero-content { color: var(--white); text-align: center; max-width: 800px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }

/* --- About Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.highlight-card { border-left: 5px solid var(--secondary); margin-bottom: 20px; }
.highlight-card h3 i { color: var(--secondary); margin-right: 10px; }
.text-list ul { margin-top: 15px; }
.text-list ul li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.text-list ul li::before { content: "•"; color: var(--secondary); font-size: 1.5rem; position: absolute; left: 0; top: -5px; }
.mt-20 { margin-top: 20px; }

/* --- Values & Benefits --- */
.subsection-title { text-align: center; margin-bottom: 30px; font-size: 1.8rem; color: var(--primary); }
.values-grid {width:100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.value-box { background: var(--white); padding: 25px; border-radius: 8px; width: 500px; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.value-box i { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; }
.mt-40 { margin-top: 60px; }

.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.benefit-card { background: var(--white); padding: 25px; border-top: 3px solid var(--primary); box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.benefit-card h4 { color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; }
.benefit-card h4 i { color: var(--secondary); margin-right: 10px; font-size: 1.2rem; }
.benefit-card ul { padding-left: 20px; list-style-type: disc; }

/* --- History Timeline --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background: var(--secondary); top: 0; bottom: 0; left: 50px; margin-left: -2px; }
.timeline-row { position: relative; margin-bottom: 40px; display: flex; }
.timeline-time { width: 100px; font-weight: bold; color: var(--primary); text-align: right; padding-right: 30px; flex-shrink: 0; }
.timeline-content { background: var(--white); padding: 20px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); flex-grow: 1; border-left: 4px solid var(--primary); z-index: 1; }


/* --- History Timeline Fixed Alignment --- */
.timeline { 
    position: relative; 
    max-width: 900px; 
    margin: 40px auto; 
    padding: 0 20px;
}

/* The vertical yellow line */
.timeline::after { 
    content: ''; 
    position: absolute; 
    width: 4px; 
    background: var(--secondary); /* Your Gold/Yellow color */
    top: 0; 
    bottom: 0; 
    left: 120px; /* Aligns the line exactly between the date and content */
    margin-left: -2px; 
}

.timeline-row { 
    position: relative; 
    margin-bottom: 50px; 
    display: flex; 
    align-items: flex-start;
}

/* Date positioning */
.timeline-time { 
    width: 100px; 
    font-weight: bold; 
    color: var(--primary); 
    text-align: right; 
    padding-right: 40px; /* Space between date and line */
    flex-shrink: 0; 
    padding-top: 15px;
}

/* Content positioning */
.timeline-content { 
    background: var(--white); 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    flex-grow: 1; 
    border-left: 5px solid var(--primary); 
    margin-left: 40px; /* Space between line and card */
    position: relative;
    z-index: 1;
}

/* Decorative dot on the line */
.timeline-row::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    left: 120px;
    margin-left: -10px;
    top: 20px;
    z-index: 2;
}

/* Mobile Fixed Alignment */
@media (max-width: 768px) {
    .timeline::after { 
        left: 20px; /* Move line to the far left on mobile */
    }
    .timeline-row {
        display: block;
    }
    .timeline-time { 
        text-align: left; 
        padding-left: 45px; 
        padding-bottom: 10px;
        width: 100%;
    }
    .timeline-content { 
        margin-left: 45px; 
    }
    .timeline-row::before {
        left: 20px;
    }
}




/* --- Ethics --- */
.ethics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.ethics-col h3 { color: var(--secondary); margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
.ethics-col ul li { margin-bottom: 10px; }
.ethics-col strong { color: var(--secondary); }
.small-text { font-size: 0.85rem; opacity: 0.8; margin-top: 15px; display: block; }

/* --- Membership --- */
.membership-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.mem-tier { background: var(--white); border: 1px solid #ddd; border-radius: 8px; overflow: hidden; width: 300px; transition: transform 0.3s; }
.mem-tier:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.tier-header { background: var(--primary); color: var(--white); padding: 15px; text-align: center; font-weight: bold; font-size: 1.1rem; }
.featured-tier .tier-header { background: var(--secondary); color: var(--primary); }
.tier-body { padding: 20px; }
.tier-body .requirement { font-weight: bold; color: var(--primary); font-size: 0.9rem; margin-bottom: 15px; min-height: 40px; }
.tier-body ul li { font-size: 0.9rem; margin-bottom: 8px; padding-left: 15px; position: relative; }
.tier-body ul li::before { content: "✓"; color: green; position: absolute; left: 0; }
.full-width { width: 100%; max-width: 800px; display: flex; flex-direction: column; align-items: center; border: 2px solid var(--secondary); }
.full-width .tier-header { width: 100%; }
.full-width .tier-body { width: 100%; }
.detailed-req li::before { content: "•"; color: var(--primary); }

/* --- Board Members Section --- */
.board-lead {
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.leader-card {
    display: flex;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    align-items: center;
    border-bottom: 5px solid var(--secondary);
}

.leader-img {
    flex: 1;
    text-align: center;
    background: #eee;
    padding: 40px;
    border-radius: 8px;
    color: var(--primary);
}

.leader-img img {
    width:300px;
    height:auto;
}

.leader-info {
    flex: 2;
    padding-left: 40px;
}

.leader-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.leader-info .title {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.leader-social a {
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
    transition: 0.3s;
}

.leader-social a:hover {
    color: var(--secondary);
}

/* Board Grid */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.board-item {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.board-item:hover {
    transform: translateY(-5px);
}

.member-img {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ccc;
    border: 3px solid var(--secondary);
}

.member-img img{
    width:100px;
    height:100px;
    border-radius:50px;
    border: 3px solid var(--secondary);
}

.board-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.board-item span {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Board Responsive */
@media (max-width: 768px) {
    .leader-card {
        flex-direction: column;
        text-align: center;
    }
    .leader-info {
        padding-left: 0;
        padding-top: 20px;
    }
}


/* --- Contact --- */
.c-item { display: flex; margin-bottom: 25px; }
.c-item i { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; border-radius: 50%; color: var(--secondary); margin-right: 15px; flex-shrink: 0; }
.contact-form-box input, .contact-form-box textarea { width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 4px; border: none; }

/* --- Footer --- */
footer { background: #000; color: #777; padding: 20px 0; text-align: center; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    header {position: fixed; width:100%; height:auto}
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); gap: 15px; }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .grid-2, .timeline-row { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .timeline::after { left: 20px; }
    .timeline-time { text-align: left; padding-left: 35px; padding-bottom: 5px; }
    .timeline-content { margin-left: 35px; }
    .mem-tier { width: 100%; }
    .contact-form-box { margin-top: 40px; }
}


/* --- Animation Styles --- */

/* The initial state: hidden and slightly moved down */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* The active state: visible and in original position */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Animations for Hero Text */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Transitions for Cards */
.card, .mem-tier, .board-item, .benefit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover, .mem-tier:hover, .board-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}



/* --- Gallery Page Styles --- */

.page-header {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px; /* Offset for fixed header */
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    margin: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    border-radius: 30px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 250px; /* Fixed height for uniformity */
    transition: transform 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* Overlay Effect */
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.85); /* Primary color with transparency */
    color: #fff;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Filtering Animation Classes */
.gallery-item.hide {
    display: none;
}
.gallery-item.show {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Lightbox Styles --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    margin-top: 60px;
    border-radius: 5px;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--secondary);
}

/* Responsive Lightbox */
@media (max-width: 700px) {
    .lightbox-content {
        width: 95%;
    }
}



/* --- Member Register Table Styles --- */

.search-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.1);
}

.table-responsive {
    overflow-x: auto; /* Vital for mobile responsiveness */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.member-table thead {
    background-color: var(--primary);
    color: #fff;
}

.member-table th, .member-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.member-table tr:hover {
    background-color: #f9f9f9;
}

/* Status Badge Styles */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-badge.active {
    background-color: #e6ffed;
    color: #28a745;
    border: 1px solid #28a745;
}

.table-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .member-table th, .member-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}



.member-notice a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.member-notice a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.member-notice ul li {
    margin-bottom: 5px;
}



/* --- Membership Fees Grid --- */
.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.fee-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: 0.3s ease;
    position: relative;
}

.fee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.fee-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.fee-item {
    font-size: 1rem;
    margin: 10px 0;
    color: #444;
}

.fee-item strong {
    color: #333;
    font-size: 1.1rem;
}

.apply-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Featured / Corporate Styles */
.fee-card.featured {
    border: 2px solid var(--secondary);
    background: #fffdf5;
}

.fee-card.featured .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.small-text {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* Payment Notice Box */
.payment-notice {
    background: #f4f7f9;
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid var(--primary);
}

.payment-notice h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.payment-notice ol {
    padding-left: 20px;
    line-height: 1.8;
}


/* --- Register Page Styles --- */
.legal-notice-box {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    color: #333 !important; /* Forces visible text */
}

.main-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.warning-zone {
    border-top: 2px solid #b8860b; /* Gold line */
    padding-top: 20px;
}

.warning-zone h3 {
    color: #cc0000; /* Red for alert */
    margin-bottom: 10px;
}

.contact-list {
    list-style: none;
    padding: 15px 0;
}

.contact-list li {
    margin-bottom: 10px;
}

.contact-list a {
    color: #003366;
    text-decoration: underline;
    font-weight: 600;
}

.list-title {
    text-align: center;
    color: #003366;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.status-active {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Table Design */
.table-responsive {
    overflow-x: auto;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    color: #333;
}

.member-table th {
    background: #003366;
    color: white;
    padding: 15px;
    text-align: left;
}

.member-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}