/* Dark Theme Committee Members CSS */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #121212 0%, #1e1e2d 100%);
    color: #e0e0e0;
    text-align: center;
    padding-top: 80px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuXzAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHBhdGggZD0iTSAtNSw1IEwgNSw1IiBzdHJva2U9IiMyYTJhM2EiIHN0cm9rZS13aWR0aD0iMC41Ii8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm5fMCkiLz48L3N2Zz4='), linear-gradient(135deg, #121212 0%, #1e1e2d 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Container Styling */
.container[data-year] {
    max-width: 1300px !important;
    margin: 30px auto !important;
    padding: 20px !important;
    background: rgba(25, 25, 35, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

h1 {
    font-size: 2.5em;
    color: #ff6200;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 10px rgba(255, 98, 0, 0.3);
    letter-spacing: 1px;
}

/* Grid Layout - Override Bootstrap with maximum specificity */
body.committee-members-page .container[data-year] .members-grid.committee-members-grid,
body.committee-members-page .members-grid.committee-members-grid,
.members-grid.committee-members-grid,
.container .members-grid.committee-members-grid,
body .members-grid.committee-members-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    padding: 0 10px !important;
    width: 100% !important;
    max-width: none !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}

/* Individual Member Box - Override Bootstrap */
.member,
.members-grid .member,
.container .member {
    background: rgba(35, 35, 45, 0.8) !important;
    border-radius: 10px !important;
    padding: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 100% !important;
    max-width: 250px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
    position: relative !important;
}

.member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 98, 0, 0.2);
    background: rgba(40, 40, 55, 0.9);
    border: 1px solid rgba(255, 98, 0, 0.3);
}

/* Profile Image */
.member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 98, 0, 0.6);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.member:hover img {
    transform: scale(1.05);
    border-color: #ff6200;
    box-shadow: 0 0 25px rgba(255, 98, 0, 0.4);
}

/* Member Info */
.member h2 {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.member .role {
    font-size: 1em;
    color: #ff6200;
    font-weight: bold;
    margin-bottom: 4px;
}

.member .semester {
    font-size: 0.9em;
    color: #aaa;
}

.member:hover h2 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    padding: 0.5rem 1rem;
    background-color: rgba(18, 18, 24, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar:hover {
    background-color: rgba(25, 25, 35, 0.95) !important;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: none;
    box-shadow: none;
}

.logo1 > img {
    max-height: 60px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 98, 0, 0.3));
}

.navbar-nav {
    width: auto;
    display: flex;
    justify-content: space-around;
    margin-left: auto;
}

.nav-item {
    margin: 0 10px;
    position: relative;
}

.nav-link-text {
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link-text:hover {
    color: #ff6200;
}

.nav-link-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff6200;
    transition: width 0.3s ease;
}

.nav-link-text:hover::after {
    width: 100%;
}

.nav-link-text[style*="color: #ff5e00"] {
    color: #ff6200 !important;
}

.nav-link-text[style*="color: #ff5e00"]::after {
    width: 100%;
}

/* Year Tabs Styling */
.year-tabs {
    margin-top: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.year-tab {
    padding: 12px 25px;
    border: none;
    background-color: rgba(35, 35, 45, 0.7);
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.year-tab:hover {
    background-color: rgba(45, 45, 60, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.year-tab.active {
    background-color: #ff6200;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 98, 0, 0.4);
    transform: translateY(-3px);
}

/* Added animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container[data-year] {
    animation: fadeIn 0.6s ease-out;
}

.member {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@media (min-width: 601px) {
    .members-grid .member:nth-child(1) { animation-delay: 0.05s; }
    .members-grid .member:nth-child(2) { animation-delay: 0.1s; }
    .members-grid .member:nth-child(3) { animation-delay: 0.15s; }
    .members-grid .member:nth-child(4) { animation-delay: 0.2s; }
    .members-grid .member:nth-child(5) { animation-delay: 0.25s; }
    .members-grid .member:nth-child(6) { animation-delay: 0.3s; }
    .members-grid .member:nth-child(7) { animation-delay: 0.35s; }
    .members-grid .member:nth-child(8) { animation-delay: 0.4s; }
    /* and so on for other elements */
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a25;
}

::-webkit-scrollbar-thumb {
    background: #3a3a45;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6200;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container[data-year] {
        max-width: 95%;
        margin: 20px auto;
        padding: 15px;
    }
    
    .members-grid {
        gap: 20px;
        padding: 0 5px;
    }
}

@media (max-width: 1200px) {
    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 18px;
    }
    
    .member {
        max-width: 220px;
    }
}

@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
        border: none;
        background: rgba(255, 98, 0, 0.1);
        color: #ff6200;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(18, 18, 24, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        padding: 1rem;
        z-index: 1000;
        border-top: 1px solid rgba(255, 98, 0, 0.2);
    }
  
    .navbar-nav {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
  
    .nav-item {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
  
    .logo1 > img {
        max-height: 50px;
    }
    
    .container[data-year] {
        margin: 15px auto;
        padding: 15px;
    }
    
    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .member {
        max-width: 200px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container[data-year] {
        margin: 10px auto;
        padding: 12px;
    }
    
    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
        padding: 0;
    }
    
    .member {
        max-width: 180px;
        padding: 12px;
    }
    
    .member img {
        width: 100px;
        height: 100px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .year-tabs {
        gap: 10px;
        padding: 10px 0;
    }
    
    .year-tab {
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .logo1 > img {
        max-height: 40px;
    }
  
    .nav-link-text {
        font-size: 12px;
    }
    
    h1 {
        font-size: 1.5rem;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .container[data-year] {
        margin: 8px auto;
        padding: 10px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }
    
    .member {
        max-width: 100%;
        padding: 12px;
    }
    
    .member img {
        width: 90px;
        height: 90px;
    }
    
    .year-tab {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .year-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .container[data-year] {
        margin: 5px auto;
        padding: 8px;
    }
    
    .member {
        padding: 10px;
    }
    
    .member img {
        width: 80px;
        height: 80px;
    }
    
    .member h2 {
        font-size: 1.2em;
    }
    
    .member .role {
        font-size: 1em;
    }
    
    .member .semester {
        font-size: 0.9em;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .year-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px ;
    margin-top: 0; /* Optional spacing from the main content */
}

footer a {
    font-weight: bold; /* Makes the text bold */
    color: #ffffff; /* White color for better visibility */
    text-decoration: underline; /* Adds an underline to show it's a clickable link */
    transition: color 0.3s ease-in-out; /* Smooth color transition on hover */
}

footer a:hover {
    color: #ffcc00; /* Changes color to yellow on hover */
}
.social-icons a {
    color: white;
    font-size: 20px;
    margin: 0 8px;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: #ffcc00;
}
