/**
 * Government of Odisha - Department of Health & Family Welfare
 * Official Portal Stylesheet (portal.css)
 * Theme: Official Navy Blue (#2E5799), Crisp White, Odisha Red, Tricolor Saffron & Green accents
 */

:root {
    --od-navy-primary: #2E5799;
    --od-navy-dark: #1c3c6e;
    --od-navy-deep: #0a2240;
    --od-navy-surface: #0e2a52;
    --od-navy-light: #e8f0fe;
    --od-navy-subtle: #f0f5fc;

    --od-red-accent: #c62828;
    --od-red-hover: #b71c1c;
    --od-red-subtle: #feebee;

    --od-saffron: #ff9933;
    --od-green: #138808;
    --od-gold: #d4af37;
    --od-gold-light: #fff8e1;

    --od-text-primary: #1e293b;
    --od-text-secondary: #475569;
    --od-text-muted: #64748b;
    --od-text-white: #ffffff;

    --od-bg-body: #f8fafc;
    --od-bg-card: #ffffff;
    --od-border-light: #e2e8f0;
    --od-border-accent: rgba(46, 87, 153, 0.15);

    --od-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --od-shadow-md: 0 4px 12px rgba(10, 34, 64, 0.08);
    --od-shadow-lg: 0 10px 25px rgba(10, 34, 64, 0.12);
    --od-shadow-hover: 0 14px 28px rgba(46, 87, 153, 0.18);

    --od-radius-sm: 6px;
    --od-radius-md: 10px;
    --od-radius-lg: 16px;
    --od-radius-pill: 50px;

    --od-font-base: 16px;
}

/* ========================================================
   HIGH CONTRAST & ACCESSIBILITY MODES
   ======================================================== */
body.high-contrast {
    --od-bg-body: #050b14 !important;
    --od-bg-card: #0a1728 !important;
    --od-text-primary: #f8fafc !important;
    --od-text-secondary: #cbd5e1 !important;
    --od-text-muted: #94a3b8 !important;
    --od-border-light: #334155 !important;
    --od-navy-light: #1e293b !important;
    --od-navy-subtle: #0f172a !important;
    background-color: #050b14 !important;
    color: #f8fafc !important;
}

body.high-contrast .bg-white {
    background-color: #0a1728 !important;
    color: #f8fafc !important;
}

body.high-contrast .card {
    background-color: #0d1e34 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.high-contrast .text-dark {
    color: #f8fafc !important;
}

body.high-contrast .text-muted {
    color: #94a3b8 !important;
}

body.font-sm {
    font-size: 14px !important;
}

body.font-lg {
    font-size: 18px !important;
}

body.font-lg h1 {
    font-size: 2.6rem !important;
}

body.font-lg h2 {
    font-size: 2.2rem !important;
}

body.font-lg h3 {
    font-size: 1.8rem !important;
}

body.font-lg p,
body.font-lg a,
body.font-lg span {
    font-size: 1.1rem !important;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 20px;
    background: var(--od-red-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Base resets */
body.portal-body {
    background-color: var(--od-bg-body);
    color: var(--od-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================================
   TRICOLOR RIBBON
   ======================================================== */
.tricolor-stripe {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg,
            var(--od-saffron) 0%,
            var(--od-saffron) 33.33%,
            #ffffff 33.33%,
            #ffffff 66.66%,
            var(--od-green) 66.66%,
            var(--od-green) 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ========================================================
   TOP GOVERNMENT UTILITY BAR
   ======================================================== */
.top-gov-bar {
    background-color: var(--od-navy-deep);
    color: #dbe4f0;
    font-size: 12.5px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-gov-bar a {
    color: #dbe4f0;
    text-decoration: none;
    transition: color 0.2s;
}

.top-gov-bar a:hover {
    color: var(--od-saffron);
}

.accessibility-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.2s;
}

.accessibility-btn:hover,
.accessibility-btn.active {
    background: var(--od-navy-primary);
    border-color: var(--od-saffron);
    color: #ffffff;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.theme-toggle-btn:hover {
    background: #000;
    color: #ffcc00;
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-switch-btn:hover {
    background: var(--od-saffron);
    color: #0a2240;
}

/* ========================================================
   MAIN GOVERNMENT HEADER
   ======================================================== */
.portal-main-header {
    background-color: #ffffff;
    padding: 14px 0;
    border-bottom: 2px solid var(--od-navy-light);
    box-shadow: 0 2px 8px rgba(10, 34, 64, 0.04);
}

.emblem-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.emblem-img {
    height: 82px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.emblem-wrapper:hover .emblem-img {
    transform: scale(1.03);
}

.header-text-block .dept-odia {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--od-saffron);
    line-height: 1.25;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.header-text-block .dept-en {
    font-size: 19px;
    font-weight: 800;
    color: var(--od-navy-primary);
    line-height: 1.25;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

.header-text-block .govt-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--od-text-secondary);
    letter-spacing: 0.2px;
}

.header-badges-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.emergency-pill {
    display: flex;
    align-items: center;
    background: var(--od-red-subtle);
    border: 1px solid rgba(198, 40, 40, 0.25);
    border-radius: var(--od-radius-pill);
    padding: 6px 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.emergency-pill:hover {
    background: var(--od-red-accent);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.25);
}

.emergency-pill:hover * {
    color: #fff !important;
}

.emergency-pill .pill-icon {
    width: 32px;
    height: 32px;
    background: var(--od-red-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

.emergency-pill .pill-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--od-red-accent);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.emergency-pill .pill-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--od-red-accent);
    line-height: 1.2;
}

.header-login-btn {
    background: linear-gradient(135deg, var(--od-navy-primary) 0%, var(--od-navy-dark) 100%);
    color: #ffffff !important;
    border: 1.5px solid var(--od-navy-primary);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(46, 87, 153, 0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.header-login-btn:hover {
    background: linear-gradient(135deg, var(--od-navy-dark) 0%, var(--od-navy-deep) 100%);
    box-shadow: 0 6px 14px rgba(46, 87, 153, 0.35);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.header-register-btn {
    background: #ffffff;
    color: var(--od-navy-primary) !important;
    border: 1.5px solid var(--od-navy-primary);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.header-register-btn:hover {
    background: var(--od-navy-light);
    color: var(--od-navy-dark) !important;
    border-color: var(--od-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 87, 153, 0.18);
}

/* ========================================================
   STICKY NAVIGATION BAR
   ======================================================== */
.portal-navbar {
    background: linear-gradient(90deg, #183e78 0%, var(--od-navy-primary) 50%, #1f4785 100%);
    padding: 0;
    box-shadow: 0 4px 12px rgba(10, 34, 64, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid var(--od-gold);
    z-index: 1020;
}

.portal-navbar.sticky-top {
    position: sticky;
    top: 0;
}

.portal-nav-link {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.portal-nav-link:hover,
.portal-nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom-color: var(--od-saffron);
    color: #ffffff !important;
}

.portal-dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(10, 34, 64, 0.18);
    padding: 8px 0;
    border-top: 3px solid var(--od-navy-primary);
}

.portal-dropdown-menu .dropdown-item {
    font-size: 13.5px;
    padding: 8px 18px;
    color: var(--od-text-primary);
    font-weight: 500;
    transition: all 0.2s;
}

.portal-dropdown-menu .dropdown-item:hover {
    background-color: var(--od-navy-light);
    color: var(--od-navy-primary);
    padding-left: 22px;
}

.nav-search-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-search-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ========================================================
   ANNOUNCEMENT TICKER
   ======================================================== */
.announcement-ticker-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--od-border-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    padding: 8px 0;
    position: relative;
    z-index: 10;
}

.ticker-badge {
    background: var(--od-red-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.3);
    flex-shrink: 0;
}

.ticker-pulse {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.ticker-marquee-wrapper {
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 36px;
    font-size: 13.5px;
    color: var(--od-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ticker-item:hover {
    color: var(--od-navy-primary);
    text-decoration: underline;
}

.ticker-item .badge-new {
    background: #ff5722;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.ticker-pause-btn {
    background: transparent;
    border: 1px solid var(--od-border-light);
    color: var(--od-text-muted);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.ticker-pause-btn:hover {
    background: var(--od-navy-light);
    color: var(--od-navy-primary);
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================================
   HERO BANNER SECTION
   ======================================================== */
.portal-hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 34, 64, 0.94) 0%, rgba(28, 60, 110, 0.90) 50%, rgba(46, 87, 153, 0.88) 100%),
        url('../img/portal/hero_banner.jpg') center center / cover no-repeat;
    color: #ffffff;
    padding: 56px 0 65px;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.portal-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 40%, rgba(255, 153, 51, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(19, 136, 8, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero-tagline-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    color: var(--od-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--od-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-headline {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-headline .highlight-saffron {
    color: var(--od-saffron);
}

.hero-odia-sub {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e2ecfa;
    margin-bottom: 18px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: #d2e1f5;
    max-width: 620px;
    margin-bottom: 30px;
}

.hero-btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--od-saffron) 0%, #e67e00 100%);
    color: #0a2240 !important;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 6px 16px rgba(255, 153, 51, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #ffa84d 0%, #f58400 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.5);
    color: #0a2240 !important;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-hero-login {
    background: linear-gradient(135deg, #1b8a3e 0%, #138808 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(19, 136, 8, 0.35);
    transition: all 0.25s ease;
}

.btn-hero-login:hover {
    background: linear-gradient(135deg, #22a34c 0%, #15940b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(19, 136, 8, 0.45);
    color: #ffffff !important;
}

/* Hero Mediclaim Banner Showcase Card */
.mediclaim-showcase-card {
    background: rgba(14, 38, 75, 0.90);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--od-radius-lg);
    padding: 14px;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    transition: transform 0.3s ease;
}

.mediclaim-showcase-card:hover {
    transform: translateY(-3px);
}

.mediclaim-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mediclaim-floating-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10, 34, 64, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    z-index: 2;
}

.mediclaim-floating-tag .live-dot {
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 8px #00e676;
    animation: pulseDot 1.5s infinite;
}

.mediclaim-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(10, 34, 64, 0.95) 0%, rgba(10, 34, 64, 0.75) 70%, transparent 100%);
    padding: 24px 16px 12px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.leadership-mini-strip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Workflow Step Cards */
.workflow-card {
    background: #ffffff;
    border-radius: var(--od-radius-md);
    padding: 28px 22px;
    position: relative;
    border: 1px solid var(--od-border-light);
    box-shadow: 0 4px 14px rgba(10, 34, 64, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.workflow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(10, 34, 64, 0.12);
    border-color: var(--od-navy-primary);
}

.workflow-step-num {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 32px;
    font-weight: 800;
    color: rgba(46, 87, 153, 0.12);
    line-height: 1;
}

.workflow-icon {
    width: 52px;
    height: 52px;
    background: var(--od-navy-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.workflow-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--od-navy-dark);
    margin-bottom: 10px;
}

.workflow-desc {
    font-size: 13.5px;
    color: var(--od-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.workflow-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--od-navy-primary);
    background: var(--od-navy-light);
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
}

/* Hero CM Spotlight Card */
.hero-spotlight-card {
    background: rgba(14, 38, 75, 0.85);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--od-radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    position: relative;
    max-width: 440px;
    margin-left: auto;
}

.hero-spotlight-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--od-saffron), var(--od-gold), var(--od-green));
    border-radius: 3px;
}

.spotlight-cm-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto 16px;
    display: block;
}

.spotlight-cm-name {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.spotlight-cm-role {
    font-size: 13px;
    font-weight: 700;
    color: var(--od-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.spotlight-quote {
    font-size: 13.5px;
    font-style: italic;
    color: #dbe7f5;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--od-saffron);
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 14px;
}

/* ========================================================
   KEY STATISTICS COUNTER STRIP
   ======================================================== */
.stats-counter-strip {
    background: #ffffff;
    border-radius: var(--od-radius-md);
    box-shadow: 0 8px 24px rgba(10, 34, 64, 0.08);
    margin-top: -36px;
    position: relative;
    z-index: 20;
    border: 1px solid var(--od-border-light);
    border-top: 3px solid var(--od-navy-primary);
    padding: 10px 10px;
}

.stat-item {
    text-align: center;
    padding: 10px 15px;
    border-right: 1px solid var(--od-border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 26px;
    color: var(--od-navy-primary);
    margin-bottom: 6px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--od-navy-deep);
    line-height: 1.1;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--od-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ========================================================
   SECTION COMMON HEADERS
   ======================================================== */
.portal-section {
    padding: 20px 0;
}

.section-title-wrap {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 42px;
}

.section-badge {
    background: var(--od-navy-light);
    color: var(--od-navy-primary);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--od-radius-pill);
    display: inline-block;
    margin-bottom: 10px;
}

.section-main-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--od-navy-deep);
    line-height: 1.25;
    margin-bottom: 8px;
}

.section-odia-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--od-red-accent);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--od-text-muted);
    line-height: 1.6;
}

.title-decor-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--od-saffron), var(--od-navy-primary));
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ========================================================
   LEADERSHIP SECTION
   ======================================================== */
.leadership-card {
    background: #ffffff;
    border-radius: var(--od-radius-md);
    border: 1px solid var(--od-border-light);
    box-shadow: var(--od-shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.leadership-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--od-shadow-hover);
    border-color: rgba(46, 87, 153, 0.3);
}

.leadership-card-top-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--od-navy-primary), var(--od-gold));
}

.leadership-card.cm-card .leadership-card-top-bar {
    background: linear-gradient(90deg, var(--od-saffron), var(--od-gold), var(--od-green));
}

.leadership-img-wrap {
    background: linear-gradient(180deg, #f0f5fc 0%, #ffffff 100%);
    padding: 24px 20px 16px;
    text-align: center;
    position: relative;
}

.leadership-photo {
    width: 155px;
    height: 155px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 16px rgba(10, 34, 64, 0.14);
    transition: transform 0.3s ease;
}

.leadership-card:hover .leadership-photo {
    transform: scale(1.04);
}

.leadership-badge-tag {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--od-navy-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--od-radius-pill);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.leadership-card.cm-card .leadership-badge-tag {
    background: var(--od-red-accent);
}

.leadership-content {
    padding: 20px 22px 24px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.leader-name {
    font-size: 18.5px;
    font-weight: 800;
    color: var(--od-navy-deep);
    margin-bottom: 4px;
}

.leader-name-odia {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--od-red-accent);
    margin-bottom: 6px;
}

.leader-designation {
    font-size: 13px;
    font-weight: 600;
    color: var(--od-navy-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.leader-message {
    font-size: 13.5px;
    color: var(--od-text-secondary);
    line-height: 1.55;
    margin-bottom: 18px;
    text-align: left;
    background: var(--od-bg-body);
    padding: 12px;
    border-radius: var(--od-radius-sm);
    border-left: 3px solid var(--od-navy-primary);
}

.btn-leader-profile {
    background: transparent;
    color: var(--od-navy-primary);
    border: 1.5px solid var(--od-navy-primary);
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    align-self: center;
}

.btn-leader-profile:hover {
    background: var(--od-navy-primary);
    color: #ffffff;
}

/* ========================================================
   LATEST NOTICES & CIRCULARS SECTION
   ======================================================== */
.notices-container-card {
    background: #ffffff;
    border-radius: var(--od-radius-md);
    border: 1px solid var(--od-border-light);
    box-shadow: var(--od-shadow-sm);
    overflow: hidden;
}

.notices-nav-tabs {
    background: var(--od-navy-light);
    padding: 10px 16px 0;
    border-bottom: 2px solid var(--od-navy-primary);
    gap: 6px;
}

.notices-nav-tabs .nav-link {
    color: var(--od-navy-dark);
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
}

.notices-nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--od-navy-primary);
}

.notices-nav-tabs .nav-link.active {
    background: var(--od-navy-primary);
    color: #ffffff;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    padding: 18px 24px;
    border-bottom: 1px solid var(--od-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background-color 0.2s;
}

.notice-item:hover {
    background-color: var(--od-navy-subtle);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date-box {
    background: var(--od-navy-light);
    color: var(--od-navy-primary);
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    min-width: 65px;
    flex-shrink: 0;
    border: 1px solid rgba(46, 87, 153, 0.2);
}

.notice-date-day {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.notice-date-month {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.notice-info-col {
    flex-grow: 1;
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.notice-category-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-circular {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-recruitment {
    background: #dcfce7;
    color: #15803d;
}

.badge-tender {
    background: #fef3c7;
    color: #b45309;
}

.badge-advisory {
    background: #fee2e2;
    color: #b91c1c;
}

.notice-ref-no {
    font-size: 12px;
    color: var(--od-text-muted);
    font-family: monospace;
}

.notice-title-text {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--od-navy-deep);
    line-height: 1.45;
    margin-bottom: 0;
}

.notice-title-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.notice-title-text a:hover {
    color: var(--od-navy-primary);
    text-decoration: underline;
}

.btn-pdf-download {
    background: var(--od-red-subtle);
    color: var(--od-red-accent) !important;
    border: 1px solid rgba(198, 40, 40, 0.25);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-pdf-download:hover {
    background: var(--od-red-accent);
    color: #ffffff !important;
}

/* Quick Downloads Widget */
.quick-downloads-card {
    background: #ffffff;
    border-radius: var(--od-radius-md);
    border: 1px solid var(--od-border-light);
    box-shadow: var(--od-shadow-sm);
    padding: 22px;
    height: 100%;
}

.card-widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--od-navy-deep);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--od-navy-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--od-text-primary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 8px;
    background: var(--od-bg-body);
    transition: all 0.2s;
}

.download-link-item:hover {
    background: var(--od-navy-light);
    color: var(--od-navy-primary);
    padding-left: 16px;
}

.download-link-item i {
    color: var(--od-red-accent);
    font-size: 16px;
}

/* ========================================================
   DIVISIONS & DIRECTORATES SECTION
   ======================================================== */
.directorate-card {
    background: #ffffff;
    border-radius: var(--od-radius-md);
    border: 1px solid var(--od-border-light);
    box-shadow: var(--od-shadow-sm);
    padding: 22px 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.directorate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--od-navy-primary);
    transition: width 0.3s ease;
}

.directorate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--od-shadow-hover);
    border-color: rgba(46, 87, 153, 0.3);
}

.directorate-card:hover::before {
    width: 6px;
    background: var(--od-saffron);
}

.directorate-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--od-navy-light);
    color: var(--od-navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.directorate-card:hover .directorate-icon-box {
    background: var(--od-navy-primary);
    color: #ffffff;
    transform: rotate(6deg);
}

.directorate-abbr {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--od-red-accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.directorate-name {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--od-navy-deep);
    margin-bottom: 10px;
    line-height: 1.35;
}

.directorate-desc {
    font-size: 13px;
    color: var(--od-text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
}

.directorate-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--od-navy-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.directorate-link:hover {
    gap: 10px;
    color: var(--od-navy-dark);
}

/* ========================================================
   QUICK SERVICES SECTION
   ======================================================== */
.quick-services-bg {
    background: linear-gradient(180deg, #f0f5fc 0%, #e8f0fe 100%);
    position: relative;
}

.service-card {
    background: #ffffff;
    border-radius: var(--od-radius-md);
    border: 1px solid rgba(46, 87, 153, 0.12);
    box-shadow: 0 4px 10px rgba(10, 34, 64, 0.05);
    padding: 22px 18px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(46, 87, 153, 0.16);
    border-color: var(--od-navy-primary);
    text-decoration: none;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--od-navy-light) 0%, #d8e5f8 100%);
    color: var(--od-navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(46, 87, 153, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, var(--od-navy-primary) 0%, var(--od-navy-dark) 100%);
    color: #ffffff;
    transform: scale(1.1);
}

.service-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--od-navy-deep);
    margin-bottom: 6px;
    line-height: 1.3;
}

.service-desc {
    font-size: 12.5px;
    color: var(--od-text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
}

.service-action-pill {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--od-navy-primary);
    background: var(--od-navy-light);
    padding: 3px 10px;
    border-radius: var(--od-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.service-card:hover .service-action-pill {
    background: var(--od-navy-primary);
    color: #ffffff;
}

/* ========================================================
   SCHEMES & INITIATIVES SECTION
   ======================================================== */
.scheme-card {
    background: #ffffff;
    border-radius: var(--od-radius-md);
    border: 1px solid var(--od-border-light);
    box-shadow: var(--od-shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.scheme-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--od-shadow-hover);
    border-color: rgba(46, 87, 153, 0.3);
}

.scheme-img-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #0a2240;
}

.scheme-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.scheme-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--od-red-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.scheme-coverage-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(10, 34, 64, 0.85);
    backdrop-filter: blur(4px);
    color: var(--od-gold);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--od-radius-pill);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.scheme-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.scheme-name {
    font-size: 17.5px;
    font-weight: 800;
    color: var(--od-navy-deep);
    margin-bottom: 4px;
}

.scheme-name-odia {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--od-red-accent);
    margin-bottom: 10px;
}

.scheme-summary {
    font-size: 13.5px;
    color: var(--od-text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
}

.scheme-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.scheme-benefits-list li {
    font-size: 12.5px;
    color: var(--od-text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.scheme-benefits-list li i {
    color: var(--od-green);
    margin-top: 3px;
    flex-shrink: 0;
}

.btn-scheme-details {
    background: var(--od-navy-light);
    color: var(--od-navy-primary);
    border: 1px solid rgba(46, 87, 153, 0.2);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-scheme-details:hover {
    background: var(--od-navy-primary);
    color: #ffffff;
}

/* ========================================================
   NEWS & GALLERY SECTION
   ======================================================== */
.gallery-tab-card {
    border-radius: var(--od-radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--od-shadow-sm);
    margin-bottom: 24px;
    background: #000;
    height: 220px;
}

.gallery-tab-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s;
    opacity: 0.92;
}

.gallery-tab-card:hover .gallery-tab-img {
    transform: scale(1.08);
    opacity: 0.75;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 34, 64, 0.95) 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
}

.press-item {
    background: #ffffff;
    border: 1px solid var(--od-border-light);
    border-radius: var(--od-radius-md);
    padding: 16px 20px;
    margin-bottom: 14px;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.press-item:hover {
    box-shadow: var(--od-shadow-sm);
    border-color: var(--od-navy-primary);
    transform: translateX(4px);
}

.press-date {
    font-size: 12px;
    color: var(--od-red-accent);
    font-weight: 700;
    margin-bottom: 4px;
}

.press-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--od-navy-deep);
    margin: 0;
    line-height: 1.4;
}

/* ========================================================
   PROFESSIONAL GOVERNMENT FOOTER
   ======================================================== */
.portal-footer {
    background-color: var(--od-navy-deep);
    color: #cbd5e1;
    font-size: 13.5px;
    position: relative;
    border-top: 3px solid var(--od-gold);
}

.footer-top-section {
    padding: 50px 0 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.footer-brand-sub {
    font-size: 12.5px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--od-saffron);
}

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

.footer-link-list li {
    margin-bottom: 9px;
}

.footer-link-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link-list a:hover {
    color: var(--od-saffron);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: var(--od-saffron);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-compliance-badges {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.compliance-badge-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.footer-bottom-bar {
    background-color: #061528;
    padding: 18px 0;
    font-size: 12.5px;
    color: #94a3b8;
}

.footer-bottom-bar a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom-bar a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--od-navy-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: all 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top-btn:hover {
    background: var(--od-saffron);
    color: #0a2240;
    transform: translateY(-3px);
}

/* ========================================================
   MODAL LOGIN STYLING (MATCHING LOGIN PAGE THEME)
   ======================================================== */
.modal-login-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-login-header {
    background: linear-gradient(135deg, var(--od-navy-primary) 0%, var(--od-navy-dark) 100%);
    color: #ffffff;
    padding: 18px 24px;
    border-bottom: 2px solid var(--od-gold);
}

.modal-login-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-login-body {
    padding: 26px 28px;
    background: #ffffff;
}

.modal-login-tabs .nav-link {
    color: #495057;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 10px 16px;
}

.modal-login-tabs .nav-link.active {
    color: var(--od-navy-primary);
    border-bottom: 3px solid var(--od-navy-primary);
    background-color: transparent;
}

.modal-mpin-box {
    width: 44px;
    height: 44px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #ced4da;
    background-color: #f8fafc;
}

/* ========================================================
   RESPONSIVE ADJUSTMENTS
   ======================================================== */
@media (max-width: 991.98px) {
    .portal-main-header {
        padding: 10px 0;
    }

    .emblem-img {
        height: 64px;
    }

    .header-text-block .dept-odia {
        font-size: 16px;
    }

    .header-text-block .dept-en {
        font-size: 15px;
    }

    .header-badges-col {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .hero-headline {
        font-size: 2.1rem;
    }

    .hero-odia-sub {
        font-size: 1.35rem;
    }

    .hero-spotlight-card {
        margin: 30px auto 0;
        max-width: 100%;
    }

    .stats-counter-strip {
        margin-top: 20px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--od-border-light);
        padding: 12px 10px;
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575.98px) {
    .hero-headline {
        font-size: 1.75rem;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn-group a {
        width: 100%;
        justify-content: center;
    }

    .emblem-wrapper {
        gap: 10px;
    }

    .emblem-img {
        height: 52px;
    }

    .header-text-block .dept-odia {
        font-size: 14px;
    }

    .header-text-block .dept-en {
        font-size: 13px;
    }
}

/* ========================================================
   PORTAL AUTHENTICATION & REGISTRATION DESIGN SYSTEM
   Consolidated styles for Portal Login and Beneficiary Registration
   ======================================================== */

/* Login & Registration Sections */
.portal-login-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.portal-reg-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 15px;
    background:
        url("../img/bg_image.png") no-repeat left center,
        url("../img/arrow.png") no-repeat right top;
    background-size: 900px, 200px;
    background-color: #ffffff;
}

/* Cards */
.portal-login-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(46, 87, 153, 0.14);
    box-shadow: 0 12px 35px rgba(10, 34, 64, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.portal-reg-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(46, 87, 153, 0.14);
    box-shadow: 0 12px 35px rgba(10, 34, 64, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}

/* Card Headers */
.portal-login-card-header {
    background: linear-gradient(135deg, #f0f5fc 0%, #ffffff 100%);
    padding: 16px 22px 12px;
    border-bottom: 1px solid rgba(46, 87, 153, 0.1);
    position: relative;
}

.portal-reg-card-header {
    background: linear-gradient(135deg, #f0f5fc 0%, #ffffff 100%);
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(46, 87, 153, 0.1);
    position: relative;
}

.portal-login-card-header::before,
.portal-reg-card-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--od-saffron, #ff9933) 0%, var(--od-navy-primary, #2E5799) 100%);
}

.portal-login-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--od-navy-primary, #2E5799);
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.portal-reg-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--od-navy-primary, #2E5799);
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.portal-login-subtitle,
.portal-reg-subtitle {
    font-size: 13px;
    color: var(--od-text-muted, #64748b);
    margin: 0;
    line-height: 1.5;
}

/* Stepper Navigation (Registration) */
.portal-stepper-wrap {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 28px;
}

.portal-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    background: transparent;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
}

.step-item:hover .step-circle {
    border-color: var(--od-navy-primary, #2E5799);
    transform: scale(1.04);
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.step-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.step-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    transition: color 0.3s;
    margin: 0;
}

.step-sub {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

.step-item.active .step-circle {
    border-color: var(--od-navy-primary, #2E5799);
    background: var(--od-navy-primary, #2E5799);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 87, 153, 0.3);
}

.step-item.active .step-title {
    color: var(--od-navy-primary, #2E5799);
    font-weight: 800;
}

.step-item.done .step-circle {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

.step-item.done .step-title {
    color: #10b981;
}

.stepper-track {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 16px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.stepper-track-fill {
    height: 100%;
    width: 0%;
    background: #10b981;
    transition: width 0.4s ease;
}

/* Tabs */
.portal-login-tabs {
    border-bottom: 2px solid #e2e8f0;
    padding: 0 18px;
    background: #f8fafc;
}

.portal-login-tabs .nav-link {
    color: #64748b;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 14px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: all 0.25s ease;
}

.portal-login-tabs .nav-link:hover {
    color: var(--od-navy-primary, #2E5799);
}

.portal-login-tabs .nav-link.active {
    color: var(--od-navy-primary, #2E5799);
    border-bottom: 3px solid var(--od-navy-primary, #2E5799);
    background: #ffffff;
}

/* Card Bodies */
.portal-login-card-body {
    padding: 18px 22px 20px;
}

.portal-reg-card-body {
    padding: 24px 28px 28px;
}

/* Form Controls */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.portal-form-control,
.portal-form-select {
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    padding: 8px 12px;
    font-size: 13.5px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.portal-form-control:focus,
.portal-form-select:focus {
    background-color: #ffffff;
    border-color: var(--od-navy-primary, #2E5799);
    box-shadow: 0 0 0 3px rgba(46, 87, 153, 0.15);
    outline: none;
}

.portal-form-control.is-invalid,
.portal-form-select.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.field-locked {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
    cursor: not-allowed !important;
    font-weight: 500;
}

/* MPIN Components */
.mpin-wrapper,
.mpin-box-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.mpin,
.mpin-box {
    flex: 1;
    width: 48px;
    height: 42px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
    -webkit-text-security: disc;
}

.mpin:focus,
.mpin-box:focus {
    border-color: var(--od-navy-primary, #2E5799);
    box-shadow: 0 0 0 3px rgba(46, 87, 153, 0.2);
    outline: none;
    background: #ffffff;
}

.mpin.is-invalid,
.mpin-box.is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
    padding-right: 0 !important;
    background-color: #fff5f5;
}

/* Captcha Containers & Refresh Button */
.captchaSpan {
    background-color: #f1f5f9;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 38px;
    flex-shrink: 0;
}

.captchaSpan img {
    max-height: 32px;
    width: auto;
    border-radius: 4px;
}

.btn-refresh-captcha {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: var(--od-navy-primary, #2E5799);
    font-size: 16px;
    border-radius: 8px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-refresh-captcha:hover {
    background: var(--od-navy-primary, #2E5799);
    color: #ffffff;
    border-color: var(--od-navy-primary, #2E5799);
    transform: rotate(180deg);
}

/* Action Buttons */
.btn-portal-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--od-navy-primary, #2E5799) 0%, var(--od-navy-dark, #1c3c6e) 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(46, 87, 153, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-portal-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #1c3c6e 0%, #0a2240 100%);
    box-shadow: 0 6px 16px rgba(46, 87, 153, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-portal-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.forgot-link {
    font-size: 13px;
    color: var(--od-navy-primary, #2E5799);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--od-navy-dark, #1c3c6e);
    text-decoration: underline;
}

/* Left Banner Image */
.login-image {
    max-height: 72vh;
    width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Category & Verification Containers */
.category-callout {
    background: linear-gradient(135deg, #f0f5fc 0%, #f8fafc 100%);
    border: 1px solid rgba(46, 87, 153, 0.16);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.verify-box {
    background: #ffffff;
    border: 1.5px dashed rgba(46, 87, 153, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}

.verify-box:hover {
    border-color: var(--od-navy-primary, #2E5799);
}

.section-subhead {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #e2e8f0;
    margin-bottom: 16px;
}

.section-subhead i {
    color: var(--od-navy-primary, #2E5799);
}

/* Custom Gender Radio Cards */
.gender-radio-card {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}

.gender-radio-card:hover {
    border-color: var(--od-navy-primary, #2E5799);
}

input[type="radio"]:disabled+.gender-radio-card {
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

input[type="radio"]:checked+.gender-radio-card,
input[type="radio"]:checked:disabled+.gender-radio-card {
    border-color: var(--od-navy-primary, #2E5799) !important;
    background: rgba(46, 87, 153, 0.12) !important;
    color: var(--od-navy-primary, #2E5799) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px rgba(46, 87, 153, 0.25) !important;
}

/* OTP Modal Inputs */
.otp-input-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.otp-digit {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
}

.otp-digit:focus {
    border-color: var(--od-navy-primary, #2E5799);
    box-shadow: 0 0 0 3px rgba(46, 87, 153, 0.2);
    outline: none;
    background: #ffffff;
}

/* Media Queries for Auth & Registration */
@media (max-width: 991px) {
    .portal-login-section {
        height: auto;
        min-height: calc(100vh - 130px);
        overflow-y: auto;
        padding: 24px 12px;
    }

    .login-image {
        max-height: 35vh;
        margin-bottom: 20px;
    }

    .portal-login-card-body {
        padding: 20px;
    }

    .portal-reg-card-body {
        padding: 20px 16px;
    }

    .portal-reg-section {
        background-size: 60%, 150px;
        background-position: left bottom, right top;
    }
}

@media (max-width: 767px) {
    .portal-reg-section {
        background-image: none;
        background-color: #f8f9fa;
        min-height: auto;
        padding: 20px 10px;
    }
}

@media (max-width: 576px) {
    .portal-login-section {
        padding: 16px 8px;
    }

    .portal-reg-section {
        padding: 16px 8px;
    }

    .login-image {
        max-height: 25vh;
        margin-bottom: 15px;
    }

    .portal-login-card-header,
    .portal-reg-card-header {
        padding: 18px 16px 12px;
    }

    .portal-login-card-body,
    .portal-reg-card-body {
        padding: 18px 14px;
    }

    .portal-stepper-wrap {
        padding: 12px 14px;
    }

    .step-text {
        display: none;
    }

    .mpin,
    .mpin-box {
        width: 36px;
        height: 38px;
        font-size: 16px;
    }

    .otp-input-wrap {
        gap: 5px;
    }

    .otp-digit {
        width: 34px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .portal-login-card-header,
    .portal-reg-card-header {
        padding: 16px 12px 10px;
    }

    .portal-login-title,
    .portal-reg-title {
        font-size: 18px;
    }

    .portal-login-subtitle,
    .portal-reg-subtitle {
        font-size: 11.5px;
    }

    .portal-login-tabs .nav-link {
        padding: 8px 6px;
        font-size: 12.5px;
    }

    .portal-login-card-body,
    .portal-reg-card-body {
        padding: 14px 10px;
    }

    .mpin,
    .mpin-box {
        height: 38px;
        font-size: 16px;
    }

    .mpin-wrapper,
    .mpin-box-group {
        gap: 6px;
    }

    .portal-form-control,
    .portal-form-select {
        padding: 8px 10px;
        font-size: 13px;
    }

    .btn-refresh-captcha {
        padding: 0 10px;
    }
}