:root {
    --bg-color: #000044; /* Slightly lighter blue */
    --primary-color: #FF3366;
    --accent-color: #8A2BE2;
    --text-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6,
p, span, a, button, input,
.nav-link, .card-content, .info-content,
.description-content, .round-details,
.activity-stats, .presentation-stats,
.gallery-overlay, .stat-info {
    font-family: var(--font-family);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 34, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px; /* Added fixed height */
}

.nav-content {
max-width: 1440px;
margin: 0 auto;
padding: 0.8rem 2rem; /* Reduced vertical padding */
display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Make content fill navbar height */
}

.corner-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 0; /* Removed negative margin */
    padding: 0; /* Removed padding */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Reduced gap */
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-logo span {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
}

.nav-logo span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}
.nav-logo:hover span::after {
    width: 100%;
    box-shadow: 0 0 10px var(--accent-color);

}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -1rem; /* Increased from -0.5rem */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(18, 18, 34, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        margin-right: -1.25rem; /* Increased from -0.75rem */
    }

    .logo-img {
        height: 32px;
    }
    
    .nav-logo span {
        font-size: 1.2rem;
    }

    .nav-content {
        padding: 0.6rem 1.5rem; /* Adjusted padding */
    }

    .nav-links {
        padding: 1rem;
        text-align: center;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 0;
    }

    .hero {
        padding: 5rem 1rem 3rem; /* Adjusted padding for mobile */
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .info-card-section {
        padding: 1rem;
    }

    .info-content {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 0.5rem;
    }

    .activities-tabs {
        flex-wrap: wrap;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .tab-btn {
        width: calc(50% - 0.5rem);
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .activities-grid {
        padding: 1rem;
    }

    .flip-card {
        height: 550px;
        min-height: 550px;
    }

    .rounds-container {
        grid-template-columns: 1fr;
    }

    .round-card {
        margin: 1rem 0;
    }

    .description-grid {
        padding: 0;
    }

    .description-item {
        margin: 1rem 0;
    }

    .image-gallery {
        padding: 1rem;
    }

    .gallery-item {
        aspect-ratio: 3/4;
    }

    .stats-container {
        padding: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .activity-showcase-card .card-content {
        padding: 1.5rem;
    }

    .activity-stats {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .activity-showcase-card {
        margin: 1rem 0;
    }

    .card-icon {
        padding: 1.5rem;
    }

    .flip-card {
        height: 500px;
        min-height: 500px;
    }

    .round-lines {
        max-height: 300px;
    }

    .info-card {
        margin: 0.5rem;
    }

    .register-btn {
        width: 100%;
        padding: 0.8rem;
    }

    .description-content > p {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .activity-stats span {
        width: 100%;
        justify-content: center;
    }

    .info-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding-top: 70px; /* Height of the fixed navbar */
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Slightly reduced for mobile */
    }

    .navbar {
        height: 60px; /* Matches the padding-top */
    }
}

.hero {
    text-align: center;
    padding: 8rem 2rem 4rem; /* Increased top padding to account for fixed navbar */
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 300px; /* Added minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    color: var(--text-color);
    font-size: 3rem;
    margin: 0 0 1rem;
    padding: 0 1rem;
    line-height: 1.2;
    animation: glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    max-width: 800px; /* Added max-width */
}

.hero .tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    margin: 0;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem; /* Adjusted padding */
        min-height: 250px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2.5rem;
        min-height: 200px;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-top: 1rem; /* Added margin top */
    }

    .hero .tagline {
        font-size: 1rem;
    }
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.activity-card {
    background: linear-gradient(145deg, 
        rgba(255, 51, 102, 0.2),  /* Increased opacity from 0.1 */
        rgba(138, 43, 226, 0.2)   /* Increased opacity from 0.1 */
    );
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    animation: fadeUp 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
    border: none;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent 70%
    );
    opacity: 0;
    transform: rotate(45deg);
    transition: all 0.8s ease-out;
}

.activity-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--primary-color);
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(226, 40, 87, 0.2);
}

.activity-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.activity-card i.fa-book {
    animation: bookFlip 3s infinite;
}

@keyframes bookFlip {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

.activity-card:hover i {
    transform: scale(1.2) rotate(360deg);
}

.activity-card h2 {
    color: var (--primary-color);
    margin: 1rem 0;
}

.activity-card h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.cta-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 51, 102, 0.2);
    background: var(--accent-color);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.cta-button:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 1;
    }
    100% {
        transform: scale(20) translate(-50%, -50%);
        opacity: 0;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--primary-color);
    }
    to {
        text-shadow: 0 0 20px var (--primary-color);
    }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.activities-section {
    padding: 4rem 2rem;
    background: #000044; /* Matching the new bg-color */
    position: relative;
    overflow: hidden;
}

.activities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.1), transparent 60%),
                radial-gradient(circle at bottom left, rgba(255, 51, 102, 0.1), transparent 60%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.activities-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 35px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    margin: 0 auto 4rem;
    max-width: 600px;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 1rem 2rem;
    min-width: 120px;
    border-width: 1px;
}

.tab-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.tab-btn:hover::after {
    left: 100%;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: white;
}

.tab-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    opacity: 1;
}

.presentation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(145deg, 
        rgba(255, 51, 102, 0.2),  /* Increased opacity from 0.1 */
        rgba(138, 43, 226, 0.2)   /* Increased opacity from 0.1 */
    );
    height: 100%;
    min-height: 400px;
    justify-content: space-between;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
}

.presentation-card h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .presentation-card h3 {
        font-size: 1.3rem;
        padding: 0 0.25rem;
    }
}

.presentation-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
    width: 100%;
    padding: 0 1rem;
    margin: 1.5rem 0;
}

.presentation-features li {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.presentation-features i {
    font-size: 1rem;
    color: var(--primary-color);
}

presentation-features li:last-child {
    border-bottom: none;
}

.presentation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.3);
}

.presentation-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.08); /* Increased from 0.05 */
    padding: 0.8rem;
    border-radius: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.presentation-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.presentation-stats i {
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.description-section {
    padding: 4rem 2rem;
    background: #000044; /* Matching the new bg-color */
    border-bottom: 2px solid var(--primary-color);
}

.description-container {
    max-width: 1200px;
    margin: 0 auto;
}

.description-title {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.description-content {
    text-align: center;
    margin-bottom: 3rem;
}

.description-content > p {
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.description-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.description-item {
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(145deg, 
        rgba(255, 51, 102, 0.2),  /* Increased opacity from 0.1 */
        rgba(138, 43, 226, 0.2)   /* Increased opacity from 0.1 */
    );
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    animation: fadeUp 0.6s ease-out forwards;
}

.description-item:hover {
    transform: translateY(-5px);
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(255, 51, 102, 0.2);
}

.description-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.description-item h3 {
    color: var(--primary-color);
    margin: 1rem 0;
}

.description-item p {
    color: var(--text-color);
    line-height: 1.5;
}

.rounds-section {
    padding: 4rem 2rem;
    background: #000044; /* Matching the new bg-color */
    border-bottom: 2px solid var(--primary-color);
}

.rounds-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.round-card {
    background: linear-gradient(145deg, 
        rgba(255, 51, 102, 0.2),
        rgba(138, 43, 226, 0.2)
    );
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 320px;
    height: 100%;
    isolation: isolate;
    padding: 3rem 2rem 2rem; /* Increased top padding */
    margin-top: 2rem; /* Added margin-top */
}

.round-number {
    position: absolute;
    top: -1rem; /* Adjusted positioning */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
    z-index: 100;
    min-width: 2.5rem;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
}

@media (max-width: 768px) {
    .rounds-container {
        padding: 1.5rem;
        gap: 2.5rem;  /* Increased gap */
    }

    .round-card {
        padding: 3.5rem 1.5rem 1.5rem; /* Increased top padding for mobile */
        margin-top: 2rem; /* Maintain margin on mobile */
    }

    .round-number {
        top: -0.8rem;
        font-size: 1.1rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .rounds-container {
        padding: 1rem;
        gap: 2rem;
    }

    .round-card {
        padding: 3rem 1.25rem 1.25rem;
        margin-top: 1.75rem;
    }

    .round-number {
        top: -0.7rem;
        font-size: 1rem;
        padding: 0.35rem 1rem;
    }
}

.round-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.2);
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(255, 51, 102, 0.2);
}

.round-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px var(--primary-color);
}

.round-card h3 {
    color: var(--primary-color);
    margin: 1.5rem 0;
    font-size: 1.5rem;
}

.round-details {
    color: var(--text-color);
}

.round-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.round-details ul {
    list-style: none;
    padding: 0;
}

.round-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.round-details i {
    color: var(--primary-color);
}

.activity-rounds {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.rounds-heading {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 3rem 0 2rem;
    text-align: center;
}

.round-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.round-step {
    background: linear-gradient(145deg, rgba(255, 51, 102, 0.1), rgba(138, 43, 226, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.round-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.round-step h4 {
    color: var (--primary-color);
    margin: 1rem 0;
    font-size: 1.2rem;
}

.round-step p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-card-section {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: linear-gradient(145deg, rgba(255, 51, 102, 0.05), rgba(138, 43, 226, 0.05));
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeUp 0.6s ease-out forwards;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.info-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-header h2 {
    color: var(--text-color);
    margin: 0;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    padding-top: 0.5rem;
}

.info-item h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.info-item p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
}

.info-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.register-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

.deadline {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    font-size: 0.9rem;
}

.activity-showcase-card {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(138, 43, 226, 0.1));
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.card-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    padding: 2rem;
    text-align: center;
}

.card-icon i {
    font-size: 3rem;
    color: white;
    transition: transform 0.5s ease;
}

.activity-showcase-card:hover .card-icon i {
    transform: rotateY(360deg);
}

.card-content {
    padding: 2rem;
}

.card-description {
    color: var(--text-color);
    margin: 1rem 0;
    line-height: 1.6;
}

.card-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.card-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.card-features i {
    color: var(--primary-color);
    font-size: 1rem;
}

.card-topics {
    margin: 1.5rem 0;
}

.card-topics h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-topics ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-topics li {
    background: rgba(255, 51, 102, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.card-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

.activity-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.activity-showcase-card {
    background: linear-gradient(145deg, rgba(255, 51, 102, 0.05), rgba(138, 43, 226, 0.05));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-icon.accent {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.card-icon i {
    font-size: 3.5rem;
    color: white;
    transition: transform 0.6s ease;
    position: relative;
    z-index: 1;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    top: -25%;
    left: -25%;
    transition: transform 0.6s ease;
}

.activity-showcase-card:hover .card-icon i {
    transform: rotate(360deg);
}

.activity-showcase-card:hover .card-icon::after {
    transform: scale(1.2);
}

.card-content {
    padding: 2rem;
}

.activity-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08); /* Increased from 0.05 */
}

.activity-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.activity-stats i {
    color: var(--primary-color);
}

.topic-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.tag {
    background: rgba(255, 51, 102, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 51, 102, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 51, 102, 0.2);
    transform: translateY(-2px);
}

.enroll-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.enroll-btn i {
    transition: transform 0.3s ease;
}

.enroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

.enroll-btn:hover i {
    transform: translateX(5px);
}

.activity-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-icon.gradient {
    background: linear-gradient(135deg, #FF3366, #FF6B6B, #8A2BE2);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.activity-showcase-card .topic-tags {
    margin: 1.5rem 0;
}

.activity-showcase-card .tag {
    position: relative;
    overflow: hidden;
}

.activity-showcase-card .tag::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
    transition: transform 0.3s ease;
    transform: scale(0);
}

.activity-showcase-card .tag:hover::before {
    transform: scale(1);
}

.activity-showcase-card .activity-stats {
    padding: 1rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.activity-stats span i {
    animation: pulse 2s infinite;
}

.flip-card {
    perspective: 1500px;
    background: transparent;
    width: 100%;
    height: 600px; /* Increased from 450px */
    cursor: pointer;
    position: relative;
    min-height: 600px; /* Increased from 500px */
    outline: none;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    background: linear-gradient(145deg, 
        rgba(255, 51, 102, 0.2),  /* Increased opacity from 0.1 */
        rgba(138, 43, 226, 0.2)   /* Increased opacity from 0.1 */
    );
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
}

.flip-card-back {
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rounds-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.flip-card.flipped .rounds-info {
    opacity: 1;
}

.rounds-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.round-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 15px;
    margin: 1rem 0;
    position: relative;
    transition: transform 0.3s ease;
}

.round-item:hover {
    transform: translateX(10px);
}

.round-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.flip-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
    background-size: 200% auto;
    background-image: linear-gradient(
        45deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%, 
        var(--primary-color) 100%
    );
    transition: all 0.5s ease;
    margin-top: auto; /* Push button to bottom */
}

.flip-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.flip-btn:hover::after {
    left: 100%;
}

.flip-btn i {
    transition: transform 0.3s ease;
}

.flip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 5px 15px rgba(255, 51, 102, 0.3),
        0 0 20px rgba(138, 43, 226, 0.2);
    letter-spacing: 1px;
}

.flip-btn:hover i {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

.flip-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(255, 51, 102, 0.2);
}

.flip-control {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    transition: opacity 0.3s ease;
    opacity: 0;
    /* Add this line to prevent inheriting the flip rotation */
    transform: rotate(0deg);
}

.flip-card:hover .flip-control,
.flip-card:focus .flip-control {
    opacity: 1;
}

.flip-indicator {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.flip-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.flip-indicator i {
    animation: spin 2s linear infinite;
}

.flip-card.flipped .flip-control {
    transform: rotate(0deg);
}

@keyframes spin {
}

.round-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.round-description p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
    text-align: left;
    margin: 0;
}

.round-description:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.round-lines {
    flex: 1;
    overflow-y: auto;
    margin: 1rem 0;
    max-height: 400px; /* Added max-height */
    padding-right: 10px;
}

.round-lines {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.round-line {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08); /* Increased from 0.05 */
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(0);
    will-change: transform;
    position: relative;
    z-index: 1;
}

.round-line:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.round-line.advanced-level {
    background: linear-gradient(145deg, 
        rgba(244, 67, 54, 0.05), 
        rgba(156, 39, 176, 0.05)
    );
}

.round-line.advanced-level .line-number {
    background: linear-gradient(135deg, #F44336, #9C27B0);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
}

.line-number {
    background: var(--primary-color);
    color: white;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.round-line p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: left;
}

/* Enhanced round line styles */
.round-content {
    flex: 1;
}

.round-content h4 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-count {
    font-size: 0.85rem;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.round-line.basic-level .line-number {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.round-line.intermediate-level .line-number {
    background: linear-gradient(135deg, #FF9800, #FF5722);
}

.round-line.advanced-level .line-number {
    background: linear-gradient(135deg, #F44336, #9C27B0);
}

.level-badge.multi-level {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.2), rgba(244, 67, 54, 0.2));
    color: var(--text-color);
    font-weight: 500;
}

#competitive .activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    padding: 3rem;
    perspective: none;
}

#competitive .flip-card {
    margin: 1rem auto;
    max-width: 400px;
    height: 600px;
    min-height: 600px;
    transform-style: preserve-3d;
    perspective: 2000px;
}

#competitive .flip-card.flipped {
    z-index: 2;
}

#competitive .flip-card-inner {
    position: relative;
    transform-origin: center;
}

#competitive .flip-card:hover {
    z-index: 3;
}

#challenges .activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    padding: 3rem;
    perspective: none;
}

#challenges .flip-card {
    margin: 1rem auto;
    max-width: 400px;
    height: 600px;
    min-height: 600px;
    transform-style: preserve-3d;
    perspective: 2000px;
}

#challenges .flip-card.flipped {
    z-index: 2;
}

#challenges .flip-card-inner {
    position: relative;
    transform-origin: center;
}

#challenges .flip-card:hover {
    z-index: 3;
}

@media (max-width: 768px) {
    .description-section {
        padding: 3rem 1rem;
    }
    
    .description-title {
        font-size: 1.75rem;
    }
    
    .description-content > p {
        font-size: 1rem;
    }
    
    .rounds-container {
        padding: 1rem;
    }
    
    .round-card {
        padding: 1.5rem;
    }

    .activity-rounds {
        padding: 1rem;
    }
    
    .rounds-heading {
        font-size: 1.5rem;
    }

    .info-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }

    .info-card-section,
    .rounds-section,
    .activities-section {
        padding: 1rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .flip-card {
        width: 100%;
    }

    .gallery-section .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .rounds-container {
        flex-direction: column;
    }

    .round-card {
        width: 100%;
        margin: 1rem 0;
    }

    .presentation-card {
        padding: 2rem 1.5rem;
        min-height: 350px;
    }

    .presentation-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0.5rem;
    }

    .presentation-stats span {
        width: 100%;
        justify-content: center;
    }
    
    .presentation-features {
        padding: 0;
    }
    
    .presentation-card i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .activities-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        width: calc(50% - 0.5rem);
        margin: 0.25rem;
    }
}

.participants-section {
    padding: 4rem 2rem;  /* Reduced from 8rem */
    background: linear-gradient(145deg, 
        rgba(255, 51, 102, 0.05), 
        rgba(138, 43, 226, 0.05)
    );
    position: relative;
    overflow: hidden;
    margin: 2rem 0;  /* Reduced from 4rem */
    text-align: center;
}

.participants-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 51, 102, 0.05), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.05), transparent 40%);
    pointer-events: none;
}

.participants-section .section-title {
    font-size: 3rem;
    margin-bottom: 5rem;
    position: relative;
    display: inline-block;
}

.participants-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 51, 102, 0.05), rgba(138, 43, 226, 0.05));
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.3);
}

.stat-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.2), rgba(138, 43, 226, 0.2));
    position: relative;
    z-index: 1;
    animation: pulseGlow 2s infinite;
}

.stat-icon i {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.stat-number {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;  /* Reduced from 4.5rem */
    font-weight: 700;
    margin: 1rem 0;
    text-shadow: none;  /* Removed text shadow */
    animation: shimmer 2s infinite;
    background-size: 200% auto;
    background-image: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--accent-color) 50%,
        var(--primary-color) 100%
    );
}

.stat-info h3 {
    color: var(--primary-color);  /* Changed from white */
    font-size: 1.2rem;  /* Reduced from 1.4rem */
    margin-bottom: 0.5rem;
    text-shadow: none;  /* Removed text shadow */
}

.stat-info p {
    color: var(--text-color);  /* Changed from rgba white */
    font-size: 0.9rem;  /* Reduced from 1rem */
    opacity: 0.8;
}

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 51, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .participants-section {
        padding: 4rem 1rem;
    }

    .participants-section .section-title {
        font-size: 2.5rem;
    }

    .stats-container {
        gap: 2rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }
}

.gallery-section {
    padding: 4rem 2rem;
    background: linear-gradient(145deg, 
        rgba(255, 51, 102, 0.05), 
        rgba(138, 43, 226, 0.05)
    );
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.gallery-overlay p {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-date {
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 1rem;
        gap: 1rem;
    }

    .gallery-overlay {
        padding: 1rem;
    }
}

/* === FOOTER STYLES === */
.dynamic-footer {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, rgba(18, 18, 34, 0.95), rgba(18, 18, 34, 0.98));
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 2rem 0 0 0;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-1);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.footer-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: var(--gradient-1);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
}

.footer-bottom {
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li {
        justify-content: center;
    }

    .footer-form {
        justify-content: center;
    }
}

.math-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px; /* Reduced width */
    height: 35px; /* Reduced height */
    margin-right: 0.5rem; /* Reduced margin */
    position: relative;
}

.sqrt {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
    transform-origin: center;
}

.sqrt .root {
    display: inline-block;
    transform: scale(1.2);
    margin-right: 2px;
}

.sqrt .number {
    font-size: 1.2rem;
    opacity: 0.9;
}

.nav-logo:hover .sqrt {
    animation: mathGlow 1s infinite;
}

@keyframes mathGlow {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 0 2px var(--primary-color));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px var(--accent-color));
    }
    100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 2px var(--primary-color));
    }
}

.corner-logo {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: auto;
    padding-left: 0; /* Removed left padding */
    margin-left: 0; /* Removed negative margin */
    padding: 0; /* Removed padding */
}

.pi-symbol, .sigma-symbol {
    font-size: 1.8rem;
    font-weight: bold;
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pi-symbol {
    top: -5px;
    left: -15px;
    transform: rotate(-15deg);
}

.sigma-symbol {
    bottom: -5px;
    right: -15px;
    transform: rotate(15deg);
}

.nav-logo:hover .pi-symbol {
    transform: rotate(-25deg) scale(1.1);
    opacity: 1;
}

.nav-logo:hover .sigma-symbol {
    transform: rotate(25deg) scale(1.1);
    opacity: 1;
}

.math-symbol {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .pi-symbol, .sigma-symbol {
        font-size: 1.5rem;
    }
    
    .pi-symbol {
        left: -12px;
    }
    
    .sigma-symbol {
        right: -12px;
    }
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.8rem;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.1);
}

.dual-rolling-gallery {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, 
        rgba(255, 51, 102, 0.05), 
        rgba(138, 43, 226, 0.05)
    );
    padding: 4rem 0;
    margin: 2rem 0;
    position: relative;
}

.track-container {
    width: 100%;
    overflow: hidden;
    margin: 2rem 0;
}

.rolling-track-left, .rolling-track-right {
    display: flex;
    width: calc(250px * 6);
    gap: 2rem;
}

.rolling-track-left {
    animation: scrollLeft 40s linear infinite;
}

.rolling-track-right {
    animation: scrollRight 40s linear infinite;
}

.rolling-track-left:hover,
.rolling-track-right:hover {
    animation-play-state: paused;
}

.rolling-item {
    flex: 0 0 250px;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.rolling-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3);
    z-index: 1;
}

.rolling-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rolling-item:hover img {
    transform: scale(1.1);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 3 - 2rem * 3)); }
}

@keyframes scrollRight {
    0% { transform: translateX(calc(-250px * 3 - 2rem * 3)); }
    100% { transform: translateX(0); }
}

@media (max-width: 768px) {
    .rolling-item {
        flex: 0 0 200px;
        height: 150px;
    }
    
    .rolling-track-left,
    .rolling-track-right {
        width: calc(200px * 6);
    }
    
    @keyframes scrollLeft {
        100% { transform: translateX(calc(-200px * 3 - 2rem * 3)); }
    }
    
    @keyframes scrollRight {
        0% { transform: translateX(calc(-200px * 3 - 2rem * 3)); }
    }
}

.gallery-title {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.gallery-title h2 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.gallery-title p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

@media (max-width: 768px) {
    .gallery-title h2 {
        font-size: 2rem;
    }
    
    .gallery-title p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Light Theme Button and Score Color Updates */
body.day-theme .cta-button {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.2);
}

body.day-theme .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.3);
}

body.day-theme .flip-btn {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
}

body.day-theme .flip-btn:hover {
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

body.day-theme .register-btn {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.day-theme .register-btn:hover {
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

body.day-theme .tab-btn.active,
body.day-theme .tab-btn:hover {
    background: #9c27b0;
    border-color: #9c27b0;
}

body.day-theme .activity-showcase-card .stat-number,
body.day-theme .stat-number {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.day-theme .round-number {
    background: #9c27b0;
    color: white;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.3);
}

body.day-theme .activity-stats span i,
body.day-theme .presentation-stats span i {
    color: #9c27b0;
}

body.day-theme .card-btn {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.day-theme .enroll-btn {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.day-theme .activity-showcase-card .card-icon {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.day-theme .stat-icon {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(186, 104, 200, 0.2));
}

body.day-theme .stat-icon i {
    color: #9c27b0;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
}

/* Update activities grid spacing for mobile */
@media screen and (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 90%;
    }

    .activities-grid .activity-card {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
        min-height: 280px;
        height: auto;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .flip-card {
        height: auto;
        min-height: 450px; /* Reduced from 600px */
        perspective: 1000px;
        margin-bottom: 2rem;
    }

    .flip-card-front,
    .flip-card-back {
        min-height: 450px; /* Match flip-card height */
        padding: 1.5rem;
        overflow-y: auto;
    }

    .round-lines {
        max-height: 250px; /* Reduced from 400px */
        overflow-y: auto;
        padding-right: 8px;
        margin: 1rem 0;
        gap: 1rem; /* Reduced from 1.5rem */
    }

    .round-line {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .round-content h4 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .participant-count {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
        margin-top: 0.25rem;
    }

    .round-line p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .flip-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .activities-grid {
        padding: 1rem;
        gap: 1.2rem;
    }

    .flip-card {
        min-height: 400px; /* Further reduced for smaller screens */
    }

    .flip-card-front,
    .flip-card-back {
        min-height: 400px;
        padding: 1.2rem;
    }

    .round-lines {
        max-height: 220px;
    }

    .round-line {
        padding: 0.7rem;
    }

    .flip-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .rounds-info h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

/* Update activities grid spacing for mobile */
@media screen and (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 90%;
    }

    .activities-grid .activity-card {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
        min-height: 280px;
        height: auto;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .activities-grid .activity-card .cta-button {
        width: 100%;
        max-width: none;
        margin: 1rem 0 0.5rem;
        padding: 1rem;
        font-size: 1rem;
    }

    .activities-grid .activity-card i {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .activities-grid .activity-card h2 {
        font-size: 1.4rem;
        margin: 1rem 0;
        text-align: center;
    }

    .activities-grid .activity-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .activities-grid {
        padding: 1rem;
        gap: 1.2rem;
    }

    .activities-grid .activity-card {
        max-width: 100%;
        padding: 1.5rem;
    }

    .activities-grid .activity-card .cta-button {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .activities-grid .activity-card h2 {
        font-size: 1.3rem;
    }

    .activities-grid .activity-card p {
        font-size: 0.95rem;
    }
}

/* Update activities grid spacing for mobile */
@media screen and (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .activities-grid .activity-card {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
        min-height: 280px; /* Set minimum height */
        height: auto; /* Allow height to adjust based on content */
        padding: 1.5rem;
    }

    .activities-grid .activity-card h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .activities-grid .activity-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .activities-grid .activity-card .cta-button {
        width: 100%;
        max-width: 200px;
        margin: 0.5rem auto;
        padding: 0.7rem 1rem;
    }

    .activities-grid .activity-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    .activities-grid {
        padding: 0.8rem;
    }

    .activities-grid .activity-card {
        max-width: 280px;
        padding: 1.2rem;
    }

    .activities-grid .activity-card h2 {
        font-size: 1.2rem;
    }

    .activities-grid .activity-card p {
        font-size: 0.85rem;
    }
}

/* ... existing code ... */

@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .activity-card {
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
    }

    .rounds-container {
        padding: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .description-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .flip-card {
        width: 100%;
        margin: 0.5rem 0;
    }

    .hero {
        padding: 4rem 1rem 2rem;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    .tab-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
        min-width: auto;
    }

    .activities-tabs {
        padding: 0.5rem;
        gap: 0.5rem;
        margin: 1rem auto;
        width: calc(100% - 2rem);
        box-sizing: border-box;
    }

    .presentation-card {
        width: 100%;
        margin: 0.5rem 0;
        padding: 1rem;
    }

    .dual-rolling-gallery {
        padding: 1rem 0;
    }

    .track-container {
        height: 150px;
    }

    .rolling-item {
        width: 150px;
        height: 150px;
    }

    .stats-container {
        padding: 1rem;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    /* Updated mobile menu styles */
    .mobile-menu-bar {
        padding: 0.5rem;
    }

    .mobile-menu-item {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .mobile-menu-item i {
        font-size: 1rem;
    }

    /* Updated chat widget styles */
    .chat-widget {
        width: calc(100% - 20px);
        margin: 0 10px;
        bottom: 70px;
    }

    .chat-toggle {
        bottom: 70px;
        right: 10px;
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .activities-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 calc(50% - 0.5rem);
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-info h3 {
        font-size: 1rem;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Fix for mobile landscape mode */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .hero {
        padding: 3rem 1rem 1.5rem;
    }

    .flip-card {
        height: 400px;
        min-height: 400px;
    }

    .mobile-menu-bar {
        display: none;
    }

    .chat-widget {
        bottom: 10px;
    }

    .chat-toggle {
        bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    #challenges .activities-grid,
    #competitive .activities-grid {
        padding: 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .flip-card {
        width: calc(100% - 1rem);
        margin: 0 0.5rem 1rem;
        min-height: 450px;
        perspective: 1000px;
        position: relative;
    }

    .flip-card-inner {
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.6s;
        transform-origin: center;
    }

    .flip-card-front,
    .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        padding: 1rem;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }

    .activity-showcase-card {
        width: 100%;
        margin: 0;
    }
}

@media screen and (max-width: 480px) {
    .activities-grid {
        padding: 0.5rem;
    }

    .flip-card {
        width: calc(100% - 0.5rem);
        margin: 0 0.25rem 1rem;
    }
}

/* ...existing code... */

@media screen and (max-width: 768px) {
    .activities-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    #challenges .activities-grid,
    #competitive .activities-grid {
        padding: 0.5rem;
        width: 100%;
    }

    .flip-card {
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem 0;
        min-height: 450px;
        perspective: 1000px;
        position: relative;
        box-sizing: border-box;
    }

    .flip-card-inner {
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.6s;
        position: relative;
        box-sizing: border-box;
    }

    .flip-card-front,
    .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        padding: 1rem;
        box-sizing: border-box;
        left: 0;
        top: 0;
    }

    .activity-showcase-card {
        width: 100%;
        height: 100%;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .card-content {
        flex: 1;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .activity-stats {
        margin: 1rem 0;
    }

    .flip-btn {
        width: calc(100% - 2rem);
        margin: 1rem auto;
    }

    .round-lines {
        max-height: 250px;
        margin: 1rem 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 480px) {
    .flip-card {
        min-height: 400px;
    }

    .card-content {
        padding: 0.75rem;
    }

    .activity-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .flip-btn {
        width: calc(100% - 1.5rem);
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

.back-btn {
    width: calc(100% - 2rem);
    margin: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media screen and (max-width: 768px) {
    // ...existing mobile styles...
    
    .flip-card-back .back-btn {
        position: sticky;
        bottom: 1rem;
        width: calc(100% - 2rem);
        margin: 1rem auto;
        padding: 0.8rem;
        font-size: 0.95rem;
        z-index: 10;
        background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    }

    body.day-theme .flip-card-back .back-btn {
        background: linear-gradient(135deg, #9c27b0, #ba68c8);
    }
}

@media screen and (max-width: 480px) {
    // ...existing mobile styles...
    
    .flip-card-back .back-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
        margin: 0.8rem auto;
    }
}

// ...existing code...

.rounds-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .rounds-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem; /* Increased gap between cards */
        margin: 0;
        width: calc(100% - 2rem); /* Create space from edges */
        margin-left: 1rem; /* Push content from left edge */
    }

    .round-card {
        width: 100%;
        margin-bottom: 1.5rem; /* Add space between cards */
        padding: 1.5rem;
        min-height: auto;
        box-sizing: border-box;
        overflow: hidden; /* Prevent content overflow */
    }

    .round-number {
        left: 1rem; /* Adjust badge position */
    }

    .round-details {
        padding: 0.5rem; /* Add internal padding */
    }
}

@media (max-width: 480px) {
    .rounds-container {
        padding: 1rem;
        width: calc(100% - 1.5rem); /* Adjust space from edges */
        margin-left: 0.75rem; /* Push content from left edge */
    }

    .round-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

// ...existing code...
