/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */

/* Load Font Awesome from CDN as a fallback for missing local webfonts */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

* {
    margin: 0;
    padding: 1.5px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f4f6f9;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.text-center {
    text-align: center;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand img,
.school-logo {
    height: 60px;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    color: #1d4ed8;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #1d4ed8;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 170px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 120;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #334155;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: #f8fafc;
    color: #1d4ed8;
}

.main-nav li:hover > .dropdown-menu,
.main-nav li:focus-within > .dropdown-menu {
    display: block;
}

.main-nav a i {
    font-size: 0.75em;
    margin-left: 3px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dbeafe;
    border-radius: 50%;
    background: #f8fbff;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
    background: #eff6ff;
    color: #b75108;
}

.btn,
button,
.button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #1d4ed8;
    color: white;
    border: 2px solid #1d4ed8;
}

.btn-primary:hover {
    background-color: #1739b7;
    border-color: #1739b7;
}

.btn-secondary {
    background-color: transparent;
    color: #1d4ed8;
    border: 2px solid #1d4ed8;
}

.btn-secondary:hover {
    background-color: rgba(29, 78, 216, 0.08);
}

/* ============================================
   PAGE LAYOUT
   ============================================ */

.page-header {
    padding: 70px 0 50px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 18px;
    line-height: 1.05;
}

.page-header p {
    max-width: 760px;
    margin: 0 auto;
    color: #475569;
    font-size: 1.05rem;
}

.content {
    padding: 40px 0 80px;
}

.about-section,
.event-card,
.news-card,
.contact-card,
.form-card,
.facility-item,
.leadership-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    padding: 32px;
}

.history-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: center;
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .history-section {
        grid-template-columns: 1fr;
    }
}

.news-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.news-card .card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card .tag {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.85rem;
}

.news-card .card-title {
    margin: 0;
    font-size: 1.4rem;
    color: #0f172a;
}

.news-card .card-footer {
    padding: 18px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.95rem;
}

.news-card .read-more {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.news-card .read-more:hover {
    text-decoration: underline;
}

.about-section h2,
.event-card h3,
.news-card h3,
.contact-card h3,
.facility-item h3,
.leadership-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #0f172a;
}

.about-section p,
.contact-card p,
.news-card p,
.event-card p,
.facility-item p {
    color: #475569;
    line-height: 1.8;
}

.mission-grid,
.values-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    margin-top: 24px;
}

.mission-card,
.value-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mission-card:hover,
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.mission-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.value-card strong {
    display: block;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 1.05rem;
}

.value-card span {
    color: #475569;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .mission-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #1e3a8a;
    margin-bottom: 18px;
}

.section-header p {
    color: #64748b;
    line-height: 1.8;
}

/* ============================================
   CORE VALUES TREE
   ============================================ */

.core-values-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: 12px;
    padding: 8px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.68), rgba(224,242,254,0.42));
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 20px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    overflow: hidden;
}

.tree-root {
    position: relative;
    text-align: center;
    padding: 20px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(239,246,255,0.55));
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 14px 30px rgba(59, 130, 246, 0.16);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    max-width: 360px;
    overflow: hidden;
}

.tree-root::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 55%);
    pointer-events: none;
}

.tree-root h3 {
    margin: 0 0 8px;
    color: #1d4ed8;
}

.tree-root p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.tree-branches {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    width: 100%;
    position: relative;
}

.tree-branches::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    width: 2px;
    height: 18px;
    background: linear-gradient(180deg, #93c5fd, #1d4ed8);
    transform: translateX(-50%);
}

.value-node {
    position: relative;
    padding: 18px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(248,250,252,0.56));
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-node:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 16px 28px rgba(15, 23, 42, 0.12);
}

.value-node::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    width: 2px;
    height: 18px;
    background: linear-gradient(180deg, #93c5fd, #1d4ed8);
    transform: translateX(-50%);
}

.value-node strong {
    color: #0f172a;
    font-size: 1rem;
}

.value-node span {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .tree-branches {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .tree-branches {
        grid-template-columns: 1fr;
    }
}

.academic-structure-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: 12px;
}

.academic-structure-tree .tree-root {
    max-width: 420px;
}

.academic-structure-tree .tree-branches {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
}

@media (max-width: 540px) {
    .academic-structure-tree .tree-branches {
        grid-template-columns: 1fr;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    margin-top: 1rem;
}

.team-card {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.team-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

/* Circular profile images for team members */
.circular {
    width: 96px;
    height: 96px;
    display: block;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.team-role {
    color: #1d4ed8;
    font-weight: 700;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.team-card p:last-child {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        padding: 1rem;
    }
}

/* ============================================
   HERO & GALLERY
   ============================================ */

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: clamp(2.75rem, 5vw, 4.4rem);
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 760px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.gallery,
.news,
.events-section,
.stats,
.features,
.contact-grid,
.about-grid {
    padding: 60px 0;
}

.gallery-grid,
.news-list,
.event-list,
.leadership-cards,
.facilities-grid,
.achievements-grid {
    display: grid;
    gap: 24px;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.facilities-grid,
.leadership-cards,
.news-grid,
.achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.news-card,
.event-card,
.contact-card,
.facility-item,
.leadership-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover,
.event-card:hover,
.contact-card:hover,
.facility-item:hover,
.leadership-card:hover,
.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.achievement-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 1.1rem;
}

.achievement-card p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
}

.alumni-marquee-section {
    margin: 40px 0 0;
    padding: 30px 0;
}

.alumni-marquee-section h2 {
    margin-bottom: 18px;
    color: #1e3a8a;
}

.alumni-marquee {
    overflow: hidden;
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 18px 30px;
    width: max-content;
    animation: marquee-scroll 24s linear infinite;
    will-change: transform;
}

.marquee-item {
    flex: 0 0 auto;
    padding: 12px 22px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1e3a8a;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.hidden {
    display: none !important;
}

.login-card {
    max-width: 500px;
    margin: 0 auto;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    font-weight: 700;
    color: #0f172a;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
}

.login-form input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-error {
    color: #dc2626;
    font-size: 0.95rem;
    min-height: 1.25rem;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-login-page .container {
    display: flex;
    justify-content: center;
}

.admin-login-page .dashboard-card {
    max-width: 560px;
}

.admin-panel .stats-grid,
.admin-summary-grid,
.dashboard-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.admin-form-card {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 28px;
    margin-top: 18px;
}

.admin-form-card h3 {
    margin-bottom: 18px;
}

.admin-form-card form {
    display: grid;
    gap: 18px;
}

.admin-form-card label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: #0f172a;
}

.admin-form-card input,
.admin-form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: white;
    color: #0f172a;
    font-size: 0.95rem;
}

.admin-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.admin-form-card .btn {
    min-width: 140px;
}

.dashboard-card h2,
.dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #0f172a;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1d4ed8;
    margin: 10px 0 16px;
}

.quick-actions {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.card-description {
    color: #475569;
    line-height: 1.8;
}

.activity-list,
.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.activity-list li,
.summary-list li {
    color: #475569;
    line-height: 1.7;
}

.admin-panel a {
    color: #1d4ed8;
}

.admin-panel a:hover,
.admin-panel a:focus {
    text-decoration: underline;
}
/* ============================================
   CONTACT FORM
   ============================================ */

.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-form-section {
    padding: 40px;
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-group label {
    font-weight: 700;
    color: #0f172a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.site-social-bar {
    position: fixed;
    right: 18px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 120;
}

.social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1d4ed8;
    color: white;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    background: #1739b7;
}

/* Ensure images and Font Awesome icons inside social links scale and are centered */
.social-link img,
.social-link i {
    max-width: 60%;
    max-height: 60%;
    display: block;
    font-size: 1.15rem;
    color: white;
}

@media (max-width: 640px) {
    .site-social-bar {
        right: 12px;
        bottom: 72px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer,
.footer {
    background: linear-gradient(135deg, #07111f 0%, #111827 55%, #1d4ed8 100%);
    color: #f8fafc;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.site-footer::before,
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 204, 77, 0.18), transparent 30%);
    pointer-events: none;
}

.site-footer .container,
.footer .container {
    display: grid;
    grid-template-columns: 1.2fr .8fr .9fr .9fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.site-footer .footer-brand h3,
.site-footer .footer-section h3 {
    margin-bottom: 12px;
    color: white;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer p,
.footer p,
.site-footer a,
.footer a {
    color: #e2e8f0;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-brand p {
    margin-bottom: 8px;
    max-width: 320px;
}

.footer-links,
.footer-contact {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.footer-links a,
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: #ffd54f;
    transform: translateX(3px);
}

.footer-contact li {
    color: #e2e8f0;
}

.footer-cta {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-cta .btn {
    margin-top: 14px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 900px) {
    .site-footer .container,
    .footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .site-footer,
    .footer {
        padding: 64px 0 24px;
    }

    .site-footer .container,
    .footer .container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITIES & RESPONSIVE
   ============================================ */

.text-muted {
    color: #64748b;
}

.floating-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 120;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 14px;
    border-radius: 999px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(29, 78, 216, 0.12);
}

.floating-chat .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.floating-chat .button:hover,
.floating-chat .button:focus {
    background: #1739b7;
    transform: translateY(-1px);
}

.floating-chat .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #1d4ed8;
}

.floating-chat .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: min(360px, calc(100% - 32px));
    max-height: 520px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 130;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.chat-widget.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 18px 20px;
    background: #1d4ed8;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
}

.chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 320px;
}

.chat-message {
    max-width: 78%;
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.chat-message.user {
    background: #1d4ed8;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.chat-message.bot {
    background: #f1f5f9;
    color: #0f172a;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.chat-footer {
    padding: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    background: #f8fafc;
}

.chat-input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
}

.chat-send {
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    background: #1d4ed8;
    color: white;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 680px) {
    .floating-chat {
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
        gap: 10px;
    }

    .floating-chat .button {
        padding: 9px 14px;
        font-size: 0.95rem;
    }

    .chat-widget {
        right: 12px;
        bottom: 70px;
        width: calc(100% - 24px);
        max-height: 60vh;
    }
}


.hero-slider {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slider .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 18, 41, 0.3) 0%, rgba(7, 18, 41, 0.85) 100%);
}

.hero-slider .hero-content {
    position: relative;
    z-index: 2;
    width: min(940px, 94%);
    margin: 0 auto;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: white;
    text-align: center;
}

.hero-slider .hero-content .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.hero-slider .hero-content h1,
.hero-slider .hero-content h2 {
    font-size: clamp(2.4rem, 4vw, 4.3rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.hero-slider .hero-subtitle {
    max-width: 860px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-slider .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero-slider .slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: white;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.hero-slider .slider-button:hover {
    background: rgba(255, 255, 255, 0.26);
}

.hero-slider .slider-button.prev {
    left: 24px;
}

.hero-slider .slider-button.next {
    right: 24px;
}

.hero-slider .hero-buttons .btn {
    min-width: 160px;
}

@media (max-width: 900px) {
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content {
        padding: 60px 20px;
    }
}

@media (max-width: 680px) {
    .site-header .container {
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        position: relative;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        position: absolute;
        top: 10px;
        right: 0;
        z-index: 5;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.mobile-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 8px 0;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    }

    .main-nav > ul > li {
        width: 100%;
    }

    .main-nav > ul > li > a,
    .main-nav a {
        display: block;
        padding: 12px 16px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 10px;
        background: transparent;
    }

    .main-nav li:hover > .dropdown-menu,
    .main-nav li:focus-within > .dropdown-menu {
        display: block;
    }

    .nav-actions {
        display: none;
        width: 100%;
        justify-content: flex-start;
        order: 4;
    }

    .site-header.mobile-open .nav-actions {
        display: flex;
    }

    .page-header {
        padding: 50px 0 30px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .gallery-grid,
    .news-grid,
    .facilities-grid,
    .leadership-cards,
    .event-list,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.floating-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 120;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 14px;
    border-radius: 999px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(29, 78, 216, 0.12);
}

.floating-chat .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.floating-chat .button:hover,
.floating-chat .button:focus {
    background: #1739b7;
    transform: translateY(-1px);
}

.floating-chat .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #1d4ed8;
}

.floating-chat .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 520px) {
    .floating-chat {
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
        gap: 10px;
    }

    .floating-chat .button {
        padding: 9px 14px;
        font-size: 0.95rem;
    }

    .floating-chat .avatar {
        width: 40px;
        height: 40px;
    }
}
