/* =====================================================================
   NIDD Dispensary - main stylesheet
   ---------------------------------------------------------------------
   1. Colors, fonts and sizes  <-- change the website colors here
   2. Base
   3. Buttons & small parts
   4. Glass (glassmorphism) styles
   5. Header & navigation
   6. Hero slider
   7. Sections (about, services, why us, doctors, news, appointment, contact)
   8. News article page
   9. Footer
   10. Animations
   11. Responsive (tablet & mobile)
   ===================================================================== */


/* ---------- 1. Colors, fonts and sizes ---------- */
:root {
    /* Brand colors (taken from the NIDD logo) */
    --navy: #0b0b6b;
    --navy-dark: #06063d;
    --blue: #2433b0;
    --sky: #6b8cff;
    --red: #e31e1b;
    --red-dark: #b5120f;
    --green: #3a9a1e;

    /* Text & backgrounds */
    --ink: #0d0f3a;
    --text: #4a5872;
    --muted: #6b7a90;
    --bg: #ffffff;
    --bg-soft: #f4f7fc;
    --border: #e3e9f3;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    --grad-accent: linear-gradient(135deg, #f0322c 0%, var(--red-dark) 100%);
    --grad-dark: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--blue) 100%);

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.68);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-blur: 18px;

    /* Fonts */
    --font-heading: "Maiandra GD", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-body: "Maiandra GD", "Inter", "Segoe UI", system-ui, sans-serif;

    /* Shapes & shadows */
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 18px rgba(13, 15, 58, 0.06);
    --shadow: 0 12px 34px rgba(13, 15, 58, 0.10);
    --shadow-lg: 0 24px 60px rgba(13, 15, 58, 0.16);
    --header-height: 78px;
}


/* ---------- 2. Base ---------- */
html {
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color .25s ease;
}

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

img {
    max-width: 100%;
}

::selection {
    background: var(--blue);
    color: #fff;
}

.section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
}

.section-soft {
    background:
        radial-gradient(circle at 0% 0%, rgba(107, 140, 255, 0.08), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(227, 30, 27, 0.05), transparent 40%),
        var(--bg-soft);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-title {
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.08rem;
    color: var(--muted);
    margin: 0;
}

.lead-text {
    font-size: 1.12rem;
    color: var(--ink);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .38rem .95rem;
    border-radius: 999px;
    background: rgba(227, 30, 27, 0.08);
    color: var(--red);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.eyebrow-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}


/* ---------- 3. Buttons & small parts ---------- */
.btn {
    font-weight: 600;
    border-radius: 999px;
    padding: .7rem 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn-lg {
    padding: .9rem 1.9rem;
    font-size: 1rem;
}

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

.btn-accent {
    background: var(--grad-accent);
    color: #fff;
    border: 0;
    box-shadow: 0 10px 24px rgba(227, 30, 27, 0.28);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    box-shadow: 0 14px 30px rgba(227, 30, 27, 0.38);
}

.btn-primary-grad {
    background: var(--grad-primary);
    color: #fff;
    border: 0;
    box-shadow: 0 10px 24px rgba(36, 51, 176, 0.28);
}

.btn-primary-grad:hover,
.btn-primary-grad:focus {
    color: #fff;
    box-shadow: 0 14px 30px rgba(36, 51, 176, 0.38);
}

.btn-outline-brand {
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
}

.btn-outline-brand:hover {
    background: var(--navy);
    color: #fff;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.info-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 18px rgba(36, 51, 176, 0.25);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.blob-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -100px;
    background: rgba(107, 140, 255, 0.45);
}

.blob-2 {
    width: 360px;
    height: 360px;
    bottom: -140px;
    left: -100px;
    background: rgba(227, 30, 27, 0.35);
}

.blob-3 {
    width: 480px;
    height: 480px;
    top: 10%;
    right: -160px;
    background: rgba(107, 140, 255, 0.18);
}


/* ---------- 4. Glass (glassmorphism) styles ---------- */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    box-shadow: var(--shadow);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}


/* ---------- 5. Header & navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.topbar {
    height: 40px;
    line-height: 40px;
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.78);
    font-size: .84rem;
    transition: margin-top .35s ease;
}

.topbar i {
    color: var(--sky);
    margin-right: .4rem;
}

.topbar-links {
    display: flex;
    gap: 1.75rem;
}

.topbar a {
    color: rgba(255, 255, 255, 0.78);
}

.topbar a:hover {
    color: #fff;
}

.site-header.scrolled .topbar {
    margin-top: -40px;
}

.main-nav {
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    transition: background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled .main-nav {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 30px rgba(13, 15, 58, 0.08);
}

.navbar-brand img {
    height: 62px;
    width: auto;
    display: block;
}

.main-nav .nav-link {
    position: relative;
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .9rem !important;
    border-radius: 10px;
}

.main-nav .nav-link:hover {
    color: var(--blue);
}

.main-nav .nav-link.active {
    color: var(--blue);
}

.main-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--red);
    transform: translateX(-50%);
}

.nav-cta {
    padding: .65rem 1.3rem;
    font-size: .9rem;
    white-space: nowrap;
}

/* Hamburger button */
.navbar-toggler {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(36, 51, 176, 0.18);
}

.toggler-bar {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .3s ease, opacity .3s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ---------- 6. Hero slider ---------- */
.hero {
    position: relative;
    background: var(--navy-dark);
}

.hero .carousel-item {
    position: relative;
    height: 100vh;
    min-height: 640px;
    max-height: 920px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 8, 52, 0.92) 0%, rgba(8, 8, 52, 0.7) 42%, rgba(8, 8, 52, 0.2) 100%),
        linear-gradient(0deg, rgba(8, 8, 52, 0.55) 0%, transparent 35%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 110px;
    padding-bottom: 90px;
}

.hero-text {
    max-width: 660px;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem 1.1rem;
    margin-bottom: 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: .88rem;
    font-weight: 500;
}

.hero-badge i {
    color: #7bd85a;
}

.hero-title {
    color: #fff;
    font-size: clamp(2.6rem, 6.4vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.1rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Text animation when a slide becomes active */
.hero .carousel-item.active .hero-text > * {
    animation: heroFadeUp .9s ease both;
}

.hero .carousel-item.active .hero-title { animation-delay: .12s; }
.hero .carousel-item.active .hero-subtitle { animation-delay: .24s; }
.hero .carousel-item.active .hero-buttons { animation-delay: .36s; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

.hero .carousel-indicators {
    bottom: 96px;
    z-index: 3;
    margin-bottom: 0;
}

.hero .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    opacity: .45;
    transition: width .3s ease, opacity .3s ease;
}

.hero .carousel-indicators .active {
    width: 46px;
    opacity: 1;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 90px;
    z-index: 3;
    opacity: 1;
}

.hero-arrow {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.2rem;
    transition: background .25s ease;
}

.hero .carousel-control-prev:hover .hero-arrow,
.hero .carousel-control-next:hover .hero-arrow {
    background: rgba(255, 255, 255, 0.28);
}

/* Glass info cards overlapping the bottom of the hero */
.info-strip-wrap {
    position: relative;
    z-index: 5;
    margin-top: -64px;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 24px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.82);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 18px;
    color: var(--text);
    min-width: 0;
    transition: background .25s ease;
}

a.info-item:hover {
    background: rgba(36, 51, 176, 0.06);
    color: var(--text);
}

.info-item + .info-item {
    border-left: 1px solid var(--border);
}

.info-item small,
.contact-card small {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.info-item strong,
.contact-card strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}


/* ---------- 7. Sections ---------- */

/* About */
.about-media {
    position: relative;
    padding: 0 0 30px 30px;
}

.about-media::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 70%;
    border-radius: var(--radius-lg);
    background: var(--grad-primary);
    opacity: .1;
}

.about-img {
    position: relative;
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: 78% center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-profile {
    position: absolute;
    left: 0;
    bottom: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 22px 14px 14px;
    border-radius: 20px;
    animation: floatY 6s ease-in-out infinite;
}

.about-profile img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.about-profile strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-heading);
}

.about-profile span {
    font-size: .88rem;
    color: var(--blue);
    font-weight: 500;
}

.about-badge {
    position: absolute;
    top: 28px;
    right: -14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 18px;
    background: var(--grad-accent);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.3;
    box-shadow: 0 16px 34px rgba(227, 30, 27, 0.32);
}

.about-badge i {
    font-size: 1.7rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem 1.25rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
    font-weight: 500;
}

.check-list i {
    color: var(--green);
    font-size: 1.15rem;
}

/* Services */
.service-card {
    position: relative;
    height: 100%;
    padding: 34px 28px 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    border-radius: 18px;
    background: rgba(36, 51, 176, 0.08);
    color: var(--blue);
    font-size: 1.7rem;
    transition: background .35s ease, color .35s ease;
}

.service-card:hover .service-icon {
    background: var(--grad-primary);
    color: #fff;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: .6rem;
}

.service-card p {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 1.2rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .92rem;
}

.service-link i {
    transition: transform .25s ease;
}

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

/* Why us (dark section) */
.section-dark {
    background: var(--grad-dark);
    color: rgba(255, 255, 255, 0.8);
}

.feature-card {
    height: 100%;
    padding: 30px 26px;
    border-radius: 24px;
    transition: transform .35s ease, background .35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border-radius: 16px;
    background: var(--grad-accent);
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 10px 22px rgba(227, 30, 27, 0.3);
}

.feature-card h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: .5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: .95rem;
    margin: 0;
}

/* Doctors */
.doctor-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease;
}

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

.doctor-photo {
    position: relative;
    aspect-ratio: 4 / 4.3;
    overflow: hidden;
    background: var(--bg-soft);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .6s ease;
}

.doctor-card:hover .doctor-photo img {
    transform: scale(1.06);
}

.doctor-name {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px 18px;
    border-radius: 18px;
}

.doctor-name h3 {
    font-size: 1.15rem;
    margin: 0 0 2px;
}

.doctor-name span {
    color: var(--blue);
    font-size: .88rem;
    font-weight: 600;
}

.doctor-body {
    padding: 20px 24px 24px;
}

.doctor-body > a {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    font-size: .93rem;
    margin-bottom: .35rem;
    overflow-wrap: anywhere;
}

.doctor-body > a i {
    color: var(--blue);
}

.doctor-body > a:hover {
    color: var(--red);
}

.doctor-social,
.social-links {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
}

.doctor-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--navy);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.doctor-social a:hover {
    background: var(--grad-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* News cards */
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease;
}

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

.news-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

.news-date {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    border-radius: 14px;
    text-align: center;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
}

.news-date strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--red);
}

.news-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 26px 22px;
}

.news-category {
    align-self: flex-start;
    margin-bottom: .75rem;
    padding: .2rem .75rem;
    border-radius: 999px;
    background: rgba(36, 51, 176, 0.08);
    color: var(--blue);
    font-size: .76rem;
    font-weight: 600;
}

.news-body h3 {
    font-size: 1.2rem;
    margin-bottom: .6rem;
}

.news-body h3 a {
    color: var(--ink);
}

.news-body h3 a:hover {
    color: var(--blue);
}

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

.news-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.news-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.news-author strong {
    display: block;
    color: var(--ink);
    font-size: .9rem;
    line-height: 1.3;
}

.news-author small {
    color: var(--muted);
    font-size: .8rem;
}

.news-more {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--navy);
    transition: background .25s ease, color .25s ease;
}

.news-card:hover .news-more {
    background: var(--grad-accent);
    color: #fff;
}

/* Appointment */
.appointment-section {
    background: linear-gradient(180deg, #ffffff 0%, #eaf1fc 100%);
}

.appointment-media {
    position: relative;
}

.appointment-media img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.appointment-call {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 20px;
}

.appointment-call small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
}

.appointment-call a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
}

.appointment-card {
    padding: 44px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-lg);
}

.form-label {
    color: var(--ink);
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .4rem;
}

.form-control,
.form-select {
    padding: .8rem 1rem;
    border: 1px solid #d8e1ee;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(36, 51, 176, 0.12);
}

.alert {
    border-radius: 14px;
}

/* Contact */
.contact-stack {
    display: grid;
    gap: 16px;
    height: 100%;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    transition: transform .3s ease, box-shadow .3s ease;
}

a.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--text);
}

.contact-card > span:last-child {
    align-self: center;
    min-width: 0;
}

.contact-hours > span:last-child {
    align-self: flex-start;
}

.hours-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: .3rem 0;
    font-size: .92rem;
    border-bottom: 1px dashed var(--border);
}

.hours-row:last-child {
    border-bottom: 0;
}

.hours-row strong {
    display: inline;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 600;
    text-align: right;
}

.map-wrap {
    height: 100%;
    min-height: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 6px solid #fff;
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 428px;
    border: 0;
}


/* ---------- 8. News article page ---------- */
.page-banner {
    position: relative;
    overflow: hidden;
    padding: 190px 0 80px;
    background: var(--grad-dark);
    color: #fff;
}

.page-banner .breadcrumb {
    margin-bottom: 1rem;
    font-size: .9rem;
}

.page-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
}

.page-banner .breadcrumb a:hover {
    color: #fff;
}

.page-banner .breadcrumb-item.active,
.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.page-title {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 860px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: .95rem;
}

.article-meta i {
    margin-right: .45rem;
    color: #ff7a73;
}

.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body {
    padding: 40px 40px 10px;
    font-size: 1.06rem;
    line-height: 1.85;
}

.article-body blockquote {
    margin: 1.8rem 0;
    padding: 22px 26px;
    border-left: 4px solid var(--red);
    border-radius: 0 18px 18px 0;
    background: var(--bg-soft);
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 600;
    font-style: italic;
}

.article-body ul {
    padding-left: 1.2rem;
}

.article-body li::marker {
    color: var(--red);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: 10px 40px 24px;
    color: var(--muted);
}

.tag {
    padding: .3rem .85rem;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: .82rem;
    color: var(--navy);
}

.article-share {
    padding: 26px 40px 34px;
    border-top: 1px solid var(--border);
}

.article-share h4 {
    font-size: 1rem;
    margin-bottom: .9rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 .4rem .5rem 0;
    padding: .55rem 1.15rem;
    border-radius: 999px;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    transition: transform .25s ease, opacity .25s ease;
}

.share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    opacity: .92;
}

.share-facebook { background: #1877f2; }
.share-x { background: #111827; }
.share-whatsapp { background: #25d366; }

.sidebar-card {
    padding: 26px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}

.sidebar-card .news-author img {
    width: 56px;
    height: 56px;
}

.recent-post {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    color: var(--text);
}

.recent-post + .recent-post {
    border-top: 1px solid var(--border);
}

.recent-post img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: cover;
}

.recent-post strong {
    display: block;
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.35;
    transition: color .25s ease;
}

.recent-post small {
    color: var(--muted);
}

.recent-post:hover strong {
    color: var(--blue);
}

.sidebar-cta {
    position: relative;
    overflow: hidden;
    padding: 30px 28px;
    border-radius: 22px;
    background: var(--grad-dark);
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-cta > i {
    font-size: 2.1rem;
    color: #ff7a73;
}

.sidebar-cta h4 {
    color: #fff;
    margin: .8rem 0 .5rem;
}


/* ---------- 9. Footer ---------- */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 90px 0 0;
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.68);
    font-size: .95rem;
}

.footer-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(107, 140, 255, 0.22), transparent 45%),
        radial-gradient(circle at 95% 100%, rgba(227, 30, 27, 0.18), transparent 40%);
    pointer-events: none;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.3rem;
    padding: 10px 16px;
    border-radius: 16px;
    background: #fff;
}

.footer-logo img {
    height: 64px;
    width: auto;
    display: block;
}

.footer-title {
    position: relative;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: .8rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--red) 0 55%, var(--green) 55% 100%);
}

.footer-contact,
.footer-links,
.footer-hours {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .6rem;
}

.footer-contact i {
    color: var(--sky);
}

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

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

.footer-links li {
    margin-bottom: .55rem;
}

.footer-links a {
    display: inline-block;
    transition: color .25s ease, transform .25s ease;
}

.footer-links a:hover {
    transform: translateX(4px);
}

.footer-news {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.1rem;
}

.footer-news img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: cover;
}

.footer-news strong {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: .93rem;
    line-height: 1.35;
}

.footer-news small {
    color: rgba(255, 255, 255, 0.55);
}

.footer-hours li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.footer-hours strong {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    transition: background .25s ease, transform .25s ease;
}

.social-links a:hover {
    background: var(--red);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 60px;
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: .88rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1020;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-accent);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(227, 30, 27, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    color: #fff;
}


/* ---------- 10. Animations ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity .5s ease, visibility .5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 46px;
    height: 46px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Elements with data-animate fade in when scrolled into view (see main.js) */
.js [data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}

.js [data-animate].is-visible {
    opacity: 1;
    transform: none;
}

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

    .js [data-animate] {
        opacity: 1;
        transform: none;
    }
}


/* ---------- 11. Responsive ---------- */

/* Below 1400px: hide the hero arrows so they never cover the text */
@media (max-width: 1399.98px) {
    .hero .carousel-control-prev,
    .hero .carousel-control-next {
        display: none;
    }
}

/* Below 1200px: menu becomes a drop-down panel */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        margin: 12px 0 16px;
        padding: 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .main-nav .nav-link {
        padding: .7rem 1rem !important;
    }

    .main-nav .nav-link.active {
        background: rgba(36, 51, 176, 0.07);
    }

    .main-nav .nav-link.active::after {
        display: none;
    }

    .nav-cta {
        display: block;
        margin-top: .75rem;
        text-align: center;
    }
}

/* Tablets */
@media (max-width: 991.98px) {
    .section {
        padding: 84px 0;
    }

    .hero-content {
        padding-top: 90px;
    }

    .info-strip {
        grid-template-columns: 1fr;
    }

    .info-item + .info-item {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .about-img {
        height: 440px;
    }

    .about-badge {
        right: 14px;
    }

    .appointment-media img {
        height: 440px;
    }

    .appointment-card {
        padding: 32px;
    }

    .map-wrap,
    .map-wrap iframe {
        min-height: 360px;
    }
}

/* Phones */
@media (max-width: 767.98px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 70px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .navbar-brand img {
        height: 52px;
    }

    .hero .carousel-item {
        height: 92vh;
        min-height: 600px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(8, 8, 52, 0.65) 0%, rgba(8, 8, 52, 0.88) 100%);
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero .carousel-indicators {
        bottom: 80px;
    }

    .info-strip-wrap {
        margin-top: -50px;
    }

    .info-item {
        padding: .9rem 1rem;
    }

    .about-media {
        padding: 0 0 20px 16px;
    }

    .about-img {
        height: 340px;
    }

    .about-profile {
        bottom: 36px;
        padding: 10px 16px 10px 10px;
    }

    .about-profile img {
        width: 50px;
        height: 50px;
    }

    .about-badge {
        top: 16px;
        right: 12px;
        padding: 10px 14px;
        font-size: .8rem;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .appointment-media img {
        height: 360px;
    }

    .appointment-card {
        padding: 24px 18px;
    }

    .article-body {
        padding: 26px 22px 6px;
    }

    .article-tags {
        padding: 6px 22px 20px;
    }

    .article-share {
        padding: 22px 22px 26px;
    }

    .page-banner {
        padding: 140px 0 56px;
    }

    .site-footer {
        padding-top: 70px;
    }

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