/* General Styles */
:root {
    --primary-bg: #EBCEBF;
    --primary-text: #780929;
    --secondary-bg: #FAFDEA;
    --secondary-text: #162C41;
    --accent-1: #75B3AD;
    --accent-2: #3E95A6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
}

body {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* FrameDosti Theme (No Color Changes) */
body.framedosti {
    background-color: var(--secondary-bg);
    color: var(--secondary-text);
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--primary-text); /* Default header color */
    color: var(--primary-bg);
    min-height: 60px; /* Reduced height */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* FrameDosti Header Color (No Changes) */
body.framedosti header {
    background-color: var(--secondary-text); /* Keep FrameDosti header color */
    color: var(--secondary-bg);
}

.college-logo,
.club-logo {
    flex: 1;
    text-align: center;
}

.logo-img {
    width: 60px; /* Reduced logo size */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-bg);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

/* Navigation Styles */
nav {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 0.5rem;
}

nav a {
    position: relative;
    overflow: hidden;
}

nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--primary-bg);
    transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

nav a {
    color: var(--primary-bg);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 25px;
    font-size: 1.25rem;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.349);
    font-weight: bold;
}

/* FrameDosti Navigation Color (No Changes) */
body.framedosti nav a {
    color: var(--secondary-bg);
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.075); /* Light transparent background */
    color: var(--primary-bg);
    font-weight: bold;
    border-radius: 25px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Initial glow */
    transform: scale(1.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    animation: glowEffect 1.5s infinite alternate ease-in-out;
}


/* Mobile Header Adjustments */
@media (max-width: 768px) {
    header {
        width: 100%;
    max-width: 100vw; /* Ensure full viewport width */
    overflow: hidden;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem;
        min-height: 50px; /* Smaller mobile height */
    }

    .college-logo,
    .club-logo {
        flex: 0 1 auto;
    }

    .logo-img {
        width: 40px; /* Smaller mobile logos */
        height: 40px;
    }

    nav {
        order: 3;
        flex: 1 1 100%;
        padding: 0.5rem 0;
        gap: 0.3rem;
    }

    nav a {
        font-size: 1.0rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Footer Styles */
footer {
    background: var(--accent-1);
    color: var(--primary-text);
    text-align: center;
    padding: 0.8rem 1rem; /* Reduced padding */
    margin-top: auto;
    font-size: 0.85rem;
}

body.framedosti footer {
    background: var(--accent-2);
    color: var(--secondary-text);
}

footer p {
    margin: 0.3rem 0;
    line-height: 1.3;
}

@media (max-width: 480px) {
    footer {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
}

/* Main Content Styles */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    width: 100%; /* Added for full-width foundation */
}

.section {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
    text-align: center;
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.activity-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-2);
}

.activity-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.activity-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    background: var(--primary-text);
    color: var(--primary-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Gradient Animation for FrameDosti Page */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        45deg,
        #EBCEBF,
        #FFD3B6,
        #FFAAA5,
        #75B3AD,
        #3E95A6
    );
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 1rem;
    }

    .activity-grid,
    .gallery-grid {
        gap: 1rem;
    }

    .activity-card,
    .gallery-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .section h2 {
        font-size: 1.5rem;
    }

    .activity-card h3,
    .gallery-item h3 {
        font-size: 1.1rem;
    }

    .activity-card p,
    .gallery-item p {
        font-size: 0.85rem;
    }
}
/* Contact Section */
.contact-section {
    width: 100%;
    max-width: 1200px; /* Match container width */
    margin: 0 auto; /* Center align */
    padding: 2rem 1rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
}

.contact-wrapper {
     grid-template-columns: 1fr;
    max-width: 800px; /* Constrain form width */
    margin: 0 auto; /* Center align */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
}

.contact-info {
    padding-right: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    color: var(--primary-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateX(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .coordinator-profile {
        padding: 1.5rem;
    }
    
    .coordinator-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .coordinators-container {
        gap: 1.5rem;
    }
    
    .coordinator-profile {
        padding: 1rem;
    }
}
/* Coordinators Section */
.coordinators-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.coordinator-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.coordinator-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-text);
}

.coordinator-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coordinator-details h3 {
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.role {
    color: #666;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bio {
    color: #444;
    line-height: 1.6;
    max-width: 600px;
}

/* Contact Section */
.contact-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
}

.contact-info {
    padding-right: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    color: var(--primary-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateX(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .coordinator-profile {
        padding: 1.5rem;
    }
    
    .coordinator-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .coordinators-container {
        gap: 1.5rem;
    }
    
    .coordinator-profile {
        padding: 1rem;
    }
}
/* Achievements Section */
.achievements-section {
    padding: 2rem 0;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.achievement-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-text);
}

.achievement-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.achievement-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.achievement-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-gold { background: #FFD700; color: #000; }
.badge-silver { background: #C0C0C0; color: #000; }
.badge-bronze { background: #CD7F32; color: #fff; }

/* Buttons */
.btn {
    background: var(--primary-text);
    color: var(--primary-bg);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}