/* =========================================
   1. BANNER STYLING (Blue Header)
   ========================================= */
.page-banner {
    background-color: #0e4d92;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    opacity: 0.15;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    
}

.banner-content h1 { font-size: 3rem; font-weight: 700; margin-bottom: 10px; color: white;}
.banner-content p { font-size: 1.1rem; color: #dbeaff;font-style: italic; }



/* =========================================  1. CLUBS PAGE STYLING     ========================================= */

.clubs-section {
    padding: 60px 20px;
    /* background-color: #f9fbfd; */
    max-width: 1400px;
    margin: 0 auto;
}

/* --- GRID SYSTEM (The Magic Part) --- */
.clubs-grid-container {
    display: grid;
    /* Desktop: 3 Columns */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* --- CARD DESIGN (Matches your Image) --- */
.club-card {
    background: white;
    border-radius: 12px;
    overflow: hidden; /* Ensures image stays inside rounded corners */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.club-card:hover {
    transform: translateY(-10px); /* Lift up effect */
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border: #0e4d92 1.5px solid;
}

/* Image Area */
.club-image {
    width: 100%;
    height: 250px;  
    object-fit: cover; 
    background-color: #fff; /* Light background for logo */
    padding: 0px;
    display:block;   /* Extra gap hatane ke liye */
}

/* Text Content */
.club-info {
    padding: 25px;
}

.club-title {
    color: #0e4d92; /* IIT Blue */
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.club-category {
    color: #0e4d92;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.club-desc {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* =========================================
   RESPONSIVE (Mobile View)
   ========================================= */
@media (max-width: 900px) {
    .clubs-grid-container {
        /* Mobile: 1 Column */
        grid-template-columns: 1fr; 
        gap: 20px;
    }
}


/* =========================================  2. FEST PAGE STYLING     ========================================= */

.fest-section {
    max-width: 1200px;
    margin: 0 auto 60px auto; /* Bottom margin for next fest gap */
    background: #e8f1f8;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Optional: Card look */
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #0e4d92;
}

.fest-section:hover{
    border: 2px solid #0e4d92;
}
.fest-banner {
    position: relative;
}
/* 1. Banner Image */
.fest-banner img {
    width: 100%;
    height: 250px;
    max-height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

/* 2. Layout Wrapper */
.fest-content-wrapper {
    padding: 30px;
    
    /* DESKTOP MAGIC: Side by Side */
    display: flex;
    align-items: center; /* Vertical Center */
    gap: 40px;
}

/* 3. Text Section */
.fest-info {
    flex: 1; /* 50% width */
}

.fest-title {
    color: #0e4d92;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.fest-desc {
    color: #4b4a4a;
    font-size: 18px;
    line-height: 1.7;
    text-align: justify;
}

/* 4. Gallery Grid (Right Side) */
.fest-gallery-grid {
    flex: 1; /* 50% width */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Photos per row */
    gap: 12px;
}

.fest-gallery-grid img {
    width: 100%;
    height: 100px; /* Choti height grid ke liye */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.fest-gallery-grid img:hover {
    transform: scale(1.05);
}

/* =========================================
   RESPONSIVE (Mobile View - Photo 2 Style)
   ========================================= */
@media (max-width: 900px) {
    .fest-section {
        /* Upar 0, Right 15px, Niche 40px, Left 15px */
        margin: 0px 15px 15px 15px; 
        width: auto; /* Width auto kar dein taaki margin kaam kare */
    }
    .fest-banner img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}
    .fest-content-wrapper {
        flex-direction: column; /* Stack vertically */
        padding: 10px;
        
    }

    .fest-info, .fest-gallery-grid {
        flex: auto;
        width: 100%; /* Full width le lo */
    }

    .fest-gallery-grid {
        margin-top: 20px;
        /* Mobile par bhi 3 columns hi rakhein taaki grid tight dikhe */
        grid-template-columns: repeat(3, 1fr); 
    }
}


/* =========================================  3. Sport & Recreation PAGE STYLING     ========================================= */


.sports-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.section-header {
    margin-bottom: 40px;
}

.main-heading {
    color: #0e4d92;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    border-bottom: 3px solid #0e4d92; /* The blue underline */
    padding-bottom: 5px;
}




.sub-text {
    color: #5e5e5e;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- GRID SYSTEM --- */
.sports-grid-container {
    display: grid;
    /* Big Screen: 2 Columns (Matches Photo 2) */
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px;
}

/* --- CARD DESIGN --- */
.sport-card {
    background: white;
    border-radius: 20px; /* Rounder corners like image */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(14, 77, 146, 0.1); /* Blue-ish shadow */
    border: 1px solid #eef4fa;
    transition: transform 0.3s ease;
}

.sport-card:hover {
    transform: translateY(-8px);
    border: 2px solid #0e4d92;
}

.sport-image {
    width: 100%;
    height: 220px; /* Banner style height */
    object-fit: cover;
    display: block;
}

.sport-info {
    padding: 25px;
}

.sport-title {
    color: #0e4d92;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.sport-subtitle {
    color: #0e4d92;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}


.sport-desc {
    color: #464545;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   RESPONSIVE (Mobile - Photo 1)
   ========================================= */
@media (max-width: 768px) {
    .sports-grid-container {
        grid-template-columns: 1fr; /* 1 Column Stack */
        gap: 30px;
    }
    
    .sport-image {
        height: 180px;
    }
}


/* =========================================
   SPORTS CLUBS GRID (3 Columns)
   ========================================= */

.sports-clubs-grid-container {
    display: grid;
    /* Desktop: 3 Columns (Photo 1 ki tarah) */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* --- CLUBS IMAGES FIX --- */
/* Clubs ki photos real hoti hain, isliye unhe fixed height aur cover dena behtar hai taaki grid tute nahi */
.sports-clubs-grid-container .sport-image {
    height: 220px;       /* Fixed Height */
    object-fit: cover;   /* Photo box ko pura bharegi (Photo 1 ki tarah) */
    border-radius: 20px 20px 0 0;
}

/* =========================================
   RESPONSIVE (Mobile - Photo 2)
   ========================================= */
@media (max-width: 900px) {
    .sports-clubs-grid-container {
        grid-template-columns: 1fr; /* Mobile par 1 ke niche 1 */
        gap: 30px;
    }
}


/* =========================================
   SPORTS FACILITIES GRID (3 Columns)
   ========================================= */

.sports-facilities-grid-container {
    display: grid;
    /* Desktop: 3 Columns (Photo 2 ki tarah) */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* --- FACILITIES CARD DESIGN --- */
.facility-card {
    background: white;
    border-radius: 20px; /* Rounder corners like image */
    padding: 30px;
    box-shadow: 0 5px 20px rgba(14, 77, 146, 0.1); /* Blue-ish shadow */
    border: 1px solid #eef4fa;
    transition: transform 0.3s ease;
    text-align: center;
}

.facility-card:hover {
    transform: translateY(-8px);
    border: 2px solid #0e4d92;
}

.facility-title {
    color: #0e4d92;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.facility-desc {
    color: #3b3b3b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   RESPONSIVE (Mobile - Photo 1)
   ========================================= */
@media (max-width: 900px) {
    .sports-facilities-grid-container {
        grid-template-columns: repeat(2, 1fr); /* Mobile par 1 ke niche 1 */
        gap: 30px;
    }
}


/* =========================================  2. Cultural Events PAGE STYLING     ========================================= */

.cultural-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

/* --- GRID SYSTEM (3 Columns like Photo 2) --- */
.cultural-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* --- CARD DESIGN --- */
.cultural-card {
    background: rgb(255, 255, 255);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(14, 77, 146, 0.1);
    border: 1px solid #eef4fa;
    transition: transform 0.3s ease;
}

.cultural-card:hover {
    transform: translateY(-8px);
    border: 2px solid #0e4d92;
}

.cultural-image {
    width: 100%;
    height: 220px; 
    object-fit: cover; /* Ensures photo fills the box completely */
    display: block;
}

.cultural-info {
    padding: 25px;
}

.cultural-title {
    color: #0e4d92;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.cultural-subtitle {
    color: #0e4d92;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.cultural-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   RESPONSIVE (Mobile - Photo 1)
   ========================================= */
@media (max-width: 900px) {
    .cultural-grid-container {
        grid-template-columns: 1fr; /* 1 Column Stack */
        gap: 30px;
    }
}




/* =========================================
   RESIDENTIAL PAGE STYLING
   ========================================= */

.residential-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- GRID SYSTEM (3 Columns like Photo 2) --- */
.residential-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* --- CARD DESIGN --- */
.hostel-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eef4fa;
    transition: transform 0.3s ease;
    text-align: center;
}

.hostel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border: 2px solid #0e4d92;
}

.hostel-image {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    display: block;
}

.hostel-info {
    padding: 25px;
}

.hostel-title {
    color: #0e4d92;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.hostel-type {
    color: #0e4d92;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.hostel-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =========================================
   RESPONSIVE (Mobile - Photo 1)
   ========================================= */
@media (max-width: 900px) {
    .residential-grid-container {
        grid-template-columns: 1fr; /* 1 Column Stack */
        gap: 30px;
    }
}