/* gbs-societies.css - Styles for GBS Societies Page - FIXED VERSION */

/* Banner Sections - No Overlays, Just Images */
.gbs-societies-top-banner,
.gbs-societies-bottom-banner {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.gbs-societies-top-banner img,
.gbs-societies-bottom-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

/* Second Section: Main Introduction with Title, Text and Logo */
.main-intro-section {
    padding: 4rem 0;
    background-color: #ffffff;
    text-align: center;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1E3C72;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.main-text {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* Logo Container with Hairline Box - FIXED: Reduced margin */
.logo-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem; /* REDUCED from 3rem to 1rem */
    margin-bottom: 2rem; /* Added bottom margin for better spacing */
}

.logo-box {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    text-align: center;
}

.logo-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.msf-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Third Section: MSF Description (White Background) - FIXED: Reduced padding */
.msf-section {
    padding: 2rem 0 4rem 0; /* REDUCED top padding from 4rem to 2rem */
    background-color: #ffffff;
    text-align: center;
}

.msf-section .section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1E3C72;
    margin-bottom: 2rem;
    text-align: center;
}

.msf-section .section-text {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* General Section Styles */
.section {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Organizing Body Section Styles - FIXED: Better centering and responsive photos */
.organizing-body-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.organizing-body-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1E3C72;
    text-align: center;
    margin-bottom: 3rem;
}

/* FIXED: Better grid centering and responsive design */
.organizing-body-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; /* REDUCED gap for better fit */
    max-width: 1100px; /* ADDED max-width for better centering */
    margin: 0 auto;
    justify-items: center; /* ADDED: Centers grid items */
}

.member-box {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 1rem;
    background-color: #ffffff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* ADDED: Full width within grid */
    max-width: 250px; /* ADDED: Maximum width to prevent too wide boxes */
}

.member-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* FIXED: Responsive photo dimensions */
.member-photo {
    width: 100%; /* CHANGED: From fixed 270px to 100% */
    max-width: 220px; /* ADDED: Maximum width */
    height: 180px;
    margin: 0 auto 1.5rem; /* ADDED: Center the photo */
    border-radius: 4px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E3C72;
    margin-bottom: 0.5rem;
}

.member-designation {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .organizing-body-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .member-box {
        max-width: 280px;
    }
    
    .member-photo {
        max-width: 240px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .main-text {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .msf-section .section-title {
        font-size: 1.6rem;
        padding: 0 15px;
    }
    
    .msf-section .section-text {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .logo-box {
        padding: 1.5rem;
        max-width: 280px;
        margin: 0 15px;
    }
    
    .msf-logo {
        max-width: 220px;
    }
    
    .main-intro-section {
        padding: 3rem 0;
    }
    
    .msf-section {
        padding: 1.5rem 0 3rem 0; /* ADJUSTED for mobile */
    }
    
    .gbs-societies-top-banner img,
    .gbs-societies-bottom-banner img {
        max-height: 300px;
    }
    
    .organizing-body-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .organizing-body-title {
        font-size: 1.6rem;
    }
    
    .member-photo {
        height: 140px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .main-text {
        font-size: 0.95rem;
    }
    
    .msf-section .section-title {
        font-size: 1.4rem;
    }
    
    .msf-section .section-text {
        font-size: 0.95rem;
    }
    
    .logo-box {
        padding: 1rem;
        max-width: 250px;
    }
    
    .msf-logo {
        max-width: 180px;
    }
    
    .main-intro-section {
        padding: 2.5rem 0;
    }
    
    .msf-section {
        padding: 1rem 0 2.5rem 0; /* ADJUSTED for small mobile */
    }
    
    .gbs-societies-top-banner img,
    .gbs-societies-bottom-banner img {
        max-height: 250px;
    }
    
    .organizing-body-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 300px;
    }
    
    .organizing-body-title {
        font-size: 1.4rem;
    }
    
    .member-box {
        padding: 1.25rem;
        max-width: 280px;
    }
    
    .member-photo {
        height: 160px;
        max-width: 220px;
    }
}