:root {
    --primary: #0087be;
    --primary-dark: #0f6c95;
    --primary-soft: #eaf7ff;
    --text: #1f2a37;
    --muted: #5f6c7b;
    --light-bg: #f4f7fb;
    --border: #dde6ee;
    --white: #ffffff;
    --navy: #072a3d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: #fff;
}

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

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

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

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

.top-navbar {
    background: rgba(255,255,255,0.96);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(10, 44, 68, 0.08);
    backdrop-filter: blur(8px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}

.brand {
    color: var(--navy);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list a {
    font-weight: 700;
    color: var(--navy);
    opacity: 0.9;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.nav-list a:hover {
    color: var(--primary);
}

.hero-section {
    background: #dfeff7;
}

.hero-slider {
    min-height: 560px;
}

.hero-slide {
    min-height: 560px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-inner {
    padding: 100px 0;
}

.hero-inner h2 {
    max-width: 620px;
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.15;
    font-family: 'Playfair Display', serif;
    margin-bottom: 18px;
}

.hero-inner p {
    max-width: 620px;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

.top-quick-info {
    padding-top: 40px;
    margin-top: -18px;
    position: relative;
    z-index: 2;
}

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

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 15px 35px rgba(18, 45, 66, 0.08);
    border-radius: 10px;
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-card h4 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: var(--muted);
}

.info-card h3 {
    margin: 0;
    font-size: 2rem;
    color: var(--navy);
}

.info-card a {
    color: var(--primary);
    font-weight: 700;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--muted);
    padding: 2px 0;
}

.info-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.6rem;
}

.welcome-block,
.section-block,
.page-content-block {
    padding: 90px 0;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr;
    gap: 40px;
    align-items: center;
}

.welcome-image img {
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
    min-height: 360px;
}

.welcome-copy h3,
.section-heading h3,
.page-header h1,
.contact-copy h2,
.appointment-box h3,
.login-form-wrap h3 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.welcome-copy p,
.section-heading p,
.about-page p,
.department-content p,
.doctor-description p,
.blog-body p,
.contact-copy p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-heading h3 {
    font-size: 2.4rem;
}

.alt-bg {
    background: #f6fbff;
}

.service-grid,
.department-grid,
.doctor-grid,
.blog-grid {
    display: grid;
    gap: 24px;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(10, 44, 68, 0.04);
}

.icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.service-card h4 {
    margin: 0 0 12px;
    color: var(--navy);
    font-weight: 700;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.department-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.department-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 240px;
    box-shadow: 0 10px 30px rgba(18, 45, 66, 0.12);
}

.department-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.department-card .caption {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, transparent, rgba(2, 18, 30, 0.75));
    padding: 24px 20px;
}

.department-card h5 {
    margin: 0;
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
}

.doctor-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.doctor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(10, 44, 68, 0.06);
}

.doctor-photo {
    position: relative;
    background: var(--light-bg);
    min-height: 320px;
}

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

.doctor-profile-link {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 135, 190, 0.9);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.doctor-content {
    padding: 20px 18px 24px;
}

.doctor-content span {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.doctor-content h3 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.2;
}

.doctor-content h3 a {
    color: var(--navy);
}

.rating {
    display: flex;
    gap: 4px;
    color: #f7b500;
}

.cta-band {
    background: var(--primary);
    color: var(--white);
    padding: 36px 0;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.cta-row h3 {
    margin: 0;
    color: var(--white);
    font-size: 2.1rem;
    font-family: 'Playfair Display', serif;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 4px;
    padding: 14px 22px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover {
    opacity: 0.95;
}

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

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

.page-header {
    background: linear-gradient(180deg, rgba(10, 44, 68, 0.8), rgba(10, 44, 68, 0.8)), url('../assets/frontend/default/images/slider/img-22.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 86px 0 60px;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin: 0 0 10px;
}

.breadcrumb-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.97rem;
}

.breadcrumb-wrap a {
    color: var(--white);
}

.team-layout,
.profile-layout,
.department-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.sidebar-panel {
    background: var(--primary);
    color: var(--white);
    padding: 28px 22px;
    border-radius: 10px;
    min-height: 260px;
}

.sidebar-panel h3 {
    margin: 0 0 16px;
    font-size: 1.8rem;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.side-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.side-links a {
    display: block;
    color: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding: 12px 0;
    font-weight: 700;
}

.side-links .active a,
.side-links a:hover {
    color: var(--white);
}

.sidebar-button {
    margin-top: 40px;
}

.wide-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
}

.small-photo {
    width: 170px;
    min-height: 170px;
    overflow: hidden;
    border-radius: 10px;
}

.doctor-specialty {
    color: var(--primary);
    font-weight: 700;
}

.about-page {
    max-width: 860px;
}

.about-page h3 {
    font-size: 2.2rem;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    margin-bottom: 18px;
}

.appointment-cta-wrap {
    padding: 0 0 90px;
    text-align: center;
}

.appointment-wrap {
    max-width: 960px;
}

.appointment-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
}

.appointment-box h3 {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

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

.radio-group {
    display: flex;
    gap: 18px;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 700;
}

.choice-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--navy);
}

input, textarea, select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    padding: 12px 14px;
    color: var(--text);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,135,190,0.12);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.captcha-box {
    padding-top: 12px;
}

.dotted-cta {
    background: linear-gradient(90deg, rgba(0,135,190,0.1), rgba(0,135,190,0.2));
}

.blog-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.blog-card {
    background: var(--white);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(18, 45, 66, 0.06);
}

.blog-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.blog-body {
    padding: 24px 20px 22px;
}

.blog-body h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 1.5rem;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 30px;
    align-items: start;
}

.contact-copy {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 32px 28px;
}

.contact-copy h2 {
    margin-bottom: 10px;
    font-size: 2.4rem;
}

.contact-copy p {
    margin-bottom: 24px;
}

.contact-form,
.login-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.login-shell {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--primary-soft), #f5f9fc);
    padding: 60px 0;
}

.login-box {
    width: min(480px, calc(100% - 30px));
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 28px 44px rgba(10,44,68,0.08);
    overflow: hidden;
}

.login-brand {
    text-align: center;
    background: #f1f7fb;
    padding: 30px 20px 16px;
}

.login-brand img {
    width: 116px;
    margin: 0 auto 12px;
}

.login-brand h2 {
    margin: 0;
    color: var(--navy);
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
}

.login-form-wrap {
    border: 0;
    border-radius: 0;
    padding: 28px 26px 20px;
}

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

.btn-block {
    width: 100%;
}

.forgot-password {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 700;
}

.doctor-profile-box {
    background: #f5f9fc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px;
}

.doctor-profile-header {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-bottom: 22px;
}

.doctor-profile-header img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
}

.doctor-profile-header h2 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 2rem;
}

.specialty {
    margin: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.doctor-profile-meta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 10px;
}

.doctor-profile-meta li {
    display: flex;
    gap: 12px;
    color: var(--muted);
}

.doctor-description h5 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.2rem;
}

.profile-button-row {
    margin-top: 20px;
}

.site-footer {
    background: #0e2334;
    color: rgba(255,255,255,0.82);
    padding: 54px 0 28px;
}

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

.footer-brand {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-footer h4 {
    color: var(--white);
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
}

.site-footer a:hover {
    color: var(--white);
}

.socials {
    text-align: right;
}

.socials p {
    margin: 0 0 14px;
    color: rgba(255,255,255,0.8);
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.09);
}

@media (max-width: 978px) {
    .nav-wrap,
    .cta-row,
    .contact-wrap,
    .team-layout,
    .profile-layout,
    .department-page,
    .welcome-grid,
    .team-layout,
    .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        display: grid;
    }

    .nav-wrap {
        padding: 18px 0;
    }

    .brand {
        white-space: normal;
    }

    .info-grid,
    .service-grid,
    .department-grid,
    .doctor-grid,
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .socials {
        text-align: left;
    }

    .social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .info-grid,
    .service-grid,
    .department-grid,
    .doctor-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding: 72px 0;
    }

    .brand {
        font-size: 1.3rem;
    }

    .nav-list {
        gap: 10px 14px;
        justify-content: flex-start;
    }

    .cta-row h3 {
        font-size: 1.6rem;
    }
}

/* ==========================================================
   Frontend entrance animations, count-up + modern hover effects
   ========================================================== */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-delay, 0) * 1ms);
    will-change: opacity, transform;
}

.js [data-reveal].in-view {
    opacity: 1;
    transform: none;
}

/* Hero entrance (load animation) */
.js .hero-inner h2,
.js .hero-inner p,
.js .hero-cta {
    opacity: 0;
    transform: translateY(28px);
    animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.js .hero-inner p {
    animation-delay: 0.15s;
}

.js .hero-cta {
    animation-delay: 0.3s;
}

@keyframes heroRise {
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-cta .btn {
    padding: 16px 28px;
    border-radius: 6px;
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

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

/* Nav link underline */
.nav-list a {
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 978px) {
    .nav-wrap {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px 0 4px;
        border-top: 1px solid var(--border);
    }

    .nav-wrap.nav-open .nav-list {
        display: flex;
        animation: menuDrop 0.3s ease;
    }

    .nav-list a {
        display: block;
        padding: 12px 4px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(10, 44, 68, 0.06);
    }

    @keyframes menuDrop {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }
}

/* Card lifts & modern hovers */
.info-card,
.service-card,
.doctor-card,
.blog-card,
.department-card {
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(18, 45, 66, 0.12);
}

.service-card:hover,
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(10, 44, 68, 0.14);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(10, 44, 68, 0.16);
}

.department-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(10, 44, 68, 0.2);
}

.icon-wrap {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.service-card:hover .icon-wrap {
    transform: scale(1.1) rotate(-6deg);
    background: var(--primary);
    color: var(--white);
}

.doctor-profile-link {
    transition: background 0.25s ease, transform 0.25s ease;
}

.doctor-profile-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Button shine sweep */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    height: 100%;
    width: 55%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.btn:hover::after {
    left: 135%;
}

/* Stats band with count-up numbers */
.stats-band {
    background: linear-gradient(135deg, #0a5f86 0%, #072a3d 100%);
    color: var(--white);
    padding: 58px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    text-align: center;
}

.stat-item .icon {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.stat-item .number {
    font-size: 2.9rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
}

.stat-item .label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    margin-top: 6px;
}

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

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .stat-item .number {
        font-size: 2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal],
    .js .hero-inner h2,
    .js .hero-inner p,
    .js .hero-cta {
        opacity: 1;
        transform: none;
    }
}
