/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

main {
    flex: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #0d1b2a;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #fca311;
    /* accent color */
}

.navbar .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: url('../images/hero.jpg') no-repeat center center/cover;
    height: 100vh;
    top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-attachment: fixed;
    /* Parallax effect */
    overflow: hidden;
}

/* Dark overlay (behind content) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.65);
    /* semi-transparent dark blue */
    z-index: 0;
    /* 👈 behind text */
}

/* Hero content stays above overlay */
.hero-content {
    position: relative;
    z-index: 1;
    /* 👈 above overlay */
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.5rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin: 0.5rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-light {
    background: #48cae4;
    color: #000;
}

.btn-dark {
    background: #0d1b2a;
    color: #fff;
    border: none;
}

/* Section Styles */
section {
    padding: 4rem 10%;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #0096c7;
    margin: 0.5rem auto;
}

/* Events */
.events {
    background: #f1f1f1;
}

.event-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.community_card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Horizontal Scroll Gallery */
.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
}

.gallery-card {
    width: 240px;
    /* fixed width */
    height: 160px;
    /* fixed height */
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keeps aspect ratio, crops if needed */
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-card img:hover {
    transform: scale(1.05);
}

/* Whatsapp */
.whatsapp {
    background: #f1f1f1;
}

.whatsapp-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.whatsapp-qr img {
    /* width: 200px;
    height: 200px; */
    border-radius: 12px;
    border: 4px solid #25D366;
    background: white;
    object-fit: contain;
}

.whatsapp-qr .btn {
    background-color: #25D366;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.whatsapp-qr .btn:hover {
    background-color: #1ebe5d;
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 100%;
    z-index: 10;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

#lightbox-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1002;
}

/* Arrows fixed at edges of screen */
.prev,
.next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 100%;
    transition: background 0.3s ease;
    z-index: 1001;
}

.prev {
    left: 20px;
    /* fixed to left edge */
}

.next {
    right: 20px;
    /* fixed to right edge */
}

.prev:hover,
.next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 4rem 2rem;
}

/* Find Section */
.find {
    align-items: center;
    padding: 4rem 2rem;
}

.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #0d1b2a;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Contact Cards */
.contact-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 2rem;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0d1b2a;
    box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.1);
}

.contact-form textarea {
    resize: none;
    min-height: 120px;
}

/* Button */
.contact-form button {
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background: #0d1b2a;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #1b2d45;
}

/* Info Styles */
.contact-info {
    text-align: left;
    line-height: 1.6;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #0d1b2a;
}

/* General Card Styles */
.card {
    background: white;
    border-radius: 15px;
    margin: 0;
    padding: 0px;
    /* curved edges */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    /* keeps image inside rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* ensures content follows image */
}

.community_card {
    background: white;
    border-radius: 15px;
    margin: 0;
    padding: 0px;
    /* curved edges */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    /* keeps image inside rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: start;
    /* ensures content follows image */
}

/* Expand & shadow on hover */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.society-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    text-align: center;
    padding: 1.2rem;
    overflow-y: auto;
    /* ✅ allows scrolling for long content */
    scrollbar-width: thin;
    /* ✅ slim scrollbar */
    scrollbar-color: #111 #fff;
}

.community_card {
    position: relative;
    overflow: hidden;
}

.community_card.show-overlay .society-overlay {
    opacity: 1;
    pointer-events: all;
}

.society-overlay h4 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 1px solid #fff;
    padding-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.society-overlay p {
    font-size: 0.95rem !important;
}

.close-overlay {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #fca311;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close-overlay:hover {
    color: #ffba43;
    transform: scale(1.2);
}

/* Image inside card */
.event-card {
    display: block;
    /* removes inline spacing */
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
    margin: 0;
    padding: 0;
    line-height: 0;
    /* prevents extra gap */
}

/* Image inside card */
.team-card {
    display: block;
    /* removes inline spacing */
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
    margin: 0;
    padding: 0;
    line-height: 0;
    /* prevents extra gap */
}

/* Card content */
.card-content {
    flex: 1;
    padding: 1rem;
    text-align: center;
}

/* Card content */
.area-card-content {
    flex: 1;
    padding: 1rem;
    text-align: start;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #0d1b2a;
}

.card-content p {
    font-size: 1rem;
    color: #333;
}

/* Footer */
footer {
    background: #0d1b2a;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-bottom: 0;
}


/* Container */
.about-container {
    display: flex;
    /* flex-direction: row; */
    align-items: flex-start;
    justify-content: flex-start;
    margin: 100px 10px 10px 10px;
    /* width: 98vw; */
    /* height: 85vh; */
}

/* Tabs */
.tab-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 30px;
    background: linear-gradient(135deg, #e3f0ff, #b6d0f7);
    border-radius: 12px;
    padding: 10px 40px;
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.1);
}

.tab-menu button {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #0d1b2a;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-menu button.active {
    background: #0d1b2a;
    color: #fff;
}

/* Content */
.tab-content {
    display: none;
    height: auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(13, 27, 42, 0.1);
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* max-width: 1400px; */
    margin: 0 auto;
    width: 80%;
    padding: 40px;
}

.tab-content.active p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #222;
}

/* Articles Feed */
.articles-feed {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.article-description {
    overflow: hidden;
}

.article-description.expanded {
    overflow: visible;
}

/* Article Header */
.article-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #0d1b2a;
}

.article-header .meta {
    font-size: 0.9rem;
    color: #666;
}

/* Gallery with 16:9 aspect ratio */
.article-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.article-gallery img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-gallery img.active {
    display: block;
}

.article-gallery .gallery-prev,
.article-gallery .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    /* background: rgba(0, 0, 0, 0.4); */
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.article-gallery .gallery-prev {
    left: 15px;
}

.article-gallery .gallery-next {
    right: 15px;
}

/* Description */
.article-description p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.article-description .full.hidden {
    display: none;
}

.article-description .read-more {
    color: #0d1b2a;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-description .read-more:hover {
    color: #fca311;
}

/* Communities */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
    align-items: center;
    justify-content: center;
    /* center align */
}

#articleFilter {
    flex: 0 0 20%;
    /* 20% width on desktop */
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

#searchInput {
    flex: 0 0 60%;
    /* 40% width on desktop */
    /* width: 80%; */
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

#locationFilter {
    flex: 0 0 20%;
    /* 20% width on desktop */
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}


/* --- MASS SCHEDULE TABLE --- */
.mass-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    background: var(#0d1b2a);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.06);
}

.mass-schedule-table th,
.mass-schedule-table td {
    padding: 14px 18px;
    text-align: left;
}

.mass-schedule-table th {
    background: #e3f0ff;
    color: var(#0d1b2a);
    font-size: 1.08rem;
    font-weight: bold;
    border-bottom: 2px solid var(#4fc3f7);
}

.mass-schedule-table tr:nth-child(even) {
    background: var(#e0e1dd);
}

.mass-schedule-table tr:nth-child(odd) {
    background: var(#ffffff);
}

.mass-schedule-table td {
    color: #222;
    font-size: 1.04rem;
}

.map-container-home {
    flex: 1;
    margin: auto;
    width: 80vw;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .navbar .logo {
        color: white;
        font-size: 1rem;
        font-weight: bold;
    }

    .navbar .nav-links {
        flex-direction: column;
        align-items: center;
        background: #0d1b2a;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100vw;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        display: none;
        padding: 1rem;
    }

    .navbar.active .nav-links {
        display: flex;
    }

    .event-cards {
        flex-direction: column;
        align-items: center;
    }

    .with-sidebar {
        flex-direction: column;
        margin: 20px;
    }


    .tab-menu {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin: 0px 40px 40px 40px;
        width: 95%;
        overflow-x: auto;
        scrollbar-width: none;
        /* Firefox */
    }

    .tab-menu h3 {
        display: none;
    }

    .tab-link {
        /* width: 100%; */
        /* flex: auto; */
        /* prevent shrinking */
        flex: auto;
        height: auto;
        text-align: center;
    }

    .tab-link.active {
        height: 70px;
    }

    .tab-content.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: auto;
        width: 95%;
        padding: 20px;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 100px 10px 10px 10px;
    }

    #searchInput,
    #locationFilter {
        flex: 0 0 90%;
        /* both take 90% width */
        min-width: unset;
    }
}