/*
 * Inner page content styles – Bootstrap 5 compatible
 * KIIT Entrance Wings – Content pages
 */

.page-hero {
    background: linear-gradient(135deg, #001f3f 0%, #195ca8 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 0;
}
.page-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Inner page hero enhancement – use with inner-pages.css */
.page-hero .breadcrumb-inner { background: transparent; padding: 0; margin: 0 0 0.75rem; font-size: 0.875rem; }
.page-hero .breadcrumb-inner .breadcrumb-item a { color: rgba(255,255,255,0.85); text-decoration: none; }
.page-hero .breadcrumb-inner .breadcrumb-item.active { color: #fff; font-weight: 600; }
.page-hero .breadcrumb-inner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

.content-section {
    padding: 3rem 0;
    background: #f8f9fa;
}
.content-section:nth-child(even) {
    background: #fff;
}
.content-section .section-heading {
    color: #001f3f;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #195ca8;
    display: inline-block;
}
.content-section .section-subheading {
    color: #195ca8;
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.content-section p {
    color: #19a621;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.content-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.content-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #195ca8;
    transition: box-shadow 0.3s ease;
}
.content-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.content-card h3 {
    color: #001f3f;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.faculty-list .list-group-item {
    border-left: 3px solid #195ca8;
    margin-bottom: 0.5rem;
}
.faculty-list .subject-badge {
    background: #001f3f;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.anchor-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
}
.anchor-nav .nav-link {
    color: #333;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}
.anchor-nav .nav-link:hover {
    background: #e9ecef;
    color: #195ca8;
}

.achievement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin: 0.25rem;
    font-size: 0.95rem;
}

.gallery-grid .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.gallery-grid .card:hover {
    transform: translateY(-5px);
}
.gallery-grid .card-img-top {
    height: 220px;
    object-fit: cover;
    background: #e9ecef;
}

.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
    border-top: 4px solid #195ca8;
}
.contact-info-card .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #001f3f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.65rem 1rem;
}
.form-control:focus {
    border-color: #195ca8;
    box-shadow: 0 0 0 0.2rem rgba(25, 92, 168, 0.25);
}
.btn-primary {
    background: #001f3f;
    border-color: #001f3f;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
}
.btn-primary:hover {
    background: #195ca8;
    border-color: #195ca8;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    border-top: 4px solid #28a745;
}
.step-card .step-num {
    width: 40px;
    height: 40px;
    background: #001f3f;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.75rem;
}

/* ---- Photo grids inside content cards ---- */
.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
}
.photo-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.photo-grid .col-caption {
    font-size: 0.82rem;
    color: #555;
    text-align: center;
    margin-top: 0.35rem;
}

/* ---- Subject label strip ---- */
.lab-label {
    background: #001f3f;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px 6px 0 0;
    display: inline-block;
    margin-bottom: -1px;
}

/* ---- PDF download cards ---- */
.pdf-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.pdf-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    text-decoration: none;
    color: inherit;
}
.pdf-card .pdf-icon {
    font-size: 2rem;
    color: #dc3545;
    flex-shrink: 0;
}
.pdf-card .pdf-title {
    font-weight: 600;
    color: #001f3f;
    font-size: 0.95rem;
    margin: 0;
}
.pdf-card .pdf-sub {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

/* ============================================================
   CONTACT PAGE – industry-standard redesign
   ============================================================ */

/* Hero */
.contact-hero {
    background: linear-gradient(135deg, #001f3f 0%, #195ca8 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}
.contact-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}
.contact-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0;
}
.breadcrumb-contact { background: transparent; padding: 0; margin: 0 0 0.5rem; }
.breadcrumb-contact .breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-contact .breadcrumb-item.active { color: #fff; }
.breadcrumb-contact .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* Stats bar */
.contact-stats-bar {
    background: #0b2d5e;
    color: #fff;
    padding: 0;
}
.csb-item {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.csb-item i { font-size: 1.3rem; color: #a8d4ff; margin-bottom: 0.15rem; }
.csb-val   { font-size: 0.88rem; font-weight: 700; color: #fff; line-height: 1.2; }
.csb-label { font-size: 0.72rem; color: rgba(255,255,255,0.65); }
.csb-mid   { border-left: 1px solid rgba(255,255,255,0.12); border-right: 1px solid rgba(255,255,255,0.12); }

/* Contact info cards (left column) */
.contact-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #001f3f;
    border-bottom: 3px solid #195ca8;
    display: inline-block;
    padding-bottom: 0.35rem;
    margin-bottom: 0.75rem;
}
.ci-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #195ca8;
    transition: box-shadow 0.2s;
}
.ci-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.10); }
.ci-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: #e8f0fb;
    color: #195ca8;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ci-icon--phone { background: #e8f7ee; color: #1a8a44; }
.ci-icon--mail  { background: #fff3e0; color: #e67e00; }
.ci-icon--visit { background: #fce8e8; color: #c0392b; }
.ci-body h6  { font-weight: 700; color: #001f3f; margin: 0 0 0.25rem; font-size: 0.9rem; }
.ci-body p   { margin: 0; font-size: 0.85rem; color: #444; line-height: 1.55; }
.ci-body a   { color: #195ca8; text-decoration: none; font-weight: 500; }
.ci-body a:hover { text-decoration: underline; }
.ci-badge {
    display: inline-block;
    background: #e8f0fb;
    color: #195ca8;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-top: 0.3rem;
}
.ci-badge--green { background: #e8f7ee; color: #1a8a44; }

/* Quick action buttons */
.btn-contact-primary {
    background: #195ca8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s, transform 0.15s;
}
.btn-contact-primary:hover { background: #0d3d75; color: #fff; transform: translateY(-1px); }
.btn-contact-outline {
    background: transparent;
    color: #195ca8;
    border: 2px solid #195ca8;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
}
.btn-contact-outline:hover { background: #195ca8; color: #fff; }

/* Inquiry Form card */
.contact-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.09);
    overflow: hidden;
}
.cfh {
    background: linear-gradient(135deg, #001f3f, #195ca8);
    color: #fff;
    padding: 1.5rem 1.75rem 1.25rem;
}
.cfh h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 0.3rem; }
.cfh p  { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin: 0; }
.cf-body { padding: 1.5rem 1.75rem; }

/* Floating labels tweak */
.cf-body .form-floating > .form-control,
.cf-body .form-floating > .form-select {
    border: 1.5px solid #d0d8e4;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f8fafd;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cf-body .form-floating > .form-control:focus,
.cf-body .form-floating > .form-select:focus {
    border-color: #195ca8;
    box-shadow: 0 0 0 3px rgba(25,92,168,0.12);
    background: #fff;
}
.cf-body .form-floating > label { font-size: 0.84rem; color: #888; }

/* Submit button */
.btn-submit-inquiry {
    background: linear-gradient(135deg, #001f3f, #195ca8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.15s;
}
.btn-submit-inquiry:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }

.cf-note {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
    text-align: center;
}

/* Success state */
.cf-success {
    padding: 3rem 2rem;
    text-align: center;
    color: #1a8a44;
}
.cf-success h5 { font-weight: 700; margin: 0 0 0.5rem; }
.cf-success p  { color: #555; margin: 0; }

/* Map */
.contact-map-section { background: #f0f4f8; }
.map-header {
    background: #001f3f;
    color: #fff;
    padding: 0.7rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
}
.map-header span { color: #a8d4ff; }
.map-wrapper { line-height: 0; }
.map-wrapper iframe { display: block; }

/* Bottom CTA strip */
.contact-cta-strip {
    background: linear-gradient(135deg, #001f3f 0%, #195ca8 100%);
    color: #fff;
    padding: 3rem 1rem;
}
.contact-cta-strip h4 { font-weight: 700; font-size: 1.4rem; margin-bottom: 0.5rem; }
.btn-cta-white {
    background: #fff;
    color: #001f3f;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    border: none;
    font-size: 0.9rem;
    transition: transform 0.15s;
}
.btn-cta-white:hover { transform: translateY(-2px); color: #001f3f; }
.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Responsive contact */
@media (max-width: 576px) {
    .contact-hero h1 { font-size: 1.5rem; }
    .cf-body { padding: 1.25rem; }
    .cfh { padding: 1.25rem; }
}

/* ============================================================ */

/* ---- Topper info button (below each card) ---- */
.topper-info-btn {
    margin-top: 0.55rem;
    background: linear-gradient(135deg, #001f3f 0%, #195ca8 100%);
    color: #fff;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.35;
}
.topper-info-btn i { flex-shrink: 0; }
.topper-info-btn .topper-info-note {
    font-size: 0.73rem;
    font-weight: 400;
    color: #a8d4ff;
    margin: 0;
}

/* ---- High percentile achievers strip ---- */
.topper-percentile-strip {
    background: #e8f3ff;
    border-left: 4px solid #195ca8;
    border-radius: 8px;
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
    color: #001f3f;
}

/* ---- Photo placeholder slots ---- */
.photo-placeholder {
    width: 100%;
    height: 200px;
    border: 2px dashed #b0bec5;
    border-radius: 8px;
    background: #f1f4f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #90a4ae;
    gap: 0.4rem;
    transition: background 0.2s;
}
.photo-placeholder i { font-size: 2rem; }
.photo-placeholder span { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.3px; }

/* ---- Faculty photo cards ---- */
.faculty-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-left: 4px solid #195ca8;
    height: 100%;
}
.faculty-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #e3eaf5;
}
.faculty-card .fc-info .fc-name { font-weight: 700; color: #001f3f; margin: 0; font-size: 0.95rem; }
.faculty-card .fc-info .fc-sub  { font-size: 0.8rem; color: #195ca8; font-weight: 600; margin: 0.15rem 0 0.25rem; }
.faculty-card .fc-info .fc-qual { font-size: 0.82rem; color: #555; margin: 0; }

/* ---- Topper photo cards ---- */
.topper-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    position: relative;
}
.topper-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.topper-card .topper-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,31,63,0.88) 0%, transparent 100%);
    color: #fff;
    padding: 0.75rem 0.85rem 0.6rem;
}
.topper-card .topper-label .tl-name  { font-weight: 700; font-size: 0.9rem; margin: 0; }

.topper-card .topper-label .tl-clg   {
    font-size: 1rem;
    color: #011931;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    font-family: 'Courier New', Courier, monospace;
}

/* ---- Lightbox modal ---- */
#imgLightbox .modal-body img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* contact-main background (not inside .content-section so needs explicit bg) */
.contact-main { background: #f8f9fa; }

@media (max-width: 991px) {
    /* Stack contact columns naturally via Bootstrap col-lg-* */
    .contact-form-card { margin-top: 0; }
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.4rem; }
    .content-section { padding: 2rem 0; }
    .content-card { padding: 1.25rem; }
    .anchor-nav { position: static; }
    .photo-grid img { height: 150px; }
    .photo-placeholder { height: 150px; }
    .topper-card img { height: 180px; }
    .achievement-badge { font-size: 0.82rem; padding: 0.4rem 0.75rem; }
    .contact-cta-strip h4 { font-size: 1.2rem; }
    .contact-hero h1 { font-size: 1.6rem; }
    .csb-val { font-size: 0.8rem; }
    .csb-label { font-size: 0.68rem; }
    .topper-percentile-strip { font-size: 0.82rem; }
    .faculty-card img { width: 56px; height: 56px; }
}

@media (max-width: 576px) {
    .page-hero h1 { font-size: 1.25rem; }
    .contact-hero h1 { font-size: 1.35rem; }
    .contact-hero-sub { font-size: 0.88rem; }
    .photo-placeholder { height: 130px; }
    .photo-grid img { height: 130px; }
    .topper-card img { height: 160px; }
    .topper-info-btn { font-size: 0.78rem; }
    .achievement-badge { font-size: 0.78rem; padding: 0.3rem 0.6rem; }
    .section-heading { font-size: 1.25rem; }
    .cf-body { padding: 1rem; }
    .cfh { padding: 1rem; }
    .content-card { padding: 1rem; }
    .ci-card { padding: 0.85rem 1rem; }
    .pdf-card { flex-wrap: wrap; }
    .contact-cta-strip { padding: 2rem 1rem; }
    .contact-cta-strip h4 { font-size: 1.1rem; }
    .btn-cta-white, .btn-cta-outline { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
    .csb-val { font-size: 0.72rem; }
    .csb-label { font-size: 0.62rem; }
    .photo-placeholder { height: 110px; }
    .photo-grid img { height: 110px; }
    .topper-card img { height: 140px; }
}
