/* =========================================
   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; }

/* =========================================  OVERVIEW ========================================= */

/* =========================================
   2. GRID LAYOUT (Text + Image)
   ========================================= */

/* Ye main wrapper hai jo Text aur Image ko hold karega */
.about-grid-wrapper {
    display: flex;       /* Side-by-side laane ke liye */
    gap: 40px;           /* Text aur Image ke beech 40px ka gap */
    align-items: flex-start; /* Dono ko upar se barabar rakho */
    margin-top: 50px;
    margin-bottom: 10px;
    margin-left: 10px;
}

/* --- LEFT SIDE: TEXT CARD STYLING --- */
.about-text-card {
    flex: 1; /* 50% jagah lega */
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Soft Shadow */
    border: 1px solid #f0f0f0;
    font-family: 'Segoe UI', sans-serif;
}

.card-heading {
    color: #0e4d92;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 5px solid #0e4d92; /* Blue Line Styling */
    padding-left: 15px;
    line-height: 1.2;
}

.card-text {
    line-height: 1.7;
    color: #4b4b4b;
    margin-bottom: 20px;
    text-align: justify;
}

.card-text strong { color: #333; font-weight: 700; }

.card-list { text-align: left; margin-left: 20px; margin-bottom: 25px; }
.card-list li { margin-bottom: 15px; color: #555; font-size: 18px; }
.card-list li strong { color: #444; }

.card-divider { border: 0; border-top: 2px solid #eee; margin: 20px 0; }
.card-footer h4 { color: #0e4d92; font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.card-footer span { color: #0e4d92; font-size: 15px; font-style: italic; }

/* --- RIGHT SIDE: IMAGE STYLING --- */
.about-image-box {
    flex: 1; 
}

.about-image-box img {
    width: 100%;       /* Box ki poori width lega */
    height: 450px;      /* Height automatic set hogi */
    border-radius: 12px; /* Image ke kone gol */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Shadow */
    border: 5px solid #ffffff; /* White Border Frame */
}

/* =========================================
   3. RESPONSIVE (MOBILE) LOGIC
   ========================================= */
@media (max-width: 900px) {
    .about-grid-wrapper {
        /* Mobile par Layout badal kar Column (Vertical) kar do */
        flex-direction: column; 
        gap: 30px;
        
    }

    .about-text-card {
        width: 100%; /* Full Width */
        order: 1;    /* Text upar rahega */
    }

    .about-image-box {
        width: 100%; /* Full Width */
        order: 2;    /* Image Text ke niche aayegi */
    }
}



/* =========================================    3. MISSION & VISION PAGE STYLING    ========================================= */

/* Left Column Container */
.mission-content-col {
    flex: 1; /* 50% width */
    display: flex;
    flex-direction: column;
    gap: 30px; /* Vision aur Mission card ke beech gap */
}

/* Individual Card Design */
.mission-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

/* Hover Effect (Optional - thoda uthega) */
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(14, 77, 146, 0.15); /* Blue glow shadow */
}

/* --- Mission Points Styling --- */
.mission-point {
    margin-bottom: 25px;
    padding-left: 10px; 
}

/* Last point ka margin hata do */
.mission-point:last-child {
    margin-bottom: 0;
}

/* Sub-headings */
.mission-point h3 {
    color: #0e4d92; 
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Segoe UI', sans-serif;
}

.mission-point p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    text-align: justify;
}

/* --- Right Side Image Sticky Effect --- */
/* Agar Text lamba ho to Image scroll karte waqt saath chale */
.sticky-image {
    position: sticky;
    top: 100px; /* Header ke niche ruke */
}

/* --- Responsive Update (Mobile) --- */
@media (max-width: 900px) {
    .mission-content-col {
        width: 100%;
        order: 1; /* Text upar */
    }
    
    .sticky-image {
        position: static; /* Mobile par sticky hatado */
        order: 2; /* Image niche */
    }
}





/* =========================================
   LEADERSHIP SECTION STYLING
   ========================================= */

.leadership-section {
    padding: 0px 0px;
    background-color: #eef5fa; /* Light background */
    font-family: 'Segoe UI', sans-serif;
}

/* --- Centered Heading --- */
.section-header-center {
    text-align: center;
    margin-bottom: 20px;
}

.section-header-center h2 {
    color: #0e4d92;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.header-underline {
    width: 60px;
    height: 4px;
    background-color: #0e4d92;
    margin: 0 auto;
    border-radius: 2px;
}

/* --- GRID LAYOUT (Big Screen Logic) --- */
.leadership-grid {
    display: flex;             /* Side-by-side layout */
    justify-content: center;   /* Center align cards */
    gap: 70px;                 /* Gap between cards */
    flex-wrap: wrap;           /* Allow wrapping on medium screens */
    max-width: 1400px;
    margin: 0 auto;
}

/* --- LEADER CARD (The Button) --- */
/* Update this class */
.leader-card {
    background: #ffffff;
    
    
    flex: 1;            /* Box apne aap jagah lega */
    min-width: 300px;   /* Itna chhota ho sakta hai */
    max-width: 400px;   /* Isse bada nahi hoga */
    
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid transparent;
    transition: all 0.3s ease;
    
    /* Link styling reset */
    text-decoration: none;
    color: inherit;
}



/* Hover Effect - Makes it feel like a button */
.leader-card:hover {
    transform: translateY(-10px);  /* Move up slightly */
    box-shadow: 0 15px 30px rgba(14, 77, 146, 0.15);
    border-top: 5px solid #0e4d92; /* Show blue border on hover for all */
}

/* --- Profile Image --- */
.leader-img-box {
    margin-bottom: 20px;
}

.leader-img-box img {
    width: 150px;
    height: 150px;
    border-radius: 50%;       /* Circle shape */
    object-fit: cover;
    border: 4px solid #eaf6ff; /* Light blue ring */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Text Info --- */
.leader-info h3 {
    color: #0e4d92;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.designation {
    color: #555;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.role-underline {
    width: 100px;
    height: 3px;
    background-color: #0e4d92;
    margin: 0 auto; /* Center the line */
}

/* =========================================
   RESPONSIVE (Small Screen Logic)
   ========================================= */
@media (max-width: 900px) {
    .leadership-grid {
        flex-direction: column; /* Stack vertically */
        align-items: center;    /* Center align the stack */
    }

    .leader-card {
        width: 100%;           /* Full width on mobile */
        max-width: 400px;      /* But don't get too big */
    }
}


/* =========================================
   FORMER DEANS BUTTON & MODAL
   ========================================= */

.former-deans-wrapper {
    text-align: center;
    margin: 40px 0;
}

/* --- 1. Button Styling (Pill Shape) --- */
.former-deans-btn {
    background-color: #0e4d92; /* IIT Blue */
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px; /* Pill Shape */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 77, 146, 0.3);
    transition: transform 0.2s, background 0.2s;
    font-family: 'Segoe UI', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Icon aur Text me gap */
}

.former-deans-btn:hover {
    background-color: #0b3d75; /* Darker Blue */
    transform: translateY(-2px);
}

/* --- 2. Modal Overlay (Background Dim) --- */
.modal-overlay {
    display: none; /* Default Hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Black transparent bg */
    z-index: 1000; /* Sabse upar */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px); /* Piche ka blur effect */
}

/* --- 3. Modal Box (The Window) --- */
.modal-box {
    background: #fff;
    width: 600px;
    max-width: 90%;
    border-radius: 12px;
    overflow: hidden; /* Header corner round rakhne ke liye */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Header */
.modal-header {
    background-color: #0e4d92;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
}

.close-btn:hover { color: #ccc; }

/* Body */
.modal-body {
    padding: 25px;
    max-height: 500px; /* Isse zyada hone par scroll aayega */
    overflow-y: auto;  /* Scroll enable */
}

.modal-subheading {
    color: #0e4d92;
    font-size: 25px;
    margin-bottom: 5px;
}

.modal-divider {
    height: 2px;
    background-color: #0e4d92;
    width: 100%;
    margin-bottom: 20px;
}

/* --- List Cards inside Modal --- */
.dean-list-card {
    background-color: #d4e4f7; /* Very Light Blue */
    border: 1px solid #dbeaff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.dean-name {
    display: block;
    font-size: 18px;
    color: #0e4d92;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
}

.dean-name i {
    font-size: 16px;
    margin-left: 5px;
    color: #888;
}

.dean-tenure {
    display: inline-block;
    background: white;
    border: 1px solid #e0e0e0;
    padding: 4px 12px;
    border-radius: 20px; /* Capsule shape for year */
    font-size: 18px;
    color: #555;
    font-weight: 500;
}


/* =========================================  ABOUT IIT & IIT Jammu ========================================= */


.about-section-wrapper {
    display: flex;             
    align-items: flex-start;   
    gap: 30px;                 
    padding: 20px;
    max-width: 1200px;        
    margin: 0 auto;            
}


.about-text-card {
    flex: 3;                   
    background-color: #fff;    
    padding: 30px;
    border-radius: 12px;       
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    text-align: justify;
}


.heading-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.blue-bar {
    width: 6px;
    height: 30px;
    background-color: #0e4d92; 
    margin-right: 15px;
    border-radius: 3px;
}

.about-text-card h2 {
    color: #0e4d92;
    font-size: 24px;
    margin: 0;
    font-family: sans-serif;
}

.about-text-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #363636;
    margin-bottom: 15px;
    font-family: sans-serif;
}

.about-image-box {
    flex: 2;                  
}


.about-image-box img {
    width: 100%;               
    height: auto;              
    border-radius: 12px;     
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    object-fit: cover;         
}


@media (max-width: 900px) {
    .about-section-wrapper {
        flex-direction: column; 
    }

    .about-text-card,
    .about-image-box {
        flex: auto;             
        width: 100%;           
    }
    
    .about-image-box {
        margin-top: 20px;       
    }
}

