@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Jaikranti College - Modern Institutional Stylesheet
   Theme: Logo-Inspired Crimson (#990000), Radiant Gold (#f59e0b) & Midnight Navy (#0d1b2a)
   ========================================================================== */

:root {
    --jk-crimson: #990000;
    --jk-crimson-dark: #7a0000;
    --jk-crimson-light: #b31b1b;
    --jk-red: #c62828;
    --jk-orange: #ea580c;
    --jk-gold: #f59e0b;
    --jk-gold-light: #fbbf24;
    --jk-navy: #0d1b2a;
    --jk-navy-light: #1b263b;
    --jk-navy-dark: #070d14;
    --jk-bg-soft: #f8fafc;
    --jk-card-border: #e2e8f0;
    --jk-text-main: #1e293b;
    --jk-text-muted: #64748b;
    --jk-font-main: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    --jk-transition: all 0.25s ease-in-out;
}

body {
    font-family: var(--jk-font-main);
    color: var(--jk-text-main);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= Top Bar ================= */
.jk-topbar {
    background-color: var(--jk-navy);
    color: #e2e8f0;
    font-size: 0.825rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--jk-gold);
}

.jk-topbar a {
    color: #e2e8f0;
    text-decoration: none;
    transition: var(--jk-transition);
}

.jk-topbar a:hover {
    color: var(--jk-gold);
}

.jk-ticker-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.jk-ticker-badge {
    background: linear-gradient(135deg, var(--jk-crimson), var(--jk-red));
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.jk-marquee {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.jk-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ================= Header Brand Bar ================= */
.jk-brand-bar {
    background: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.jk-logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.jk-logo-img {
    height: 85px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
    transition: transform 0.3s ease;
}

@media (max-width: 576px) {
    .jk-logo-img {
        height: 60px;
    }
}

.jk-logo-container:hover .jk-logo-img {
    transform: scale(1.03);
}

.jk-brand-title {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--jk-navy-light);
    font-weight: 700;
    margin: 0;
}

.jk-brand-name {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--jk-crimson);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 2px 0;
}

.jk-brand-subtitle {
    font-size: 0.85rem;
    color: var(--jk-text-muted);
    font-weight: 500;
    margin: 0;
}

.jk-brand-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jk-badge-pill {
    background-color: var(--jk-bg-soft);
    border: 1px solid var(--jk-card-border);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jk-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.jk-badge-pill i {
    color: var(--jk-gold);
    font-size: 1rem;
}

/* ================= Modern Two-Tier Institutional Navbar ================= */
.jk-navbar {
    background: transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    padding: 0;
    z-index: 1030;
}

/* Tier 1: Main Campus & Institutional Navigation (Crimson Gradient) */
.jk-nav-tier1 {
    background: linear-gradient(135deg, var(--jk-crimson), var(--jk-crimson-dark));
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.jk-nav-tier1 #tier1NavList {
    padding-left: 6px;
}

.jk-nav-tier1 .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.81rem;
    padding: 9px 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    white-space: nowrap;
    position: relative;
    transition: var(--jk-transition);
}

.jk-nav-tier1 .nav-link:hover,
.jk-nav-tier1 .nav-link.active {
    color: var(--jk-gold-light) !important;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Tier 2: Academic & Institutional Portals (Deep Navy / Slate Gradient) */
.jk-nav-tier2 {
    background: linear-gradient(90deg, #090d16 0%, #0f172a 35%, #1e293b 70%, #0f172a 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.45);
    padding: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.jk-tier2-badge {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--jk-gold-light);
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.jk-nav-tier2 .nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.77rem;
    padding: 6px 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    position: relative;
    transition: var(--jk-transition);
}

@media (min-width: 1400px) {
    .jk-nav-tier1 .nav-link {
        font-size: 0.84rem;
        padding: 9px 13px !important;
    }
    .jk-nav-tier2 .nav-link {
        font-size: 0.80rem;
        padding: 6px 12px !important;
    }
}

.jk-nav-tier2 .nav-link:hover,
.jk-nav-tier2 .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(245, 158, 11, 0.16);
}

/* Dropdown Menu Styling */
.jk-navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.24);
    background: #ffffff;
    padding: 6px 0;
    margin-top: 1px;
    max-height: 480px;
    overflow-y: auto;
    animation: fadeInDropdown 0.2s ease-in-out;
}

/* Custom scrollbar for long dropdowns like NAAC */
.jk-navbar .dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
.jk-navbar .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.jk-navbar .dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.jk-navbar .dropdown-item {
    color: var(--jk-navy);
    font-weight: 500;
    font-size: 0.84rem;
    padding: 7px 16px;
    transition: var(--jk-transition);
    white-space: normal;
}

.jk-navbar .dropdown-item:hover {
    background: var(--jk-bg-soft);
    color: var(--jk-crimson);
    padding-left: 20px;
}

.jk-btn-admission {
    background: linear-gradient(135deg, var(--jk-gold), var(--jk-orange));
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.80rem !important;
    border-radius: 4px;
    padding: 6px 14px !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
    border: none;
    transition: var(--jk-transition);
    white-space: nowrap;
}

.jk-btn-admission:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
    color: #ffffff !important;
}

/* ================= Hero Carousel with Ken Burns Animation ================= */
.jk-hero-carousel {
    position: relative;
    background-color: var(--jk-navy);
    overflow: hidden;
}

.jk-hero-slide {
    height: 520px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    .jk-hero-slide {
        height: 440px;
    }
}

@media (max-width: 576px) {
    .jk-hero-slide {
        height: 380px;
    }
}

.jk-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item.active .jk-hero-bg {
    transform: scale(1.08);
}

.jk-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(13, 27, 42, 0.92) 0%, rgba(13, 27, 42, 0.72) 55%, rgba(153, 0, 0, 0.45) 100%);
    z-index: 1;
}

.jk-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 760px;
}

.carousel-item.active .jk-hero-tag {
    animation: heroFadeUp 0.6s ease-out 0.15s both;
}

.carousel-item.active .jk-hero-title {
    animation: heroFadeUp 0.7s ease-out 0.3s both;
}

.carousel-item.active .jk-hero-desc {
    animation: heroFadeUp 0.7s ease-out 0.45s both;
}

.carousel-item.active .jk-hero-btns {
    animation: heroFadeUp 0.7s ease-out 0.6s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jk-hero-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--jk-gold), #fbbf24);
    color: var(--jk-navy);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.jk-hero-title {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .jk-hero-title {
        font-size: 1.85rem;
    }
}

.jk-hero-desc {
    font-size: 1.12rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 26px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .jk-hero-desc {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
}

/* Modern Carousel Indicators */
.jk-hero-indicators {
    margin-bottom: 3.5rem;
    z-index: 5;
}

.jk-hero-indicators [data-bs-target] {
    width: 12px;
    height: 6px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
    margin: 0 5px;
    transition: all 0.4s ease;
}

.jk-hero-indicators .active {
    width: 34px;
    background-color: var(--jk-gold);
}

/* Glassmorphism Controls */
.jk-hero-ctrl {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    transition: var(--jk-transition);
}

.jk-hero-ctrl:hover {
    background: var(--jk-crimson);
    border-color: var(--jk-crimson);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* ================= Institutional Leadership / Member Cards ================= */
.jk-member-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.jk-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.jk-member-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f8fafc;
    overflow: hidden;
}

.jk-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.jk-member-card:hover .jk-member-photo {
    transform: scale(1.04);
}

.jk-member-details {
    padding: 12px 12px 14px;
    background: #ffffff;
    border-top: 3px solid var(--jk-crimson);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.jk-member-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--jk-navy);
    margin-bottom: 2px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.jk-member-designation {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--jk-crimson);
    margin-bottom: 3px;
    text-transform: capitalize;
}

.jk-member-organization {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.35;
}

/* Backwards compatibility aliases */
.jk-executive-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: all 0.35s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.jk-executive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}
.jk-exec-photo-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}
.jk-exec-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.jk-exec-body {
    padding: 12px 12px 14px;
    background: #ffffff;
    border-top: 3px solid var(--jk-crimson);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}
.jk-exec-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--jk-navy);
    margin-bottom: 2px;
    text-transform: uppercase;
}
.jk-exec-role {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--jk-crimson);
    margin-bottom: 3px;
    text-transform: capitalize;
}
.jk-exec-org {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ================= About Section Photo Frame ================= */
.jk-about-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.jk-about-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.jk-about-frame:hover .jk-about-img {
    transform: scale(1.04);
}

.jk-about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-left: 5px solid var(--jk-crimson);
}

/* ================= Jaikranti Campus Pillars ================= */
.jk-campus-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.jk-campus-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.jk-campus-photo-box {
    position: relative;
    width: 100%;
    height: 135px;
    background: #f1f5f9;
    overflow: hidden;
}

.jk-campus-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.jk-campus-card:hover .jk-campus-img {
    transform: scale(1.05);
}

.jk-campus-icon-wrap {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid #ffffff;
    z-index: 2;
    transition: transform 0.3s ease;
}

.jk-campus-card:hover .jk-campus-icon-wrap {
    transform: translateX(-50%) scale(1.1);
}

.jk-campus-body {
    padding: 28px 18px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.jk-campus-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--jk-navy);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.jk-campus-desc {
    font-size: 0.84rem;
    color: var(--jk-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}

.jk-campus-tag {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
}

/* ================= Academic Infrastructure & Facility Cards ================= */
.jk-facility-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.jk-facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.jk-facility-photo-box {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.jk-facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.jk-facility-card:hover .jk-facility-img {
    transform: scale(1.08);
}

.jk-facility-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.jk-facility-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jk-facility-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jk-navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jk-facility-desc {
    font-size: 0.875rem;
    color: var(--jk-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ================= Hostel Photo Showcase ================= */
.jk-hostel-showcase {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 25px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.jk-hostel-header {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: #ffffff;
    padding: 22px 20px 18px;
    text-align: center;
    border-bottom: 3px solid var(--jk-gold);
}

.jk-hostel-motto {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: var(--jk-gold-light);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.jk-hostel-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #ffffff;
}

.jk-hostel-body {
    padding: 24px 22px;
}

.jk-hostel-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jk-hostel-feature-list li {
    padding: 8px 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed #f1f5f9;
}

.jk-hostel-feature-list li i {
    color: #16a34a;
    font-size: 1rem;
}

.jk-hostel-doctor-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.jk-hostel-doctor-img {
    max-height: 130px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

/* 5 Thumbnails Row - Exact fit at 140-160px natural resolution */
.jk-hostel-gallery {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.jk-hostel-thumb-item {
    flex: 0 0 calc(20% - 12px);
    max-width: 160px;
    min-width: 110px;
    text-align: center;
}

.jk-hostel-thumb-frame {
    width: 100%;
    height: 115px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.jk-hostel-thumb-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border-color: var(--jk-crimson);
}

.jk-hostel-thumb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.jk-hostel-thumb-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    margin-top: 6px;
    line-height: 1.25;
}

.jk-hostel-footer {
    background: linear-gradient(135deg, var(--jk-crimson), #800000);
    color: #ffffff;
    padding: 16px 20px;
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Backward compatibility */
.jk-hostel-photo {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-align: center;
}
.jk-hostel-photo img {
    max-width: 100%;
    height: 115px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ================= Quick Action Cards ================= */
.jk-quick-cards-wrapper {
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.jk-quick-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--jk-card-border);
    transition: var(--jk-transition);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.jk-quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(153, 0, 0, 0.12);
    border-color: var(--jk-gold);
    color: inherit;
}

.jk-quick-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.jk-icon-crimson { background: rgba(153, 0, 0, 0.1); color: var(--jk-crimson); }
.jk-icon-gold    { background: rgba(245, 158, 11, 0.15); color: var(--jk-gold); }
.jk-icon-navy    { background: rgba(13, 27, 42, 0.1); color: var(--jk-navy); }
.jk-icon-green   { background: rgba(16, 185, 129, 0.12); color: #10b981; }

.jk-quick-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--jk-navy);
}

.jk-quick-card p {
    font-size: 0.825rem;
    color: var(--jk-text-muted);
    margin: 0;
}

/* ================= Section Headers ================= */
.jk-section {
    padding: 70px 0;
}

.jk-section-compact {
    padding: 40px 0;
}
.jk-section-compact .jk-section-title {
    margin-bottom: 25px;
}

.jk-section-soft {
    background-color: var(--jk-bg-soft);
}

.jk-section-title {
    text-align: center;
    margin-bottom: 45px;
}

.jk-section-tag {
    color: var(--jk-crimson);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.825rem;
    margin-bottom: 6px;
    display: block;
}

.jk-section-heading {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--jk-navy);
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 12px;
}

.jk-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--jk-crimson), var(--jk-gold));
    border-radius: 2px;
}

.jk-section-desc {
    color: var(--jk-text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ================= Stat Counters ================= */
.jk-stats-strip {
    background: linear-gradient(135deg, var(--jk-navy), var(--jk-navy-light));
    color: #ffffff;
    padding: 48px 0;
}

.jk-stat-item {
    text-align: center;
    padding: 12px;
}

.jk-stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--jk-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.jk-stat-label {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================= Program / Course Cards ================= */
.jk-course-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--jk-card-border);
    padding: 24px;
    height: 100%;
    transition: var(--jk-transition);
    position: relative;
    overflow: hidden;
}

.jk-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--jk-crimson), var(--jk-gold));
    opacity: 0;
    transition: var(--jk-transition);
}

.jk-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.jk-course-card:hover::before {
    opacity: 1;
}

.jk-course-badge {
    background: rgba(153, 0, 0, 0.08);
    color: var(--jk-crimson);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.jk-course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jk-navy);
    margin-bottom: 10px;
}

.jk-course-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    font-size: 0.88rem;
    color: var(--jk-text-muted);
}

.jk-course-features li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jk-course-features li i {
    color: #10b981;
}

/* ================= Admission Form Modern Styling ================= */
.jk-form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--jk-card-border);
    padding: 35px;
}

.jk-form-header {
    background: linear-gradient(135deg, var(--jk-crimson), var(--jk-navy));
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jk-form-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jk-navy);
    border-bottom: 2px solid var(--jk-gold);
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jk-form-section-title i {
    color: var(--jk-crimson);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--jk-navy);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--jk-crimson);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    padding: 10px 14px;
    font-size: 0.925rem;
    transition: var(--jk-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--jk-crimson);
    box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.15);
}

.jk-btn-submit {
    background: linear-gradient(135deg, var(--jk-crimson), var(--jk-crimson-dark));
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 36px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.3);
    transition: var(--jk-transition);
}

.jk-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(153, 0, 0, 0.4);
    color: #ffffff;
}

/* ================= Modern Footer ================= */
.jk-footer {
    background-color: var(--jk-navy);
    color: #cbd5e1;
    padding: 60px 0 25px 0;
    border-top: 4px solid var(--jk-gold);
}

.jk-footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.jk-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--jk-gold);
}

.jk-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jk-footer-links li {
    margin-bottom: 10px;
}

.jk-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--jk-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jk-footer-links a:hover {
    color: var(--jk-gold);
    transform: translateX(4px);
}

.jk-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.jk-footer-contact li {
    margin-bottom: 14px;
    display: flex;
    gap: 12px;
}

.jk-footer-contact i {
    color: var(--jk-gold);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.jk-footer-bottom {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ================= Floating Apply Pill ================= */
.jk-floating-apply {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
}

.jk-floating-apply a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--jk-crimson), #e11d48);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4);
    transition: var(--jk-transition);
    animation: pulseApply 2.5s infinite;
}

.jk-floating-apply a:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.6);
}

@keyframes pulseApply {
    0%   { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* ================= Dynamic DB Content Modern Styling & Normalization ================= */
.dynamic-content {
    font-family: var(--jk-font-main, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    word-break: break-word;
}

/* Enforce fluid sizing so legacy fixed widths (e.g. 1312px) never cause horizontal scroll */
.dynamic-content,
.dynamic-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Hide legacy template inner banners, old breadcrumbs, and redundant headings */
.dynamic-content .kf_inr_banner,
.dynamic-content .kf_inr_ban_des,
.dynamic-content .kf_inr_breadcrumb {
    display: none !important;
}

.dynamic-content .kf_content_wrap,
.dynamic-content .container,
.dynamic-content .row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Normalize old Microsoft Word / WYSIWYG fonts */
.dynamic-content p.MsoNormal,
.dynamic-content p,
.dynamic-content span,
.dynamic-content font,
.dynamic-content td,
.dynamic-content th,
.dynamic-content li,
.dynamic-content div {
    font-family: inherit !important;
    letter-spacing: normal !important;
}

.dynamic-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #334155;
    font-size: 1.02rem;
}

.dynamic-content p:last-child {
    margin-bottom: 0;
}

/* Headings normalization */
.dynamic-content h1,
.dynamic-content h2,
.dynamic-content h3,
.dynamic-content h4,
.dynamic-content h5,
.dynamic-content h6 {
    color: var(--jk-navy, #0f172a) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-top: 1.75rem !important;
    margin-bottom: 1rem !important;
}

.dynamic-content h1 {
    font-size: 1.85rem !important;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.6rem;
}

.dynamic-content h2 {
    font-size: 1.55rem !important;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.dynamic-content h3 {
    font-size: 1.35rem !important;
    color: var(--jk-crimson, #990000) !important;
}

.dynamic-content h4 {
    font-size: 1.2rem !important;
}

.dynamic-content h5 {
    font-size: 1.05rem !important;
}

/* Responsive, Modern Institutional Tables */
.dynamic-content .table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.dynamic-content table {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
    background-color: #ffffff !important;
}

.dynamic-content table th {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 16px !important;
    border: 1px solid #334155 !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

.dynamic-content table td {
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
    background-color: #ffffff;
    line-height: 1.6 !important;
}

.dynamic-content table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

.dynamic-content table tbody tr:hover td {
    background-color: #f1f5f9 !important;
}

/* Responsive Images & Embedded Media */
.dynamic-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin: 12px 0;
    display: inline-block;
}

/* Lists styling */
.dynamic-content ul,
.dynamic-content ol {
    padding-left: 1.75rem !important;
    margin-bottom: 1.25rem !important;
}

.dynamic-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #334155;
}

/* Links */
.dynamic-content a {
    color: var(--jk-crimson, #990000);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--jk-transition);
}

.dynamic-content a:hover {
    color: #b91c1c;
    text-decoration: none;
}

/* Blockquotes / Callouts */
.dynamic-content blockquote {
    border-left: 4px solid var(--jk-crimson);
    padding: 14px 20px;
    margin: 1.5rem 0;
    background-color: #fdf2f2;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}
