/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
html {
    scroll-behavior: smooth;
}

/* HEADER */
.header {
    height: 75px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 55px;
    width: auto;
    display: block;
}

.brand {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    text-align: center;
}

.highlight {
    color: #1e73ff;
    font-weight: 700;
}

.right {
    display: flex;
    gap: 22px;
}

.right a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
    font-size: 15px;
}

.right a:hover {
    color: #1e73ff;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
        align-items: center;
    }
    .left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .brand {
        white-space: normal;
        text-align: center;
    }
    .right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* ================= BANNER SLIDER ================= */
.banner {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 600%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    width: calc(100% / 6);
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* ================= SECTIONS ================= */
section {
    padding: 60px 20px;
    margin: 20px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transform: perspective(900px) rotateX(1deg);
    transition: 0.4s ease;
}

section:hover {
    transform: perspective(900px) rotateX(0deg) scale(1.01);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

#about {
    text-align: center;
}

h1, h2 {
    color: rgb(10,10,10);
    text-shadow: 0 0 12px rgba(0,230,230,0.6);
}

p {
    color: #050505;
    line-height: 1.8;
    max-width: 900px;
    margin: auto;
}

/* ================= TEAM + GALLERY ================= */
.team-grid,
.grid,
.activities-grid {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.member,
.activity-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    transition: 0.4s;
}

.member:hover,
.activity-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 45px rgba(0,0,0,0.8);
}

.member img,
.activity-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.member h3 {
    padding: 8px 10px 2px;
}

.member p,
.activity-card p {
    padding: 10px;
    font-weight: bold;
}

.grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.grid img:hover {
    transform: scale(1.05);
}

/* ================= CONTACT ================= */
#contact {
    text-align: center;
}

/* ================= FOOTER ================= */
footer {
    background: rgba(0,0,0,0.8);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* ================= LIGHTBOX ================= */
.member img {
    cursor: pointer;
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#lightbox-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
}

/* ================= MEMBERS TABLE ================= */
#members {
    text-align: center;
}

#members .members-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

#members .members-table th,
#members .members-table td {
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

#members .members-table th {
    background: #1e73ff;
    color: white;
    font-weight: bold;
}

#members .members-table tr:nth-child(even) {
    background: rgba(255,255,255,0.05);
}

#members .members-table tr:hover {
    background: rgba(30,115,255,0.15);
}

@media (max-width: 768px) {
    #members .members-table {
        font-size: 14px;
    }
    #members .members-table th,
    #members .members-table td {
        padding: 10px;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== Submenu for Our Members ===== */

.sub-dropdown {
    position: relative;
}

.sub-dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;   /* Opens to the left */
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1001;
}

.sub-dropdown:hover .sub-dropdown-menu {
    display: block;
}

.sub-dropdown-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.sub-dropdown-menu a:hover {
    background: #f5f5f5;
}

/* ===== 2026 GALLERY CENTER FIX ===== */

.gallery h2 {
    text-align: center;
    width: 100%;
    font-size: 32px;
    margin-bottom: 25px;
    color: #333;
}