﻿/* =========================================================
   GIMS Hospital — main stylesheet
   ========================================================= */

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f7fb;
    color: #25313a;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

/* ===== Variables ===== */
:root {
    --primary-blue: #1ba0e2;
    --primary-blue-dark: #0e7bb4;
    --primary-dark: #12486a;
    --accent: #10b0ff;
    --soft-blue: #eff7ff;
    --light-gray: #eef2f8;
    --border-gray: #d9e2ec;
    --text-dark: #1f2a33;
    --muted: #65758a;
    --topbar-bg: #1ba0e2;
    --navy: #0f1f3d;
    --navy-soft: #16294d;
    --header-height: 80px;
}

/* ===== Global Layout ===== */
.page-width,
.topbar-inner,
.main-header-inner,
.hero-inner,
.features-grid,
.about-inner,
.department-inner,
.split-inner,
.doctors-inner,
.testimonial2-inner,
.blog-inner,
.cta-inner,
.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.section-title.center {
    text-align: center;
}

.section-heading {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 18px;
}

.section-heading.center {
    text-align: center;
    margin-bottom: 48px;
}

.section-desc.center {
    text-align: center;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
}

p {
    color: #5c6f85;
}

button, .btn {
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 999px;
    display: inline-block;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    box-shadow: 0 10px 24px rgba(27, 160, 226, .28);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: #fff;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid var(--border-gray);
    display: inline-block;
    transition: all .25s ease;
}

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

/* ===== Top Info Bar ===== */
.topbar {
    background: var(--topbar-bg);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.topbar-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.topbar-info li i {
    width: 18px;
    text-align: center;
}

.topbar-info a {
    color: #fff;
    opacity: 0.95;
}

.topbar-social {
    display: flex;
    gap: 10px;
}

.topbar-social a {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, color .3s, border-color .3s;
}

.topbar-social a:hover {
    background: #fff;
    color: var(--primary-blue);
    border-color: #fff;
}

/* ===== Main Header ===== */
.main-header {
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 66, 110, .08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    height: 76px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title, .logo-acronym {
    color: #09224c;
    font-weight: 800;
    line-height: 1.15;
}

.logo-title {
    font-size: 15px;
}

.logo-acronym {
    font-size: 13px;
    color: var(--primary-blue);
}

.logo-tagline {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #53606c;
    padding: 26px 0;
    display: inline-block;
    transition: color .25s ease;
    position: relative;
}

.main-nav ul li.has-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 10px;
}

.main-nav ul li .dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border: 1px solid rgba(15, 66, 110, .1);
    box-shadow: 0 18px 36px rgba(15, 66, 110, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 20;
}

.main-nav ul li .dropdown li {
    margin: 0;
    padding: 0;
}

.main-nav ul li:hover > .dropdown,
.main-nav ul li:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul li .dropdown li {
    border-bottom: 1px solid #f4f7fb;
}

.main-nav ul li .dropdown li:last-child {
    border-bottom: none;
}

.main-nav ul li .dropdown li a {
    display: block;
    padding: 4px 16px;
    color: #25313a;
    font-weight: 600;
    text-transform: uppercase;
}

.main-nav ul li .dropdown li a:hover {
    background: var(--soft-blue);
    color: var(--primary-blue);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-blue);
}

.btn-appointment {
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    padding: 14px 28px;
    border-radius: 30px;
    box-shadow: 0 10px 24px rgba(27, 160, 226, .25);
    white-space: nowrap;
    transition: background .3s, transform .3s;
}

.btn-appointment:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all .3s ease;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(9, 30, 56, .82) 0%, rgba(9, 30, 56, .55) 55%, rgba(9, 30, 56, .3) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 90px 20px 70px;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-copy {
    max-width: 100%;
}

.hero-copy .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}


.hero-copy h1 {
    color: #fff;
    line-height: 1.15;
    margin-bottom: 22px;
}

.hero-copy h1 .hero-brand {
    display: block;
    color: #ffd166;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    text-shadow: 0 0 6px rgba(255, 209, 102, .9), 0 0 18px rgba(255, 174, 0, .8), 0 2px 12px rgba(0, 0, 0, .7);
    white-space: nowrap;
    clip-path: inset(0 100% 0 0);
    animation: hero-brand-typing 1.8s steps(13, end) forwards;
}

.hero-copy h1 .hero-tagline {
    display: block;
    margin-top: 8px;
    font-size: clamp(.8rem, 2.5vw, 1.75rem);
    white-space: nowrap;
}

@keyframes hero-brand-typing {
    to {
        clip-path: inset(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy h1 .hero-brand {
        clip-path: none;
        animation: none;
    }
}

.hero-copy p {
    color: rgba(255, 255, 255, .88);
    max-width: 650px;
    margin: 0 auto 34px;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero-actions .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.hero-actions .btn-outline:hover {
    background: #fff;
    color: var(--primary-dark);
}

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    padding: 0;
    transition: background .25s ease, transform .25s ease;
}

.hero-dots button.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

/* ===== Features ===== */
.features {
    padding: 70px 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid rgba(27, 160, 226, .15);
    border-radius: 24px;
    padding: 36px 32px;
    text-align: center;
    min-height: 260px;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(16, 74, 123, .14);
}

.feature-card.highlight {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.feature-card.highlight h3,
.feature-card.highlight p {
    color: #fff;
}

.feature-card.highlight .icon-wrap {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.feature-card.highlight a {
    color: #fff;
}

.feature-card .icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #e9f3ff;
    color: var(--primary-blue);
    font-size: 24px;
}

.feature-card h3 {
    margin-bottom: 14px;
    font-size: 18px;
}

.feature-card p {
    color: #6d7b8c;
    line-height: 1.7;
    font-size: .95rem;
}

.feature-card a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 18px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 13px;
}

/* ===== About Section ===== */
.about {
    padding: 90px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
}

.about-media {
    position: relative;
}

.about-media::before {
    content: "";
    position: absolute;
    top: -22px;
    left: -22px;
    width: 130px;
    height: 130px;
    background-image: radial-gradient(var(--border-gray) 2px, transparent 2px);
    background-size: 12px 12px;
    z-index: 0;
    animation: float-overlay 6s ease-in-out infinite alternate;
}

@keyframes float-overlay {
    0% {
        transform: translateY(0);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-18px);
        opacity: 0.7;
    }
}

.about-media-frame {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 45px rgba(16, 74, 123, .1);
    padding: 18px;
}

.about-media-frame img,
.about-media-frame video {
    display: block;
    border-radius: 20px;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.stat-badge {
    position: absolute;
    right: -20px;
    bottom: -20px;
    z-index: 2;
    background: var(--navy);
    color: #fff;
    border-radius: 20px;
    padding: 20px 26px;
    box-shadow: 0 20px 34px rgba(9, 30, 56, .3);
}

.stat-badge .num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-badge .label {
    font-size: .78rem;
    color: rgba(255, 255, 255, .8);
    margin-top: 6px;
}

.about-content p {
    max-width: 560px;
    margin-bottom: 26px;
}

.about-list {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: .95rem;
}

.about-list li i {
    color: var(--primary-blue);
    background: var(--soft-blue);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    flex-shrink: 0;
}

.about-content .about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.about-content .about-actions input {
    flex: 1 1 260px;
    padding: 16px 20px;
    border-radius: 999px;
    border: 1px solid #d7dee8;
    outline: none;
}

.about-content .about-actions input:focus {
    border-color: var(--primary-blue);
}

.about-content .about-actions .btn-primary {
    padding: 16px 30px;
}

/* ===== Department / Amenities ===== */
.department {
    padding: 90px 0;
    background: #fff;
}

.department-section-group {
    margin-top: 48px;
}

.department-section-title {
    color: var(--navy);
    font-size: 1.45rem;
    font-weight: 750;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-gray);
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.dept-card {
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(16, 74, 123, .12);
}

.dept-card .dept-media {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    position: relative;
    overflow: hidden;
    background: #09224c;
}

.dept-card .dept-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f4f7fb;
}

.dept-card .dept-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.dept-card .dept-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
}

.dept-card .dept-icon {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 24px;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 12px 28px rgba(8, 39, 68, .15);
}

.dept-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 28px 30px;
    position: relative;
    z-index: 1;
    min-height: 218px;
}

.dept-body h3 {
    display: block;
    color: var(--text-dark);
    font-size: 19px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.dept-body p {
    font-size: .93rem;
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.dept-link {
    margin-top: auto;
    color: var(--primary-blue);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.dept-link i {
    margin-left: 6px;
    transition: transform .2s ease;
}

.dept-link:hover {
    color: var(--secondary);
}

.dept-link:hover i {
    transform: translateX(4px);
}

.department-actions {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.department-empty {
    grid-column: 1 / -1;
    padding: 32px;
    border: 1px dashed var(--border-gray);
    border-radius: 18px;
    color: #526176;
    text-align: center;
}

.department-details {
    padding: 90px 0;
    background: #f4f8ff;
}

.department-details .details-grid {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    gap: 36px;
    align-items: center;
}

.department-details .details-media {
    min-height: 360px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    overflow: hidden;
    color: #fff;
    font-size: 76px;
    background: #09224c;
    box-shadow: 0 28px 60px rgba(16, 74, 123, .12);
}

.department-details .details-icon {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 42px;
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 18px 42px rgba(8, 39, 68, .18);
}

.department-details .details-content {
    background: #fff;
    border-radius: 30px;
    padding: 44px 52px;
    box-shadow: 0 22px 45px rgba(16, 74, 123, .08);
}

.department-details .details-content .section-title {
    margin-bottom: 14px;
}

.department-details .details-content .section-heading {
    margin-bottom: 24px;
}

.department-details .details-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: #526176;
    margin-bottom: 32px;
}

.department-details .details-content .btn-primary {
    padding: 14px 36px;
}

@media (max-width: 1080px) {
    .department-details .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .department-section-group {
        margin-top: 36px;
    }

    .department-details .details-content {
        padding: 32px 22px;
    }

    .department-details .details-media {
        min-height: 260px;
    }
}

/* ===== Appointment + Working Time split ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-panel {
    padding: 80px 44px;
    position: relative;
    overflow: hidden;
}

.split-panel.appointment {
    background: var(--primary-blue);
    color: #fff;
}

.split-panel.appointment::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: .5;
}

.split-panel.working {
    background: var(--navy);
    color: #fff;
}

.split-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
}

.split-panel .section-title {
    color: rgba(255, 255, 255, .85);
}

.split-panel h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin-bottom: 30px;
}

.working-hours {
    display: grid;
    gap: 16px;
    margin-bottom: 34px;
}

.working-hours .row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: .96rem;
}

.working-hours .row span:first-child {
    color: rgba(255, 255, 255, .75);
}

.working-hours .row span:last-child {
    font-weight: 700;
}

.working-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 30px;
}

.login-gate {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 20px;
    padding: 28px 24px;
    margin-top: 20px;
    box-shadow: 0 14px 34px rgba(9, 30, 56, 0.16);
}

.login-gate-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.login-gate h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.login-gate p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
}

.login-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.login-gate-actions .btn-primary,
.login-gate-actions .btn-outline {
    border-radius: 999px;
    padding: 12px 22px;
}

.login-gate-actions .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.login-gate-actions .btn-outline:hover {
    background: #fff;
    color: var(--primary-blue);
}

/* ===== Doctors ===== */
.doctors {
    padding: 90px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.doctors-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.doctors-carousel-wrap {
    overflow: hidden;
    position: relative;
    padding: 8px 0 12px;
}

.doctors-carousel-wrap::before,
.doctors-carousel-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    z-index: 2;
    pointer-events: none;
}

.doctors-carousel-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #f8fbff 0%, rgba(248, 251, 255, 0) 100%);
}

.doctors-carousel-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #f8fbff 0%, rgba(248, 251, 255, 0) 100%);
}

.doctors-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: max-content;
    will-change: transform;
    padding: 0 10px;
}

.doctor-card {
    display: flex;
    flex: 0 0 260px;
    width: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid var(--border-gray);
    border-radius: 22px;
    padding: 30px 22px 26px;
    text-align: center;
    background: #fff;
    min-height: 100%;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(16, 74, 123, .12);
    border-color: var(--primary-blue);
}

.doctor-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    background: var(--soft-blue);
    border: 4px solid rgba(27, 160, 226, .08);
    box-shadow: 0 12px 28px rgba(27, 160, 226, .12);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.doctor-card .role {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .02em;
}

/* ===== Testimonial (Service Recipient) ===== */
.testimonial2 {
    padding: 90px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.testimonial2-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

.testimonial2-card {
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 26px;
    padding: 42px 38px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(16, 74, 123, .07);
}

.testimonial2-card .quote-mark {
    color: var(--primary-blue);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1;
}

.testimonial2-card .quote {
    font-style: italic;
    color: #45566a;
    font-size: 1.08rem;
    margin-bottom: 26px;
    line-height: 1.8;
}

.testimonial2-card .author {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.testimonial2-card .role {
    color: var(--primary-blue);
    font-size: .9rem;
    font-weight: 700;
    margin-top: 4px;
}

.testimonial2-media {
    border-radius: 26px;
    overflow: hidden;
    min-height: 340px;
    border: 1px solid rgba(16, 74, 123, 0.08);
    box-shadow: 0 18px 40px rgba(16, 74, 123, .08);
}

.testimonial2-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Blog ===== */
.blog {
    padding: 20px 0 90px;
}

.blog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-nav {
    display: flex;
    gap: 10px;
}

.blog-nav button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--muted);
    display: grid;
    place-items: center;
    transition: background .25s ease, color .25s ease;
}

.blog-nav button:hover {
    background: var(--primary-blue);
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    min-height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(16, 74, 123, .12);
}

.blog-card .blog-media {
    height: 210px;
    flex-shrink: 0;
}

.blog-card .blog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card .blog-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 26px 26px 28px;
    flex: 1;
}

.blog-card .tag {
    color: var(--primary-blue);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
    display: block;
}

.blog-card h3 {
    font-size: 1.08rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-card a {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: .85rem;
}

/* ===== Blog Details ===== */
.blog-detail-section {
    padding: 42px 0 90px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 18px;
    text-decoration: none;
}

.blog-back-link:hover {
    color: var(--secondary);
}

.blog-detail-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(16, 74, 123, .08);
}

.blog-detail-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary));
    border-radius: 28px 28px 0 0;
}

.blog-detail-title {
    font-size: clamp(1.55rem, 2.2vw, 2.1rem);
    line-height: 1.3;
    color: var(--navy);
    font-weight: 800;
    margin: 0 0 12px;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: .93rem;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(16, 74, 123, .08);
}

.blog-detail-meta .tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    background: rgba(16, 74, 123, .08);
    color: var(--primary-blue);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.blog-detail-image {
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(16, 74, 123, .10);
    max-width: 760px;
}

.blog-detail-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
}

.blog-detail-highlight {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg, #f4faff 0%, #eef7ff 100%);
    border: 1px solid rgba(16, 74, 123, .10);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.blog-detail-highlight-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(16, 74, 123, .10);
    color: var(--primary-blue);
    font-size: 1rem;
}

.blog-detail-highlight h3 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 1rem;
}

.blog-detail-highlight p {
    margin: 0;
    color: #4d6278;
    font-size: .95rem;
}

.blog-detail-content {
    color: #35506a;
    line-height: 1.9;
    font-size: 1rem;
}

.blog-detail-content .lead {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 3px solid var(--primary-blue);
}

.blog-detail-content p {
    margin-bottom: 16px;
}

.blog-detail-content strong,
.blog-detail-content b {
    color: var(--navy);
    font-weight: 700;
}

.blog-detail-content em,
.blog-detail-content i {
    font-style: italic;
}

.blog-detail-content u {
    text-decoration: underline;
}

.blog-detail-content ul,
.blog-detail-content ol {
    padding-left: 22px;
    margin: 0 0 16px;
}

.blog-detail-content li {
    margin-bottom: 8px;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding: 10px 16px;
    margin: 16px 0 20px;
    background: #f8fbff;
    color: #43607b;
    font-style: italic;
}

.related-posts {
    margin-top: 42px;
}

.related-posts h3 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.related-posts .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.related-posts .blog-card {
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(16, 74, 123, .07);
}

.related-posts .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(16, 74, 123, .12);
}

.related-posts .blog-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.related-posts .blog-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

/* ===== Blog Carousel (right-to-left auto-scroll) ===== */
.blog-carousel-wrap {
    overflow: hidden;
    position: relative;
    background: #f4f7fb;
    border: 1px solid rgba(16, 74, 123, 0.1);
    border-radius: 24px;
    padding: 14px 0;
}

.blog-carousel-wrap::before,
.blog-carousel-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.blog-carousel-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #f4f7fb 0%, rgba(244, 247, 251, 0) 100%);
}

.blog-carousel-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #f4f7fb 0%, rgba(244, 247, 251, 0) 100%);
}

.blog-track {
    display: flex;
    align-items: stretch;
    gap: 26px;
    width: max-content;
    will-change: transform;
    padding: 0 18px;
}

.blog-track .blog-card {
    flex: 0 0 380px;
    width: 380px;
}

@media (max-width: 860px) {
    .blog-track .blog-card {
        flex-basis: 300px;
        width: 300px;
    }
}

@media (max-width: 480px) {
    .blog-track .blog-card {
        flex-basis: 260px;
        width: 260px;
    }
}


/* ===== Contact CTA ===== */
.cta-wrap {
    position: relative;
    padding-top: 40px;
}

.cta-wrap .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.cta-wrap .wave svg {
    width: 100%;
    height: 90px;
    display: block;
}

.cta-card {
    position: relative;
    z-index: 2;
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 22px;
    box-shadow: 0 26px 50px rgba(16, 74, 123, .14);
    padding: 40px 46px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-card h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.cta-card p {
    max-width: 560px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--navy);
    color: #c8d8ea;
}

.footer-top {
    padding: 90px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    font-size: .93rem;
}

.footer-contact li i {
    color: var(--primary-blue);
    margin-top: 3px;
}

.footer-contact li a {
    display: block;
    color: #c8d8ea;
}

.footer-dept-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 0;
    padding: 0;
}

.footer-dept-section + .footer-dept-section {
    margin-top: 16px;
}

.footer-dept-section h5 {
    color: #c8d8ea;
    font-size: .86rem;
    margin: 0 0 6px;
}

.footer-dept-grid li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    color: #c8d8ea;
    font-size: .93rem;
}

.footer-dept-grid li::before {
    content: "•";
    flex: 0 0 auto;
}

.news-feed-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.news-feed-item .thumb {
    width: 78px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-feed-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feed-item .title {
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.news-feed-item .date {
    font-size: .78rem;
    color: #8ea1bf;
    font-style: italic;
}

.footer-mid {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background-color: #ffffff !important;
    padding: 46px 0;
}

.footer-mid-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #09224c;
    font-weight: 900;
    font-size: 2rem;
}

.footer-brand img {
    width: 100px;
    height: 80px;
}

.footer-about p {
    color: #09224c;
    max-width: 420px;
    font-size: .92rem;
    margin-top: 14px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 460px;
    width: 100%;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
}

.newsletter-form h4 {
    color: #fff;
}

.newsletter-inputwrap {
    display: flex;
    width: 100%;
}

.newsletter-inputwrap input {
    flex: 1;
    background: var(--navy-soft);
    border: none;
    padding: 16px 22px;
    color: #fff;
    outline: none;
}

.newsletter-inputwrap input::placeholder {
    color: #8ea1bf;
}

.newsletter-inputwrap button {
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    padding: 0 28px;
    white-space: nowrap;
}

.newsletter-feedback {
    display: block;
    margin-bottom: 0;
    padding: 12px 14px;
    padding-left: 20px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
}

.newsletter-feedback.success {
    background: rgba(9, 34, 76, .12);
    color: #09224c;
}

.newsletter-feedback.error {
    background: rgba(220, 38, 38, .12);
    color: #991b1b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
    text-align: center;
    font-size: .88rem;
    color: #8ea1bf;
}

.footer-bottom a {
    color: var(--primary-blue);
    font-weight: 600;
}

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 26px rgba(27, 160, 226, .35);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.floating-appointment {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: 10px 0 0 10px;
    background: var(--primary-blue);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .03em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(27, 160, 226, .28);
    transition: background .2s ease, box-shadow .2s ease;
}

.floating-appointment:hover,
.floating-appointment:focus-visible {
    background: var(--primary-blue-dark);
    color: #fff;
    box-shadow: 0 12px 28px rgba(14, 123, 180, .35);
}

.floating-appointment:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media print {
    .floating-appointment {
        display: none !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .about-inner,
    .testimonial2-inner,
    .split,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .department-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav {
        gap: 20px;
    }

    .stat-badge {
        right: 10px;
        bottom: -20px;
    }
}

@media (max-width: 960px) {
    .blog-detail-card {
        padding: 24px;
    }

    .related-posts .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: flex;
    }

    .main-header-inner,
    .topbar-inner {
        flex-direction: row;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-info {
        justify-content: center;
        gap: 15px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
        transition: max-height .35s ease;
        z-index: 45;
    }

    .main-nav.open {
        max-height: 560px;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
        border-top: 1px solid #f0f0f0;
        position: relative;
    }

    .main-nav ul li a {
        padding: 14px 20px;
    }

    .main-nav ul li.has-dropdown > a::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        float: right;
        margin-right: 10px;
    }

    .main-nav ul li .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }

    .main-nav ul li.open > .dropdown {
        max-height: 360px;
    }

    .main-nav ul li .dropdown li a {
        padding-left: 34px;
        background: #f7fbff;
    }

    .main-nav ul li .dropdown li a:hover {
        background: #eff7ff;
    }

    .main-nav ul li.has-dropdown > a {
        width: 100%;
    }

    .main-nav ul li.has-dropdown > a::after {
        margin-left: 0;
    }

    .main-nav ul li.has-dropdown > a[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    .btn-appointment {
        margin: 16px 20px;
    }

    .features-grid,
    .department-grid,
    .blog-grid,
    .footer-dept-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 520px;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 650px) {
    .topbar-social {
        justify-content: center;
        width: 100%;
    }

    .blog-detail-section {
        padding: 24px 0 70px;
    }

    .blog-detail-card {
        padding: 18px;
        border-radius: 20px;
    }

    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog-detail-image {
        margin-bottom: 20px;
    }

    .blog-detail-content {
        font-size: .95rem;
        line-height: 1.8;
    }

    .related-posts .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding: 72px 20px 56px;
    }

    .about-media-frame {
        padding: 12px;
        border-radius: 22px;
    }

    .about-media-frame img,
    .about-media-frame video {
        height: 280px;
        border-radius: 16px;
    }

    .about-content .about-actions {
        flex-direction: column;
    }

    .about-content .about-actions input,
    .about-content .about-actions .btn-primary {
        width: 100%;
    }

    .split-panel {
        padding: 60px 24px;
    }

    .footer-mid-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form,
    .newsletter-inputwrap {
        max-width: 100%;
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }
}


/* ===== My Appointments Dashboard ===== */
.dashboard-section {
    padding: 70px 0 90px;
    background: linear-gradient(180deg, #f7fbff 0%, #f4f7fb 100%);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-header h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.dashboard-header p {
    color: var(--muted);
    font-size: .95rem;
}

.dashboard-service-card {
    margin-top: 24px;
}

.appointments-panel {
    background: #fff;
    border: 1px solid rgba(27, 160, 226, .12);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 66, 110, .08);
    padding: 24px;
}

.appointments-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--soft-blue), #f8fbff);
    border: 1px solid rgba(27, 160, 226, .12);
}

.appointments-summary > div {
    padding: 10px 12px;
}

.appointments-summary-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.appointments-summary strong {
    color: var(--text-dark);
    font-size: 1.25rem;
}

.table-responsive-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
    font-size: .95rem;
}

.data-table thead th {
    background: #f8fbfe;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.data-table tbody tr {
    transition: background .2s ease;
}

.data-table tbody tr:hover {
    background: #f8fbff;
}

.empty-state {
    background: #fff;
    border: 1px solid rgba(27, 160, 226, .12);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 66, 110, .08);
    padding: 48px 32px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary-blue);
    display: grid;
    place-items: center;
    font-size: 28px;
}

.empty-state h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 22px;
    color: var(--muted);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.status-badge.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.badge-success {
    background: #dcfce7;
    color: #166534;
}

.status-badge.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .appointments-summary {
        grid-template-columns: 1fr;
    }

    .empty-state {
        padding: 36px 24px;
    }
}

/* About Page Start  */
/* =========================================================
   About Page additions — append to assest/css/style.css
   ========================================================= */

/* ===== Page Hero (banner) ===== */
.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.page-hero-sm {
    min-height: 280px;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(9, 30, 56, .85) 0%, rgba(9, 30, 56, .65) 100%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero-inner h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 14px;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
}

.page-hero .breadcrumb a {
    color: #fff;
    font-weight: 600;
}

.page-hero .breadcrumb i {
    font-size: .7rem;
    color: var(--primary-blue);
}

/* ===== Auth Pages ===== */
.auth-section {
    padding: 70px 0 90px;
    background: linear-gradient(180deg, #f7fbff 0%, #f4f7fb 100%);
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 66, 110, .12);
    padding: 40px 34px;
    border: 1px solid rgba(27, 160, 226, .12);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-header i {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary-blue);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.auth-card-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.auth-card-header p {
    color: var(--muted);
    font-size: .95rem;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: .95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    background: #fcfdff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(27, 160, 226, .12);
}

.full-width {
    width: 100%;
    text-align: center;
    border: none;
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
}

.auth-footer p {
    margin-bottom: 8px;
    color: var(--muted);
}

.auth-footer a {
    color: var(--primary-blue);
    font-weight: 700;
}

.auth-admin-link {
    margin-top: 10px;
}

/* ===== Contact Page ===== */
.contact-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f7fbff 0%, #f4f7fb 100%);
}

.contact-intro {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}

.contact-eyebrow,
.contact-card-label {
    display: inline-block;
    color: var(--primary-blue-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.contact-intro h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
}

.contact-intro p,
.contact-map-heading p {
    margin: 0;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    background: #fff;
    border: 1px solid rgba(27, 160, 226, .12);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 66, 110, .08);
    padding: 34px;
}

.contact-info-card h2,
.contact-form-card h2 {
    font-size: 1.5rem;
    margin: 8px 0 12px;
}

.contact-info-card p {
    margin-bottom: 24px;
    color: var(--muted);
}

.contact-info-list {
    display: grid;
    gap: 18px;
}

.contact-info-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary-blue);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-info-list li > div {
    padding-top: 2px;
}

.contact-info-list strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-info-list li > div > span {
    display: block;
    color: var(--muted);
}

.contact-info-list a {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-info-list a:hover,
.contact-directions:hover {
    color: var(--primary-blue-dark);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--text-dark);
}

.form-group label span {
    color: #e11d48;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    background: #fcfdff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(27, 160, 226, .12);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.full-width {
    width: 100%;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contact-map-card {
    margin-top: 32px;
    padding: 32px;
    background: #fff;
    border: 1px solid rgba(27, 160, 226, .12);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 66, 110, .08);
}

.contact-map-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
}

.contact-map-heading h2 {
    margin: 8px 0 4px;
    font-size: 1.5rem;
}

.contact-directions {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-blue-dark);
    font-weight: 700;
    white-space: nowrap;
}

.contact-map-frame {
    overflow: hidden;
    min-height: 360px;
    border-radius: 16px;
    background: var(--light-gray);
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .contact-intro {
        margin-bottom: 30px;
    }

    .contact-map-card {
        margin-top: 24px;
        padding: 22px;
        border-radius: 20px;
    }

    .contact-map-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .contact-map-frame {
        min-height: 300px;
    }

    .contact-map-frame iframe {
        height: 300px;
    }
}

/* ===== Mini Features Row ===== */
.mini-features {
    padding: 70px 0 20px;
}

.mini-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 32px;
}

.mini-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.mini-feature .icon-wrap {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--soft-blue);
    color: var(--primary-blue);
    font-size: 20px;
}

.mini-feature h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.mini-feature p {
    font-size: .88rem;
    color: #6d7b8c;
    line-height: 1.6;
}

/* ===== Video / Story Section (reuses .about-inner/.about-content) ===== */
.video-about {
    padding: 60px 0 90px;
}

.video-about .about-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-media-frame {
    position: relative;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-blue);
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 14px 30px rgba(9, 30, 56, .3);
    transition: transform .25s ease, background .25s ease;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--primary-blue);
    color: #fff;
}

.about-list.two-col {
    grid-template-columns: 1fr 1fr;
}

/* ===== Stats Counter ===== */
.stats-counter {
    background: var(--navy);
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 24px;
}

.stat-item {
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, .18);
    border-radius: 18px;
    padding: 34px 20px;
}

.stat-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #fff;
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, .75);
    font-size: .95rem;
    font-weight: 600;
}

/* ===== FAQ + Emergency ===== */
.faq-split {
    padding: 90px 0;
    background: #fff;
}

.faq-split-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 44px;
    align-items: start;
}

.faq-item {
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 16px;
    background: #fff;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dark);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    color: var(--primary-blue);
    transition: transform .25s ease;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 14px;
    font-size: .93rem;
    line-height: 1.7;
}

.emergency-card {
    background: var(--primary-blue);
    border-radius: 20px;
    padding: 44px 34px;
    color: #fff;
    text-align: left;
    box-shadow: 0 20px 40px rgba(27, 160, 226, .25);
}

.emergency-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 22px;
}

.emergency-card h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.emergency-number {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.btn-white {
    display: inline-block;
    background: #fff;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 999px;
    transition: transform .25s ease;
}

.btn-white:hover {
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .video-about .about-inner,
    .faq-split-inner {
        grid-template-columns: 1fr;
    }

    .mini-features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .about-list.two-col {
        grid-template-columns: 1fr;
    }
}
/* About Page Start End */

/* =========================================================
   GIMS additions — append to assest/css/style.css
   (Notification bar, table-style appointment form, alerts)
   ========================================================= */

/* ===== Notification Bar ===== */
.notify-bar {
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    z-index: 40;
}

.notify-icon {
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    flex-shrink: 0;
    font-size: 14px;
}

.notify-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.notify-scroll {
    display: flex;
    white-space: nowrap;
    animation: notify-marquee 28s linear infinite;
    padding-left: 100%;
}

.notify-bar:hover .notify-scroll {
    animation-play-state: paused;
}

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

.notify-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 34px;
    font-size: .88rem;
    font-weight: 600;
    color: #dce7f7;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.notify-item a {
    color: inherit;
}

.notify-item a:hover {
    color: var(--primary-blue);
}

.notify-item.notify-urgent {
    color: #ffd7d7;
}

.notify-item.notify-urgent::before {
    content: '\f0f9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #ff8080;
}

.notify-item.notify-success::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #6be3a8;
}

.notify-item.notify-info::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #7fc4ff;
}

/* ===== Form Alerts (appointment submit result) ===== */
.form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.form-alert-success {
    background: rgba(9, 34, 76, .12);
    color: #09224c;
    border: 1px solid rgba(9, 34, 76, .25);
}

.form-alert-error {
    background: rgba(9, 34, 76, .12);
    color: #09224c;
    border: 1px solid rgba(9, 34, 76, .25);
}

/* ===== Appointment Table-Style Form =====
   Styled like a data table: each field is a row with a label column
   and an input column, matching the `appointments` table structure. */
.appointment-table-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06);
}

.at-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.at-row:last-child {
    border-bottom: none;
}

.at-row label {
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
}

.at-row label span {
    color: #ffd0d0;
    margin-left: 3px;
}

.at-row input,
.at-row select,
.at-row textarea {
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    outline: none;
    resize: vertical;
}

.at-row input::placeholder,
.at-row textarea::placeholder {
    color: rgba(255, 255, 255, .75);
}

.at-row input:focus,
.at-row select:focus,
.at-row textarea:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, .16);
}

.at-row select option {
    color: #1f2a33;
}

.at-row-full {
    grid-template-columns: 1fr;
}

.at-row-full label {
    margin-bottom: 8px;
}

.at-submit {
    background: rgba(255, 255, 255, .04);
}

.appointment-table-form button.full {
    width: 100%;
    background: #fff;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 999px;
    transition: transform .25s ease;
}

.appointment-table-form button.full:hover {
    transform: translateY(-2px);
}

/* ===== Responsive tweaks for the additions above ===== */
@media (max-width: 860px) {
    .notify-item {
        padding: 10px 22px;
        font-size: .82rem;
    }

    .at-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .at-row label {
        margin-bottom: 2px;
    }
}

@media (max-width: 650px) {
    .notify-bar {
        flex-direction: row;
    }

    .notify-icon {
        padding: 10px 14px;
    }
}

/* =========================================================
   About Page v2 additions — append to assest/css/style.css
   (meta-strip, stats as columns, mission & vision, why choose)
   ========================================================= */

/* ===== Meta strip under Who We Are heading ===== */
.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.meta-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--soft-blue);
    color: var(--primary-blue-dark);
    font-weight: 700;
    font-size: .8rem;
    padding: 8px 16px;
    border-radius: 999px;
}

.meta-strip span i {
    font-size: .85rem;
}

/* ===== Stats — column layout (replaces the boxed/dashed style) ===== */
.stats-columns {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.stat-col {
    flex: 1 1 0;
    min-width: 160px;
    text-align: center;
    padding: 10px 24px;
    border-right: 1px solid rgba(255, 255, 255, .14);
}

.stat-col:last-child {
    border-right: none;
}

.stat-col .stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .3);
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #fff;
}

.stat-col .stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-col .stat-label {
    color: rgba(255, 255, 255, .75);
    font-size: .92rem;
    font-weight: 600;
}

/* ===== Mission & Vision ===== */
.mission-vision {
    padding: 90px 0;
    background: #fff;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.mv-card {
    border-radius: 22px;
    padding: 42px 38px;
    border: 1px solid var(--border-gray);
    transition: transform .3s ease, box-shadow .3s ease;
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(16, 74, 123, .12);
}

.mv-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 22px;
}

.mv-card.mv-mission {
    background: var(--soft-blue);
}

.mv-card.mv-mission .mv-icon {
    background: var(--primary-blue);
    color: #fff;
}

.mv-card.mv-vision {
    background: #f4f7fb;
}

.mv-card.mv-vision .mv-icon {
    background: var(--navy);
    color: #fff;
}

.mv-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.mv-card p {
    font-size: .96rem;
    line-height: 1.75;
}

/* ===== Why Choose GIMS ===== */
.why-choose {
    padding: 90px 0;
    background: var(--light-gray);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.why-item {
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.why-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(16, 74, 123, .12);
    border-color: var(--primary-blue);
}

.why-item .icon-wrap {
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--soft-blue);
    color: var(--primary-blue);
    font-size: 22px;
}

.why-item h4 {
    font-size: 17px;
    margin-bottom: 10px;
}

.why-item p {
    font-size: .9rem;
    line-height: 1.65;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-col {
        flex: 1 1 45%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
        padding: 20px 10px;
    }

    .stat-col:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 650px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .stat-col {
        flex: 1 1 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .stat-col:last-child {
        border-bottom: none;
    }

    .mv-card {
        padding: 32px 26px;
    }

    .meta-strip span {
        font-size: .74rem;
        padding: 7px 12px;
    }
}


/* =========================================================
   Footer enhancements — APPEND at the very end of
   assest/css/style.css (it overrides the older footer rules)
   ========================================================= */

/* ===== Footer grid: narrow contact + wide departments ===== */
.site-footer .footer-grid {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2.2fr);
    gap: 56px;
}

.site-footer .footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.site-footer .footer-col-contact h4 {
    margin-bottom: 24px;
}

/* ===== Departments header ===== */
.footer-dept-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-dept-viewall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: .86rem;
    font-weight: 700;
    transition: color .2s ease;
}

.footer-dept-viewall i {
    font-size: .75rem;
    transition: transform .2s ease;
}

.footer-dept-viewall:hover,
.footer-dept-viewall:focus-visible {
    color: #fff;
}

.footer-dept-viewall:hover i,
.footer-dept-viewall:focus-visible i {
    transform: translateX(4px);
}

/* ===== Two groups side by side ===== */
.footer-dept-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.site-footer .footer-dept-section {
    background: var(--navy-soft);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 22px 22px 18px;
}

.site-footer .footer-dept-section + .footer-dept-section {
    margin-top: 0;
}

.footer-dept-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-dept-section-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(27, 160, 226, .18);
    color: var(--accent);
    font-size: 15px;
}

.site-footer .footer-dept-section h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.footer-dept-count {
    min-width: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #dce7f7;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}

/* ===== Department list (links) ===== */
.site-footer .footer-dept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 14px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.site-footer .footer-dept-grid::-webkit-scrollbar {
    width: 6px;
}

.site-footer .footer-dept-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border-radius: 6px;
}

.site-footer .footer-dept-grid li {
    display: block;
    padding: 0;
    font-size: .9rem;
}

.site-footer .footer-dept-grid li::before {
    content: none;
}

.site-footer .footer-dept-grid li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 8px;
    border-radius: 8px;
    color: #c8d8ea;
    line-height: 1.35;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
}

.site-footer .footer-dept-grid li a::before {
    content: "";
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary-blue);
    transition: transform .2s ease, background .2s ease;
}

.site-footer .footer-dept-grid li a:hover,
.site-footer .footer-dept-grid li a:focus-visible {
    background: rgba(27, 160, 226, .14);
    color: #fff;
    padding-left: 12px;
    outline: none;
}

.site-footer .footer-dept-grid li a:hover::before,
.site-footer .footer-dept-grid li a:focus-visible::before {
    background: var(--accent);
    transform: scale(1.4);
}

.footer-dept-empty {
    color: #8ea1bf;
    font-size: .88rem;
    padding: 6px 0;
}

/* ===== Newsletter: stop clipping the feedback messages ===== */
.site-footer .newsletter-form {
    border: none;
    border-radius: 0;
    overflow: visible;
}

.site-footer .newsletter-inputwrap {
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
}

.site-footer .newsletter-inputwrap input:focus-visible {
    box-shadow: inset 0 0 0 2px var(--primary-blue);
}

.site-footer .newsletter-inputwrap button:hover {
    background: var(--primary-blue-dark);
}

/* ===== Footer bottom links ===== */
.site-footer .footer-bottom a {
    transition: color .2s ease;
}

.site-footer .footer-bottom a:hover {
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 760px) {
    .footer-dept-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-footer .footer-dept-grid {
        grid-template-columns: 1fr;
        max-height: 260px;
    }

    .footer-dept-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-dept-grid li a,
    .site-footer .footer-dept-grid li a::before,
    .footer-dept-viewall i {
        transition: none;
    }
}

