/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 180px; /* Increased to provide buffer for fixed navbar and navbar-menu */
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #1a3c6c;
    padding: 20px 0;
    position: fixed;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: block;
    visibility: visible;
}

.navbar-menu {
    background: linear-gradient(135deg, #2980b9, #1a3c6c);
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 129px; /* Moved down by 40px to ensure full visibility */
    z-index: 9998;
    width: 100%;
    display: flex;
    visibility: visible;
    height: 42px; /* Reduced to 60% of original height (70px) */
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #ffd700;
    border-top: 2px solid #ffd700;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    height: 100%;
    line-height: 1;
}

.nav-item {
    margin-left: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: all 0.3s ease;
}

.nav-item:first-child {
    margin-left: 0;
}

.nav-item:hover {
    transform: translateY(-3px);
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
    position: relative;
    border-radius: 4px;
}

.nav-link:hover {
    color: #ffd700; /* Gold color on hover */
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffd700; /* Gold color for active page */
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.admin-login-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.admin-login-btn:hover {
    background-color: #2980b9;
}

.admin-logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.admin-logout-btn:hover {
    background-color: #c0392b;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0); /* Fully transparent */
    padding: 5px 15px;
    border-radius: 10px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    position: relative;
}

.logo-text-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0 10px;
}

.nav-logo h2 {
    color: #fff;
    font-size: 1.6rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    text-align: center;
}

.hindi-text {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    text-align: center;
}

.left-logo {
    margin-right: 10px;
}

.right-logo {
    margin-left: 10px;
}

.registration-number {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 400;
    letter-spacing: 1px;
    position: absolute;
    right: 20px;
    bottom: 5px;
}





.nav-logo-img {
    height: 60px;
    width: 60px;
    vertical-align: middle;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    align-self: center;
}

.nav-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Member List Table Styling */
.member-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #aee3dc;
    border-radius: 8px;
    overflow: hidden;
}

.member-list-table th,
.member-list-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.member-list-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9em;
}

.member-list-table tbody tr:hover {
    background-color: #f5f5f5;
}

.member-list-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 20px;
    padding: 10px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.pagination button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1a3c6c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.pagination button:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination .page-info {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

/* Search Box Styling */
.search-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2), 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #7f8c8d;
    font-style: italic;
}

.clear-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.clear-btn:active {
    transform: scale(0.95);
}

/* Member List Container Styling */
#memberListContainer {
    max-height: 600px;
    overflow-y: auto;
    background-color: #f8fbff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    position: relative;
    border: 1px solid #e1e8ed;
}

/* Watermark Logo */
#memberListContainer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    height: 460px;
    background-image: url('images/aga_club_logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

#memberListContainer table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    z-index: 2;
    background-color: transparent;
}

#memberListContainer th,
#memberListContainer td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#memberListContainer th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#memberListContainer tbody tr {
    transition: all 0.3s ease;
    background-color: rgba(187, 185, 153, 0.7);
}

#memberListContainer tbody tr:nth-child(even) {
    background-color: rgba(138, 220, 194, 0.8);
}

#memberListContainer tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#memberListContainer tbody tr td:first-child {
    font-weight: 600;
    color: #285589;
}

#memberListContainer tbody tr td:nth-child(2) {
    font-weight: 500;
    color: #34495e;
}


.nav-logo-container:hover {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex; /* Changed to flex */
    flex-direction: column; /* Arrange content vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    color: white;
    position: relative;
    animation: fadeIn 1.5s ease-in;
    box-shadow: 0 4px 15px rgba(26, 60, 108, 0.5);
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    overflow: hidden;
    margin-bottom: 10mm; /* Position 10mm above gallery section */
}

/* Background fade animation */
.hero.background-fade {
    transition: background-image 1s ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: -1;
    animation: zoomIn 20s infinite alternate;
    transition: all 1s ease-in-out;
}

.hero-content {
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 10px;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: none;
    box-shadow: none;
    animation: fadeIn 1s ease-out;
    transition: all 0.3s ease;
    width: 80%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0); /* Fully transparent */
}

.hero-content:hover {
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: none;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    letter-spacing: 1px;
    font-weight: 700;
    color: white;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    letter-spacing: 0.5px;
    font-weight: 500;
    color: #f0f0f0;
}

/* Messages Section */
.messages-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

.messages-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #1a3c6c;
}

.leaders-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.leader-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(26, 60, 108, 0.15);
    padding: 40px;
    text-align: center;
    max-width: 550px;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    border: 1px solid rgba(26, 60, 108, 0.1);
}

.leader-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(26, 60, 108, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.leader-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #3498db;
}

.leader-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.leader-card p {
    margin-bottom: 20px;
    color: #666;
}

.read-more {
    background: linear-gradient(135deg, #3498db 0%, #1a3c6c 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.read-more:hover {
    background: linear-gradient(135deg, #2980b9 0%, #0d1f3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Gallery Section */
.gallery-section {
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 65vh; /* 35% reduced from 100vh */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-section h2 {
    text-align: center;
    margin: 0;
    font-size: 2.5rem;
    color: #ffffff;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: transparent;
    padding: 20px 40px;
    border-radius: 15px;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
}

/* Modern Slideshow Styles */
.modern-slideshow {
    width: 90vw;
    height: 85vh;
    max-width: 1400px;
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #7e8ba3 50%, #667eea 75%, #764ba2 100%);
    animation: galleryFloat 6s ease-in-out infinite;
}

@keyframes galleryFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.005); }
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modern-slideshow .gallery-slide-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modern-slideshow .gallery-slide-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-slideshow .slide:hover .gallery-slide-wrapper img {
    transform: scale(1.05);
}

/* Slide Content Overlay */
.slide-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
    padding: 80px 60px 50px;
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
}

.event-info {
    text-align: center;
}

.event-name {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.6s ease-out;
}

.event-date {
    font-size: 1.8rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.6s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Controls */
.slideshow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.control-btn {
    background: linear-gradient(135deg, #1a3c6c, #2980b9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2980b9, #1a3c6c);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn svg {
    stroke-width: 2.5;
}

/* Indicators */
.slideshow-indicators {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 300px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 60, 108, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(26, 60, 108, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: #1a3c6c;
    transform: scale(1.3);
}

/* Slideshow Info */
.slideshow-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 20px;
}

.slide-counter {
    font-size: 1.1rem;
    color: #1a3c6c;
    font-weight: 500;
}

.play-pause-btn {
    background: rgba(26, 60, 108, 0.1);
    border: 2px solid #1a3c6c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1a3c6c;
}

.play-pause-btn:hover {
    background: #1a3c6c;
    color: white;
    transform: scale(1.1);
}

/* Legacy slideshow styles (keep for compatibility) */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(26, 60, 108, 0.7);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(26, 60, 108, 0.9);
}

.slides {
    display: none;
    width: 100%;
    position: relative;
}

.slides.active {
    display: block;
}

.slides img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

/* Fixed-size container for gallery images */
.gallery-slide-wrapper {
    width: 100%;
    height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-slide-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes zoomIn {
    from {transform: scale(1.05);}
    to {transform: scale(1);}
}

@keyframes backgroundFade {
    from {opacity: 0.7;}
    to {opacity: 1;}
}

.background-fade {
    animation: backgroundFade 1s ease-in-out;
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: #1a3c6c;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Committee Section */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.committee-member {
    background: #f8f9fa; /* Light gray background for uniform light theme */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.committee-member:hover {
    transform: translateY(-10px);
    background: #e9ecef; /* Slightly darker on hover for visual feedback */
}

.member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #1a3c6c;
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-date {
    color: #1a3c6c;
    font-weight: bold;
    margin-bottom: 10px;
}

/* About Section */
.about-content h2 {
    margin-top: 30px;
    color: #1a3c6c;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.activity-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Individual card colors */
.activity-card:nth-child(1) {
    background: #e3f2fd; /* Light blue */
}

.activity-card:nth-child(2) {
    background: #e8f5e9; /* Light green */
}

.activity-card:nth-child(3) {
    background: #fff3e0; /* Light orange */
}

.activity-card:nth-child(4) {
    background: #fce4ec; /* Light pink */
}

.activity-card h3 {
    color: #1a3c6c;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-detail {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: fixed;
        left: -100%;
        top: 182px; /* Adjusted to be below both navbars */
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background-color: rgba(44, 45, 80, 0.9); /* Semi-transparent background */
        height: calc(100vh - 162px); /* Full height minus navbar height */
        overflow-y: auto; /* Enable scrolling for long menus */
        justify-content: flex-start; /* Align items to the top */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .leaders-container {
        flex-direction: column;
        align-items: center;
    }

    .slides img {
        height: 330px;
    }

    .committee-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    /* Modern Slideshow Mobile Styles */
    .modern-slideshow .gallery-slide-wrapper {
        height: 300px;
    }

    .event-name {
        font-size: 1.5rem;
    }

    .event-date {
        font-size: 1rem;
    }

    .slideshow-controls {
        gap: 15px;
        margin-top: 20px;
    }

    .control-btn {
        width: 50px;
        height: 50px;
    }

    .control-btn svg {
        width: 20px;
        height: 20px;
    }

    .slideshow-indicators {
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .slide-counter {
        font-size: 1rem;
    }

    .play-pause-btn {
        width: 35px;
        height: 35px;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10000;
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: #fff;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
}

@media screen and (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .gallery-section h2 {
        font-size: 2rem;
        padding: 15px 30px;
        top: 30px;
    }
    
    .modern-slideshow {
        width: 95vw;
        height: 80vh;
    }
    
    .slide-content-overlay {
        padding: 40px 30px 30px;
    }
    
    .event-name {
        font-size: 2.2rem;
    }
    
    .event-date {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 480px) {
    .gallery-section h2 {
        font-size: 1.6rem;
        padding: 12px 24px;
        top: 25px;
    }
    
    .modern-slideshow {
        width: 95vw;
        height: 75vh;
    }
    
    .slide-content-overlay {
        padding: 30px 20px 20px;
    }
    
    .event-name {
        font-size: 1.8rem;
    }
    
    .event-date {
        font-size: 1.2rem;
    }
}

    .slideshow-info {
        padding: 0 10px;
    }

/* Modal Styles for Event Slideshow */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid rgba(26, 60, 108, 0.2);
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-60px) scale(0.95);}
    to {opacity: 1; transform: translateY(0) scale(1);}
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #1a3c6c;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

/* Message Modal Specific Styles */
.modal-message {
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    padding: 20px;
    background: rgba(26, 60, 108, 0.05);
    border-radius: 10px;
    border-left: 4px solid #3498db;
    max-height: 70vh;
    overflow-y: auto;
    text-align: justify;
}

#modalLeaderName {
    color: #1a3c6c;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.slideshow-container {
    position: relative;
    margin: 20px 0;
    min-height: 440px;
    width: 100%;
}

.slides {
    display: none;
    width: 100%;
    position: relative;
}

.slides.active {
    display: block;
}

.slides img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slides img:not([onerror]) {
    opacity: 1;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: rgb(196, 136, 136);
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Ensure arrows are above images */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(26, 60, 108, 0.9);
}

.caption {
    text-align: center;
    padding: 10px;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        background-color: #2c3e50;
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    
    .hero-content {
        width: 90%;
        padding: 15px 20px;
        bottom: 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        padding: 15px;
        display: block;
    }

    .hero {
        height: 300px;
    }
    
    .hero::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
    }
    
    .hero-content {
        bottom: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .messages-section h2, .gallery-section h2, .committee-section h2, .events-section h2 {
        font-size: 2rem;
    }

    .leaders-container {
        flex-direction: column;
        align-items: center;
    }

    .slides img {
        height: 330px;
    }

    .committee-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .slides img {
        height: 275px;
    }
}

/* Membership Section */
.membership-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

.membership-content h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #1a3c6c;
}

.membership-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.membership-option {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.membership-option:hover {
    transform: translateY(-10px);
}

.membership-option h3 {
    color: #1a3c6c;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.btn-primary {
    background-color: #1a3c6c;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #2980b9;
    color: white;
}

.btn-secondary:hover {
    background-color: #1a3c6c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



.membership-benefits, .membership-requirements {
    margin: 30px 0;
}

.membership-benefits h3, .membership-requirements h3 {
    color: #1a3c6c;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.membership-benefits ul, .membership-requirements ul {
    list-style-type: disc;
    margin-left: 30px;
}

.membership-benefits li, .membership-requirements li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

/* Events Section */
.events-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

/* Committee Section */
.committee-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

/* Automatic Event Gallery Styles */
/* Hidden as per user request -保留 for photo gallery functionality */
.automatic-gallery-section {
    display: none !important;
    padding: 60px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
}

.automatic-gallery-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #1a3c6c;
}

.automatic-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 200px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 15px 10px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-info p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
}

.no-events-message, .error-message {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    grid-column: 1 / -1;
    padding: 40px;
}




