/* ============================================================
   CENTRALISED DESIGN VARIABLES
   ============================================================ */
:root {
    /* --- Main colours (overridden by Customizer) --- */
    --primary: #1B5E20;          /* Deep green */
    --primary-light: #399414;    /* Lighter green for nav */
    --primary-dark: #06610c;     /* Dark green for footer bottom */
    --secondary: #C7A252;        /* Gold */
    --secondary-light: #DFB86E;  /* Lighter gold for hovers */

    /* --- Neutral colours --- */
    --bg-light: #F5F3F0;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --border: #E2E8F0;
    --white: #FFFFFF;

    /* --- Legacy variables (mapped to new ones) --- */
    --header: var(--primary);
    --nav: var(--primary-light);
    --title: var(--primary);
    --footer: var(--primary);
    --footer-dark: var(--primary-dark);
    --text: var(--text-dark);
    --link: var(--secondary);

    /* --- Shadows & effects --- */
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: 0.3s ease;
}

/* ============================================================
   BASE & RESET
   ============================================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: Arial, "SolaimanLipi", "Noto Sans Bengali", sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 24px));
    margin: 0 auto;
}

/* ===== TOPBAR ===== */
.topbar {
    height: 37px;
    background: var(--white);
    color: var(--secondary);
    font-size: 14px;
}

.topbar-inner {
    height: 37px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.topbar a {
    justify-self: end;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 19px;
    border-radius: 18px;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(0,0,0,0.25);
}

/* ===== BRAND / HEADER ===== */
.brand {
    background: var(--header);
    color: var(--secondary-light);
}

.brand-inner {
    height: 171px;
    display: grid;
    grid-template-columns: 130px 1fr 170px;
    gap: 12px;
    align-items: center;
}

.logo {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    margin-left: 8px;
    color: var(--white);
    font-size: 42px;
    font-weight: 800;
}

.custom-logo {
    width: 110px;
    max-height: 110px;
    object-fit: contain;
}

.brand-text {
    text-align: center;
}

.brand .arabic {
    margin: 0 0 1px;
    color: var(--primary-light);
    font-size: 37px;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.45);
}

.brand h1 {
    margin: 0;
    color: var(--primary-light);
    font-size: 32px;
    line-height: 1.14;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.45);
}

.brand p {
    margin: 3px 0 0;
    color: var(--secondary-light);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.date-box {
    align-self: start;
    justify-self: end;
    padding-top: 33px;
    text-align: left;
}

.date-box,
.date-box p {
    color: var(--white);
    font-size: 13px;
    text-shadow: none;
}

.date-placeholder {
    display: inline-block;
    min-width: 140px;
    min-height: 24px;
    border: 1px dashed rgba(255,255,255,0.65);
    padding: 4px 8px;
    color: var(--white);
}

/* ===== NAVIGATION ===== */
.nav {
    background: var(--nav);
    border-top: 1px solid rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(0,0,0,0.25);
    color: var(--white);
}

.menu {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    padding: 20px 13px;
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
}

.menu a:hover {
    background: var(--primary);
}

.menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 205px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--white);
    box-shadow: var(--shadow);
}

.menu li:hover > .sub-menu {
    display: block;
}

.menu .sub-menu a {
    padding: 9px 12px;
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.menu .sub-menu a:hover {
    background: var(--primary);
    color: var(--white);
}

.menu-toggle {
    display: none;
}

/* ===== TICKER ===== */
.ticker {
    height: 43px;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.ticker-inner {
    height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker strong {
    background: var(--primary);
    color: var(--white);
    padding: 7px 12px;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 100%;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    padding-left: 100%;
}

.ticker-content a {
    display: inline-block;
    padding: 0 8px;
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}

.ticker-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.ticker-separator {
    display: inline-block;
    padding: 0 4px;
    color: var(--primary);
    font-weight: 800;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive ticker */
@media (max-width: 560px) {
    .ticker-content {
        animation-duration: 20s;
    }
    .ticker-inner {
        height: auto;
        min-height: 36px;
        flex-wrap: wrap;
    }
}

/* ===== BANNER (legacy) ===== */
.banner {
    height: 376px;
    background: var(--nav);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner img {
    width: 100%;
    max-width: 960px;
    height: 376px;
    object-fit: cover;
}

/* ===== CAROUSEL ===== */
.carousel {
    height: 376px;
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.carousel-track,
.carousel-slide {
    height: 100%;
}

.carousel-slide {
    display: none;
    align-items: center;
    justify-content: center;
}

.carousel-slide.is-active {
    display: flex;
}

.carousel-slide img {
    width: 100%;
    max-width: 960px;
    height: 376px;
    object-fit: cover;
}

/* ===== SECTIONS ===== */
.section {
    padding: 34px 0 0;
}

.content-wrap {
    width: min(900px, calc(100% - 24px));
}

.intro-section h2,
.message-card h2,
.lower-grid h2 {
    margin: 0 0 18px;
    background: var(--title);
    color: var(--white);
    text-align: center;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    padding: 6px 12px;
}

/* ===== INTRODUCTION - TEXT WRAP AROUND IMAGE ===== */
.intro-content {
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
}

.intro-content .intro-image {
    float: left !important;
    width: 380px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 25px 15px 0 !important;
    border-radius: 8px !important;
    display: block !important;
    object-fit: cover !important;
}

.intro-content .intro-text {
    display: block !important;
    overflow: hidden !important;
}

.intro-content .intro-text p {
    margin: 0 0 10px 0 !important;
    text-align: justify !important;
    line-height: 1.8 !important;
}

/* Responsive intro */
@media (max-width: 768px) {
    .intro-content .intro-image {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important;
    }
    .intro-content .intro-text {
        overflow: visible !important;
    }
}

.message-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 42px;
}

.message-card {
    background: var(--white);
    box-shadow: var(--shadow);
}

.message-card h2 {
    text-align: left;
    margin-bottom: 0;
}

.message-body {
    padding: 0 9px 18px;
    text-align: justify;
    min-height: 560px;
}

.message-body img {
    width: 170px;
    max-height: 140px;
    object-fit: cover;
    margin: 0 auto 12px;
}

.message-body p {
    margin: 0 0 8px;
}

/* ===== LOWER SECTION (Notice Board, Events, Academics) ===== */
.lower-section {
    padding-bottom: 48px;
}

.lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px 50px;
}

.lower-grid section {
    background: var(--bg-light);
    min-height: 100px;
}

.lower-grid h2 {
    margin-bottom: 0;
}

.lower-grid ul {
    margin: 0;
    padding: 10px 20px 15px 24px;
}

.lower-grid li {
    margin-bottom: 3px;
}

.lower-grid a {
    color: var(--link);
}

/* ============================================================
   FORCE TITLE FIRST, DATE SECOND IN LISTS
   ============================================================ */
.lower-section ul li {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    gap: 8px !important;
    direction: ltr !important;
}

.lower-section ul li a {
    order: 1 !important;
    flex: 1 !important;
    min-width: 150px !important;
    color: var(--text-dark) !important;
    text-decoration: none !important;
}

.lower-section ul li a:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
}

.lower-section ul li span {
    order: 2 !important;
    font-size: 0.8em !important;
    color: var(--text-muted) !important;
    background: var(--bg-light) !important;
    padding: 2px 12px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
}

/* Mobile responsive for lists */
@media (max-width: 600px) {
    .lower-section ul li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
    .lower-section ul li a {
        order: 1 !important;
    }
    .lower-section ul li span {
        order: 2 !important;
        font-size: 0.75em !important;
        padding: 2px 8px !important;
        margin-left: 0 !important;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer);
    color: var(--white);
}

.footer-top {
    min-height: 250px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    padding: 38px 0;
}

.footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 17px;
}

.footer ul {
    margin: 0;
    padding-left: 18px;
}

.footer li {
    margin-bottom: 5px;
}

.footer p {
    margin: 0 0 5px;
}

.footer-bottom {
    background: var(--footer-dark);
    padding: 18px 0;
    color: var(--white);
    font-size: 12px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px) {
    .brand-inner {
        height: auto;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 18px 0;
    }
    .logo {
        margin: 0;
    }
    .date-box {
        justify-self: center;
        text-align: center;
        padding-top: 8px;
    }
    .brand .arabic {
        font-size: 28px;
    }
    .brand h1 {
        font-size: 25px;
    }
    .menu-toggle {
        display: block;
        background: transparent;
        color: var(--white);
        border: 0;
        padding: 13px 0;
        font-weight: 800;
    }
    .menu {
        display: none;
        height: auto;
        align-items: stretch;
        flex-direction: column;
    }
    .nav.open .menu {
        display: flex;
    }
    .menu a {
        padding: 10px 13px;
    }
    .menu .sub-menu {
        display: block;
        position: static;
        background: rgba(255,255,255,0.09);
        box-shadow: none;
    }
    .menu .sub-menu a {
        color: var(--white);
        border: 0;
        padding-left: 28px;
    }
    .banner,
    .banner img,
    .carousel,
    .carousel-slide img {
        height: 260px;
    }
    .intro-grid,
    .message-grid,
    .lower-grid,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .intro-grid img {
        width: 100%;
        height: auto;
    }
    .message-body {
        min-height: 0;
    }
    .footer-bottom .container {
        display: block;
    }
    .lower-grid .academics-full {
        grid-column: 1 / -1;
    }
}

@media(max-width:560px) {
    .topbar {
        height: auto;
    }
    .topbar-inner {
        height: auto;
        grid-template-columns: 1fr;
        padding: 8px 0;
        gap: 4px;
    }
    .topbar a {
        justify-self: start;
        margin-top: 5px;
    }
    .ticker,
    .ticker-inner {
        height: auto;
    }
    .ticker-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 7px 0;
    }
    .banner,
    .banner img,
    .carousel,
    .carousel-slide img {
        height: 210px;
    }
    .section {
        padding-top: 24px;
    }
    .lower-section ul li {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .lower-section ul li a {
        order: 1;
    }
    .lower-section ul li span {
        order: 2;
        font-size: 0.75em;
        padding: 2px 8px;
        margin-left: 0 !important;
    }
    .lower-grid .academics-full {
        grid-column: 1 / -1;
    }
}

/* ===== UTILITY ===== */
.logo-placeholder {
    width: 110px;
    height: 110px;
    border: 2px dashed rgba(255,255,255,0.45);
    border-radius: 50%;
    display: block;
}

/* ============================================================
   WIDEN ALL SECTIONS TO MATCH CAROUSEL WIDTH
   ============================================================ */
.content-wrap {
    width: min(960px, calc(100% - 24px)) !important;
    max-width: 100% !important;
}

.container {
    width: min(1120px, calc(100% - 24px));
    max-width: 100%;
}

.lower-grid {
    width: 100% !important;
}

.intro-section,
.message-grid,
.lower-section {
    width: 100% !important;
}

.carousel {
    width: 100% !important;
    max-width: 960px !important;
    margin: 0 auto !important;
}

.carousel-slide img {
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================================
   DETACHED ROUNDED HEADERS & CONTENT BOXES
   ============================================================ */
.intro-section,
.message-card,
.lower-grid section {
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.intro-section h2,
.message-card h2,
.lower-grid section h2 {
    background: var(--primary) !important;
    color: var(--white) !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    margin: 0 0 6px 0 !important;
    display: inline-block !important;
    width: auto !important;
}

.lower-grid .academics-full h2 {
    font-size: 18px !important;
    padding: 10px 20px !important;
}

.intro-content,
.message-body,
.lower-grid section > div {
    background: var(--white) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: var(--shadow) !important;
    margin-top: 6px !important;
    width: 100% !important;
}

.lower-grid .academics-full > div {
    background: var(--white) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: var(--shadow) !important;
    margin-top: 6px !important;
}

.message-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

@media (max-width: 768px) {
    .message-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

.lower-grid .academics-full a:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary) !important;
    background: #f0fdf4 !important;
}

.lower-grid .academics-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* ============================================================
   OVERRIDE - MAKE HEADERS FULL WIDTH AGAIN
   ============================================================ */
.intro-section h2,
.message-card h2,
.lower-grid section h2 {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 6px !important;
    margin: 0 0 6px 0 !important;
}

/* ============================================================
   ACADEMICS CARDS - SINGLE ROW (6 CARDS)
   ============================================================ */
.lower-grid .academics-full > div {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
}

.lower-grid .academics-full a {
    width: 100% !important;
    min-height: 120px !important;
    padding: 20px 12px !important;
}

@media (max-width: 768px) {
    .lower-grid .academics-full > div {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .lower-grid .academics-full > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .lower-grid .academics-full a {
        min-height: 90px !important;
        padding: 14px 8px !important;
    }
    .lower-grid .academics-full a span:first-child {
        font-size: 28px !important;
    }
    .lower-grid .academics-full a span:last-child {
        font-size: 13px !important;
    }
}

/* ============================================================
   GRID PAGES - TEACHERS, NOTICES, EVENTS, GALLERY
   ============================================================ */
.page-template-page-teachers .khm-card-item,
.page-template-page-gallery .khm-card-item {
    transition: all 0.3s ease !important;
}

.page-template-page-teachers .khm-card-item:hover,
.page-template-page-gallery .khm-card-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-hover) !important;
}

.page-template-page-notices .khm-card-item,
.page-template-page-events .khm-card-item {
    transition: all 0.3s ease !important;
}

.page-template-page-notices .khm-card-item:hover,
.page-template-page-events .khm-card-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

@media (max-width: 768px) {
    .page-template-page-teachers .khm-card-list,
    .page-template-page-gallery .khm-card-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .page-template-page-teachers .khm-card-list,
    .page-template-page-gallery .khm-card-list {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   NEW DESIGN STYLES (overrides/additions)
   ============================================================ */

/* Section titles with gold underline */
.section-title {
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 4px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 162, 82, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Enhanced Topbar */
.topbar {
    background: var(--primary);
    color: var(--white);
}
.topbar a {
    background: var(--secondary);
    box-shadow: none;
}
.topbar a:hover {
    background: var(--secondary-light);
}

/* Enhanced Brand */
.brand {
    background: var(--primary);
}
.brand .arabic {
    color: var(--primary-light);
}
.brand h1 {
    color: var(--white);
}
.brand p {
    color: var(--secondary-light);
}

/* Enhanced Navigation (gold hover) */
.nav .menu a:hover {
    background: var(--secondary);
}

/* Hero Carousel improvements */
.carousel {
    height: 500px;
    background: var(--primary);
}
.carousel-slide {
    position: relative;
}
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}
.carousel-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 700px;
    padding: 20px;
}
.carousel-content h2 {
    font-size: 38px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.carousel-content p {
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}
.carousel-controls button {
    background: rgba(255,255,255,0.3);
    border: none;
    color: var(--white);
    font-size: 30px;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.carousel-controls button:hover {
    background: var(--secondary);
}
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.carousel-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.carousel-dots span.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* Welcome / Intro with CTA */
.intro-content .btn-primary {
    margin-top: 10px;
}

/* ============================================================
   STATS SECTION – PROFESSIONAL CARDS
   ============================================================ */
.stats-section {
    background: var(--bg-light, #F5F3F0);
    padding: 50px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stats-item {
    background: #fff;
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,0.06));
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition, 0.3s ease);
    border: 1px solid var(--border, #E2E8F0);
}
.stats-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover, 0 8px 30px rgba(0,0,0,0.12));
}
.stats-item .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    color: var(--secondary, #C7A252);
}
.stats-item .number {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary, #C7A252);
    line-height: 1.2;
    margin-bottom: 4px;
}
.stats-item .label {
    font-size: 16px;
    color: var(--text-muted, #64748B);
    font-weight: 600;
}

/* Enhanced Messages Cards */
.messages-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.message-grid {
    gap: 40px;
}
.message-card {
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
}
.message-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.message-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    margin: 0 auto 15px;
}
.message-card h3 {
    color: var(--primary);
    font-size: 20px;
}
.message-card .designation {
    color: var(--secondary, #C7A252);
    font-weight: 600;
    font-size: 15px;
    margin-top: 2px;
    margin-bottom: 12px;
}
.message-card .signature {
    margin-top: 15px;
    font-weight: 700;
    color: var(--primary);
}

/* Notice & Events */
.notice-events-section {
    padding: 60px 0;
}
.notice-events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.notice-events-grid .block {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.notice-events-grid .block h3 {
    background: var(--primary);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 6px;
    margin: -20px -20px 20px -20px;
    font-size: 18px;
}
.notice-events-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notice-events-grid li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.notice-events-grid li:last-child {
    border-bottom: none;
}
.notice-events-grid .date-badge {
    background: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.notice-events-grid .title {
    flex: 1;
    font-weight: 600;
}
.notice-events-grid .link {
    color: var(--primary);
    font-weight: 700;
}
.notice-events-grid .link:hover {
    text-decoration: underline;
}
.view-all {
    text-align: right;
    margin-top: 10px;
}
.view-all a {
    color: var(--secondary);
    font-weight: 700;
}

/* Academic Cards */
.academic-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.academic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.academic-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 10px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}
.academic-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    background: var(--primary);
    color: var(--white);
}
.academic-card .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}
.academic-card .label {
    font-weight: 700;
    font-size: 16px;
}

/* Enhanced Footer */
.footer {
    background: var(--footer);
}
.footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}
.footer h3 {
    color: var(--white);
    font-size: 18px;
}
.footer ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}
.footer-bottom {
    background: var(--footer-dark);
}

/* Responsive adjustments for new layout */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
    .carousel-content h2 {
        font-size: 24px;
    }
    .carousel-content p {
        font-size: 15px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .stats-item .number {
        font-size: 30px;
    }
    .notice-events-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .academic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .academic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.khm-breadcrumbs {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}
.khm-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.khm-breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--secondary);
}
.khm-breadcrumbs .breadcrumb-current {
    color: var(--text-dark);
    font-weight: 700;
}
.khm-breadcrumbs .breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 6px;
}

/* ============================================================
   EXPANDABLE MESSAGES
   ============================================================ */
.message-content .message-full {
    transition: all 0.4s ease;
}
.message-toggle {
    font-size: 14px;
    padding: 6px 18px;
}