/* ==========================================
   HOME PAGE SPECIFIC ENHANCED STYLES
   Chaltakhali R.G.B.C. Institution (H.S.)
   ========================================== */

.content-preview {
    min-height: 500px;
}

/* Bold Institutional Main Heading */
.school-hero-header {
    margin-top: 6px;
    margin-bottom: 30px;
}
.school-main-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.35rem;
    font-weight: 900 !important;
    letter-spacing: 0.8px;
    color: #0f172a !important;
    line-height: 1.15;
    text-transform: uppercase;
}
.school-bengali-title {
    letter-spacing: 0.3px;
}
@media (max-width: 768px) {
    .school-main-heading {
        font-size: 1.6rem;
        letter-spacing: 0.4px;
    }
}

/* Institutional Meta Badges (Strictly One Line & Glowing Aesthetics) */
.school-meta-badges {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}
.school-meta-badges .badge {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100%;
}
.hero-established-badge {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96) 0%, rgba(254, 243, 199, 0.60) 50%, rgba(239, 246, 255, 0.96) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    color: #1d4ed8 !important;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.15), 0 0 20px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-established-badge:hover {
    transform: translateY(-1.5px) scale(1.01);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.22), 0 0 28px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    border-color: rgba(59, 130, 246, 0.55) !important;
}
.hero-established-badge .landmark-icon {
    color: #d97706 !important;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.75));
}
.hero-established-badge .glorious-wrapper {
    color: #1e3a8a !important;
    margin-left: 0.32rem;
    font-weight: 700;
}
.hero-established-badge .glowing-years {
    display: inline-block;
    color: #9a3412 !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    border: 1px solid rgba(245, 158, 11, 0.55);
    border-radius: 999px;
    padding: 0.08rem 0.55rem;
    margin-left: 0.2rem;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    animation: radiantGoldPulse 2.4s ease-in-out infinite alternate;
}
@keyframes radiantGoldPulse {
    0% {
        box-shadow: 0 0 6px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.95);
        text-shadow: 0 0 4px rgba(245, 158, 11, 0.35);
        border-color: rgba(245, 158, 11, 0.45);
    }
    100% {
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.90), 0 0 28px rgba(234, 88, 12, 0.40), inset 0 1px 0 rgba(255, 255, 255, 1);
        text-shadow: 0 0 10px rgba(245, 158, 11, 0.95), 0 0 18px rgba(234, 88, 12, 0.55);
        border-color: rgba(234, 88, 12, 0.80);
    }
}
@media (max-width: 576px) {
    .school-meta-badges .badge {
        font-size: 0.70rem !important;
        padding: 0.25rem 0.55rem !important;
    }
    .hero-established-badge .glowing-years {
        padding: 0.04rem 0.4rem;
        font-size: 0.68rem !important;
    }
}
@media (max-width: 400px) {
    .school-meta-badges .badge {
        font-size: 0.58rem !important;
        padding: 0.18rem 0.4rem !important;
    }
    .hero-established-badge .glowing-years {
        padding: 0.02rem 0.3rem;
        font-size: 0.56rem !important;
    }
}

/* Announcement Ticker Bar */
.news-ticker-bar {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
    border-radius: 12px;
    padding: 10px 18px;
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.ticker-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.ticker-marquee {
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 500;
    color: #e2e8f0;
}

/* Top Campus Photo Grid (Strict 1:1 Square Ratio) */
.home-photo-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.home-photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14) !important;
}

.home-grid-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.home-grid-img {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
}
.home-photo-card:hover .home-grid-img {
    transform: scale(1.08);
}

.home-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.65) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-photo-card:hover .home-photo-overlay {
    opacity: 1;
}
.zoom-icon-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(0.85);
    transition: transform 0.3s ease;
}
.home-photo-card:hover .zoom-icon-badge {
    transform: scale(1);
}

.photo-caption-footer {
    background: #ffffff;
    padding: 10px 14px;
    border-top: 1px solid #f1f5f9;
}
.photo-caption-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stat Metrics Cards */
.stat-metric-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.stat-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
    border-color: #dbeafe;
}
.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.stat-number {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

/* HOI Desk Section Modernization */
.hoi-desk-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
    background: #ffffff;
}
.hoi-desk-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    padding: 18px 26px;
}
.hoi-avatar-wrap {
    position: relative;
    display: inline-block;
}
.hoi-avatar-img {
    width: 155px;
    height: 155px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.hoi-verified-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: #10b981;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    font-size: 0.75rem;
}

/* Notice Board Card */
.notice-board-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    height: 100%;
}
.notice-board-header {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: #ffffff;
    padding: 18px 24px;
}
.notice-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 18px;
    transition: background 0.2s ease;
}
.notice-item:last-child {
    border-bottom: none;
}
.notice-item:hover {
    background: #f8fafc;
}
.notice-date-badge {
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.1;
    flex-shrink: 0;
}

/* Interactive Portal Cards */
.portal-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: block;
    height: 100%;
}
.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.11);
    border-color: #cbd5e1;
    text-decoration: none;
}
.portal-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}
.portal-card:hover .portal-icon-wrap {
    transform: scale(1.1) rotate(4deg);
}
.portal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.portal-desc {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
}

/* Lightbox Modal */
#home-lightbox .modal-dialog {
    max-width: 90vw;
}
#home-lightbox-img {
    max-height: 82vh;
    object-fit: contain;
    width: 100%;
    border-radius: 8px;
}
