@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Day Theme Light Color Palette */
    --bg-primary: #f8fafc; /* Clean light slate */
    --bg-secondary: #ffffff; /* White cards */
    --bg-tertiary: #f1f5f9; /* Light grey highlight */
    
    --saffron: #e65c00;
    --saffron-glow: rgba(230, 92, 0, 0.12);
    --saffron-hover: #cc5200;
    
    --green: #128148;
    --green-glow: rgba(18, 129, 72, 0.12);
    --green-hover: #0d6034;
    
    --text-primary: #0f172a; /* Charcoal grey */
    --text-secondary: #334155; /* Slate grey */
    --text-muted: #64748b; /* Cool grey */
    
    --primary: #e65c00;
    --secondary: #128148;
    --accent: #2563eb; /* Royal Blue */
    
    --success: #10b981;
    --warning: #d97706;
    --info: #2563eb;
    
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global resets & scrollbar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    outline: none;
}

/* Eliminate browser accessibility focus outline box on Blazor FocusOnNavigate */
h1:focus,
h1:focus-visible,
h2:focus,
h2:focus-visible,
.hero-title:focus,
.hero-title:focus-visible,
[tabindex="-1"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

a {
    color: var(--saffron);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Indian Tricolor Header Border */
.tricolor-bar {
    height: 6px;
    background: linear-gradient(to right, #ff9933 0%, #ff9933 33.33%, #ffffff 33.33%, #ffffff 66.66%, #128148 66.66%, #128148 100%);
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--saffron);
}

/* Day Mode Glassmorphism Shell */
.glass-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Header & Navbar (Light) */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e65c00 0%, #128148 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo span {
    font-size: 0.85rem;
    padding: 2px 8px;
    background: rgba(230, 92, 0, 0.08);
    border: 1px solid rgba(230, 92, 0, 0.25);
    border-radius: 6px;
    color: #e65c00;
    font-weight: 600;
    -webkit-text-fill-color: #e65c00;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--saffron);
}

/* Day Mode Notice Board Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #fff8f2;
    border-bottom: 1px solid rgba(230, 92, 0, 0.15);
    padding: 8px 0;
    font-size: 0.85rem;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-animation 25s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: var(--text-secondary);
}

.ticker-item span {
    color: var(--saffron);
    font-weight: 700;
    margin-right: 0.5rem;
}

@keyframes ticker-animation {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Day Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 2rem 3.5rem 2rem;
    background: radial-gradient(circle at 50% 20%, rgba(230, 92, 0, 0.04) 0%, transparent 60%),
                radial-gradient(circle at 10% 70%, rgba(18, 129, 72, 0.04) 0%, transparent 60%);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(230, 92, 0, 0.06);
    border: 1px solid rgba(230, 92, 0, 0.2);
    border-radius: 100px;
    color: #e65c00;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    outline: none;
}

.hero-title:focus,
.hero-title:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, #e65c00 0%, #128148 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Direct Category Grid directory (Indian Day Style) */
.category-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.category-dir-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.category-dir-card:hover {
    transform: translateY(-3px);
    border-color: var(--saffron);
    box-shadow: 0 8px 20px rgba(230, 92, 0, 0.08);
}

.category-dir-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    background: rgba(230, 92, 0, 0.05);
    border: 1px solid rgba(230, 92, 0, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--saffron);
    flex-shrink: 0;
    transition: var(--transition);
}

.category-dir-card:hover .category-dir-icon {
    background: var(--saffron);
    color: white;
    border-color: var(--saffron);
}

.category-dir-info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.category-dir-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Steps block */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.step-card {
    position: relative;
    padding: 1.5rem 1rem;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(230, 92, 0, 0.07);
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.step-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* Search bar on Hero */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
}

.search-input {
    width: 100%;
    padding: 1.1rem 1.5rem 1.1rem 3.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 4px var(--saffron-glow);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-button {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.65rem 1.8rem;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-hover) 100%);
    border: none;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(230, 92, 0, 0.25);
    transition: var(--transition);
}

.search-button:hover {
    transform: translateY(-50%) scale(1.02);
}

/* Grid layout & Cards (Light) */
.content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-left: 4px solid var(--saffron);
    padding-left: 1rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Premium Card Design (Light) */
.scheme-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.scheme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--saffron), var(--green));
    opacity: 0;
    transition: var(--transition);
}

.scheme-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 92, 0, 0.2);
    box-shadow: var(--shadow), 0 0 15px rgba(230, 92, 0, 0.05);
}

.scheme-card:hover::before {
    opacity: 1;
}

.card-top {
    margin-bottom: 1.25rem;
}

.card-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-tag.central {
    background: #fff8f2;
    border-color: rgba(230, 92, 0, 0.15);
    color: #cc5200;
}

.card-tag.state {
    background: #f0fdf4;
    border-color: rgba(18, 129, 72, 0.15);
    color: #128148;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    color: var(--text-primary);
    transition: var(--transition);
}

.scheme-card:hover .card-title {
    color: var(--saffron);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    margin-top: auto;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Day Mode Side Panel Widgets */
.side-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.side-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--saffron);
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget-link-item {
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.6rem;
}

.widget-link-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-link-item a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-link-item a:hover {
    color: var(--saffron);
    padding-left: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-hover) 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(230, 92, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 92, 0, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* Filters & Layout on Schemes list page */
.schemes-list-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
}

.filters-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 5.5rem;
    box-shadow: var(--shadow);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-select, .form-input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.filter-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px var(--saffron-glow);
}

/* Detail page design */
.scheme-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.detail-breadcrumbs {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.detail-breadcrumbs a {
    color: var(--text-muted);
}

.detail-breadcrumbs a:hover {
    color: var(--text-primary);
}

.detail-title {
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.detail-badges {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.detail-body-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.detail-content-section {
    margin-bottom: 2.5rem;
}

.detail-section-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--saffron);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 3px solid var(--saffron);
    padding-left: 0.6rem;
}

.detail-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.faq-question {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Document download buttons */
.doc-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.doc-icon {
    font-size: 1.5rem;
    color: #ef4444;
}

.doc-title {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

/* Responsive constraints */
@media (max-width: 968px) {
    .schemes-list-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-body-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .site-header {
        padding: 1rem;
    }
}

/* ===================================================
   PRO HIGH-CONTRAST FOOTER STYLES
   =================================================== */
.site-footer {
    background: #090e1a;
    color: #cbd5e1;
    margin-top: 5rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1.3fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand {
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.footer-brand em {
    font-style: normal;
    font-size: 0.75rem;
    background: var(--saffron);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 800;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-contact-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.footer-contact-item span {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
}

.footer-contact-item strong {
    color: #f8fafc;
    font-size: 0.92rem;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 0.75rem;
    color: #64748b;
    transition: var(--transition);
}

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

.footer-links a:hover i {
    color: var(--saffron);
}

.footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #f59e0b;
    padding: 0.8rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-disclaimer-box strong {
    color: #e2e8f0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    font-size: 0.82rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom strong {
    color: #94a3b8;
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons a {
    color: #94a3b8;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.footer-social-icons a:hover {
    color: #ffffff;
    background: var(--saffron);
    transform: translateY(-2px);
}
