/* assets/css/style.css - สไตล์หลักทั้งหมด */

/* ===== Base Styles ===== */
:root {
    --primary: #1e3c72;
    --primary-dark: #0f2748;
    --primary-light: #2a5298;
    --accent: #ff6b35;
    --accent-dark: #e55a2b;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 10px 25px;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 15px 20px;
    color: white;
}

/* ===== Stats Cards ===== */
.stats-card {
    background: white;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.welcome-school {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(22, 155, 213, .16), transparent 26%),
        radial-gradient(circle at 88% 20%, rgba(240, 98, 166, .16), transparent 28%),
        linear-gradient(135deg, #f5fbff 0%, #fff7fb 55%, #f8fcff 100%);
}

.welcome-school::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 155, 213, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 98, 166, .06) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
}

.welcome-school .container {
    position: relative;
    z-index: 1;
}

.welcome-visual {
    position: relative;
    min-height: 500px;
    border-radius: 8px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(22, 155, 213, .9), rgba(240, 98, 166, .86));
    box-shadow: 0 24px 60px rgba(8, 117, 173, .18);
}

.welcome-visual::before {
    content: "";
    position: absolute;
    inset: 38px -18px -18px 38px;
    border-radius: 8px;
    background: rgba(240, 98, 166, .15);
    z-index: -1;
}

.welcome-visual img,
.welcome-visual-placeholder {
    width: 100%;
    height: 464px;
    object-fit: cover;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #169bd5;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.78)),
        linear-gradient(135deg, #dff5ff, #ffe1f0);
}

.welcome-visual-placeholder i {
    font-size: 5rem;
}

.welcome-ribbon {
    position: absolute;
    left: 34px;
    bottom: 34px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #0875ad;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(24, 34, 48, .14);
}

.welcome-ribbon i {
    color: #f062a6;
}

.welcome-copy {
    padding: 8px 0 0;
}

.welcome-copy h2 {
    color: #182230;
}

.welcome-stat-card {
    min-height: 210px;
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 18px 42px rgba(8,117,173,.11);
}

.welcome-stat-card .stats-icon {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
}

.welcome-stat-card.stat-news {
    background: linear-gradient(180deg, #ffffff, #eef9ff);
}

.welcome-stat-card.stat-news .stats-icon {
    background: linear-gradient(135deg, #0875ad, #29b6e8);
}

.welcome-stat-card.stat-people {
    background: linear-gradient(180deg, #ffffff, #fff0f7);
}

.welcome-stat-card.stat-people .stats-icon {
    background: linear-gradient(135deg, #d83f87, #f78abf);
}

.welcome-stat-card.stat-docs {
    background: linear-gradient(180deg, #ffffff, #fff9e8);
}

.welcome-stat-card.stat-docs .stats-icon {
    background: linear-gradient(135deg, #ffb000, #ffd45c);
}

.welcome-stat-card.stat-award {
    background: linear-gradient(180deg, #ffffff, #ecfff7);
}

.welcome-stat-card.stat-award .stats-icon {
    background: linear-gradient(135deg, #0e9f6e, #46d6a6);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0 5px;
}

/* ===== News Cards ===== */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 5px 10px;
    min-width: 55px;
}

.news-date .day {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

.news-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.news-content {
    padding: 20px;
    line-height: 1.8;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.news-content iframe,
.news-content video {
    max-width: 100%;
    border-radius: 8px;
}

.news-content table {
    width: 100%;
    margin: 18px 0;
}

.news-content blockquote {
    padding: 14px 18px;
    border-left: 4px solid #169bd5;
    background: #f3faff;
    border-radius: 8px;
}

.news-content .school-callout {
    padding: 18px;
    margin: 18px 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(22,155,213,.1), rgba(240,98,166,.1));
    border: 1px solid rgba(22,155,213,.18);
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
}

.news-title a {
    color: var(--text-dark);
}

.news-title a:hover {
    color: var(--accent);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: var(--accent);
    font-weight: 500;
}

.read-more:hover {
    letter-spacing: 1px;
}

/* ===== Executive Cards ===== */
.executive-card {
    background: white;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
}

.executive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.executive-card img {
    border: 3px solid var(--accent);
}

.avatar-placeholder {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.personnel-portrait {
    display: block;
    width: 170px;
    height: 200px;
    max-width: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
    background: #eef8fd;
}

.personnel-portrait-placeholder {
    color: #169bd5;
    border: 3px solid #f7b5d4;
}

.personnel-directory-hero {
    position: relative;
    overflow: hidden;
    margin: -6px 0 28px;
    padding: 42px 0;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(22, 155, 213, .94), rgba(240, 98, 166, .78)),
        linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    color: #fff;
}

.personnel-directory-hero h1 {
    margin: 10px 0 10px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
}

.personnel-directory-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 1.05rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    font-weight: 700;
}

.personnel-summary {
    min-height: 142px;
    padding: 24px;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    color: #0875ad;
    box-shadow: 0 18px 42px rgba(8,117,173,.18);
}

.personnel-summary strong {
    display: block;
    font-size: 3rem;
    line-height: 1;
    color: #f062a6;
}

.personnel-summary span {
    display: block;
    margin-top: 8px;
    color: #243447;
    font-weight: 600;
}

.personnel-directory-layout {
    align-items: flex-start;
}

.personnel-filter-panel {
    top: 92px;
    padding: 12px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff, #f8fcff);
    border: 1px solid rgba(205, 238, 254, .9);
    box-shadow: 0 14px 32px rgba(8,117,173,.08);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 9px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(22,155,213,.12), rgba(240,98,166,.12));
    color: #0875ad;
    font-weight: 800;
}

.filter-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 7px 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    color: #243447;
    background: #ffffff;
    border: 1px solid rgba(205, 238, 254, .72);
    box-shadow: 0 5px 14px rgba(8,117,173,.04);
}

.filter-link i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border-radius: 8px;
    color: #0875ad;
    background: #eef9ff;
    text-align: center;
}

.filter-link span {
    margin-left: auto;
    min-width: 28px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #eef9ff;
    color: #0875ad;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.filter-link:hover,
.filter-link.active {
    background: linear-gradient(135deg, #169bd5, #f062a6);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(240,98,166,.16);
    transform: translateY(-1px);
}

.filter-link:hover i,
.filter-link.active i {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.filter-link:hover span,
.filter-link.active span {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.personnel-directory-section {
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(205, 238, 254, .8);
    box-shadow: 0 14px 36px rgba(8,117,173,.07);
}

.personnel-directory-section.leadership-section {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,251,255,.98)),
        linear-gradient(135deg, rgba(22,155,213,.08), rgba(240,98,166,.08));
}

.personnel-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(205, 238, 254, .9);
}

.personnel-section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.personnel-section-heading span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #169bd5, #f062a6);
    color: #fff;
    font-size: 1.08rem;
}

.personnel-section-heading h2 {
    margin: 0;
    color: #243447;
    font-size: clamp(1.08rem, 1.7vw, 1.42rem);
    font-weight: 800;
}

.personnel-section-heading small {
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff0f7;
    color: #d83f87;
    font-weight: 700;
}

.personnel-directory-card {
    height: 100%;
    padding: 16px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(210, 224, 234, .9);
    text-align: center;
    box-shadow: 0 8px 24px rgba(8,117,173,.07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.personnel-directory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 34px rgba(8,117,173,.12);
}

.personnel-directory-card.is-featured {
    border-color: rgba(240,98,166,.38);
    box-shadow: 0 14px 34px rgba(240,98,166,.11);
}

.personnel-directory-card .personnel-portrait {
    border: 3px solid #f7b5d4;
    box-shadow: 0 10px 22px rgba(8,117,173,.11);
}

.personnel-directory-card h5 {
    margin: 0 0 5px;
    color: #182230;
    font-size: .98rem;
    font-weight: 800;
}

.personnel-position {
    margin: 0 0 6px;
    color: #0875ad;
    font-weight: 700;
    font-size: .9rem;
}

.personnel-department,
.personnel-bio {
    margin: 0 0 6px;
    color: #667085;
    font-size: .84rem;
}

.personnel-contact {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.personnel-contact a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef9ff;
    color: #0875ad;
}

.personnel-contact a:hover {
    background: #f062a6;
    color: #fff !important;
}

.personnel-empty {
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(205, 238, 254, .8);
}

.personnel-showcase-section {
    background: linear-gradient(180deg, #f7fbff 0%, #fff6fb 100%) !important;
}

.personnel-block,
.staff-group {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.personnel-group-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    margin: 0;
    padding: 10px 24px;
    border-radius: 999px;
    color: #0875ad;
    background: #ffffff;
    border: 1px solid rgba(22, 155, 213, .18);
    box-shadow: 0 8px 24px rgba(22, 155, 213, .08);
    font-size: 1.35rem;
    font-weight: 700;
}

.personnel-card {
    height: 100%;
}

.staff-group-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.staff-group-heading::before,
.staff-group-heading::after {
    content: "";
    width: min(120px, 18vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 155, 213, .45));
}

.staff-group-heading::after {
    background: linear-gradient(90deg, rgba(240, 98, 166, .45), transparent);
}

.staff-group-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #169bd5, #f062a6);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(240, 98, 166, .18);
}

.staff-card {
    height: 100%;
    padding: 24px 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(210, 224, 234, .9);
    box-shadow: 0 8px 24px rgba(8, 117, 173, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(8, 117, 173, .13);
}

.staff-photo {
    border: 4px solid #f7b5d4;
    margin-bottom: 16px;
    background: #eef8fd;
}

.staff-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #169bd5;
    font-size: 2.4rem;
}

.staff-card h5 {
    margin: 0 0 6px;
    color: #182230;
    font-size: 1.05rem;
    font-weight: 700;
}

.staff-card p {
    margin: 0;
    color: #667085;
    font-size: .92rem;
}

/* ===== Activity Items ===== */
.activity-item {
    transition: var(--transition);
}

.activity-item:hover {
    transform: translateX(5px);
}

.activity-date {
    background: var(--bg-light);
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 70px;
    text-align: center;
}

.activity-date .day {
    font-size: 1.3rem;
    font-weight: bold;
}

/* ===== Director Section ===== */
.director-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    overflow: hidden;
}

.director-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-height: 400px;
}

/* ===== Contact Section ===== */
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(30,60,114,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.3rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Content Pages ===== */
.content-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 26px 0 12px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.page-heading h1 {
    margin: 0;
    color: var(--text-dark);
}

.content-panel {
    background: #fff;
    border: 1px solid rgba(208,213,221,.8);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.page-content {
    color: #344054;
    line-height: 1.9;
    font-size: 1.02rem;
}

.page-content img,
.page-content iframe,
.page-content table {
    max-width: 100%;
}

.page-content img {
    height: auto;
    border-radius: 8px;
}

.page-content iframe,
.page-content video {
    max-width: 100%;
    border-radius: 8px;
}

.page-content table {
    width: 100%;
    margin: 16px 0;
}

.school-callout {
    margin: 24px 0;
    padding: 22px 24px;
    border-radius: 8px;
    color: #084b6d;
    background:
        linear-gradient(135deg, rgba(22,155,213,.14), rgba(240,98,166,.12)),
        #fff;
    border-left: 6px solid #f062a6;
    box-shadow: 0 12px 30px rgba(8,117,173,.1);
}

.school-callout h3,
.school-info-card h3 {
    margin-top: 0;
    color: #0875ad;
}

.school-info-card {
    margin: 24px 0;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(22,155,213,.18);
    box-shadow: 0 14px 34px rgba(8,117,173,.1);
}

.school-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(135deg, #169bd5, #f062a6);
    box-shadow: 0 10px 24px rgba(240,98,166,.2);
}

.school-page-button:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #0875ad, #d83f87);
}

.school-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.school-two-columns > div {
    padding: 22px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f5fbff);
    border: 1px solid rgba(22,155,213,.16);
}

.school-video-block {
    margin: 24px 0;
}

.school-video-block video {
    width: 100%;
    display: block;
    background: #182230;
    box-shadow: 0 16px 36px rgba(24,34,48,.16);
}

@media (max-width: 768px) {
    .page-heading {
        display: block;
    }
    .page-heading .btn {
        margin-top: 12px;
    }
    .content-panel {
        padding: 20px;
    }
    .school-two-columns {
        grid-template-columns: 1fr;
    }
}

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--primary);
    border-radius: 8px;
    margin: 0 3px;
    border: none;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary);
    color: white;
}

.pagination .active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

/* ===== Forms ===== */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px 15px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(255,107,53,0.25);
}

/* ===== Tables ===== */
.table th {
    font-weight: 600;
    border-top: none;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: none;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--accent);
}

/* ===== Empty State ===== */
.empty-state {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
}

/* ===== Loading Spinner ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== Print Styles ===== */
@media print {
    .top-bar, .navbar, .announcement-ticker, footer, #backToTop, 
    .social-icons, .btn, .pagination, .carousel-control-prev, 
    .carousel-control-next, .carousel-indicators {
        display: none !important;
    }
    
    .card, .news-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: black;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== Modern School UI Refresh ===== */
:root {
    --primary: #265f73;
    --primary-dark: #183b4a;
    --primary-light: #3b8a91;
    --accent: #d97706;
    --accent-dark: #b96205;
    --success: #2f7d67;
    --text-dark: #182230;
    --text-light: #667085;
    --bg-light: #f4f7f6;
    --border: #d0d5dd;
    --shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
    --shadow-hover: 0 18px 44px rgba(16, 24, 40, 0.14);
}

body {
    background: #fbfcfc !important;
    color: var(--text-dark) !important;
}

.top-bar {
    background: #183b4a !important;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.navbar {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(208,213,221,.7);
}

.navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
    max-width: 420px;
}

.navbar-brand > i,
.navbar-brand img {
    flex: 0 0 auto;
}

.navbar-brand small {
    margin-top: 2px;
}

.nav-link {
    border-radius: 8px;
    padding: 8px 11px !important;
}

.nav-link::after {
    display: none !important;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(38,95,115,.09);
    color: var(--primary) !important;
}

.announcement-ticker {
    background: linear-gradient(90deg, var(--accent), #e8a23c) !important;
}

.hero-static {
    min-height: 430px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(24,59,74,.94), rgba(47,125,103,.86)),
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Cpath fill="%23ffffff" fill-opacity=".12" d="M0 79h160v2H0zM79 0h2v160h-2z"/%3E%3C/svg%3E') !important;
}

.hero-static-image {
    position: relative;
    min-height: 528px;
    overflow: hidden;
}

.hero-static-image.has-hero-image {
    background:
        linear-gradient(90deg, rgba(8,117,173,.72), rgba(240,98,166,.52)),
        var(--hero-image) center center / cover no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-static-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
}

.hero-static-image .container {
    position: relative;
    z-index: 1;
}

.hero-slider .carousel-item {
    height: 68vh !important;
    min-height: 460px !important;
}

.hero-slider .carousel-item,
.hero-static-image {
    height: clamp(420px, 28vw, 540px) !important;
}

.hero-slider .carousel-item img {
    object-fit: cover !important;
    object-position: center center;
}

.carousel-caption {
    border-radius: 8px !important;
    background: rgba(24, 34, 48, .72) !important;
    backdrop-filter: blur(6px);
}

.badge.rounded-pill,
.badge {
    border-radius: 999px !important;
}

.card,
.news-card,
.stats-card,
.executive-card,
.contact-card,
.calendar-card,
.activity-item {
    border-radius: 8px !important;
    border: 1px solid rgba(208,213,221,.65) !important;
}

.card:hover,
.news-card:hover,
.stats-card:hover,
.executive-card:hover {
    transform: translateY(-3px) !important;
}

.section-header h3,
.news-section h2,
.welcome-stats h2,
.executives-section h2 {
    color: var(--text-dark);
}

.btn-primary,
.btn-accent {
    border-radius: 8px !important;
    background: var(--primary) !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.btn-accent:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px) !important;
}

.btn-outline-primary {
    border-radius: 8px !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.stats-icon {
    border-radius: 12px !important;
}

.news-img-wrapper {
    height: 210px;
}

.news-date {
    border-radius: 8px !important;
    background: rgba(24, 34, 48, .82) !important;
}

.read-more {
    color: var(--primary) !important;
}

.activity-date {
    border-radius: 8px !important;
    background: #e7f2ef !important;
    color: var(--success);
}

.director-card {
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--primary), var(--success)) !important;
}

footer {
    background: #183b4a !important;
    margin-top: 36px !important;
}

#backToTop {
    border-radius: 8px !important;
    background: var(--accent) !important;
}

@media (max-width: 991.98px) {
    .personnel-filter-panel {
        position: static !important;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 18px;
    }
    .filter-title {
        width: 100%;
        margin-bottom: 2px;
    }
    .filter-link {
        width: calc(50% - 4px);
        margin-bottom: 0;
        font-size: .94rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        max-width: calc(100vw - 92px);
        font-size: 1rem !important;
    }
    .personnel-directory-hero {
        padding: 30px 0;
        margin-top: 0;
    }
    .personnel-summary {
        min-height: auto;
    }
    .personnel-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .personnel-directory-section {
        padding: 16px;
    }
    .hero-static {
        min-height: 360px;
    }
    .welcome-visual {
        min-height: 340px;
        padding: 12px;
    }
    .welcome-visual img,
    .welcome-visual-placeholder {
        height: 316px;
    }
    .welcome-ribbon {
        left: 22px;
        right: 22px;
        bottom: 22px;
        justify-content: center;
    }
    .hero-slider .carousel-item {
        height: 52vh !important;
        min-height: 350px !important;
    }
}

@media (max-width: 575.98px) {
    .filter-link {
        width: 100%;
    }
    .personnel-portrait {
        width: 161px;
        height: 186px;
    }
}

/* ===== School Color Theme: Sky Blue + Pink ===== */
:root {
    --primary: #169bd5;
    --primary-dark: #0875ad;
    --primary-light: #6ec9f5;
    --accent: #f062a6;
    --accent-dark: #d83f87;
    --success: #39a7d8;
    --text-dark: #243447;
    --text-light: #667085;
    --bg-light: #f3faff;
    --border: #cdeefe;
    --shadow: 0 12px 32px rgba(22, 155, 213, 0.12);
    --shadow-hover: 0 18px 44px rgba(240, 98, 166, 0.16);
}

body {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%) !important;
}

.top-bar {
    background: linear-gradient(90deg, #0875ad, #169bd5) !important;
}

.navbar {
    border-bottom: 3px solid #f8b7d7 !important;
}

.navbar-brand {
    color: #0875ad !important;
}

.navbar-brand i,
.navbar-brand small,
.nav-link:hover,
.nav-link.active {
    color: #f062a6 !important;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(240, 98, 166, .11) !important;
}

.dropdown-item:hover {
    background: #f062a6 !important;
}

.announcement-ticker {
    background: linear-gradient(90deg, #f062a6, #169bd5) !important;
}

.ticker-label,
.urgent-badge {
    background: rgba(8, 117, 173, .92) !important;
}

.hero-static {
    background:
        linear-gradient(135deg, rgba(8,117,173,.94), rgba(240,98,166,.82)),
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Cpath fill="%23ffffff" fill-opacity=".14" d="M0 79h160v2H0zM79 0h2v160h-2z"/%3E%3C/svg%3E') !important;
}

.hero-static-image.has-hero-image {
    background:
        linear-gradient(90deg, rgba(8,117,173,.68), rgba(240,98,166,.45)),
        var(--hero-image) center center / cover no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.carousel-caption {
    background: linear-gradient(90deg, rgba(8,117,173,.82), rgba(240,98,166,.64)) !important;
}

.btn-primary,
.btn-accent {
    background: linear-gradient(135deg, #169bd5, #f062a6) !important;
    border: 0 !important;
}

.btn-primary:hover,
.btn-accent:hover {
    background: linear-gradient(135deg, #0875ad, #d83f87) !important;
}

.btn-outline-primary {
    border-color: #169bd5 !important;
    color: #0875ad !important;
}

.btn-outline-primary:hover {
    background: #169bd5 !important;
    color: #fff !important;
}

.card-header,
.pagination .active .page-link {
    background: linear-gradient(135deg, #169bd5, #f062a6) !important;
}

.badge.bg-primary,
.bg-primary,
.text-bg-primary {
    background-color: #169bd5 !important;
}

.text-primary {
    color: #0875ad !important;
}

.bg-primary.bg-opacity-10 {
    background-color: rgba(22,155,213,.12) !important;
}

.read-more,
a:hover,
.breadcrumb-item.active {
    color: #f062a6 !important;
}

.stats-icon {
    background-color: rgba(22,155,213,.12) !important;
}

.news-date {
    background: linear-gradient(135deg, #169bd5, #f062a6) !important;
}

.activity-date {
    background: #e6f7ff !important;
    color: #0875ad !important;
}

.executive-card img {
    border-color: #f062a6 !important;
}

.director-card {
    background: linear-gradient(135deg, #169bd5, #f062a6) !important;
}

footer {
    background: linear-gradient(135deg, #0875ad, #169bd5 55%, #f062a6) !important;
}

#backToTop {
    background: #f062a6 !important;
}

::-webkit-scrollbar-thumb {
    background: #169bd5 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #f062a6 !important;
}
