/* ==========================================================================
   Aayan Pharmacy - front-end design system
   Loaded after styles.css. Everything here is namespaced with .ap- so the
   older pages that still rely on styles.css are left untouched.
   ========================================================================== */

:root {
    --ap-teal: #0fb9a9;
    --ap-teal-dark: #068b86;
    --ap-blue: #2563eb;
    --ap-blue-dark: #1e40af;
    --ap-coral: #ff6b5b;
    --ap-amber: #ffb020;
    --ap-ink: #0d1b2a;
    --ap-body: #4a5b6e;
    --ap-muted: #8a99ab;
    --ap-line: #e6ecf2;
    --ap-bg: #f5f9fc;
    --ap-card: #ffffff;
    --ap-grad: linear-gradient(135deg, #0fb9a9 0%, #2563eb 100%);
    --ap-grad-soft: linear-gradient(135deg, rgba(15, 185, 169, .12) 0%, rgba(37, 99, 235, .12) 100%);
    --ap-grad-warm: linear-gradient(135deg, #ff6b5b 0%, #ffb020 100%);
    --ap-shadow-sm: 0 2px 8px rgba(13, 27, 42, .06);
    --ap-shadow: 0 10px 30px rgba(13, 27, 42, .08);
    --ap-shadow-lg: 0 24px 60px rgba(13, 27, 42, .14);
    --ap-radius: 18px;
    --ap-radius-lg: 28px;
    --ap-header-h: 68px;
}

/* --------------------------------------------------------------- base ---- */

.ap-page {
    margin: 0;
    background: var(--ap-bg);
    color: var(--ap-body);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ap-page h1,
.ap-page h2,
.ap-page h3,
.ap-page h4,
.ap-page h5 {
    color: var(--ap-ink);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.ap-page a {
    color: var(--ap-teal-dark);
    text-decoration: none;
    transition: color .2s ease;
}

.ap-page a:hover {
    color: var(--ap-blue);
    text-decoration: none;
}

.ap-page img {
    max-width: 100%;
}

.ap-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.ap-section {
    padding: 64px 0;
    position: relative;
}

.ap-section--tight {
    padding: 40px 0;
}

.ap-eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ap-teal-dark);
    background: rgba(15, 185, 169, .1);
    border-radius: 100px;
    padding: 6px 14px;
    margin-bottom: 14px;
}

.ap-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin: 0 0 10px;
}

.ap-lede {
    font-size: 1.02rem;
    color: var(--ap-body);
    max-width: 620px;
    margin: 0 auto;
}

.ap-head-center {
    text-align: center;
    margin-bottom: 38px;
}

.ap-gradient-text {
    background: var(--ap-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--ap-teal-dark);
}

/* ------------------------------------------------------------- buttons ---- */

.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 100px;
    padding: 12px 26px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s ease, background .22s ease;
}

.ap-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .4);
    outline-offset: 2px;
}

/* NOTE: `.ap-page a` is more specific than `.ap-btn--*`, so the button colours
   are written as `.ap-page a.ap-btn--*` (and plain selectors for <button>). */
.ap-btn--primary,
.ap-page a.ap-btn--primary {
    background: var(--ap-grad);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 185, 169, .34);
}

.ap-btn--primary:hover,
.ap-page a.ap-btn--primary:hover,
.ap-page a.ap-btn--primary:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 185, 169, .42);
}

.ap-btn--warm,
.ap-page a.ap-btn--warm {
    background: var(--ap-grad-warm);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 107, 91, .34);
}

.ap-btn--warm:hover,
.ap-page a.ap-btn--warm:hover,
.ap-page a.ap-btn--warm:focus {
    color: #fff;
    transform: translateY(-2px);
}

.ap-btn--ghost,
.ap-page a.ap-btn--ghost {
    background: #fff;
    color: var(--ap-ink);
    border: 1px solid var(--ap-line);
    box-shadow: var(--ap-shadow-sm);
}

.ap-btn--ghost:hover,
.ap-page a.ap-btn--ghost:hover,
.ap-page a.ap-btn--ghost:focus {
    color: var(--ap-ink);
    transform: translateY(-2px);
    border-color: rgba(15, 185, 169, .5);
}

.ap-btn--white,
.ap-page a.ap-btn--white {
    background: #fff;
    color: var(--ap-teal-dark);
    box-shadow: 0 10px 24px rgba(13, 27, 42, .18);
}

.ap-btn--white:hover,
.ap-page a.ap-btn--white:hover {
    color: var(--ap-blue-dark);
    transform: translateY(-2px);
}

.ap-btn--block {
    width: 100%;
}

.ap-btn--lg {
    padding: 15px 32px;
    font-size: 1rem;
}

/* -------------------------------------------------------------- header ---- */

.ap-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(230, 236, 242, .9);
    transition: box-shadow .25s ease;
}

.ap-header.is-stuck {
    box-shadow: 0 6px 22px rgba(13, 27, 42, .08);
}

/* styles.css styles bare <nav> and <footer> elements (red nav, !important links).
   These overrides keep the old pages working while neutralising it here. */
.ap-header nav.ap-nav {
    height: var(--ap-header-h);
    display: flex;
    align-items: center;
    gap: 18px;
    background: transparent;
    padding: 0;
}

.ap-header .ap-nav-links li {
    display: block;
    margin: 0;
}

.ap-header .ap-nav-links li a {
    color: var(--ap-ink) !important;
    padding: 9px 14px !important;
    background: transparent;
}

.ap-header .ap-nav-links li a:hover {
    color: var(--ap-teal-dark) !important;
    background: transparent;
}

.ap-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ap-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.ap-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto 0 14px;
    padding: 0;
    list-style: none;
}

.ap-nav-links a {
    display: block;
    padding: 9px 14px;
    border-radius: 100px;
    font-size: .93rem;
    font-weight: 600;
    color: var(--ap-ink);
    position: relative;
}

.ap-nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--ap-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.ap-nav-links a:hover::after,
.ap-nav-links a.is-active::after {
    transform: scaleX(1);
}

.ap-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ap-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ap-line);
    border-radius: 14px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.ap-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ap-ink);
    transition: transform .25s ease, opacity .25s ease;
}

.ap-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    background: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ap-shadow-lg);
}

.ap-drawer.is-open {
    transform: translateX(0);
}

.ap-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--ap-line);
    background: #fff;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--ap-ink);
    cursor: pointer;
}

.ap-drawer img {
    height: 40px;
    width: auto;
    margin-bottom: 22px;
}

.ap-drawer ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.ap-drawer li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 14px;
    font-weight: 600;
    color: var(--ap-ink);
}

.ap-drawer li a:hover {
    background: var(--ap-grad-soft);
}

.ap-drawer li a i {
    width: 20px;
    color: var(--ap-teal-dark);
}

.ap-scrim {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 1000;
}

.ap-scrim.is-open {
    opacity: 1;
    visibility: visible;
}

/* ---------------------------------------------------------------- hero ---- */

.ap-hero {
    position: relative;
    padding: 56px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 12% -8%, rgba(15, 185, 169, .16), transparent 60%),
        radial-gradient(900px 500px at 92% 4%, rgba(37, 99, 235, .14), transparent 62%),
        var(--ap-bg);
}

.ap-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
    align-items: center;
}

.ap-hero h1 {
    font-size: clamp(2rem, 5.2vw, 3.3rem);
    margin: 0 0 16px;
}

.ap-hero p {
    font-size: 1.06rem;
    max-width: 520px;
    margin: 0 0 26px;
}

.ap-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.ap-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.ap-stat b {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--ap-ink);
    line-height: 1.1;
}

.ap-stat span {
    font-size: .82rem;
    color: var(--ap-muted);
    font-weight: 600;
}

/* floating art */
.ap-hero-art {
    position: relative;
    min-height: 340px;
}

.ap-blob {
    position: absolute;
    border-radius: 48% 52% 62% 38% / 44% 46% 54% 56%;
    filter: blur(2px);
    opacity: .85;
    animation: ap-morph 16s ease-in-out infinite;
}

.ap-blob--1 {
    width: 300px;
    height: 300px;
    top: 4%;
    left: 8%;
    background: linear-gradient(135deg, rgba(15, 185, 169, .55), rgba(37, 99, 235, .35));
}

.ap-blob--2 {
    width: 210px;
    height: 210px;
    right: 4%;
    bottom: 6%;
    background: linear-gradient(135deg, rgba(255, 176, 32, .45), rgba(255, 107, 91, .38));
    animation-duration: 20s;
    animation-direction: reverse;
}

@keyframes ap-morph {
    0%, 100% { border-radius: 48% 52% 62% 38% / 44% 46% 54% 56%; transform: translate3d(0, 0, 0) rotate(0deg); }
    33% { border-radius: 62% 38% 44% 56% / 58% 42% 58% 42%; transform: translate3d(14px, -18px, 0) rotate(6deg); }
    66% { border-radius: 40% 60% 56% 44% / 38% 62% 38% 62%; transform: translate3d(-12px, 12px, 0) rotate(-5deg); }
}

.ap-hero-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: var(--ap-radius-lg);
    box-shadow: var(--ap-shadow-lg);
    padding: 22px;
    max-width: 380px;
    margin-left: auto;
    animation: ap-float 6s ease-in-out infinite;
}

.ap-hero-card h4 {
    font-size: 1rem;
    margin: 0 0 14px;
}

@keyframes ap-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.ap-pill-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ap-ink);
    transition: transform .22s ease, box-shadow .22s ease;
}

.ap-pill:hover {
    transform: translateX(4px);
    box-shadow: var(--ap-shadow-sm);
    color: var(--ap-ink);
}

.ap-pill i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ap-grad);
    font-size: .95rem;
    flex-shrink: 0;
}

.ap-pill--warm i { background: var(--ap-grad-warm); }

/* --------------------------------------------------------- quick tiles ---- */

.ap-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -38px;
    position: relative;
    z-index: 5;
}

.ap-tile {
    background: var(--ap-card);
    border-radius: var(--ap-radius);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--ap-shadow);
    border: 1px solid rgba(230, 236, 242, .8);
    transition: transform .26s cubic-bezier(.34, 1.56, .64, 1), box-shadow .26s ease;
    display: block;
    color: var(--ap-ink);
}

.ap-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--ap-shadow-lg);
    color: var(--ap-ink);
}

.ap-tile-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #fff;
    background: var(--ap-grad);
}

.ap-tile:nth-child(2) .ap-tile-icon { background: linear-gradient(135deg, #7c4dff, #2563eb); }
.ap-tile:nth-child(3) .ap-tile-icon { background: var(--ap-grad-warm); }
.ap-tile:nth-child(4) .ap-tile-icon { background: linear-gradient(135deg, #22c55e, #0fb9a9); }

.ap-tile b {
    display: block;
    font-size: .98rem;
    margin-bottom: 3px;
}

.ap-tile span {
    font-size: .8rem;
    color: var(--ap-muted);
}

/* ------------------------------------------------------------- doctors ---- */

.ap-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.ap-rail::-webkit-scrollbar {
    height: 6px;
}

.ap-rail::-webkit-scrollbar-thumb {
    background: rgba(15, 185, 169, .4);
    border-radius: 100px;
}

.ap-rail > * {
    scroll-snap-align: start;
    flex: 0 0 300px;
}

.ap-doc {
    background: var(--ap-card);
    border-radius: var(--ap-radius);
    overflow: hidden;
    box-shadow: var(--ap-shadow);
    border: 1px solid rgba(230, 236, 242, .8);
    display: flex;
    flex-direction: column;
    transition: transform .26s ease, box-shadow .26s ease;
}

.ap-doc:hover {
    transform: translateY(-6px);
    box-shadow: var(--ap-shadow-lg);
}

.ap-doc-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--ap-grad-soft);
    overflow: hidden;
}

.ap-doc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.ap-doc:hover .ap-doc-media img {
    transform: scale(1.06);
}

.ap-doc-date {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(13, 27, 42, .74);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .76rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ap-doc-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ap-doc-body h4 {
    font-size: 1.04rem;
    margin: 0;
}

.ap-doc-body .ap-doc-degree {
    font-size: .82rem;
    color: var(--ap-muted);
    font-weight: 600;
}

.ap-doc-tag {
    align-self: flex-start;
    font-size: .74rem;
    font-weight: 700;
    color: var(--ap-blue-dark);
    background: rgba(37, 99, 235, .1);
    border-radius: 100px;
    padding: 4px 11px;
    margin: 6px 0 12px;
}

.ap-doc-body .ap-btn {
    margin-top: auto;
}

.ap-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px dashed var(--ap-line);
    border-radius: var(--ap-radius);
    color: var(--ap-muted);
}

/* ------------------------------------------------------------ services ---- */

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

.ap-card {
    background: var(--ap-card);
    border: 1px solid rgba(230, 236, 242, .9);
    border-radius: var(--ap-radius);
    padding: 26px 22px;
    box-shadow: var(--ap-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .26s ease, box-shadow .26s ease;
}

.ap-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--ap-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

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

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

.ap-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--ap-teal-dark);
    background: var(--ap-grad-soft);
    margin-bottom: 14px;
}

.ap-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.ap-card p {
    margin: 0;
    font-size: .93rem;
}

/* ----------------------------------------------------------- diagnostic --- */

.ap-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.ap-check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 26px;
}

.ap-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    font-weight: 500;
    color: var(--ap-body);
}

.ap-check-list i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(15, 185, 169, .14);
    color: var(--ap-teal-dark);
    font-size: .72rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.ap-panel {
    background: var(--ap-grad);
    border-radius: var(--ap-radius-lg);
    padding: 34px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ap-shadow-lg);
}

.ap-panel::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.ap-panel h3 {
    color: #fff;
    margin: 0 0 8px;
}

.ap-panel p {
    color: rgba(255, 255, 255, .88);
}

.ap-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
    position: relative;
    z-index: 2;
}

.ap-panel-grid div {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    padding: 14px;
}

.ap-panel-grid b {
    display: block;
    font-size: 1.4rem;
    color: #fff;
}

.ap-panel-grid span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .85);
}

/* ----------------------------------------------------------- marquee ------ */

.ap-marquee {
    overflow: hidden;
    background: #fff;
    border-top: 1px solid var(--ap-line);
    border-bottom: 1px solid var(--ap-line);
    padding: 14px 0;
}

.ap-marquee-track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: ap-scroll 28s linear infinite;
}

.ap-marquee:hover .ap-marquee-track {
    animation-play-state: paused;
}

.ap-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: .88rem;
    color: var(--ap-body);
    white-space: nowrap;
}

.ap-marquee i {
    color: var(--ap-teal);
}

@keyframes ap-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* -------------------------------------------------------- testimonials ---- */

.ap-quote {
    background: var(--ap-card);
    border-radius: var(--ap-radius);
    padding: 26px 24px;
    border: 1px solid rgba(230, 236, 242, .9);
    box-shadow: var(--ap-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
}

.ap-quote-mark {
    font-size: 2.2rem;
    line-height: .6;
    color: var(--ap-teal);
    opacity: .5;
}

.ap-quote p {
    margin: 0;
    font-size: .96rem;
    color: var(--ap-body);
}

.ap-quote-by {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
}

.ap-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ap-grad);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.ap-quote-by b {
    display: block;
    color: var(--ap-ink);
    font-size: .92rem;
}

.ap-quote-by span {
    font-size: .78rem;
    color: var(--ap-muted);
}

.ap-stars {
    color: var(--ap-amber);
    font-size: .82rem;
}

/* ------------------------------------------------------------- cta app ---- */

.ap-cta {
    background:
        radial-gradient(700px 340px at 85% 20%, rgba(37, 99, 235, .3), transparent 62%),
        linear-gradient(135deg, #0d1b2a 0%, #123047 100%);
    border-radius: var(--ap-radius-lg);
    padding: 42px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.ap-cta h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    margin: 0 0 10px;
}

.ap-cta p {
    color: rgba(255, 255, 255, .82);
    margin: 0 0 22px;
}

.ap-cta-img {
    text-align: center;
}

.ap-cta-img img {
    max-width: 260px;
    border-radius: 16px;
    animation: ap-float 7s ease-in-out infinite;
}

/* -------------------------------------------------------------- footer ---- */

footer.ap-footer {
    background: #0d1b2a;
    color: rgba(255, 255, 255, .74);
    padding: 52px 0 0;
    margin-top: 60px;
    text-align: left;
}

.ap-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 36px;
}

.ap-footer h5 {
    color: #fff;
    font-size: .95rem;
    margin: 0 0 14px;
}

.ap-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ap-footer li {
    margin-bottom: 9px;
    font-size: .9rem;
}

.ap-footer a {
    color: rgba(255, 255, 255, .74);
}

.ap-footer a:hover {
    color: var(--ap-teal);
}

.ap-footer-logo {
    height: 44px;
    width: auto;
    background: #fff;
    padding: 6px 10px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.ap-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.ap-social a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    transition: transform .22s ease, background .22s ease;
}

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

.ap-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 0;
    font-size: .84rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ------------------------------------------------------ booking page ------ */

.ap-book {
    padding: 38px 0 20px;
    background:
        radial-gradient(900px 420px at 10% -10%, rgba(15, 185, 169, .16), transparent 60%),
        radial-gradient(800px 400px at 95% 0%, rgba(37, 99, 235, .13), transparent 62%),
        var(--ap-bg);
}

.ap-book-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 26px;
    align-items: start;
}

.ap-doc-profile {
    background: var(--ap-card);
    border-radius: var(--ap-radius-lg);
    box-shadow: var(--ap-shadow);
    border: 1px solid rgba(230, 236, 242, .8);
    overflow: hidden;
    position: sticky;
    top: calc(var(--ap-header-h) + 16px);
}

.ap-doc-profile-top {
    background: var(--ap-grad);
    padding: 26px 22px 54px;
    color: #fff;
    position: relative;
    text-align: center;
}

.ap-doc-profile-top::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -32px;
    height: 64px;
    background: var(--ap-card);
    border-radius: 50% 50% 0 0;
}

.ap-doc-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, .6);
    background: #fff;
    margin: 0 auto 12px;
    display: block;
    box-shadow: var(--ap-shadow);
}

.ap-doc-avatar--fallback {
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--ap-teal-dark);
}

.ap-doc-profile-top h2 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 4px;
}

.ap-doc-profile-top p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: .88rem;
}

.ap-doc-profile-body {
    padding: 14px 22px 24px;
    position: relative;
    z-index: 2;
}

.ap-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--ap-line);
    font-size: .9rem;
}

.ap-fact:last-child {
    border-bottom: 0;
}

.ap-fact i {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--ap-grad-soft);
    color: var(--ap-teal-dark);
    flex-shrink: 0;
}

.ap-fact span {
    color: var(--ap-muted);
    font-size: .76rem;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ap-fact b {
    color: var(--ap-ink);
    font-weight: 600;
}

.ap-form-card {
    background: var(--ap-card);
    border-radius: var(--ap-radius-lg);
    box-shadow: var(--ap-shadow);
    border: 1px solid rgba(230, 236, 242, .8);
    padding: 28px;
}

.ap-step {
    margin-bottom: 26px;
}

.ap-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ap-step-no {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ap-grad);
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ap-step-head h3 {
    font-size: 1.02rem;
    margin: 0;
}

.ap-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ap-ink);
    margin-bottom: 7px;
}

.ap-input,
.ap-select {
    width: 100%;
    border: 1.5px solid var(--ap-line);
    border-radius: 14px;
    padding: 13px 15px;
    font-size: .95rem;
    color: var(--ap-ink);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ap-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a99ab' stroke-width='2.5' stroke-linecap='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.ap-input:focus,
.ap-select:focus {
    outline: 0;
    border-color: var(--ap-teal);
    box-shadow: 0 0 0 4px rgba(15, 185, 169, .14);
}

.ap-input[readonly] {
    background: #f3f7fa;
    color: var(--ap-body);
}

.ap-field {
    margin-bottom: 16px;
}

.ap-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ap-hint {
    font-size: .78rem;
    color: var(--ap-muted);
    margin-top: 6px;
}

/* date slot chips */
.ap-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
}

.ap-slot input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ap-slot label {
    display: block;
    border: 1.5px solid var(--ap-line);
    border-radius: 16px;
    padding: 13px 15px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    margin: 0;
}

.ap-slot label:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 185, 169, .5);
}

.ap-slot input:checked + label {
    border-color: var(--ap-teal);
    box-shadow: 0 0 0 4px rgba(15, 185, 169, .13);
    background: linear-gradient(135deg, rgba(15, 185, 169, .08), rgba(37, 99, 235, .06));
}

.ap-slot input:focus-visible + label {
    outline: 3px solid rgba(37, 99, 235, .4);
    outline-offset: 2px;
}

.ap-slot-day {
    display: block;
    font-weight: 700;
    color: var(--ap-ink);
    font-size: .95rem;
}

.ap-slot-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--ap-muted);
    font-weight: 600;
    margin-top: 3px;
}

.ap-slot-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ap-teal-dark);
    background: rgba(15, 185, 169, .12);
    border-radius: 100px;
    padding: 2px 8px;
    margin-bottom: 6px;
}

.ap-alert {
    border-radius: 14px;
    padding: 13px 16px;
    font-size: .9rem;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.ap-alert--error {
    background: #fff1ef;
    border-color: #ffd7d1;
    color: #b42318;
}

.ap-alert--error p {
    margin: 0;
}

.ap-alert--info {
    background: rgba(37, 99, 235, .07);
    border-color: rgba(37, 99, 235, .18);
    color: var(--ap-blue-dark);
}

/* The AJAX doctor block still ships plain Bootstrap markup - restyle it here */
#doctorDetails .form-group {
    margin-bottom: 0;
}

#doctorDetails > p {
    font-size: .88rem;
    color: var(--ap-body);
    margin: 0 0 6px;
}

#doctorDetails label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ap-ink);
    margin: 10px 0 7px;
}

#doctorDetails select.form-control {
    width: 100%;
    height: auto;
    border: 1.5px solid var(--ap-line);
    border-radius: 14px;
    padding: 13px 15px;
    font-size: .95rem;
    color: var(--ap-ink);
    background: #fff;
}

#doctorDetails select.form-control:focus {
    border-color: var(--ap-teal);
    box-shadow: 0 0 0 4px rgba(15, 185, 169, .14);
}

.ap-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
    font-size: .8rem;
    color: var(--ap-muted);
    font-weight: 600;
}

.ap-trust-row i {
    color: var(--ap-teal);
    margin-right: 5px;
}

/* -------------------------------------------------------- scroll reveal --- */

.ap-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.ap-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.ap-reveal[data-delay="1"] { transition-delay: .08s; }
.ap-reveal[data-delay="2"] { transition-delay: .16s; }
.ap-reveal[data-delay="3"] { transition-delay: .24s; }
.ap-reveal[data-delay="4"] { transition-delay: .32s; }

/* floating call button (mobile) */
.ap-fab {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 800;
    display: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--ap-grad-warm);
    color: #fff;
    place-items: center;
    font-size: 1.15rem;
    box-shadow: 0 12px 28px rgba(255, 107, 91, .45);
    animation: ap-pulse 2.4s ease-in-out infinite;
}

.ap-fab:hover {
    color: #fff;
}

@keyframes ap-pulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(255, 107, 91, .45); }
    50% { box-shadow: 0 12px 28px rgba(255, 107, 91, .45), 0 0 0 14px rgba(255, 107, 91, .08); }
}

/* ---------------------------------------------------------- responsive ---- */

@media (max-width: 991px) {
    .ap-hero-grid,
    .ap-split,
    .ap-book-grid,
    .ap-cta {
        grid-template-columns: 1fr;
    }

    .ap-hero-art {
        min-height: 260px;
    }

    .ap-hero-card {
        margin: 0 auto;
    }

    .ap-doc-profile {
        position: static;
    }

    .ap-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .ap-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ap-cta {
        text-align: center;
    }

    .ap-cta-img {
        order: -1;
    }
}

@media (max-width: 767px) {
    .ap-nav-links {
        display: none;
    }

    .ap-burger {
        display: flex;
    }

    .ap-nav-actions .ap-btn--ghost {
        display: none;
    }

    .ap-section {
        padding: 44px 0;
    }

    .ap-hero {
        padding: 34px 0 54px;
    }

    .ap-tiles {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -30px;
    }

    .ap-rail > * {
        flex-basis: 78vw;
    }

    .ap-field-row {
        grid-template-columns: 1fr;
    }

    .ap-form-card {
        padding: 20px;
    }

    .ap-cta {
        padding: 28px 20px;
    }

    .ap-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ap-fab {
        display: grid;
    }

    .ap-hero-stats {
        gap: 18px;
    }

    .ap-stat b {
        font-size: 1.35rem;
    }
}

@media (max-width: 420px) {
    .ap-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ap-tile {
        padding: 16px 10px;
    }

    .ap-slots {
        grid-template-columns: 1fr;
    }
}

/* Users who prefer less motion get the layout without the movement */
@media (prefers-reduced-motion: reduce) {
    .ap-page *,
    .ap-page *::before,
    .ap-page *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .ap-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Update: Bangla/English typography, rotating banner, tests rail,
   default doctor art, and link-button colour overrides.
   ========================================================================== */

/* `.ap-page a` beats single-class rules, so anchor variants are restated here */
.ap-page a.ap-tile,
.ap-page a.ap-tile:hover,
.ap-page a.ap-pill,
.ap-page a.ap-pill:hover,
.ap-page a.ap-test-chip,
.ap-page a.ap-test-chip:hover {
    color: var(--ap-ink);
}

/* ------------------------------------------------------------- Bangla ---- */

.bn {
    font-family: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "Shonar Bangla", "Vrinda", "Segoe UI", sans-serif;
    line-height: 1.5;
}

.ap-bn-title {
    display: block;
    font-weight: 800;
}

.ap-en-sub {
    display: block;
    font-size: .58em;
    font-weight: 600;
    color: var(--ap-muted);
    letter-spacing: .01em;
    margin-top: 6px;
}

.ap-head-center .ap-lede .bn {
    display: block;
    margin-bottom: 4px;
    color: var(--ap-ink);
    font-weight: 600;
}

/* ----------------------------------------------------- rotating banner ---- */

.ap-banner {
    position: relative;
    border-radius: var(--ap-radius-lg);
    overflow: hidden;
    box-shadow: var(--ap-shadow-lg);
    background: #0d1b2a;
    isolation: isolate;
}

.ap-banner-track {
    position: relative;
    min-height: 330px;
}

.ap-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 20px;
    padding: 38px 42px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity .7s ease, transform 1.2s ease, visibility .7s ease;
}

.ap-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.ap-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ap-slide--1::before { background: linear-gradient(120deg, #06806f 0%, #0fb9a9 55%, #2563eb 100%); }
.ap-slide--2::before { background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #0fb9a9 100%); }
.ap-slide--3::before { background: linear-gradient(120deg, #b23a2f 0%, #ff6b5b 55%, #ffb020 100%); }

.ap-slide-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    z-index: -1;
}

.ap-slide-shape--a { width: 300px; height: 300px; right: -60px; top: -110px; }
.ap-slide-shape--b { width: 180px; height: 180px; left: -50px; bottom: -70px; }

.ap-slide-copy h2 {
    color: #fff;
    font-size: clamp(1.45rem, 3.6vw, 2.25rem);
    margin: 0 0 10px;
}

.ap-slide-copy p {
    color: rgba(255, 255, 255, .92);
    font-size: 1rem;
    margin: 0 0 20px;
    max-width: 520px;
}

.ap-slide-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.ap-slide-art {
    display: grid;
    place-items: center;
}

.ap-slide-art i {
    font-size: 6rem;
    color: rgba(255, 255, 255, .34);
    animation: ap-float 6s ease-in-out infinite;
}

.ap-banner-dots {
    position: absolute;
    left: 42px;
    bottom: 20px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.ap-banner-dots button {
    width: 26px;
    height: 5px;
    border: 0;
    padding: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, .42);
    cursor: pointer;
    transition: background .25s ease, width .25s ease;
}

.ap-banner-dots button.is-active {
    background: #fff;
    width: 40px;
}

.ap-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(13, 27, 42, .28);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s ease;
}

.ap-banner-arrow:hover {
    background: rgba(13, 27, 42, .55);
}

.ap-banner-arrow--prev { left: 12px; }
.ap-banner-arrow--next { right: 12px; }

/* ---------------------------------------------------------- tests list ---- */

.ap-tests-wrap {
    background: var(--ap-card);
    border: 1px solid rgba(230, 236, 242, .9);
    border-radius: var(--ap-radius-lg);
    box-shadow: var(--ap-shadow);
    padding: 22px;
}

.ap-tests-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ap-tests-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 360px;
}

.ap-tests-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ap-muted);
    font-size: .85rem;
}

.ap-tests-search input {
    width: 100%;
    border: 1.5px solid var(--ap-line);
    border-radius: 100px;
    padding: 11px 16px 11px 38px;
    font-size: .92rem;
    color: var(--ap-ink);
    background: #fff;
}

.ap-tests-search input:focus {
    outline: 0;
    border-color: var(--ap-teal);
    box-shadow: 0 0 0 4px rgba(15, 185, 169, .14);
}

.ap-tests-count {
    font-size: .84rem;
    font-weight: 700;
    color: var(--ap-teal-dark);
    background: rgba(15, 185, 169, .1);
    border-radius: 100px;
    padding: 7px 14px;
    white-space: nowrap;
}

/* the scrolling area */
.ap-tests-scroll {
    max-height: 360px;
    overflow-y: auto;
    padding: 4px 6px 4px 2px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 185, 169, .45) transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.ap-tests-scroll::-webkit-scrollbar {
    width: 8px;
}

.ap-tests-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 185, 169, .45);
    border-radius: 100px;
}

.ap-tests-scroll::-webkit-scrollbar-track {
    background: rgba(230, 236, 242, .6);
    border-radius: 100px;
}

.ap-test-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 14px;
    padding: 11px 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ap-ink);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ap-test-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 185, 169, .55);
    box-shadow: var(--ap-shadow-sm);
}

.ap-test-chip i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--ap-grad-soft);
    color: var(--ap-teal-dark);
    font-size: .8rem;
    flex-shrink: 0;
}

.ap-test-chip span {
    line-height: 1.3;
}

.ap-tests-none {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ap-muted);
    padding: 26px 10px;
}

.ap-tests-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--ap-line);
    font-size: .86rem;
    color: var(--ap-muted);
}

/* ------------------------------------------------------------- address ---- */

.ap-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ap-address i {
    color: var(--ap-teal);
    margin-top: 4px;
}

@media (max-width: 767px) {
    .ap-slide {
        grid-template-columns: 1fr;
        padding: 26px 22px 54px;
        text-align: center;
    }

    .ap-slide-art {
        display: none;
    }

    .ap-banner-track {
        min-height: 300px;
    }

    .ap-banner-dots {
        left: 0;
        right: 0;
        justify-content: center;
        bottom: 16px;
    }

    .ap-banner-arrow {
        display: none;
    }

    .ap-slide-copy p {
        font-size: .93rem;
    }

    .ap-tests-scroll {
        grid-template-columns: 1fr;
        max-height: 320px;
    }
}
