/* ============================================================
   Al Rasheed Hospital — Custom Styles
   ============================================================ */

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ── Medical shadow utility ── */
.medical-shadow {
    box-shadow: 0 4px 20px rgba(13, 33, 55, 0.08), 0 1px 4px rgba(13, 33, 55, 0.04);
}
.medical-shadow-lg {
    box-shadow: 0 12px 40px rgba(13, 33, 55, 0.12), 0 4px 12px rgba(13, 33, 55, 0.06);
}

/* ── Scrollbar hide ── */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ── Hero slider fade ── */
.hero-slide { opacity: 0; }
.fade-slide-active { opacity: 1 !important; }

#hero-section {
    height: clamp(26rem, 58svh, 44rem);
    min-height: 26rem;
    max-height: 44rem;
}

#hero-slider,
#hero-slider .hero-slide,
#hero-slider .hero-slide img {
    height: 100%;
}

#hero-slider .hero-slide img {
    object-fit: cover;
    object-position: center 35%;
}

.hero-slide-overlay {
    background: linear-gradient(
        105deg,
        rgba(13, 33, 55, 0.92) 0%,
        rgba(13, 33, 55, 0.72) 45%,
        rgba(13, 33, 55, 0.25) 100%
    );
}

.hero-slide-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 1.5rem 1rem 3.25rem;
}

@media (min-width: 640px) {
    .hero-slide-content {
        padding: 1.75rem 1.5rem 3.5rem;
    }
}

@media (min-width: 768px) {
    .hero-slide-content {
        padding: 2.25rem 2rem 3.75rem;
    }
    #hero-slider .hero-slide img {
        object-position: center center;
    }
}

@media (min-width: 1024px) {
    .hero-slide-content {
        padding: 2.5rem 3rem 4rem;
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    font-size: clamp(0.6875rem, 1.4vw, 0.75rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 9999px;
    margin-bottom: 0.875rem;
}

.hero-title {
    font-size: clamp(1.625rem, 5.2vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 0.875rem;
}

.hero-desc {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 34rem;
}

@media (min-width: 768px) {
    .hero-desc { margin-bottom: 1.75rem; }
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

@media (min-width: 640px) {
    .hero-cta-group { gap: 0.75rem; }
}

@media (max-width: 479px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-btn {
        width: 100%;
    }
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.625rem 1.25rem;
    font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
    font-weight: 600;
    line-height: 1.2;
    border-radius: 9999px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .hero-btn {
        padding: 0.6875rem 1.375rem;
    }
}

@media (min-width: 1024px) {
    .hero-btn {
        padding: 0.75rem 1.5rem;
    }
}

.hero-btn:active {
    transform: scale(0.97);
}

.hero-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

@media (min-width: 640px) {
    .hero-btn .material-symbols-outlined {
        font-size: 1.2rem;
    }
}

.hero-btn-primary {
    background-color: #af101a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(175, 16, 26, 0.35);
}

.hero-btn-primary:hover {
    background-color: #8f0d15;
}

.hero-btn-teal {
    background-color: #00897B;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 137, 123, 0.3);
}

.hero-btn-teal:hover {
    background-color: #00695c;
}

.hero-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-btn-outline:hover {
    background: #fff;
    color: #0D2137;
    border-color: #fff;
}

.hero-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 9999px;
    background: rgba(13, 33, 55, 0.35);
    backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
    .hero-slider-dots {
        bottom: 1.25rem;
        gap: 0.625rem;
    }
}

@media (min-width: 1024px) {
    .hero-slider-dots {
        bottom: 1.5rem;
    }
}

.slider-dot {
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.4);
    transition: width 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.85);
}

/* ── Hero Slider Arrow Navigation Buttons ─────────────────────────────────
   Explicit CSS (no Tailwind dependency) so arrows work on all environments
   including live/production where Tailwind CDN may be unavailable or slow. */
#hero-prev,
#hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    outline: none;
    pointer-events: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

#hero-prev { left: 0.75rem; }
#hero-next { right: 0.75rem; }

@media (min-width: 768px) {
    #hero-prev { left: 1.5rem; width: 3rem; height: 3rem; }
    #hero-next { right: 1.5rem; width: 3rem; height: 3rem; }
}

#hero-prev:hover,
#hero-next:hover {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}

#hero-prev:active,
#hero-next:active {
    transform: translateY(-50%) scale(0.92);
}

#hero-prev .material-symbols-outlined,
#hero-next .material-symbols-outlined {
    font-size: 1.25rem;
    line-height: 1;
    pointer-events: none;
}

@media (min-width: 768px) {
    #hero-prev .material-symbols-outlined,
    #hero-next .material-symbols-outlined {
        font-size: 1.5rem;
    }
}

/* ── Stats bar responsive overlap ── */
.stats-trigger {
    margin-top: -2.5rem;
}

@media (min-width: 640px) {
    .stats-trigger { margin-top: -3rem; }
}

@media (min-width: 768px) {
    .stats-trigger { margin-top: -3.5rem; }
}

@media (min-width: 1024px) {
    .stats-trigger { margin-top: -4rem; }
}

/* ── Slider dot active state ── */
.slider-dot-active {
    width: 2rem !important;
    opacity: 1 !important;
}

/* ── Counter animation ── */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.counter-animate {
    animation: count-up 0.6s ease forwards;
}

/* ── Fade in up ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.75s ease forwards; }
.animate-fade-in { animation: fadeInUp 0.5s ease forwards; }

/* ── Float badge ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}
.float-badge { animation: float 3.2s ease-in-out infinite; }

/* ── Pulse ring (emergency badge) ── */
@keyframes pulse-ring {
    0%   { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.pulse-ring { position: relative; }
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(255,255,255,0.6);
    animation: pulse-ring 1.8s ease-out infinite;
}

/* ── Glass card ── */
.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

/* ── Image zoom ── */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.55s cubic-bezier(0.4,0,0.2,1); }
.img-zoom:hover img { transform: scale(1.06); }

/* ── Gradient text ── */
.gradient-text {
    background: linear-gradient(135deg, #af101a 0%, #00897B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section active indicator ── */
.nav-active { color: #af101a !important; }

/* ── Leader tab panels ── */
.leader-tab-content { display: none; }
.leader-tab-content.active, .leader-tab-content:not(.hidden) { display: flex; }

/* ── Accordion ── */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion-body.open {
    max-height: 500px;
}

/* ── Inner page hero banners ── */
.page-hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: clamp(16rem, 38svh, 22.5rem);
    min-height: 16rem;
}

@media (min-width: 768px) {
    .page-hero-section {
        height: clamp(18rem, 42svh, 24rem);
        min-height: 18rem;
    }
}

.page-hero-img {
    object-fit: cover;
    object-position: center 35%;
}

@media (min-width: 768px) {
    .page-hero-img {
        object-position: center center;
    }
}

.page-hero-overlay {
    background: linear-gradient(
        105deg,
        rgba(13, 33, 55, 0.92) 0%,
        rgba(13, 33, 55, 0.72) 45%,
        rgba(13, 33, 55, 0.25) 100%
    );
}

.page-hero-content {
    width: 100%;
    padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
    .page-hero-content {
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .page-hero-content {
        padding: 2rem 2rem;
    }
}

@media (min-width: 1024px) {
    .page-hero-content {
        padding: 2.5rem 3rem;
    }
}

.page-hero-badge {
    display: inline-block;
    font-size: clamp(0.6875rem, 1.5vw, 0.75rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.625rem;
}

.page-hero-title {
    font-size: clamp(1.5rem, 4.5vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.625rem;
}

.page-hero-desc {
    font-size: clamp(0.875rem, 1.8vw, 1.0625rem);
    line-height: 1.6;
    max-width: 36rem;
}

@media (min-width: 768px) {
    .page-hero-title {
        margin-bottom: 0.75rem;
    }
}

/* ── Responsive: mobile-first layout ── */
@media (max-width: 640px) {
    .float-badge { display: none; }
    .stats-trigger { margin-left: 0.75rem; margin-right: 0.75rem; }
}

@media (max-width: 768px) {
    .float-badge { display: none; }
}

/* ── Sticky header shrink on scroll (JS controlled) ── */
header.scrolled nav {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
header.scrolled img.h-11 {
    height: 2.25rem;
    width: 2.25rem;
}

/* ── Print styles ── */
@media print {
    header, footer, .no-print { display: none !important; }
}
