/* styles.css */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary-electric: #00d2ff;
    --secondary-orange: #ff5722;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans Malayalam', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

/* Floating Card Glassmorphism */
.floating-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 100;
}

.navbar.floating-card:hover {
    transform: translate(-50%, -5px);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary-electric);
}

.nav-links {
    display: flex;
    list-style: none;
    background: #ffffff;
    border-radius: 5px;
    overflow: visible;
    margin: 0 15px;
}

.nav-links li {
    border-right: 1px solid #e0e0e0;
}

.nav-links li:last-child {
    border-right: none;
}

.nav-links a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
    background: #f0f0f0;
    color: var(--primary-electric);
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 0 0 5px 5px;
    top: 100%;
    left: 0;
    overflow: hidden;
}
.dropdown:hover .dropdown-content,
.dropdown.active-dropdown .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: #555;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background-color: #f0f0f0;
    color: var(--primary-electric);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background: #ffffff;
    padding: 12px;
    box-sizing: content-box;
    border-radius: 5px;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #555;
    border-radius: 2px;
}

@media(max-width: 1100px) {
    .hamburger {
        display: flex;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active-dropdown .dropdown-content {
        display: block;
    }
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin: 10px 0 0 0;
        flex-direction: column;
        background: rgba(10, 15, 30, 0.85); /* liquid glass effect */
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 210, 255, 0.2);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 99;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        padding: 15px 20px;
        text-align: right;
        color: #ffffff;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-cyan);
    }
    
    .dropdown-content {
        position: relative;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        min-width: 100%;
        border-radius: 0;
        z-index: 100;
    }
    
    .dropdown-content a {
        color: #ffffff;
        text-align: right;
        padding-right: 35px;
        padding: 12px 20px 12px 0;
        background-color: transparent;
    }
}

/* Language Toggle */
.lang-toggle {
    position: relative;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    cursor: pointer;
    position: relative;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.lang-toggle input {
    display: none;
}

.switch-btn {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30px;
    height: 30px;
    background: var(--primary-electric);
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary-electric);
}

.lang-toggle input:checked + .toggle-label .switch-btn {
    left: calc(100% - 32px);
    background: var(--secondary-orange);
    box-shadow: 0 0 10px var(--secondary-orange);
}

.en { color: #fff; z-index: 1; }
.ml { color: #fff; z-index: 1; }

/* Hero Section */
.hero {
    min-height: 70vh;
    padding: 160px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-electric), #ffffff, var(--primary-electric));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

body.lang-ml .hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.5;
}

body.lang-ml p, body.lang-ml h2, body.lang-ml h3, body.lang-ml h4, body.lang-ml a, body.lang-ml .cta-btn {
    line-height: 1.6;
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, var(--primary-electric), #0055ff);
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.8);
    transform: scale(1.05);
}

/* Floating Elements (Anti-gravity) */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.float-item {
    position: absolute;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.vball {
    width: 200px;
    top: 140px;
    left: 8%;
    animation: float 6s ease-in-out infinite;
}

.fball {
    width: 180px;
    bottom: 50px;
    right: 12%;
    animation: float 5s ease-in-out infinite reverse;
}

.cball {
    width: 100px;
    top: 120px;
    right: 15%;
    animation: float 4s ease-in-out infinite 1s;
}

.shuttle {
    width: 120px;
    bottom: 60px;
    left: 18%;
    animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* About Section */
.about {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
}

.about-card {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    padding: 40px;
    gap: 40px;
}

@media(min-width: 768px) {
    .about-card {
        flex-direction: row;
        align-items: center;
    }
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-electric);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* Legacy Teams Section */
.legacy-teams {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.tab-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(45deg, var(--primary-electric), #0055ff);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.tabs-content {
    min-height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.8rem;
    color: var(--primary-electric);
    margin-bottom: 15px;
}

.tab-pane p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}
.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    width: 45px;
    height: 45px;
    background: rgba(24, 119, 242, 0.1);
    border: 1px solid #1877F2;
    color: #1877F2;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #1877F2;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
    transform: translateY(-3px);
}

.team-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.team-photo {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.team-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
}

/* Image Modal (Lightbox) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.modal-close:hover {
    color: var(--primary-electric);
}

.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1001;
}

.modal-next {
    right: 15px;
    border-radius: 3px 0 0 3px;
}

.modal-prev {
    left: 15px;
}

.modal-prev:hover, .modal-next:hover {
    color: var(--primary-electric);
    background-color: rgba(0,0,0,0.4);
}

@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

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

/* Generic Sections for Details */
.generic-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-card {
    padding: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.content-card h3 {
    font-size: 1.8rem;
    color: var(--primary-electric);
    margin-bottom: 20px;
}

.content-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Sports Section */
.sports {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-electric);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.sport-card {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.icon-3d {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.icon-3d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sport-card:hover .icon-3d img {
    transform: translateY(-15px) scale(1.1) rotate(5deg);
}

.sport-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.sport-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.sport-sketch {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.live-badge, .upcoming-badge {
    position: absolute;
    top: 45px;
    right: -80px;
    width: 300px;
    text-align: center;
    padding: 7px 0;
    font-size: 0.65rem;
    font-weight: 700;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-badge {
    background: var(--secondary-orange);
    box-shadow: 0 0 15px var(--secondary-orange);
}

.upcoming-badge {
    background: #4a5568;
}

/* Footer & Registration */
.footer {
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.contact-info, .registration {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .registration h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-electric);
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--primary-electric);
    box-shadow: 0 0 15px var(--primary-electric);
    transform: translateY(-3px);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary-electric);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.submit-btn {
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: var(--primary-electric);
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: var(--secondary-orange);
    color: #fff;
    box-shadow: 0 0 15px var(--secondary-orange);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast i {
    font-size: 1.2rem;
}

.toast.show {
    bottom: 30px;
}

/* Officials Section */
.officials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.official-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    width: 250px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.official-card:hover {
    transform: translateY(-5px);
}

.official-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-electric);
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-electric);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-electric);
    background: rgba(0, 210, 255, 0.05);
}

.official-card h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.official-card .role {
    color: var(--secondary-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Mobile Responsiveness */
@media(max-width: 768px) {
    .vball { width: 100px; top: 100px; left: -10px; opacity: 0.3; }
    .fball { width: 80px; bottom: 20px; right: -10px; opacity: 0.3; }
    .cball { width: 50px; top: 120px; right: 0; opacity: 0.3; }
    .shuttle { width: 60px; bottom: 40px; left: 0; opacity: 0.3; }
    
    .tabs-container { padding: 15px; }
    .tabs-content { padding: 15px; }

    .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .tabs-header::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
    }
    
    .team-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .team-photo {
        height: 80px;
    }
}


/* Organization Tree Styles */
.org-chart-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.org-tree {
    display: flex;
    justify-content: center;
    min-width: 900px;
}

.org-tree ul {
    padding-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding-left: 0;
}

.org-tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
}

/* Connectors */
.org-tree li::before, .org-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #fff;
    width: 50%;
    height: 20px;
}
.org-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #fff;
}
.org-tree li:only-child::after, .org-tree li:only-child::before {
    display: none;
}
.org-tree li:only-child {
    padding-top: 0;
}
.org-tree li:first-child::before, .org-tree li:last-child::after {
    border: 0 none;
}
.org-tree li:last-child::before {
    border-right: 2px solid #fff;
    border-radius: 0 5px 0 0;
}
.org-tree li:first-child::after {
    border-radius: 5px 0 0 0;
}
.org-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #fff;
    width: 0;
    height: 20px;
}

/* Nodes */
.org-tree .node {
    border: 1px solid transparent;
    padding: 12px 15px;
    text-decoration: none;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 140px;
    transition: transform 0.3s ease;
}
.org-tree .node:hover {
    transform: translateY(-5px);
}

/* Colors */
.node-purple { background-color: #c4ccff; }
.node-dark-purple { background-color: #7b85ff; color: #fff !important; }
.node-cyan { background-color: #00e5ff; }
.node-light-cyan { background-color: #a3f7ff; }
.node-mint { background-color: #00fa9a; }
.node-light-mint { background-color: #a3ffda; }
.node-yg { background-color: #d4ff33; }
.node-gold { background-color: #ffcc00; }
.node-light-gold { background-color: #ffe066; }

/* Side Branch (District Sports Council President) */
.has-side-branch {
    position: relative;
    display: inline-block;
}
.side-branch-node {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 60px;
    white-space: nowrap;
}
.side-branch-node::before {
    content: '←';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #555;
    font-weight: bold;
}

/* Volleyball Updates Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.modal-content.glass-panel {
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    position: relative;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-cyan);
}

.updates-gallery img, .updates-gallery video {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
