/* Official UI CSS Reset & Variables */
:root {
    --primary-blue: #1a365d; /* Dark Navy from Aadhaar */
    --secondary-blue: #2c5282;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --card-purple: #f3f4fa;
    --card-green: #eef7f1;
    --border-color: #e2e8f0;
    --radius: 8px; /* Softer, smaller radius for official look */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: var(--primary-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.top-header {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    border-radius: 50%;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 3px solid #fff;
    border-radius: 50%;
}

.logo-text, .brand-subtitle {
    display: flex;
    flex-direction: column;
}

.hindi-text {
    font-size: 0.85rem;
    color: #e63946;
    font-weight: 700;
}

.english-text {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.divider {
    width: 1px;
    height: 40px;
    background: #cbd5e1;
}

.header-right .search-box {
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 4px;
    color: var(--text-light);
    font-size: 0.95rem;
    background: #f8fafc;
}

/* Secondary Nav */
.secondary-nav {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
    padding: 12px 0;
    overflow-x: auto;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-list a:hover {
    color: var(--secondary-blue);
}

/* Services Cards (Top Grid) */
.cards-section {
    padding: 40px 0 20px;
}

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

.info-card {
    padding: 30px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.light-purple { background: var(--card-purple); }
.light-green { background: var(--card-green); }

.info-card h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 24px;
}

.outline-btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.outline-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}

.contact-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #166534;
}

.contact-highlight h2 {
    font-size: 2rem;
}

/* Hero Split */
.split-hero {
    position: relative;
    padding: 80px 0 160px;
    overflow: hidden;
    background: #ffffff;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.split-left h1 {
    font-size: 2.75rem;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 20px;
}

.split-left p {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.disclaimer-alert {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    font-size: 0.95rem;
    color: #92400e;
}

.split-right {
    display: flex;
    justify-content: center;
}

.graphic-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(5deg);
}

.graphic-inner {
    background: white;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: var(--primary-blue);
    font-weight: 700;
}

/* Wavy Background */
.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(ellipse at bottom, #fff0e6 0%, transparent 70%);
    background-size: 150% 100%;
    background-position: center bottom;
    z-index: 1;
}

/* Generic Sections */
.section {
    padding: 80px 0;
}

.bg-white { background: #ffffff; }
.bg-light { background: #f8f9fa; }

.section-heading {
    margin-bottom: 40px;
}

.section-heading h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 8px;
}

.heading-line {
    width: 60px;
    height: 4px;
    background: #ef4444; /* Red accent */
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-step {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* Policies Grid */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.policy-item {
    display: block;
    background: #fff;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: box-shadow 0.3s;
}

.policy-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.policy-item h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.policy-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Grid */
.official-contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.official-table {
    width: 100%;
    border-collapse: collapse;
}

.official-table th, .official-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.official-table th {
    color: var(--text-light);
    font-weight: 500;
    width: 35%;
}

.official-table td {
    font-weight: 700;
    color: var(--primary-blue);
}

.official-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.official-form h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    margin-bottom: 16px;
    font-family: inherit;
}

.form-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.official-footer {
    background: var(--primary-blue);
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-list {
    list-style: none;
}

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

.footer-list a {
    color: #cbd5e1;
}

.footer-list a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.disclaimer-box {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-box strong {
    color: #fca5a5;
}

/* Secondary Pages */
.page-container {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: 60vh;
}
.official-page-content {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.official-page-content h3 {
    color: var(--primary-blue);
    margin: 24px 0 12px;
    font-size: 1.25rem;
}
.official-page-content h3:first-child {
    margin-top: 0;
}
.official-page-content p, .official-page-content ul {
    margin-bottom: 16px;
    color: var(--text-dark);
}
.official-page-content ul {
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .split-container { grid-template-columns: 1fr; text-align: center; }
    .split-left p { text-align: center; }
    .split-right { display: none; }
    .cards-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .policies-grid { grid-template-columns: 1fr; }
    .official-contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .brand-group { 
        flex-direction: column; 
        align-items: center;
        text-align: center;
        gap: 10px; 
    }
    .logo {
        flex-direction: column;
        gap: 8px;
    }
    .divider { display: none; }
    .header-right { 
        width: 100%; 
    }
    .header-right .search-box {
        text-align: center;
        display: block;
    }
    
    .nav-list {
        padding: 15px 5px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .nav-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .split-hero { 
        padding: 40px 0 100px; 
    }
    .split-hero h1 { 
        font-size: 2rem; 
    }
    .wave-bg {
        height: 150px;
    }

    .section {
        padding: 50px 0;
    }
    
    .section-heading {
        text-align: center;
    }
    .heading-line {
        margin: 0 auto;
    }

    .process-step {
        text-align: center;
    }
    .step-num {
        margin: 0 auto 15px auto;
    }

    .official-table th, .official-table td {
        display: block;
        width: 100%;
        text-align: center;
    }
    .official-table th {
        border-bottom: none;
        padding-bottom: 4px;
        color: var(--primary-blue);
    }
    .official-table td {
        padding-top: 0;
        margin-bottom: 12px;
        color: var(--text-dark);
    }

    .page-container {
        padding: 30px 0 60px;
    }
    .official-page-content {
        padding: 24px;
    }
}

/* Premium Auto-Scrolling Hero */
.premium-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 450px;
    max-height: 700px;
    overflow: hidden;
    background: #000;
}
.hero-fade-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.hero-fade-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade-anim 20s infinite;
}
.hero-fade-slide:nth-child(1) { background-image: url('https://images.unsplash.com/photo-1518623489648-a173ef7824f3?q=80&w=1600'); animation-delay: 0s; }
.hero-fade-slide:nth-child(2) { background-image: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?q=80&w=1600'); animation-delay: 5s; }
.hero-fade-slide:nth-child(3) { background-image: url('https://images.unsplash.com/photo-1513151233558-d860c5398176?q=80&w=1600'); animation-delay: 10s; }
.hero-fade-slide:nth-child(4) { background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1600'); animation-delay: 15s; }

.hero-fade-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 54, 93, 0.7), rgba(0,0,0,0.85));
}

@keyframes fade-anim {
    0%, 20% { opacity: 1; transform: scale(1); }
    25%, 95% { opacity: 0; }
    100% { opacity: 1; transform: scale(1.05); }
}

.premium-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    padding: 20px;
    color: #fff;
}
.hero-text-box {
    max-width: 800px;
    margin: 0 auto;
}
.premium-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: #ffffff;
}
.premium-hero p {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .premium-hero h1 { font-size: 2.2rem; }
    .premium-hero p { font-size: 1.05rem; margin-bottom: 25px; }
    .premium-hero { height: 60vh; min-height: 400px; }
}

/* India Gov Style UI */
.india-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-fade-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-fade-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade-anim 24s infinite;
}

/* Gradient overlay to match the original india.gov.in look */
.hero-fade-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(30, 58, 138, 0.9));
}

.hero-fade-slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1600');
    animation-delay: 0s;
}
.hero-fade-slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=1600');
    animation-delay: 6s;
}
.hero-fade-slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1600');
    animation-delay: 12s;
}
.hero-fade-slide:nth-child(4) {
    background-image: url('https://images.unsplash.com/photo-1526304640581-d334cdbbf45e?q=80&w=1600');
    animation-delay: 18s;
}

@keyframes fade-anim {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1); }
    25% { opacity: 1; transform: scale(1); }
    35% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.india-top-header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 20;
}
.header-ai-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a78bfa;
    font-size: 0.95rem;
    font-weight: 500;
}
.ai-sparkle {
    width: 22px;
    height: 22px;
    animation: pulse-sparkle 2s infinite ease-in-out;
}
@keyframes pulse-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.15) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 6px #a78bfa); }
}
.india-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}
.india-top-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
}
.helpline-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}
.premium-phone-icon {
    color: #fff;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}
.premium-phone-icon:hover {
    color: #f97316;
}
.india-top-right a:hover {
    text-decoration: underline;
}
.india-top-right .sep {
    color: rgba(255,255,255,0.4);
}
.custom-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    margin-left: 8px;
    z-index: 30;
}
.custom-hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 1px;
}

.india-dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 40px;
    background: #1e293b;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 100;
    text-align: right;
    gap: 12px;
}
.india-dropdown-menu.active {
    display: flex;
}
.india-dropdown-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}
.india-dropdown-menu a:hover {
    text-decoration: underline;
}

.india-hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px 60px;
    z-index: 10;
}

.india-brand-center {
    margin-bottom: 40px;
}
.india-logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fbbf24, #ef4444);
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.india-main-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1.5px;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.india-orange-line {
    width: 80%;
    height: 5px;
    background: #ea580c;
    margin: 15px auto;
    border-radius: 2px;
}
.india-sub-title {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 500;
    margin: 10px 0;
}
.india-tagline {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-top: 5px;
}

.india-trending {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.trending-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    margin-right: 5px;
}
.trending-pill {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.trending-pill:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* About Section */
.about-section {
    padding: 100px 20px;
    background: #f8fafc;
}
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image-wrapper {
    position: relative;
    border-radius: 12px;
}
.about-main-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: block;
}
.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, #1e3a8a, #ea580c);
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}
.exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.exp-text {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-subtitle {
    color: #ea580c;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 15px;
}
.title-underline {
    width: 60px;
    height: 4px;
    background: #ea580c;
    margin-bottom: 25px;
    border-radius: 2px;
}
.about-text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.about-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}
.about-features li {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.check-icon {
    color: #10b981;
    font-weight: bold;
    margin-right: 12px;
    background: #d1fae5;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.premium-btn {
    display: inline-block;
    background: #1e3a8a;
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}
.premium-btn:hover {
    background: #ea580c;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .india-main-title { font-size: 3.5rem; }
    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-experience-badge {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .india-main-title { font-size: 2.5rem; }
    .india-sub-title { font-size: 1.3rem; }
    .section-title { font-size: 2rem; }
    
    .india-top-header { padding: 15px 20px; }
    .custom-hamburger { display: flex; }
    .india-top-right .sep, 
    .india-top-right a:not(.premium-phone-icon) { 
        display: none; 
    }
    .india-top-right .helpline-text {
        display: block;
        font-size: 0.85rem;
    }
    .india-trending {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        width: 100%;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .india-trending::-webkit-scrollbar {
        display: none;
    }
    .trending-pill {
        white-space: nowrap;
    }
    .header-ai-icon span {
        display: none;
    }
    .india-dropdown-menu {
        right: 20px;
        top: 50px;
    }
}
