/* =========================================
   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; }


/* =========================================  DETAILS SECTION STYLING     ========================================= */

/* 1. Main Outer Box (Ek hi box me rahega) */
.contact-container {
    background: rgb(220, 231, 245);
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Soft Shadow */
    border: 1px solid #eef4fa;
}

.contact-container:hover {
    border:#0e4d92 2px solid;
}

.contact-main-title {
    color: #0e4d92;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 2. Grid System (Magic Happens Here) */
.contact-grid-wrapper {
    display: grid;
    /* Big Screen: 2 Columns (2-2 ka pair) */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
}

/* 3. Inner Item Boxes */
.contact-item-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    background-color: #f9fbfd; /* Light Blueish BG like photo */
    transition: transform 0.3s ease;
}

.contact-item-box:hover {
    border-color: #0e4d92;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(14, 77, 146, 0.08);
}

/* 4. Icons */
.icon-box {
    width: 50px;
    height: 50px;
    background-color: #e3f2fd; /* Blue Circle BG */
    color: #0e4d92;
    border-radius: 50%; /* Circle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0; /* Icon pitchke nahi */
}

/* 5. Text Styling */
.info-text h3 {
    color: #0e4d92;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-text p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.info-text a {
    color: #0e4d92;
    text-decoration: none;
    font-weight: 500;
}

.info-text a:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE (Small Screen)
   ========================================= */
@media (max-width: 768px) {
    .contact-container {
        padding: 20px;
        margin: 20px;
    }

    .contact-grid-wrapper {
        /* Mobile: 1 Column (Ek ke niche ek) */
        grid-template-columns: 1fr; 
    }
    
    .contact-item-box {
        padding: 20px;
        /* Mobile par icon upar aur text niche karna ho to 'flex-direction: column' karein,
           Warna photo jaisa rakhne ke liye ise aise hi rahne dein. */
    }
}


/* =========================================
   KEY PERSONNEL LINKS STYLING
   ========================================= */

/* Ye naya class add karein */
.person-link-card {
    text-decoration: none; /* Link ki underline hatane ke liye */
    display: block;        /* Pura box clickable banane ke liye */
    cursor: pointer;       /* Mouse le jane par hath ka nishan aaye */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}

/* Hover Effect: Jab mouse upar layenge */
.person-link-card:hover {
    transform: translateY(-5px); /* Thoda upar uthega */
    box-shadow: 0 8px 20px rgba(14, 77, 146, 0.15); /* Shadow badhegi */
    background-color: #fff;      /* Background white ho jayega */
    border-color: #0e4d92;       /* Border blue ho jayega */
}

/* Text Colors Reset (Kyuki <a> tag text ko blue/purple kar deta hai) */
.person-link-card h3 {
    color: #0e4d92; /* Heading Blue */
}

.person-link-card p {
    color: #555;    /* Normal Text Grey */
    margin-bottom: 4px;
}

.person-link-card strong {
    color: #333;    /* Name Dark Black */
    font-size: 1rem;
}


/* =========================================
   FAQ SECTION STYLING
   ========================================= */

.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.text-center { text-align: center; }

.main-heading {
    color: #0e4d92;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sub-text {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.3rem;
}

/* --- FAQ ITEM --- */
.faq-item {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover{
    border-color: #0e4d92 ;
}

/* Question Header */
.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    background: #fff;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8fbff;
    color: #0e4d92;
}

.faq-question span {
    font-size: 18px;
}

/* Icon (+ / -) */
.faq-question .icon {
    color: #0e4d92;
    background: #e3f2fd;
    width: 30px; 
    height: 30px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Answer Body (Hidden by default) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: #fcfcfc;
    border-top: 1px solid transparent;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

/* --- ACTIVE STATE (Open) --- */
.faq-item.active {
    border-color: #0e4d92;
    box-shadow: 0 5px 15px rgba(14, 77, 146, 0.1);
}

.faq-item.active .faq-question {
    color: #0e4d92;
}

.faq-item.active .icon {
    transform: rotate(45deg); /* Rotates + to x */
    background: #0e4d92;
    color: #fff;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust if answer is very long */
    padding: 20px;
    border-top: 1px solid #eee;
}

/* =========================================
   QUERY FORM STYLING
   ========================================= */

.query-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.text-center { text-align: center; }

/* --- FORM CARD DESIGN --- */
.form-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eef4fa;
}
.form-card:hover {
    border:#0e4d92 2px solid;
}

/* --- GRID LAYOUT (Desktop Magic) --- */
.form-grid {
    display: grid;
    /* Desktop: 2 Barabar Columns */
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

/* Jo fields puri line leni chahiye (Full Width) */
.full-width {
    grid-column: span 2; 
}

/* --- INPUT STYLING --- */
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #8f8f8f;
    border-radius: 6px; /* Photo jaisa curve */
    font-size: 1rem;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: #0e4d92;
    outline: none;
}

/* --- CHECKBOX STYLING FIX --- */
.input-group input[type="checkbox"] {
    width: auto; /* Checkbox chhota hi rahega */
    margin: 0;   /* Extra margin hatayein */
    cursor: pointer;
    box-shadow: none; 
}

.checkbox-group label {
    font-weight: 400;
    color: black;
    display: flex;
    font-weight: 600;
    justify-content: flex-start; /* Force Left Alignment */
    align-items: center;         /* Text aur Box ek line me */
    gap: 12px;                   /* Beech ka gap */
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;            
    width: 100%;
}

.checkbox-group a {
    color: #0e4d92;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: #0e4d92; /* IIT Blue */
    color: white;
    padding: 15px;
    border: none;
    border-radius: 30px; /* Round pill shape */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #0b3d75;
}

/* =========================================
   RESPONSIVE (Mobile View - 1 Column)
   ========================================= */
@media (max-width: 768px) {
    .form-card {
        padding: 20px; 
    }

    .form-grid {
        /* Mobile: Sab 1 Column me */
        grid-template-columns: 1fr; 
    }

    .full-width {
        grid-column: span 1; /* Ab span 1 hi rahega */
    }
}