/* ==========================================
   ABOUT US PAGE STYLES
   ========================================== */


/* ==========================================
   LEADERSHIP BLURRED BACKGROUND CARDS
   ========================================== */
.leadership-section {
    padding: 60px 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.leadership-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* Removed flex layout */
}

.leadership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(10, 37, 64, 0.25);
}

/* 1. Blurred Background Image Layer */
.leadership-card::before {
    content: "";
    position: absolute;
    /* Expanded by 15px on all sides to hide messy blurred edges */
    top: -15px; left: -15px; right: -15px; bottom: -15px; 
    background-size: cover;
    background-position: center;
    filter: blur(6px); /* Applies the blur effect */
    z-index: 1;
}

/* 2. Dark Navy Overlay (Ensures white text is readable over any image) */
.leadership-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 37, 64, 0.35); 
    z-index: 2;
}

/* Attach the specific background images to each card */
.card-president::before {
    background-image: url('../images/president-bg.jpg');
    background-color: #1a1a1a;
}

.card-director::before {
    background-image: url('../images/director-bg.jpg');
    background-color: #1a1a1a;
}

/* 3. Text Content (Sits above the blur and overlay) */
.leader-text {
    position: relative;
    z-index: 3;
    padding: 55px 60px;
}

.leader-text .sub-heading {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

.leader-text h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    color: var(--white);
    margin: 5px 0 15px 0;
}

.gold-divider-left {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 25px;
    border-radius: 2px;
}

.leader-text p {
    color: #E2E8F0; /* Soft readable white */
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.director-name {
    margin-top: 25px;
    font-size: 1.3rem;
    color: var(--accent-color);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
}

/* Mobile Responsiveness for Leadership Cards */
@media (max-width: 768px) {
    .leader-text {
        padding: 40px 25px;
    }
    .leader-text h2 {
        font-size: 1.8rem;
    }
    .leader-text p {
        font-size: 1rem;
    }
}



/* ==========================================
   ABOUT PARAGRAPH & INFO SECTIONS
   ========================================== */
.about-intro {
    padding: 20px 0 40px 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-intro p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.25rem; /* Slightly increased for better readability in italics */
    line-height: 1.9;
    color: var(--primary-color); /* Matches the navy theme for an elegant touch */
}

.info-sections {
    padding-bottom: 70px;
}

.info-block {
    background: #F8F9FA;
    padding: 35px 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.info-block h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.info-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 0; /* Reset default */
}

/* ==========================================
   HOSTEL GALLERY GRID
   ========================================== */
.hostel-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.hostel-gallery .img-box {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.hostel-gallery .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hostel-gallery .img-box:hover img {
    transform: scale(1.08);
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 992px) {
    .leadership-card, .leadership-card.reverse {
        flex-direction: column;
    }
    
    .leader-image {
        flex: none;
        height: 350px;
    }
    
    .leader-text {
        padding: 30px 25px;
    }

    .hostel-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hostel-gallery {
        grid-template-columns: 1fr;
    }
    
    .info-block {
        padding: 25px 20px;
    }
}