* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3d6db8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.04) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(61,109,184,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.nav-header h1 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-about {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-about:hover::before {
    left: 100%;
}

.nav-about:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.register-btn {
   background: linear-gradient(135deg, #4a69bd 0%, #1e3799 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(147, 188, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(17, 13, 235, 0.3), transparent);
    transition: left 0.5s;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 125, 211, 0.4);
    background: linear-gradient(135deg, #273c75 0%, #192a56 100%);
}

.register-btn:active {
    transform: translateY(0);
}

.register-btn:active {
    transform: translateY(0);
}

/* Register Form Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#registration-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.form-container {
    display: flex;
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 90vh; /* Limit height to 90% of viewport height */
}

.form-description {
    flex: 0.8; /* Reduced from 1 to make it slightly narrower */
    padding: 30px; /* Reduced padding from 40px */
    background: linear-gradient(to bottom, #B0E0E6, #4682B4);
    color: #1a237e;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-description h2 {
    margin-top: 0;
    font-size: 24px; /* Reduced from 28px */
    margin-bottom: 15px; /* Reduced from 20px */
}

.form-description p {
    font-size: 14px; /* Reduced from 16px */
    line-height: 1.5; /* Slightly reduced line height */
}

.form-content {
    flex: 1.2; /* Increased from 1 to give more space for options */
    padding: 30px; /* Reduced from 40px */
    background-color: white;
    overflow-y: auto; /* Add scrolling for the form content */
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Reduced from 30px */
}

.form-header h3 {
    font-size: 22px; /* Reduced from 24px */
    color: #07048f;
    margin: 0;
}

.close-btn {
    font-size: 22px; /* Reduced from 24px */
    cursor: pointer;
    color: #90a4ae;
    transition: color 0.3s;
    background: none;
    border: none;
    width: 32px; /* Reduced from 36px */
    height: 32px; /* Reduced from 36px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #455a64;
    background-color: #f5f5f5;
}

.form-group {
    margin-bottom: 16px; /* Reduced from 24px */
}

label {
    display: block;
    margin-bottom: 6px; /* Reduced from 8px */
    font-weight: 500;
    color: #455a64;
    font-size: 13px; /* Reduced from 14px */
}

input, select {
    width: 100%;
    padding: 10px 14px; /* Reduced from 12px 16px */
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px; /* Reduced from 16px */
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #29b6f6;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 12px; /* Reduced from 14px */
    background: linear-gradient(to right, #2196f3, #0d47a1);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px; /* Reduced from 16px */
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 16px; /* Reduced from 20px */
}

.submit-btn:hover {
    background: linear-gradient(to right, #1e88e5, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

.required {
    color: #ca0704;
    margin-left: 3px;
}

/* Main Content Styles */
.main-content {
    padding: 1.5rem 0 2rem; /* Adjusted padding */
}

.description-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem; /* Small top margin */
}

.description-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem; /* Slightly increased padding */
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.1),
        0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: 650px; /* Slightly increased width */
    width: 100%;
}

.description-box h2 {
    color: #1e3c72;
    font-size: 1.6rem; /* Increased font size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.7rem;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description-box > p {
    font-size: 0.95rem; /* Increased font size */
    color: #555;
    text-align: justify;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem; /* Increased gap */
    margin-bottom: 1.2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem; /* Increased padding */
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 60, 114, 0.1);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.9);
}

.benefit-icon {
    font-size: 1.2rem; /* Increased font size */
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.benefit-text h3 {
    color: #1e3c72;
    font-size: 0.95rem; /* Increased font size */
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.benefit-text p {
    color: #666;
    font-size: 0.85rem; /* Increased font size */
    line-height: 1.4;
    margin: 0;
    text-align: justify;
}

.cta-section {
    text-align: center;
    padding: 1.1rem;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(30, 60, 114, 0.1);
}

.cta-text {
    font-size: 0.95rem; /* Increased font size */
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.cta-button {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem; /* Increased padding */
    border-radius: 50px;
    font-size: 0.9rem; /* Increased font size */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    background: linear-gradient(135deg, #2a5298 0%, #3d6db8 100%);
}

.secondary-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 18px;
}

.secondary-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #4a69bd 0%, #1e3799 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 200px; /* Added minimum width */
    width: auto; /* Allow growing if needed */
}

.secondary-btn:before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.secondary-btn:first-child:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z'%3E%3C/path%3E%3C/svg%3E");
}

.secondary-btn:last-child:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'%3E%3C/path%3E%3C/svg%3E");
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.secondary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Gallery Box Styles */
.description-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.description-box {
    flex: 1;
    min-width: 300px;
}

.gallery-box {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.1),
        0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.gallery-box h2 {
    color: #1e3c72;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(30, 60, 114, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 60, 114, 0.85);
    color: white;
    padding: 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item-description {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* Gallery Slogan Styles */
.gallery-slogan {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(30, 60, 114, 0.1);
}

.gallery-slogan p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 0.4rem;
    font-style: italic;
}

.slogan-tagline {
    font-size: 0.9rem;
    color: #666;
    display: block;
}

/* About Section Styles */
.about-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ecfb 100%);
    width: 100%;
}

.about-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.about-section h2 {
    color: #1e3c72;
    font-size: 2.2rem; /* Increased font size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem; /* Reduced space */
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 1rem;
}

.about-content {
    display: block;
    width: 100%;
    padding: 0 1.5rem; /* Elegant minimal margin on the sides */
}

.about-text {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.8rem; /* Slightly reduced padding */
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-text h3 {
    color: #1e3c72;
    font-size: 1.6rem; /* Increased font size */
    font-weight: 600;
    margin-bottom: 0.8rem; /* Reduced space */
    margin-top: 1.5rem; /* Reduced space */
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #444; /* Slightly darker for better readability with larger font */
    font-size: 1.05rem; /* Increased font size */
    line-height: 1.5; /* Slightly tighter line height */
    margin-bottom: 1rem; /* Reduced space */
    text-align: justify;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.2rem; /* Reduced space */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1.2rem; /* Reduced gap */
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* Reduced gap */
    color: #333; /* Darker for better readability */
    font-size: 1.05rem; /* Increased font size */
}

.feature-icon {
    font-size: 1.3rem; /* Increased font size */
    color: #1e3c72;
    flex-shrink: 0;
}

/* Clubs Section Styles */
.clubs-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3d6db8 100%);
    padding: 3rem 0;
    width: 100%;
    color: white;
}

.clubs-container {
    width: 100%;
    padding: 0 1.5rem;
}

.clubs-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
}

.clubs-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.clubs-category {
    margin-bottom: 2.5rem;
}

.clubs-category:last-child {
    margin-bottom: 0;
}

.clubs-category h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.clubs-category h3 i {
    font-size: 1.4rem;
}

.clubs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.club-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.club-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.club-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.club-icon i {
    font-size: 1.3rem;
    color: white;
}

.club-details {
    flex: 1;
}

.club-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.club-details p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* Search Form Styles */
#search-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#search-form.hidden {
    display: none;
}

.search-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 550px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #333;
}

.search-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.search-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.close-search-btn {
    background: linear-gradient(135deg, #4a69bd 0%, #1e3799 100%);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-search-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.search-content {
    padding: 25px;
}

.search-group {
    margin-bottom: 24px;
}

.search-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2a5298;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.search-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    background-color: white;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) inset;
}

.search-group input:focus {
    border-color: #1e3799;
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    letter-spacing: 0.5px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.search-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
}

/* Search Results Styles - Updated to match parent container */
#search-results {
    margin-top: 30px;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow-y: auto;
    max-height: 60vh; /* Limit height to prevent excessive scrolling */
}

#search-results.hidden {
    display: none;
}

/* Result containers within search results */
.result-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 280px;
    position: relative;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Table styling - Modern and clean with ellipsis */
#table-results {
    overflow-x: auto;
    width: 100%;
}

#users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    font-size: 15px;
    table-layout: fixed;
}

#users-table th, 
#users-table td {
    padding: 14px;
    text-align: left;
    white-space: nowrap; /* Keep content on a single line */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    max-width: 0; /* Required for text-overflow to work with table cells */
}

/* Column widths for better display */
#users-table th:nth-child(1),
#users-table td:nth-child(1) {
    width: 25%; /* Name column */
}

#users-table th:nth-child(2),
#users-table td:nth-child(2) {
    width: 20%; /* Email column - slightly wider for longer emails */
}

#users-table th:nth-child(3),
#users-table td:nth-child(3) {
    width: 20%; /* Department column */
}

#users-table th:nth-child(4),
#users-table td:nth-child(4) {
    width: 20%; /* Action column */
    text-align: center; /* Center the button */
}

#users-table th {
    background-color: #f0f7ff;
    font-weight: 600;
    color: #1e3799;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
    letter-spacing: 0.5px;
    font-size: 14px;
    text-transform: uppercase;
}

#users-table td {
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    color: #4b5563;
}

#users-table tr:last-child td {
    border-bottom: none;
}

#users-table tr:hover {
    background-color: #f0f7ff;
}

/* Button styling */
.view-details-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4a69bd 0%, #1e3799 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
    white-space: nowrap;
    display: inline-block; /* Ensure proper button display */
}

.view-details-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.3);
}

/* Add tooltip for truncated content */
#users-table td[title] {
    cursor: help;
}

/* ID Card styling - Professional horizontal layout */
.id-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: white;
    display: flex;
    height: 100%;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Left side with avatar and name */
.id-card-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30%;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: white;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Right side with details */
.id-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fcfcfc;
    position: relative;
    padding-bottom: 70px;
}

.detail-row {
    display: flex;
    margin-bottom: 14px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    align-items: center;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.label {
    font-weight: 600;
    width: 100px;
    color: #1e3799;
    font-size: 15px;
}

.value {
    flex: 1;
    color: #1f2937;
    font-size: 15px;
}

/* Back button styling - Fixed positioning */
.back-button {
    position: relative; /* Changed from absolute to relative */
    display: block; /* Ensure it's a block element */
    margin: 10px 15px 10px auto; /* Use margin instead of positioning */
    padding: 10px 18px;
    background: linear-gradient(135deg, #4a69bd 0%, #1e3799 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
    z-index: 5;
    width: fit-content; /* Only take up as much width as needed */
}

.back-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.3);
}

/* Container headings */
.result-container h2 {
    margin-bottom: 20px;
    color: #1e3799;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 2;
}

/* No results message */
#no-results-msg {
    padding: 20px;
    text-align: center;
    color: #1e3799;
    background-color: #f0f7ff;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-weight: 500;
    width: 100%;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .nav-header h1 {
        font-size: 1.1rem;
    }
    
    .nav-left {
        gap: 1.2rem;
    }
    
    .nav-right {
        gap: 1.2rem;
    }

    .description-box {
        max-width: 600px;
        padding: 1.3rem;
    }
    
    .description-box h2 {
        font-size: 1.5rem;
    }
    
    .benefit-item {
        padding: 0.8rem;
    }

    .about-section {
        padding: 2.5rem 0;
    }
    
    .about-section h2 {
        font-size: 2rem;
        margin-bottom: 1.3rem;
    }
    
    .about-content {
        padding: 0 1.3rem;
    }
    
    .about-text {
        padding: 1.6rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-features li {
        font-size: 1rem;
    }

    .clubs-section {
        padding: 2.5rem 0;
    }
    
    .clubs-section h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .clubs-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .clubs-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .clubs-category h3 i {
        font-size: 1.3rem;
    }
    
    .club-item {
        padding: 1.3rem;
    }
    
    .club-icon {
        width: 45px;
        height: 45px;
    }
    
    .club-icon i {
        font-size: 1.2rem;
    }
    
    .club-details h4 {
        font-size: 1.1rem;
    }
    
    .club-details p {
        font-size: 0.9rem;
    }

     .form-container {
        max-width: 800px;
    }
    
    .form-description h2 {
        font-size: 22px;
    }
    
    .form-description p {
        font-size: 13px;
    }
    
    .form-header h3 {
        font-size: 20px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .submit-btn {
        padding: 11px;
    }

    .secondary-links {
        gap: 12px;
        margin-top: 16px;
    }
    
    .secondary-btn {
        padding: 9px 14px;
        font-size: 12px;
        min-width: 180px;
    }
    
    .secondary-btn:before {
        width: 13px;
        height: 13px;
    }
    
    .search-container {
        max-width: 500px;
    }
    
    .search-header h3 {
        font-size: 1.2rem;
    }
    
    .search-group label {
        font-size: 0.9rem;
    }
    
    .search-group input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .search-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    #search-results {
        max-height: 55vh;
    }
    
    .result-container {
        min-height: 260px;
    }
    
    #users-table {
        font-size: 14px;
    }
    
    .view-details-btn {
        padding: 7px 14px;
        font-size: 13px;
    }
    
    .id-card-header {
        padding: 22px 18px;
    }
    
    .avatar {
        width: 90px;
        height: 90px;
    }
    
    .user-name {
        font-size: 17px;
    }
    
    .id-card-body {
        padding: 22px;
        padding-bottom: 65px;
    }
    
    .detail-row {
        margin-bottom: 12px;
        padding-bottom: 8px;
        display: flex;
        justify-content: flex-start;
    }
    .label {
        min-width: 160px;
    }
    
    .value {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-left {
        gap: 1rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .nav-header {
        flex: 1;
        min-width: 0;
    }
    
    .nav-header h1 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .logo {
        height: 35px;
        flex-shrink: 0;
    }
    
    .nav-right {
        gap: 0.8rem;
        flex-shrink: 0;
    }
    
    .nav-about {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .register-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .main-content {
        padding: 1rem 0 1.5rem;
    }
    
    .description-container {
        padding: 0 1rem;
    }
    
    .description-box {
        max-width: 100%;
        padding: 1.2rem;
    }
    
    .description-box h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .description-box > p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .benefits-list {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .gallery-slogan {
        margin-top: 1.2rem;
        padding: 0.9rem;
    }
    
    .gallery-slogan p {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .slogan-tagline {
        font-size: 0.85rem;
    }

    .gallery-item-overlay {
        padding: 0.7rem;
    }
    
    .gallery-item-description {
        font-size: 0.8rem;
    }

    .about-section {
        padding: 2rem 0;
    }
    
    .about-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .about-text {
        padding: 1.4rem;
        border-radius: 12px;
    }
    
    .about-text h3 {
        font-size: 1.4rem;
        margin-top: 1.3rem;
        margin-bottom: 0.7rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.45;
        /* Enable text truncation with ellipsis for longer paragraphs */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .about-features li {
        font-size: 0.95rem;
    }
    
    .feature-icon {
        font-size: 1.2rem;
    }

     .clubs-section {
        padding: 2rem 0;
    }
    
    .clubs-container {
        padding: 0 1rem;
    }
    
    .clubs-section h2 {
        font-size: 1.8rem;
    }
    
    .clubs-intro {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
        max-width: 600px;
    }
    
    .clubs-category {
        margin-bottom: 2rem;
    }
    
    .clubs-category h3 {
        font-size: 1.4rem;
        margin-bottom: 0.9rem;
        gap: 0.6rem;
    }
    
    .clubs-category h3 i {
        font-size: 1.2rem;
    }
    
    .clubs-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.2rem;
    }
    
    .club-item {
        padding: 1.2rem;
    }
    
    .club-icon {
        width: 40px;
        height: 40px;
    }
    
    .club-icon i {
        font-size: 1.1rem;
    }
    
    .club-details h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .club-details p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .form-container {
        flex-direction: column;
        max-width: 600px;
        max-height: 90vh;
    }
    
    .form-description {
        padding: 25px;
        flex: none;
        max-height: 30%;
        overflow-y: auto;
    }
    
    .form-description h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .form-description p {
        font-size: 12px;
        /* Remove ellipsis to allow full reading with scroll */
        line-height: 1.4;
    }
    
    .form-content {
        flex: 1;
        padding: 25px;
        overflow-y: auto; /* Ensure scrolling works */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .form-header h3 {
        font-size: 18px;
    }
    
    .close-btn {
        font-size: 20px;
        width: 30px;
        height: 30px;
    }
    
    label {
        font-size: 12px;
    }
    
    input, select {
        padding: 9px 12px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 10px;
        font-size: 14px;
    }

    .secondary-links {
        gap: 10px;
        margin-top: 14px;
    }
    
    .secondary-btn {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 150px;
    }
    
    .secondary-btn:before {
        width: 12px;
        height: 12px;
    }
    
    .search-container {
        max-width: 90%;
        width: 450px;
    }
    
    .search-header {
        padding: 18px 20px;
    }
    
    .search-header h3 {
        font-size: 1.1rem;
    }
    
    .close-search-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .search-content {
        padding: 20px;
    }
    
    .search-group {
        margin-bottom: 20px;
    }
    
    .search-group label {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .search-group input {
        padding: 11px 14px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 11px;
        font-size: 14px;
    }
    
    #search-results {
        max-height: 50vh;
        gap: 16px;
    }
    
    .result-container {
        min-height: 240px;
        padding: 18px;
    }
    
    .result-container h2 {
        font-size: 17px;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }
    
    #users-table {
        font-size: 13px;
    }
    
    #users-table th, #users-table td {
        padding: 12px;
    }
    
    .view-details-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* ID Card responsive adjustments */
    .id-card {
        flex-direction: column;
        height: auto;
    }
    
    .id-card-header {
        width: 100%;
        padding: 20px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .user-name {
        font-size: 16px;
    }
    
    .id-card-body {
        padding: 20px;
        padding-bottom: 60px;
    }
    
    .detail-row {
        margin-bottom: 10px;
        padding-bottom: 7px;
        display: flex;
        justify-content: space-between;
    }
    
    .label {
        width: 85px;
        font-size: 13px;
    }
    
    .value {
        font-size: 13px;
    }
    
    .back-button {
        margin: 15px 20px 15px auto;
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 7px;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 0.8rem;
    }
    
    .nav-left {
        gap: 0.8rem;
        max-width: 60%;
    }
    
    .nav-header h1 {
        font-size: 0.8rem;
    }
    
    .logo {
        height: 32px;
    }
    
    .nav-right {
        gap: 0.6rem;
        max-width: 40%;
    }
    
    .nav-about {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .register-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .description-box {
        padding: 1rem;
    }
    
    .description-box h2 {
        font-size: 1.3rem;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    
    .benefit-item {
        padding: 0.7rem;
    }
    
    .benefit-text h3 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .benefit-text p {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .cta-section {
        padding: 0.9rem;
    }
    
    .cta-text {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.85rem;
    }

    .gallery-slogan {
        margin-top: 1rem;
        padding: 0.8rem;
    }
    
    .gallery-slogan p {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .slogan-tagline {
        font-size: 0.8rem;
    }

    .about-section {
        padding: 1.8rem 0;
    }
    
    .about-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .about-content {
        padding: 0 0.8rem;
    }
    
    .about-text {
        padding: 1.2rem;
        border-radius: 10px;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
        margin-top: 1.2rem;
        margin-bottom: 0.6rem;
        /* Add ellipsis for very long headings */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .about-text p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        -webkit-line-clamp: 3;
    }
    
    .about-features li {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1.1rem;
    }

    .clubs-section {
        padding: 1.8rem 0;
    }
    
    .clubs-container {
        padding: 0 0.8rem;
    }
    
    .clubs-section h2 {
        font-size: 1.6rem;
        margin-bottom: 0.7rem;
    }
    
    .clubs-intro {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .clubs-category {
        margin-bottom: 1.8rem;
    }
    
    .clubs-category h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        gap: 0.5rem;
    }
    
    .clubs-category h3 i {
        font-size: 1.1rem;
    }
    
    .clubs-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .club-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .club-item:hover {
        transform: translateY(-3px);
    }
    
    .club-icon {
        width: 38px;
        height: 38px;
    }
    
    .club-icon i {
        font-size: 1rem;
    }
    
    .club-details h4 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .club-details p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    #registration-form {
        padding: 15px;
        align-items: flex-start; /* Align to top to maximize visible space */
        padding-top: 5vh; /* Add some space at the top */
    }
    
    .form-container {
        width: 95%;
        max-height: 85vh; /* Increase max height */
        overflow: hidden; /* Hide outer container overflow */
    }
    
    .form-description {
        padding: 20px;
        max-height: 25%;
    }
    
    .form-description h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .form-description p {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .form-content {
        padding: 20px;
        max-height: 75%; /* Ensure content area gets more space */
        overflow-y: auto;
    }
    
    .form-header {
        margin-bottom: 15px;
        position: sticky; /* Keep header visible while scrolling */
        top: 0;
        background: white;
        z-index: 10;
        padding-bottom: 10px;
    }
    
    .form-header h3 {
        font-size: 16px;
    }
    
    .close-btn {
        font-size: 18px;
        width: 28px;
        height: 28px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    input, select {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 5px;
    }
    
    .submit-btn {
        padding: 9px;
        font-size: 13px;
        margin-top: 12px;
        position: sticky; /* Keep submit button visible */
        bottom: 0;
        background: linear-gradient(to right, #2196f3, #0d47a1);
    }

     .secondary-links {
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        align-items: center;
        gap: 10px;
    }
    
    .secondary-btn {
        min-width: 200px; /* Keep full width on mobile for better tap targets */
        width: 80%; /* Use percentage to ensure it fits within the container */
        max-width: 250px; /* Prevent excessive width */
    }
    
    .secondary-btn:before {
        width: 11px;
        height: 11px;
        flex-shrink: 0;
    }
    
    .search-container {
        width: 95%;
        max-width: 100%;
        border-radius: 14px;
    }
    
    .search-header {
        padding: 16px 18px;
    }
    
    .search-header h3 {
        font-size: 1rem;
    }
    
    .close-search-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .search-content {
        padding: 18px;
    }
    
    .search-group {
        margin-bottom: 16px;
    }
    
    .search-group label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .search-group input {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .search-btn {
        padding: 10px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    #search-results {
        max-height: 45vh;
        gap: 14px;
        margin-top: 25px;
    }
    
    .result-container {
        min-height: 220px;
        padding: 16px;
        border-radius: 10px;
    }
    
    .result-container h2 {
        font-size: 16px;
        padding-bottom: 8px;
        margin-bottom: 14px;
    }
    
    /* Table adjustments for small screens */
    #table-results {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #users-table {
        font-size: 12px;
        min-width: 450px; /* Ensure table doesn't get too compressed */
    }
    
    #users-table th, #users-table td {
        padding: 10px;
    }
    
    #users-table th {
        font-size: 12px;
    }
    
    .view-details-btn {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    /* ID Card further adjustments */
    .avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
        border-width: 3px;
    }
    
    .user-name {
        font-size: 15px;
    }
    
    .id-card-body {
        padding: 18px;
        padding-bottom: 55px;
    }
    
    .detail-row {
        margin-bottom: 8px;
        padding-bottom: 6px;
        display: flex;
        flex-direction: column;
    }
    .label {
        margin-bottom: 4px;
    }
    
    .value {
        font-size: 12px;
    }
    
    .back-button {
        margin: 12px 18px 12px auto;
        padding: 7px 14px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    #no-results-msg {
        padding: 16px;
        font-size: 14px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.4rem 0;
    }
    
    .nav-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .nav-left {
        gap: 0.5rem;
        max-width: 55%;
        min-width: 0;
    }
    
    .nav-logos {
        gap: 0.4rem;
        flex-shrink: 0;
    }
    
    .logo {
        height: 28px;
    }
    
    .nav-header {
        min-width: 0;
        overflow: hidden;
    }
    
    .nav-header h1 {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }
    
    .nav-right {
        gap: 0.4rem;
        max-width: 45%;
        flex-shrink: 0;
    }
    
    .nav-about {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .register-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .main-content {
        padding: 0.8rem 0 1.2rem;
    }
    
    .description-container {
        padding: 0 0.8rem;
        margin-top: 0.3rem;
    }
    
    .description-box {
        padding: 0.9rem;
        border-radius: 12px;
    }
    
    .description-box h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .description-box > p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .benefit-item {
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    .benefit-icon {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 0.8rem;
        border-radius: 8px;
    }
    
    .cta-text {
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }

    .gallery-slogan {
        margin-top: 0.9rem;
        padding: 0.7rem;
        border-radius: 8px;
    }
    
    .gallery-slogan p {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .slogan-tagline {
        font-size: 0.75rem;
    }

    .gallery-item-overlay {
        padding: 0.6rem;
    }
    
    .gallery-item-description {
        font-size: 0.75rem;
    }

    .about-section {
        padding: 1.5rem 0;
    }
    
    .about-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .about-content {
        padding: 0 0.6rem;
    }
    
    .about-text {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .about-text h3 {
        font-size: 1.2rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .about-text p {
        font-size: 0.85rem;
        line-height: 1.35;
        margin-bottom: 0.7rem;
        -webkit-line-clamp: 3;
    }
    
    .about-features {
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }
    
    .about-features li {
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .feature-icon {
        font-size: 1rem;
    }

    .clubs-section {
        padding: 1.5rem 0;
    }
    
    .clubs-container {
        padding: 0 0.6rem;
    }
    
    .clubs-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .clubs-intro {
        font-size: 0.85rem;
        margin-bottom: 1.3rem;
        -webkit-line-clamp: 2;
    }
    
    .clubs-category {
        margin-bottom: 1.5rem;
    }
    
    .clubs-category h3 {
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
        gap: 0.4rem;
        padding-bottom: 0.4rem;
    }
    
    .clubs-category h3 i {
        font-size: 1rem;
    }
    
    .clubs-list {
        gap: 0.8rem;
    }
    
    .club-item {
        padding: 0.9rem;
        gap: 0.7rem;
        border-radius: 10px;
    }
    
    .club-item:hover {
        transform: translateY(-2px);
    }
    
    .club-icon {
        width: 35px;
        height: 35px;
    }
    
    .club-icon i {
        font-size: 0.9rem;
    }
    
    .club-details h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .club-details p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    #registration-form {
        padding: 10px;
        padding-top: 4vh;
    }
    
    .loader {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }
    
    .form-container {
        border-radius: 10px;
        max-height: 88vh; /* Increase to use more screen space */
    }
    
    .form-description {
        padding: 15px;
        max-height: 20%;
    }
    
    .form-description h2 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .form-description p {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .form-content {
        padding: 15px;
        max-height: 80%;
    }
    
    .form-header {
        margin-bottom: 12px;
    }
    
    .form-header h3 {
        font-size: 15px;
    }
    
    .close-btn {
        font-size: 16px;
        width: 26px;
        height: 26px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    label {
        font-size: 10px;
    }
    
    input, select {
        padding: 7px 9px;
        font-size: 11px;
    }
    
    .submit-btn {
        padding: 8px;
        font-size: 12px;
        margin-top: 10px;
    }
    
    .required {
        margin-left: 2px;
    }

    .secondary-links {
        gap: 7px;
        margin-top: 10px;
    }
    
    .secondary-btn {
        min-width: unset; /* Remove min-width constraint */
        width: 90%; /* Use percentage width instead */
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .secondary-btn:before {
        width: 10px;
        height: 10px;
    }
    
    .search-container {
        width: 100%;
        border-radius: 12px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .search-header {
        padding: 14px 16px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .search-header h3 {
        font-size: 0.95rem;
    }
    
    .close-search-btn {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
    
    .search-content {
        padding: 16px;
    }
    
    .search-group {
        margin-bottom: 14px;
    }
    
    .search-group label {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
    
    .search-group input {
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 7px;
    }
    
    .search-btn {
        padding: 9px;
        font-size: 12px;
        border-radius: 7px;
    }
    
    #search-results {
        max-height: 40vh;
        gap: 12px;
        margin-top: 20px;
    }
    
    .result-container {
        min-height: 200px;
        padding: 14px;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .result-container h2 {
        font-size: 15px;
        padding-bottom: 7px;
        margin-bottom: 12px;
    }
    
    /* Table adjustments for extra small screens */
    #users-table {
        font-size: 11px;
        min-width: 400px;
    }
    
    #users-table th, #users-table td {
        padding: 8px;
    }
    
    #users-table th {
        font-size: 11px;
    }
    
    /* Adjust column widths for better mobile display */
    #users-table th:nth-child(1),
    #users-table td:nth-child(1) {
        width: 15%; /* Name column */
    }
    
    #users-table th:nth-child(2),
    #users-table td:nth-child(2) {
        width: 10%; /* Email column */
    }
    
    #users-table th:nth-child(3),
    #users-table td:nth-child(3) {
        width: 10%; /* Department column */
    }
    
    #users-table th:nth-child(4),
    #users-table td:nth-child(4) {
        width: 15%; /* Action column */
    }
    
    .view-details-btn {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 5px;
    }
    
    /* ID Card final adjustments */
    .id-card {
        border-radius: 8px;
    }
    
    .id-card-header {
        padding: 16px;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
        border-width: 3px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .id-card-body {
        padding: 16px;
        padding-bottom: 50px;
    }
    
    .detail-row {
        margin-bottom: 7px;
        padding-bottom: 5px;
        display: flex;
        flex-direction: column;
    }
    .label {
        margin-bottom: 3px;
    }
    
    .value {
        font-size: 11px;
    }
    
    .back-button {
        margin: 12px 15px 12px auto;
        padding: 7px 14px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    #no-results-msg {
        padding: 14px;
        font-size: 13px;
        border-radius: 7px;
    }
}

@media (max-width: 400px) {
    .nav-container {
        padding: 0 0.3rem;
        gap: 0.3rem;
    }
    
    .nav-left {
        gap: 0.3rem;
        max-width: 50%;
    }
    
    .nav-logos {
        gap: 0.2rem;
    }
    
    .logo {
        height: 24px;
    }
    
    .nav-header h1 {
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }
    
    .nav-right {
        gap: 0.3rem;
        max-width: 50%;
    }
    
    .nav-about {
        padding: 0.3rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .register-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    .gallery-slogan {
        margin-top: 0.8rem;
        padding: 0.6rem;
    }
    
    .gallery-slogan p {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }
    
    .slogan-tagline {
        font-size: 0.7rem;
    }

    .clubs-section {
        padding: 1.3rem 0;
    }
    
    .clubs-container {
        padding: 0 0.5rem;
    }
    
    .clubs-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .clubs-intro {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .clubs-category {
        margin-bottom: 1.3rem;
    }
    
    .clubs-category h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        gap: 0.3rem;
    }
    
    .clubs-category h3 i {
        font-size: 0.9rem;
    }
    
    .club-item {
        padding: 0.8rem;
        gap: 0.6rem;
    }
    
    .club-icon {
        width: 32px;
        height: 32px;
    }
    
    .club-icon i {
        font-size: 0.85rem;
    }
    
    .club-details h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .club-details p {
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .form-description {
        padding: 12px;
    }
    
    .form-description h2 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .form-description p {
        font-size: 9px;
    }
    
    .form-content {
        padding: 12px;
    }
    
    .form-header h3 {
        font-size: 14px;
    }
    
    .close-btn {
        font-size: 15px;
        width: 24px;
        height: 24px;
    }
    
    label {
        font-size: 9px;
    }
    
    input, select {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .submit-btn {
        padding: 7px;
        font-size: 11px;
    }

    .secondary-links {
        gap: 6px;
        margin-top: 9px;
    }
    
    .secondary-btn {
        width: 95%;
        padding: 7px 10px;
        font-size: 10px;
    }
    
    .secondary-btn:before {
        width: 9px;
        height: 9px;
    }
    
    .search-header {
        padding: 12px 14px;
    }
    
    .search-header h3 {
        font-size: 0.9rem;
    }
    
    .close-search-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    
    .search-content {
        padding: 14px;
    }
    
    .search-group {
        margin-bottom: 12px;
    }
    
    .search-group label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
    
    .search-group input {
        padding: 8px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .search-btn {
        padding: 8px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    #search-results {
        max-height: 35vh;
        gap: 10px;
        margin-top: 18px;
    }
    
    .result-container {
        min-height: 180px;
        padding: 12px;
        border-radius: 7px;
        margin-bottom: 12px;
    }
    
    .result-container h2 {
        font-size: 14px;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }
    
    /* Table final adjustments */
    #users-table {
        font-size: 10px;
        min-width: 350px;
    }
    
    #users-table th, #users-table td {
        padding: 7px;
    }
    
    #users-table th {
        font-size: 10px;
    }
    
    .view-details-btn {
        padding: 3px 6px;
        font-size: 9px;
        border-radius: 4px;
    }
    
    /* ID Card smallest screen adjustments */
    .avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
        border-width: 2px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .id-card-body {
        padding: 14px;
        padding-bottom: 45px;
    }
    
    .detail-row {
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    
    .label {
        width: 70px;
        font-size: 10px;
    }
    
    .value {
        font-size: 10px;
    }
    
    .back-button {
        margin: 10px 12px 10px auto;
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 5px;
        box-shadow: 0 1px 3px rgba(30, 64, 175, 0.15);
    }
    
    #no-results-msg {
        padding: 12px;
        font-size: 12px;
        border-radius: 6px;
    }
}

@media (max-width: 320px) {
    .navbar {
        padding: 0.3rem 0;
    }
    
    .nav-container {
        padding: 0 0.2rem;
        gap: 0.2rem;
    }
    
    .nav-left {
        gap: 0.2rem;
        max-width: 45%;
    }
    
    .nav-logos {
        gap: 0.1rem;
    }
    
    .logo {
        height: 20px;
    }
    
    .nav-header h1 {
        font-size: 0.55rem;
        letter-spacing: 0.1px;
    }
    
    .nav-right {
        gap: 0.2rem;
        max-width: 55%;
    }
    
    .nav-about {
        padding: 0.25rem 0.3rem;
        font-size: 0.6rem;
    }
    
    .register-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }

    .description-container {
        padding: 0 0.5rem;
    }
    
    .description-box {
        padding: 0.7rem;
        border-radius: 10px;
    }
    
    .description-box h2 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .description-box > p {
        font-size: 0.75rem;
        margin-bottom: 0.7rem;
    }
    
    .benefits-list {
        gap: 0.5rem;
        margin-bottom: 0.7rem;
    }
    
    .benefit-item {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .benefit-icon {
        font-size: 0.9rem;
    }
    
    .benefit-text h3 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .benefit-text p {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }
    
    .cta-section {
        padding: 0.6rem;
    }
    
    .cta-text {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .cta-button {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }

    .gallery-slogan {
        margin-top: 0.7rem;
        padding: 0.5rem;
        border-radius: 7px;
    }
    
    .gallery-slogan p {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    
    .slogan-tagline {
        font-size: 0.65rem;
    }

    .gallery-item-overlay {
        padding: 0.5rem;
    }
    
    .gallery-item-description {
        font-size: 0.7rem;
    }

    .about-section {
        padding: 1.2rem 0;
    }
    
    .about-section h2 {
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
    }
    
    .about-content {
        padding: 0 0.5rem;
    }
    
    .about-text {
        padding: 0.8rem;
        border-radius: 7px;
    }
    
    .about-text h3 {
        font-size: 1.1rem;
        margin-top: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .about-text p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
        -webkit-line-clamp: 2;
    }
    
    .about-features {
        gap: 0.3rem;
        margin-bottom: 0.6rem;
    }
    
    .about-features li {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .feature-icon {
        font-size: 0.9rem;
    }

    .clubs-section {
        padding: 1.2rem 0;
    }
    
    .clubs-container {
        padding: 0 0.4rem;
    }
    
    .clubs-section h2 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .clubs-intro {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .clubs-category {
        margin-bottom: 1.2rem;
    }
    
    .clubs-category h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        gap: 0.25rem;
        padding-bottom: 0.3rem;
    }
    
    .clubs-category h3 i {
        font-size: 0.85rem;
    }
    
    .clubs-list {
        gap: 0.7rem;
    }
    
    .club-item {
        padding: 0.7rem;
        gap: 0.5rem;
        border-radius: 8px;
    }
    
    .club-icon {
        width: 30px;
        height: 30px;
    }
    
    .club-icon i {
        font-size: 0.8rem;
    }
    
    .club-details h4 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .club-details p {
        font-size: 0.65rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }

    #registration-form {
        padding: 8px;
        padding-top: 3vh;
    }
    
    .form-container {
        border-radius: 8px;
        max-height: 90vh;
    }
    
    .form-description {
        padding: 10px;
    }
    
    .form-description h2 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .form-description p {
        font-size: 8px;
        line-height: 1.2;
    }
    
    .form-content {
        padding: 10px;
    }
    
    .form-header {
        margin-bottom: 10px;
    }
    
    .form-header h3 {
        font-size: 13px;
    }
    
    .close-btn {
        font-size: 14px;
        width: 22px;
        height: 22px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    label {
        font-size: 8px;
        margin-bottom: 3px;
    }
    
    input, select {
        padding: 5px 7px;
        font-size: 9px;
        border-radius: 4px;
    }
    
    .submit-btn {
        padding: 6px;
        font-size: 10px;
        margin-top: 8px;
        border-radius: 4px;
    }

    .secondary-links {
        gap: 5px;
        margin-top: 8px;
    }
    
    .secondary-btn {
        width: 100%;
        padding: 6px 8px;
        font-size: 9px;
    }
    
    .secondary-btn:before {
        width: 8px;
        height: 8px;
    }
    
    .back-button {
        margin: 8px 8px 8px auto;
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 4px;
        max-width: 80px;
        text-align: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.nav-about:focus,
.register-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom: 2px solid #fff;
    }
    
    .nav-header h1 {
        text-shadow: none;
        font-weight: 700;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}