:root {
    --primary-blue: #0b5ed7;
    --dark-blue: #062f6e;
    --mid-blue: #0a49a8;
    --sky-blue: #eaf4ff;
    --sky-border: #cfe4ff;
    --accent-cyan: #00b4d8;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --bg-soft: #f7fbff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Top Emergency & Contact Bar */
.top-bar {
    background: linear-gradient(90deg, #052354 0%, #073b8c 100%);
    color: #f1f5f9;
    font-size: 0.86rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: #bae6fd;
    text-decoration: none;
}

.top-bar a:hover {
    color: #ffffff;
}

/* Main Navigation */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(11, 94, 215, 0.08);
    border-bottom: 2px solid var(--sky-blue);
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(11, 94, 215, 0.22);
}

.navbar-custom .nav-link {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 0.95rem;
    border-radius: 8px;
    transition: all 0.22s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-blue);
    background-color: var(--sky-blue);
}

.dropdown-menu {
    border: 1px solid var(--sky-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(7, 59, 140, 0.12);
    border-top: 3px solid var(--primary-blue);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--sky-blue);
    color: var(--primary-blue);
}

/* Moving Announcements Ticker */
.news-ticker-wrap {
    background: linear-gradient(90deg, var(--dark-blue) 0%, var(--primary-blue) 55%, var(--mid-blue) 100%);
    color: #ffffff;
    height: 46px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
}

.ticker-label {
    background-color: #041f4a;
    color: #ffffff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 3;
    border-left: 3px solid var(--accent-cyan);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.18);
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: tickerRtlScroll 30s linear infinite;
}

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

.ticker-item {
    color: #ffffff;
    text-decoration: none;
    margin-left: 55px;
    font-size: 0.93rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.ticker-item:hover {
    color: #a5f3fc;
}

@keyframes tickerRtlScroll {
    0% {
        transform: translateX(-35%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Hero Slider + Pop-up Text */
.hero-slide {
    height: 510px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(6, 47, 110, 0.28) 0%, rgba(6, 47, 110, 0.88) 65%, rgba(5, 35, 84, 0.94) 100%);
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-badge {
    background-color: rgba(0, 180, 216, 0.22);
    border: 1px solid rgba(165, 243, 252, 0.5);
    color: #e0f2fe;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.pop-text {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
}

.carousel-item.active .pop-text {
    animation: heroPopIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.carousel-item.active .pop-delay-1 {
    animation-delay: 0.12s;
}

.carousel-item.active .pop-delay-2 {
    animation-delay: 0.24s;
}

@keyframes heroPopIn {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Section Headers */
.section-kicker {
    display: inline-block;
    background-color: var(--sky-blue);
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.section-title {
    color: var(--dark-blue);
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 0;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 72px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
}

/* Statistics Counter Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--sky-border);
    border-radius: 18px;
    padding: 26px 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    opacity: 0.75;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(11, 94, 215, 0.12);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--sky-blue), #d8ebff);
    color: var(--primary-blue);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 14px;
}

.counter-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 4px;
}

/* Service & News & Awareness Cards */
.portal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.portal-card:hover {
    border-color: #93c5fd;
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(11, 94, 215, 0.09);
}

.req-box {
    background-color: var(--bg-soft);
    border-right: 3px solid var(--primary-blue);
    border-radius: 10px;
    padding: 12px 14px;
}

/* Interactive Section */
.interactive-panel {
    background: linear-gradient(135deg, #eef6ff 0%, #dceeff 100%);
    border: 1px solid var(--sky-border);
    border-radius: 22px;
}

.tip-card {
    background: linear-gradient(145deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(11, 94, 215, 0.22);
}

/* World Health Days Cards */
.day-card {
    background: #ffffff;
    border: 1px solid var(--sky-border);
    border-radius: 16px;
    padding: 22px 18px;
    transition: all 0.25s ease;
}

.day-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 22px rgba(11, 94, 215, 0.09);
}

.day-date-pill {
    background-color: var(--sky-blue);
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 5px 14px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 12px;
}

/* Footer */
.footer-custom {
    background: linear-gradient(135deg, #04204a 0%, #073b8c 55%, #0a4ea8 100%);
    color: #e2e8f0;
    border-top: 4px solid var(--accent-cyan);
}

.footer-custom a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-custom a:hover {
    color: #ffffff;
    padding-right: 4px;
}

@media (max-width: 768px) {
    .hero-slide {
        height: 430px;
    }
    .ticker-label {
        padding: 0 12px;
        font-size: 0.82rem;
    }
}
