/* Tapasvi College — Modern Homepage UI */

:root {
    --tc-primary: #0091cd;
    --tc-primary-dark: #0077a8;
    --tc-accent: #ff6b35;
    --tc-gold: #f4a100;
    --tc-dark: #1a2b3c;
    --tc-muted: #6c757d;
    --tc-radius: 14px;
    --tc-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --tc-dashed-border: 2px solid rgba(0, 145, 205, 0.22);
    --tc-box-border: 2px solid rgba(0, 145, 205, 0.18);
    --tc-box-radius: 14px;
    --tc-box-shadow: 0 4px 20px rgba(0, 145, 205, 0.07);
}

/* ── Soft box system — 2px border + background (no heavy dashed) ─ */
.hm-dashed-box {
    background: #fff;
    border: var(--tc-box-border);
    border-radius: var(--tc-box-radius);
    box-shadow: var(--tc-box-shadow);
    overflow: hidden;
}

.home-page .hm-card,
.home-page .hm-video-showcase,
.home-page .hm-founder-wrap,
.home-page .hm-slider-box,
.home-page .hm-hero-box {
    border: var(--tc-box-border) !important;
    border-radius: var(--tc-box-radius);
    box-shadow: var(--tc-box-shadow);
    background: #fff;
}
.home-page .hm-card-head {
    border-bottom: 1px solid rgba(0, 145, 205, 0.12);
    background: linear-gradient(180deg, #f8fcff 0%, #fff 100%);
}
.home-page .hm-about-img-wrap {
    border: var(--tc-box-border);
}
.home-page .hm-gallery-item,
.home-page .hm-teacher-card,
.home-page .hm-event-item {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 145, 205, 0.06);
}
.home-page .hm-gallery-item {
    background: #f8fbfd;
}
.home-page .hm-teacher-card {
    background: #f8fcff;
}
.home-page .hm-event-item {
    background: #f8fbfd;
}
.home-page .hm-founder-wrap {
    background: linear-gradient(135deg, #1a2b3c 0%, #2c3e50 100%);
    color: #fff;
    border: none !important;
    box-shadow: 0 8px 28px rgba(26, 43, 60, 0.2);
}

.home-page .hm-card-body {
    padding: 1rem 1.25rem 1.25rem;
}
.home-page .hm-hero-box {
    padding: 1.75rem 1.5rem;
    max-width: 920px;
    margin: 0 auto;
}
.home-page .hm-slider-box {
    padding: 0.35rem;
}
.home-page .hm-slider-box .carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}
.home-page .hm-events-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}
.home-page .hm-home-upcoming {
    border: 2px solid rgba(40, 167, 69, 0.2);
    box-shadow: 0 8px 28px rgba(40, 167, 69, 0.1);
}
.home-page .hm-home-upcoming .hm-card-head {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.06), rgba(32, 201, 151, 0.04));
}
.home-page .hm-home-events-list {
    padding-top: 0.5rem !important;
}
.home-page .hm-home-event-item {
    display: flex;
    gap: 12px;
    padding: 12px 10px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid rgba(0, 145, 205, 0.1);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.home-page .hm-home-event-item:hover {
    border-color: rgba(0, 145, 205, 0.35);
    box-shadow: 0 6px 18px rgba(0, 145, 205, 0.1);
    transform: translateX(3px);
    color: inherit;
}
.home-page .hm-home-event-item .hm-event-date {
    width: 54px;
    padding: 10px 4px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 145, 205, 0.2);
}
.home-page .hm-home-event-body {
    flex: 1;
    min-width: 0;
}
.home-page .hm-home-ev-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}
.home-page .hm-home-ev-holiday {
    background: rgba(220, 53, 69, 0.12);
    color: #c82333;
}
.home-page .hm-home-ev-event {
    background: rgba(0, 145, 205, 0.12);
    color: #0077a8;
}
.home-page .hm-home-event-body h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tc-dark, #1a2b3c);
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-page .hm-home-ev-date {
    font-size: 0.78rem;
    color: var(--tc-primary, #0091cd);
    margin: 0;
    font-weight: 500;
}
.home-page .hm-home-ev-date i {
    margin-right: 0.25rem;
    opacity: 0.85;
}
.home-page .hm-home-ev-desc {
    font-size: 0.75rem;
    color: var(--tc-muted, #6c757d);
    margin: 4px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-page .hm-home-event-empty {
    pointer-events: none;
    background: #f8fbfd;
}

/* ── Admission hero (rebuilt) ───────────────────────────────── */
.hm-admission-hero {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0091cd 0%, #0077a8 45%, #1a2b3c 100%);
    position: relative;
    overflow: hidden;
}
.hm-admission-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.hm-admission-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--tc-box-radius);
    padding: 2rem 1.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    max-width: 820px;
    margin: 0 auto;
}
.hm-admission-centered {
    text-align: center;
}
.hm-admission-centered .hm-admission-stats {
    justify-content: center;
}
.hm-admission-centered .hm-admission-btns {
    justify-content: center;
}
.hm-adm-apply-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-top: 1.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Admission tab-style buttons — line by line on mobile, row on desktop */
.hm-adm-tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.hm-adm-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    border: 2px solid transparent;
    line-height: 1.3;
}
.hm-adm-tab-btn:hover {
    transform: translateY(-2px);
    color: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.hm-adm-tab-name {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
}
.hm-adm-tab-action {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.95;
    display: block;
}
.hm-adm-tab-school {
    background: linear-gradient(135deg, #0091cd, #0077a8);
    color: #fff;
}
.hm-adm-tab-school .hm-adm-tab-action { color: rgba(255,255,255,0.9); }
.hm-adm-tab-college {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}
.hm-adm-tab-college .hm-adm-tab-action { color: rgba(255,255,255,0.9); }
.hm-adm-tab-nursing {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}
.hm-adm-tab-nursing .hm-adm-tab-action { color: rgba(255,255,255,0.9); }

@media (min-width: 768px) {
    .hm-adm-tab-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        max-width: 100%;
        gap: 0.65rem;
    }
    .hm-adm-tab-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.85rem 0.5rem;
    }
    .hm-adm-tab-name {
        font-size: 0.88rem;
    }
    .hm-adm-tab-action {
        font-size: 0.72rem;
    }
}

@media (max-width: 767.98px) {
    .hm-adm-apply-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}
.hm-admission-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f4a100, #ff8c00);
    color: #1a2b3c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.hm-admission-centered .hm-admission-tag {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.hm-admission-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--tc-dark);
    margin-bottom: 0.65rem;
    line-height: 1.25;
}
.hm-admission-desc {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.hm-admission-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.hm-adm-stat {
    text-align: center;
    background: #f0f9ff;
    border-radius: 12px;
    padding: 0.65rem 1.1rem;
    min-width: 80px;
}
.hm-adm-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tc-primary);
    line-height: 1.1;
}
.hm-adm-stat span {
    font-size: 0.72rem;
    color: var(--tc-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.hm-admission-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.hm-adm-btn-primary {
    background: linear-gradient(135deg, #f4a100, #ff8c00) !important;
    border: none !important;
    color: #1a2b3c !important;
    font-weight: 700;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    box-shadow: 0 6px 20px rgba(244, 161, 0, 0.4);
}
.hm-adm-btn-outline {
    border: 2px solid var(--tc-primary) !important;
    color: var(--tc-primary) !important;
    font-weight: 600;
    border-radius: 999px !important;
    padding: 12px 24px !important;
    background: #fff !important;
}
.hm-admission-inst-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.hm-adm-inst {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hm-adm-inst:hover {
    transform: translateX(4px);
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.hm-adm-inst i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.hm-adm-inst strong { display: block; font-size: 0.92rem; }
.hm-adm-inst small { font-size: 0.75rem; color: var(--tc-muted); }
.hm-adm-school { background: #f0f9ff; }
.hm-adm-school i { background: linear-gradient(135deg, #0091cd, #0077a8); }
.hm-adm-college { background: #f0fdf4; }
.hm-adm-college i { background: linear-gradient(135deg, #28a745, #20c997); }
.hm-adm-nursing { background: #fff5f5; }
.hm-adm-nursing i { background: linear-gradient(135deg, #dc3545, #c82333); }

/* ── Highlights section (rebuilt) ───────────────────────────── */
.hm-highlights-section {
    padding: 2rem 0;
    background: linear-gradient(180deg, #f8fcff 0%, #fff 100%);
}
.hm-highlight-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}
.hm-highlight-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: #f0f9ff;
    color: var(--tc-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hm-highlight-tab i {
    color: var(--tc-primary);
    font-size: 0.75rem;
}
.hm-highlight-tab:hover,
.hm-highlight-tab.active {
    background: var(--tc-primary);
    color: #fff;
    transform: translateY(-1px);
}
.hm-highlight-tab.active i,
.hm-highlight-tab:hover i {
    color: #fff;
}
.hm-highlights-layout {
    display: block;
    max-width: 820px;
    margin: 0 auto;
}
.hm-highlights-centered .hm-highlight-player-wrap {
    width: 100%;
    margin: 0 auto;
}
.hm-highlights-centered .hm-highlight-player-card {
    margin: 0 auto;
}
.hm-highlight-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #000;
}
.hm-highlight-player-card {
    background: #fff;
    border-radius: var(--tc-box-radius);
    overflow: hidden;
    box-shadow: var(--tc-box-shadow);
}
.hm-highlight-label {
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-primary-dark));
    color: #fff;
    padding: 0.7rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}
.hm-highlight-video-box {
    background: #000;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Homepage teachers — mobile: 1/slide; tablet+: 3/slide */
.hm-teacher-slide-col {
    margin-left: auto;
    margin-right: auto;
}
.home-page .hm-teachers-wrap .hm-teacher-card {
    max-width: 100%;
    width: 100%;
    padding: 1.1rem 0.75rem 1.25rem;
    margin: 0 auto;
}
.home-page .hm-teachers-wrap .hm-teacher-photo-box {
    width: 150px;
    height: 150px;
    border-width: 3px;
    margin-bottom: 0.85rem;
    padding: 0;
    overflow: hidden;
}
.home-page .hm-teachers-wrap .hm-teacher-photo {
    object-fit: cover;
    object-position: top center;
}
.home-page .hm-teachers-wrap .hm-teacher-photo-avatar {
    object-fit: contain !important;
    object-position: center center;
    background: transparent;
    border-radius: 50%;
}
.home-page .hm-teachers-wrap .hm-teacher-name {
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
}
.home-page .hm-teachers-wrap .hm-teacher-role {
    font-size: 0.8rem;
}
.home-page .hm-teachers-wrap .hm-teacher-dept {
    font-size: 0.72rem;
    padding: 3px 10px;
}
.home-page .hm-teachers-wrap .hm-teacher-inst {
    font-size: 0.58rem;
    padding: 3px 8px;
}

/* Mobile carousel — single centered card */
.home-page #teachersCarouselMobile .hm-teacher-slide-col {
    max-width: 360px;
}
.home-page #teachersCarouselMobile .hm-teacher-photo-box {
    width: 160px;
    height: 160px;
}
.home-page #teachersCarouselMobile .hm-teacher-name {
    font-size: 1rem;
}

/* Desktop/tablet carousel — 3 per row */
.home-page #teachersCarouselDesktop .hm-teachers-row-3 {
    --bs-gutter-x: 0.75rem;
}
.home-page #teachersCarouselDesktop .hm-teacher-slide-col {
    max-width: none;
    flex: 0 0 auto;
    width: 33.333%;
}
.home-page #teachersCarouselDesktop .hm-teacher-photo-box {
    width: 100px;
    height: 100px;
}
@media (min-width: 992px) {
    .home-page #teachersCarouselDesktop .hm-teacher-photo-box {
        width: 115px;
        height: 115px;
    }
    .home-page #teachersCarouselDesktop .hm-teacher-name {
        font-size: 0.88rem;
    }
}

@media (max-width: 767.98px) {
    .home-page .hm-teachers-wrap .hm-teacher-name {
        font-size: 1rem;
    }
    .hm-highlight-tabs {
        gap: 0.35rem;
    }
    .hm-highlight-tab {
        font-size: 0.72rem;
        padding: 0.4rem 0.65rem;
    }
    .hm-highlight-video { max-height: 240px; }
}

@media (max-width: 991.98px) {
    .hm-highlights-layout {
        grid-template-columns: 1fr;
    }
    .hm-highlight-playlist {
        display: flex;
        flex-direction: column;
    }
}
@media (max-width: 767.98px) {
    .home-page .hm-hero-box { padding: 1.25rem 1rem; }
    .home-page .hm-card-head { padding: 0.85rem 1rem; }
    .home-page .hm-card-body { padding: 0.85rem 1rem 1rem; }
    .home-page .hm-founder-text { padding: 1.25rem 1rem; }
    .home-page .hm-founder-img { padding: 1.25rem 1rem; }
    .home-page .hm-founder-img img { width: 140px; height: 140px; }
    .home-page .hm-events-scroll { max-height: none; }
    .hm-admission-panel { padding: 1.25rem 1rem; }
    .hm-admission-btns { flex-direction: column; }
    .hm-adm-btn-primary, .hm-adm-btn-outline { width: 100%; }
    .hm-admission-stats { gap: 0.5rem; }
    .hm-adm-stat { flex: 1; min-width: 0; padding: 0.5rem; }
    .hm-highlight-video { max-height: 220px; }
}


@media (max-width: 575.98px) {
    .home-page .hm-section .row.g-4 > [class*="col-"] {
        margin-bottom: 0.25rem;
    }
    .home-page .hm-gallery-grid {
        gap: 6px;
    }
}

/* ── Map responsive ─────────────────────────────────────────── */
.map-responsive {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow);
    background: #e9ecef;
}
.map-responsive iframe {
    display: block;
    width: 100% !important;
    min-height: 280px;
}

/* ── Notice bar — single line ───────────────────────────────── */
.notice-bar {
    background: linear-gradient(90deg, var(--tc-primary-dark), var(--tc-primary));
    color: #fff;
    padding: 0;
    margin: 0;
}
.notice-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 16px;
    flex-wrap: nowrap;
}
.notice-label {
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    margin: 0;
}
.notice-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    line-height: 1.2;
}
.notice-content marquee {
    line-height: 1.3;
    vertical-align: middle;
}
.notice-item {
    margin-right: 3rem;
    font-size: 0.92rem;
}
a.notice-item-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}
a.notice-item-link:hover {
    color: #ffe082;
}
a.notice-item-link i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    opacity: 0.9;
}

/* ── Section headers ──────────────────────────────────────── */
.hm-section {
    padding: 2.25rem 0;
    background: #fff;
}
.home-page .hm-section {
    padding: 2rem 0;
}
.home-page .hm-section-header {
    margin-bottom: 1.5rem;
}
.home-page .about-home {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

/* ── About section (modern) ─────────────────────────────────── */
.hm-about-modern {
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 50%, #f8fbfd 100%);
    padding: 2.5rem 0;
}
.hm-about-head { margin-bottom: 2rem; }
.hm-about-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--tc-dark, #1a2b3c);
    margin-bottom: 0.35rem;
}
.hm-about-head p { color: var(--tc-muted, #6c757d); margin-bottom: 0; }
.hm-about-panel {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border: 2px solid rgba(0, 145, 205, 0.12);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 145, 205, 0.08);
    margin-bottom: 1.5rem;
}
.hm-about-visual { position: relative; }
.hm-about-img-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(0, 145, 205, 0.15);
    box-shadow: 0 12px 28px rgba(0, 145, 205, 0.12);
}
.hm-about-img {
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: 340px;
    object-fit: cover;
    display: block;
}
.hm-about-float-card {
    position: absolute;
    bottom: -12px;
    right: -8px;
    background: #fff;
    border: 2px solid rgba(0, 145, 205, 0.2);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    font-size: 0.82rem;
}
.hm-about-float-card i {
    font-size: 1.25rem;
    color: var(--tc-primary, #0091cd);
}
.hm-about-float-card strong { display: block; color: var(--tc-dark, #1a2b3c); line-height: 1.2; }
.hm-about-float-card span { color: var(--tc-muted, #6c757d); font-size: 0.75rem; }
.hm-about-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tc-dark, #1a2b3c);
    margin-bottom: 1rem;
    line-height: 1.35;
}
.hm-about-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.25rem;
}
.hm-about-text p { margin-bottom: 0.85rem; }
.hm-about-text p:last-child { margin-bottom: 0; }
.hm-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.hm-about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.hm-about-feature {
    background: #fff;
    border: 2px solid rgba(0, 145, 205, 0.12);
    border-radius: 12px;
    padding: 0.85rem 0.75rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tc-dark, #1a2b3c);
    transition: border-color 0.2s, transform 0.2s;
}
.hm-about-feature i {
    display: block;
    font-size: 1.2rem;
    color: var(--tc-primary, #0091cd);
    margin-bottom: 0.35rem;
}
.hm-about-feature:hover {
    border-color: rgba(0, 145, 205, 0.35);
    transform: translateY(-2px);
}

/* ── News section (modern) ──────────────────────────────────── */
.hm-news-modern {
    background: #fff;
    border: 2px solid rgba(255, 107, 53, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(255, 107, 53, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.hm-news-modern-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(244, 161, 0, 0.06));
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}
.hm-news-modern-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b35, #f4a100);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.hm-news-modern-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--tc-dark, #1a2b3c);
}
.hm-news-modern-head p {
    font-size: 0.78rem;
    color: var(--tc-muted, #6c757d);
    margin: 0;
}
.hm-news-view-all {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ff6b35;
    text-decoration: none;
    align-items: center;
    white-space: nowrap;
}
.hm-news-view-all:hover { color: #e55a28; }
.hm-news-feed {
    flex: 1;
    padding: 0.5rem 0.75rem 0.75rem;
    max-height: 420px;
    overflow-y: auto;
}
.hm-news-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.75rem;
    margin-bottom: 0.35rem;
    border-radius: 12px;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hm-news-card:hover {
    background: #fff8f5;
    border-color: rgba(255, 107, 53, 0.2);
    transform: translateX(4px);
    color: inherit;
}
.hm-news-card-static { pointer-events: none; }
.hm-news-card-date {
    flex-shrink: 0;
    width: 54px;
    text-align: center;
    background: linear-gradient(135deg, #0091cd, #0077a8);
    color: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.25rem;
    line-height: 1.1;
}
.hm-news-card-date .d { display: block; font-size: 1.15rem; font-weight: 700; }
.hm-news-card-date .m { display: block; font-size: 0.62rem; text-transform: uppercase; opacity: 0.9; }
.hm-news-card-date .y { display: block; font-size: 0.58rem; opacity: 0.75; }
.hm-news-card-body { flex: 1; min-width: 0; }
.hm-news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}
.hm-news-inst {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    border-radius: 999px;
}
.hm-news-inst-school { background: rgba(0, 145, 205, 0.12); color: #0077a8; }
.hm-news-inst-college { background: rgba(40, 167, 69, 0.12); color: #1e7e34; }
.hm-news-inst-nursing { background: rgba(220, 53, 69, 0.12); color: #c82333; }
.hm-news-card-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tc-dark, #1a2b3c);
    margin: 0 0 0.2rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hm-news-card-body p {
    font-size: 0.78rem;
    color: var(--tc-muted, #6c757d);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hm-news-card-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.hm-news-card:hover .hm-news-card-arrow { opacity: 1; }

.hm-about-img-wrap {
    border-radius: var(--tc-box-radius);
    overflow: hidden;
}
.hm-about-img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
}
.hm-about-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
}
.hm-about-text p:last-child {
    margin-bottom: 0;
}

/* Video highlight section */
.hm-video-section {
    padding: 2rem 0;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef6fb 100%);
}
.hm-video-showcase {
    background: #fff;
    border-radius: var(--tc-box-radius);
    padding: 1rem;
}
.highlight-videos-swiper {
    padding-bottom: 2.25rem;
    position: relative;
}
.highlight-videos-swiper .swiper-pagination {
    bottom: 0 !important;
}
.highlight-videos-swiper .custom-nav-btn {
    color: var(--tc-primary);
    background: rgba(255, 255, 255, 0.92);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dce6ef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.hm-video-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e6eef5;
}
.hm-video-title-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}
.hm-video-title-bar span:first-of-type {
    flex: 1;
}
.hm-video-wrap {
    position: relative;
    background: #000;
}
.hm-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    object-fit: cover;
    display: block;
    background: #000;
}
.hm-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: opacity 0.2s;
}
.hm-play-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-primary);
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.hm-video-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--tc-muted);
}

@media (max-width: 991.98px) {
    .hm-about-panel { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
    .hm-about-features { grid-template-columns: repeat(2, 1fr); }
    .hm-about-float-card { right: 8px; bottom: -10px; }
    .hm-about-img { min-height: 220px; max-height: 280px; }
    .hm-news-feed { max-height: none; }
}
@media (max-width: 768px) {
    .home-page .hm-section { padding: 1.5rem 0; }
    .hm-video-section { padding: 1.5rem 0; }
    .hm-video-showcase { padding: 0.75rem; }
    .hm-video-player { max-height: 240px; }
    .hm-about-img { max-height: 240px; min-height: 180px; }
}
@media (max-width: 575.98px) {
    .hm-about-features { grid-template-columns: 1fr 1fr; }
    .hm-about-actions { flex-direction: column; }
    .hm-about-actions .btn { width: 100%; }
    .hm-news-card { padding: 0.75rem 0.5rem; }
    .hm-news-card-arrow { display: none; }
}

.hm-section-alt {
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
}
.hm-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.hm-section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--tc-dark);
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
}
.hm-section-header p {
    color: var(--tc-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: inherit;
}
.hm-section-header .hm-badge {
    display: inline-block;
    background: rgba(0, 145, 205, 0.1);
    color: var(--tc-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    border: none;
    margin-bottom: 10px;
}
.hm-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-accent));
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ── Modern cards ───────────────────────────────────────────── */
.hm-card {
    background: #fff;
    border-radius: var(--tc-box-radius);
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.hm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 145, 205, 0.14);
}
.hm-card-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}
.hm-card-head .hm-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.hm-card-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tc-dark);
    text-transform: none;
    letter-spacing: normal;
}
.hm-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* ── Admission CTA ──────────────────────────────────────────── */
.admission-section {
    background: linear-gradient(135deg, #0091cd 0%, #0077a8 50%, #1a2b3c 100%);
    color: #fff;
    padding: 2.25rem 0 !important;
    position: relative;
    overflow: hidden;
}
.admission-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.admission-section .section-title,
.admission-section h2 {
    color: #fff !important;
    font-weight: 700;
}
.admission-section p {
    opacity: 0.9;
    font-size: 1.05rem;
}
.admission-btn {
    background: linear-gradient(135deg, var(--tc-gold), #ff8c00) !important;
    border: none !important;
    color: #1a2b3c !important;
    font-weight: 700;
    padding: 14px 36px !important;
    border-radius: 999px !important;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(244, 161, 0, 0.45) !important;
    animation: hm-pulse 2.5s infinite;
}
@keyframes hm-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(244, 161, 0, 0.45); }
    50% { box-shadow: 0 8px 36px rgba(244, 161, 0, 0.7); }
}

/* ── Admission modal ──────────────────────────────────────── */
#admissionModal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
#admissionModal .modal-header {
    background: linear-gradient(135deg, #0091cd, #0077a8);
    border: none;
    padding: 1.5rem 1.75rem;
}
#admissionModal .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}
.adm-modal-sub {
    font-size: 0.85rem;
    opacity: 0.9;
}
.adm-modal-body {
    padding: 1.75rem;
}
.adm-contact-bar {
    background: linear-gradient(135deg, #f0f8fc, #e8f4fa);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}
.adm-inst-card {
    border-radius: 14px;
    border: 2px solid transparent;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    transition: all 0.25s;
    background: #f8fbfd;
}
.adm-inst-card:hover {
    border-color: var(--tc-primary);
    background: #fff;
    transform: translateY(-4px);
    box-shadow: var(--tc-shadow);
}
.adm-inst-card .adm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
    color: #fff;
}
.adm-inst-card h5 { font-weight: 700; margin-bottom: 6px; }
.adm-inst-card p { font-size: 0.85rem; color: var(--tc-muted); margin-bottom: 14px; }
.adm-inst-card .btn { border-radius: 999px; font-weight: 600; padding: 8px 20px; }

/* ── Gallery / Activities grid ──────────────────────────────── */
.hm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hm-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}
.hm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.hm-gallery-item:hover img { transform: scale(1.08); }
.hm-gallery-item .hm-gal-cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* ── News items ─────────────────────────────────────────────── */
.hm-news-list { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.hm-news-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.hm-news-item:last-child { border-bottom: none; }
.hm-news-date {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    background: rgba(0, 145, 205, 0.08);
    border-radius: 8px;
    padding: 6px 4px;
    border: none;
}
.hm-news-date .d { font-size: 1.2rem; font-weight: 700; color: var(--tc-primary); line-height: 1; }
.hm-news-date .m { font-size: 0.65rem; text-transform: uppercase; color: var(--tc-muted); }
.hm-news-body h5 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; color: var(--tc-dark); }
.hm-news-body p { font-size: 0.82rem; color: var(--tc-muted); margin: 0; line-height: 1.4; }
.hm-new-badge {
    background: #ff4757;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 999px;
    vertical-align: middle;
}

/* ── Teachers ───────────────────────────────────────────────── */
.hm-teachers-wrap {
    padding: 0.5rem 2.5rem 0.25rem;
    position: relative;
    overflow: visible;
}
#teachersCarouselMobile,
#teachersCarouselDesktop {
    position: relative;
}
#teachersCarouselMobile .carousel-inner,
#teachersCarouselDesktop .carousel-inner {
    padding: 0.5rem 0;
    overflow: visible;
}
#teachersCarouselMobile .carousel-item .row,
#teachersCarouselDesktop .carousel-item .row {
    align-items: stretch;
}
#teachersCarouselMobile .carousel-control-prev,
#teachersCarouselMobile .carousel-control-next,
#teachersCarouselDesktop .carousel-control-prev,
#teachersCarouselDesktop .carousel-control-next {
    width: 34px !important;
    height: 34px !important;
    top: 42% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #dce6ef;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    opacity: 1;
    z-index: 4;
}
#teachersCarouselMobile .carousel-control-prev,
#teachersCarouselDesktop .carousel-control-prev { left: 0 !important; }
#teachersCarouselMobile .carousel-control-next,
#teachersCarouselDesktop .carousel-control-next { right: 0 !important; }
#teachersCarouselMobile .carousel-control-prev-icon,
#teachersCarouselMobile .carousel-control-next-icon,
#teachersCarouselDesktop .carousel-control-prev-icon,
#teachersCarouselDesktop .carousel-control-next-icon {
    filter: invert(40%) sepia(80%) saturate(500%) hue-rotate(170deg);
    width: 0.9rem;
    height: 0.9rem;
}

.hm-teacher-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.1rem 0.85rem 1.2rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dfe9f2;
    box-shadow: 0 4px 18px rgba(26, 43, 60, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    margin: 0 auto;
    max-width: 220px;
}
.hm-teacher-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 145, 205, 0.4);
    box-shadow: 0 10px 24px rgba(0, 145, 205, 0.12);
}
.hm-teacher-top {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.65rem;
    min-height: 22px;
}
.hm-teacher-inst {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    line-height: 1.2;
}
.hm-inst-school  { background: rgba(0, 145, 205, 0.12); color: #0077a8; }
.hm-inst-college { background: rgba(40, 167, 69, 0.12); color: #1e7e34; }
.hm-inst-nursing { background: rgba(220, 53, 69, 0.12); color: #c82333; }

.hm-teacher-photo-box {
    width: 110px;
    height: 110px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--tc-primary);
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.hm-teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 50%;
    background: #f0f6fa;
}
.hm-teacher-photo-avatar {
    object-fit: contain !important;
    object-position: center center;
}

.hm-teacher-info {
    width: 100%;
    padding: 0 0.15rem;
}
.hm-teacher-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tc-dark);
    margin: 0 0 0.3rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: capitalize;
}
.hm-teacher-role {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tc-primary);
    margin: 0 0 0.35rem;
    line-height: 1.25;
    text-transform: capitalize;
}
.hm-teacher-dept {
    display: inline-block;
    font-size: 0.68rem;
    color: var(--tc-muted);
    background: #f4f8fb;
    border: 1px solid #e8eef3;
    border-radius: 999px;
    padding: 2px 9px;
    line-height: 1.3;
}

.hm-teacher-filters .btn { min-width: 110px; }
.hm-teachers-page .hm-section-header { margin-bottom: 2rem; }
.hm-teachers-page .hm-teacher-card { max-width: 100%; }
.hm-teachers-grid .row { --bs-gutter-x: 1.25rem; --bs-gutter-y: 1.25rem; }

@media (max-width: 768px) {
    .hm-teachers-wrap { padding: 0.5rem 2rem 0.25rem; }
    .hm-teacher-photo-box { width: 100px; height: 100px; }
    .hm-teacher-card { max-width: 100%; }
    #teachersCarouselMobile .carousel-item .row > [class*="col-"],
    #teachersCarouselDesktop .carousel-item .row > [class*="col-"] {
        margin-bottom: 0.5rem;
    }
}

/* ── Events ─────────────────────────────────────────────────── */
.hm-event-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fbfd;
    margin-bottom: 10px;
    transition: background 0.2s;
}
.hm-event-item:hover { background: #eef6fb; }
.hm-event-date {
    flex-shrink: 0;
    width: 52px;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-dark));
    color: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 8px 4px;
}
.hm-event-date .day { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.hm-event-date .month { font-size: 0.7rem; text-transform: uppercase; opacity: 0.9; }
.hm-event-body h5 { font-size: 0.92rem; font-weight: 600; margin-bottom: 3px; }
.hm-event-body p { font-size: 0.8rem; color: var(--tc-muted); margin: 0; }

/* ── Founder section ────────────────────────────────────────── */
.hm-founder-wrap {
    overflow: hidden;
    color: #fff;
}
.hm-founder-img {
    position: relative;
    padding: 2rem;
    text-align: center;
    background: rgba(255,255,255,0.05);
}
.hm-founder-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--tc-gold);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.hm-founder-img .hm-role {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--tc-gold);
    font-weight: 600;
}
.hm-founder-text {
    padding: 2rem 2.5rem;
}
.hm-founder-text h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
.hm-founder-text .hm-quote {
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.92;
}
.hm-founder-text .hm-quote p { margin-bottom: 0.75rem; }
.hm-founder-text .hm-quote p:last-child {
    text-align: right;
    margin-top: 1.5rem;
    margin-bottom: 0;
    margin-left: auto;
    padding-top: 0.85rem;
    max-width: 260px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hm-founder-text .hm-quote p:last-child strong {
    color: var(--tc-gold);
    font-weight: 700;
    font-style: normal;
}

/* ── Events page ────────────────────────────────────────────── */
.hm-ev-hero {
    background: linear-gradient(135deg, #1a2b3c 0%, #0091cd 100%);
    color: #fff;
    padding: 2.5rem 0;
}
.hm-ev-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.hm-ev-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 0.4rem 0; text-transform: none; color: #fff; }
.hm-ev-hero p { opacity: 0.9; margin: 0; font-size: inherit; }
.hm-ev-hero .hm-badge { background: rgba(255,255,255,.15); color: #fff; border: none; border-radius: 999px; font-size: 0.75rem; }
.hm-ev-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.hm-ev-stat {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 0.75rem 1.1rem;
    text-align: center;
    min-width: 90px;
    box-shadow: none;
}
.hm-ev-stat strong { display: block; font-size: 1.4rem; line-height: 1.2; color: #fff; }
.hm-ev-stat span { font-size: 0.72rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; }

.hm-ev-page { padding-top: 1.5rem; padding-bottom: 3rem; background: #f4f8fb; overflow: hidden; }
.hm-ev-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 1.5rem;
    align-items: start;
}
.hm-ev-main-col,
.hm-ev-aside-col {
    min-width: 0;
}
.hm-ev-aside-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.hm-ev-page .hm-card {
    height: auto;
    border: 2px solid rgba(0, 145, 205, 0.12);
    box-shadow: 0 4px 16px rgba(26, 43, 60, 0.05);
}
.hm-ev-page .hm-card:hover {
    transform: none;
}
.hm-ev-sidebar-card .hm-card-head {
    padding: 1rem 1.15rem;
}
.hm-ev-sidebar-card .hm-card-head h3 {
    font-size: 1rem;
}
.hm-ev-upcoming-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 0.85rem 1rem 1rem !important;
}
.hm-ev-upcoming-list .hm-event-item:last-child {
    margin-bottom: 0;
}
.hm-ev-toolbar {
    background: #fff;
    border: 2px solid rgba(0, 145, 205, 0.12);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 18px rgba(26, 43, 60, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hm-ev-search-row { margin-bottom: 1rem; }
.hm-ev-search-input {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(0, 145, 205, 0.15);
}
.hm-ev-search-input .form-control {
    border: none;
    box-shadow: none;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
}
.hm-ev-search-input .input-group-text {
    background: #f8fbfd;
    border: none;
    color: var(--tc-primary);
    padding-left: 1rem;
}
.hm-ev-search-input .btn-primary {
    border-radius: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-weight: 600;
}
.hm-ev-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid #eef3f7;
}
.hm-ev-filter-row:first-of-type { border-top: none; padding-top: 0; }
.hm-ev-filter-bottom {
    justify-content: space-between;
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}
.hm-ev-year-tabs, .hm-ev-type-tabs, .hm-ev-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.hm-ev-tab, .hm-ev-pill, .hm-ev-view {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #dce6ef;
    color: var(--tc-dark);
    background: #f8fbfd;
    transition: all 0.2s;
    min-height: 34px;
    white-space: nowrap;
    line-height: 1.2;
}
.hm-ev-tab.active, .hm-ev-pill.active, .hm-ev-view.active {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
    color: #fff;
}
.hm-ev-pill-holiday.active { background: #dc3545; border-color: #dc3545; }
.hm-ev-pill-event.active { background: #6f42c1; border-color: #6f42c1; }

.hm-ev-calendar-card {
    background: #fff;
    border: 1px solid #e6eef5;
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.hm-ev-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-dark));
    color: #fff;
}
.hm-ev-cal-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; text-transform: none; }
.hm-ev-cal-nav {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    text-decoration: none;
}
.hm-ev-cal-nav:hover { background: rgba(255,255,255,.35); color: #fff; }
.hm-ev-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 1rem;
}
.hm-ev-cal-wd {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tc-muted);
    padding: 0.35rem;
    text-transform: uppercase;
}
.hm-ev-cal-day {
    min-height: 64px;
    border: 1px solid #eef3f7;
    border-radius: 8px;
    padding: 0.35rem;
    background: #fff;
    position: relative;
}
.hm-ev-cal-day.empty { background: transparent; border: none; }
.hm-ev-cal-day.today { border-color: var(--tc-primary); background: rgba(0,145,205,.08); }
.hm-ev-cal-day.is-holiday { background: rgba(220,53,69,.06); }
.hm-ev-cal-day.has-events { cursor: help; }
.hm-ev-day-num { font-size: 0.85rem; font-weight: 700; color: var(--tc-dark); }
.hm-ev-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; align-items: center; }
.hm-ev-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.hm-ev-dot.event { background: var(--tc-primary); }
.hm-ev-dot.holiday { background: #dc3545; }
.hm-ev-more { font-size: 0.6rem; color: var(--tc-muted); }
.hm-ev-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0.75rem 1rem 1rem;
    font-size: 0.78rem;
    color: var(--tc-muted);
    border-top: 1px solid #eef3f7;
}

.hm-ev-results-head h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; color: var(--tc-dark); text-transform: none; }
.hm-ev-main-col .hm-ev-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.hm-ev-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.hm-ev-card {
    background: #fff;
    border: 1px solid #e6eef5;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--tc-primary);
}
.hm-ev-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,145,205,.12); }
.hm-ev-card.hm-ev-holiday { border-left-color: #dc3545; }
.hm-ev-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.hm-ev-year {
    font-size: 0.68rem;
    font-weight: 700;
    background: #f0f6fa;
    color: var(--tc-primary);
    padding: 2px 8px;
    border-radius: 999px;
    border: none;
}
.hm-ev-type { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--tc-muted); }
.hm-ev-holiday .hm-ev-type { color: #dc3545; }
.hm-ev-title { font-size: 0.92rem; font-weight: 700; margin: 0 0 0.35rem; line-height: 1.35; color: var(--tc-dark); }
.hm-ev-date { font-size: 0.78rem; color: var(--tc-primary); margin: 0 0 0.4rem; }
.hm-ev-desc { font-size: 0.78rem; color: var(--tc-muted); margin: 0; line-height: 1.45; }

.hm-ev-empty { text-align: center; padding: 3rem 1rem; color: var(--tc-muted); }
.hm-ev-empty i { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }
.hm-ev-notes { margin: 0; padding-left: 1.1rem; font-size: 0.82rem; color: var(--tc-muted); line-height: 1.6; }
.hm-ev-notes li { margin-bottom: 0.4rem; }
.hm-ev-sidebar-card .hm-card-body { padding: 1rem 1.1rem; }

@media (max-width: 1199.98px) {
    .hm-ev-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); }
    .hm-ev-main-col .hm-ev-grid,
    .hm-ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .hm-ev-layout { grid-template-columns: 1fr; }
    .hm-ev-aside-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .hm-ev-filter-bottom { flex-direction: column; align-items: stretch; }
    .hm-ev-view-tabs { justify-content: flex-end; }
}
@media (max-width: 767.98px) {
    .hm-ev-aside-col { grid-template-columns: 1fr; }
    .hm-ev-cal-day { min-height: 48px; }
    .hm-ev-hero-inner { flex-direction: column; text-align: center; }
    .hm-ev-stats { justify-content: center; }
    .hm-ev-main-col .hm-ev-grid,
    .hm-ev-grid { grid-template-columns: 1fr; }
    .hm-ev-year-tabs { gap: 0.3rem; }
    .hm-ev-tab, .hm-ev-pill, .hm-ev-view { font-size: 0.75rem; padding: 0.38rem 0.75rem; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .notice-bar-inner { padding: 5px 10px; min-height: 38px; }
    .notice-label { font-size: 0.72rem; padding: 5px 10px; }
    .notice-item { font-size: 0.85rem; margin-right: 2rem; }
    .hm-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hm-founder-text { padding: 1.5rem; }
    .admission-btn { padding: 12px 28px !important; font-size: 0.95rem; }
    .adm-modal-body { padding: 1.25rem; }
    #admissionModal .modal-dialog { margin: 0.75rem; }
}
@media (max-width: 576px) {
    .hm-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .hm-section { padding: 1.5rem 0; }
    .home-page .institution-buttons .btn {
        width: 100%;
        min-width: 0;
    }
}

/* ── Notice Board (News) & Forms ─────────────────────────────── */
.hm-nb-hero, .hm-forms-hero {
    background: linear-gradient(135deg, var(--tc-primary) 0%, #006a94 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
    border-bottom: none;
}
.hm-nb-hero h1, .hm-forms-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    text-transform: none;
    letter-spacing: normal;
    color: #fff;
}
.hm-nb-hero p, .hm-forms-hero p { opacity: 0.9; margin: 0; font-size: 0.95rem; color: #fff; }

.hm-nb-page, .hm-forms-page { padding-top: 2rem; padding-bottom: 3rem; background: transparent; }
.hm-nb-board, .hm-forms-board {
    border: 2px solid #c8d6e0;
    background: #fff;
    border-radius: 4px;
    position: relative;
    padding: 2.5rem 1.5rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.hm-nb-board-title {
    position: absolute;
    top: -14px;
    left: 20px;
    background: #fff;
    padding: 0 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #a0204c;
    border-bottom: 2px solid #a0204c;
    text-transform: none;
    letter-spacing: normal;
}
.hm-nb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: none;
    margin-bottom: 0;
    padding: 0;
}
.hm-nb-tabs .nav-item { margin-right: 4px; margin-bottom: -1px; }
.hm-nb-tabs .nav-link:hover { background: #f5f8fa; color: #000; }
.hm-nb-tabs .nav-link {
    border: 1px solid #b0bec5;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: #e8edf1;
    color: #333;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-height: auto;
}
.hm-nb-tabs .nav-link.active {
    background: #fff;
    border-color: #333;
    color: #000;
}
.hm-nb-panel {
    border: 1px solid #333;
    padding: 1.5rem 1.25rem 1rem;
    background: #fff;
    min-height: 200px;
}
.hm-nb-inst-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: #003366;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    letter-spacing: 0.03em;
}
.hm-nb-divider {
    border: none;
    border-top: 2px dotted #a0204c;
    margin: 0.75rem 0 1.25rem;
    opacity: 1;
}
.hm-nb-item { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px dashed #e0e6ec; }
.hm-nb-date { font-weight: 800; color: #c41e3a; font-size: 0.95rem; display: block; }
.hm-nb-item-title { font-size: 1rem; font-weight: 800; color: #003366; margin: 0.35rem 0; line-height: 1.4; }
.hm-nb-excerpt { font-size: 0.88rem; color: #444; margin: 0 0 0.35rem; line-height: 1.5; }
.hm-nb-more { color: #c41e3a; font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.hm-nb-more:hover { color: #8b0000; text-decoration: underline; }
.hm-nb-empty { text-align: center; padding: 2.5rem 1rem; color: var(--tc-muted); font-size: inherit; }
.hm-nb-empty i { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.4; display: block; }

.hm-nb-detail {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e6eef5;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.hm-nb-back { display: inline-block; font-size: 0.85rem; color: var(--tc-primary); margin-bottom: 1rem; text-decoration: none; }
.hm-nb-detail-badge {
    display: inline-block;
    background: #f0f6fa;
    color: var(--tc-primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: none;
    margin-bottom: 0.5rem;
    text-transform: none;
}
.hm-nb-detail h1 { font-size: 1.5rem; font-weight: 800; color: var(--tc-dark); margin-bottom: 1rem; }
.hm-nb-detail-img { max-height: 360px; object-fit: cover; width: 100%; border: none; }
.hm-nb-detail-body { font-size: 0.95rem; line-height: 1.7; color: #333; }

.hm-forms-board-head {
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #a0204c;
    padding: 1.25rem 1rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px dotted #a0204c;
    margin: 0 1.5rem;
}
.hm-forms-table thead th {
    background: #e8edf1;
    font-weight: 800;
    font-size: 0.85rem;
    color: #333;
    border: 1px solid #b0bec5;
    padding: 0.75rem 1rem;
}
.hm-forms-table tbody td {
    border: 1px solid #d0d8e0;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
}
.hm-forms-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: auto;
    padding: 0.4rem 0.85rem;
    border: 2px solid #222;
    background: #fff;
    color: #222;
    font-weight: 800;
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}
.hm-forms-dl-btn:hover { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff; }

@media (max-width: 768px) {
    .hm-nb-tabs .nav-link { font-size: 0.68rem; padding: 0.45rem 0.5rem; }
    .hm-nb-board, .hm-forms-board { padding: 2rem 0.75rem 1rem; }
    .hm-nb-panel { padding: 1rem 0.75rem; }
    .hm-nb-inst-title { font-size: 0.82rem; }
    .hm-forms-table thead { display: none; }
    .hm-forms-table tbody tr {
        display: block;
        border: 1px solid #d0d8e0;
        margin: 0.75rem 1rem;
        border-radius: 8px;
        padding: 0.75rem;
        background: #fafbfc;
    }
    .hm-forms-table tbody td { display: block; border: none; padding: 0.35rem 0; }
    .hm-forms-table tbody td:first-child { font-size: 0.75rem; color: var(--tc-muted); }
    .hm-forms-table tbody td:nth-child(2) { font-weight: 600; font-size: 0.9rem; }
    .hm-forms-dl-btn { width: 100%; margin-top: 0.5rem; }
}
