/* ============================================================
   HOMEPAGE STYLESHEET
   All India Exam Result
   ============================================================ */

/* ============ HERO ============ */
.home-hero {
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    color: #fff;
    padding: 60px 30px;
    border-radius: 16px;
    margin: 20px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    border-radius: 50%;
}
.home-hero::after {
    content: '';
    position: absolute;
    bottom: -50%; left: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    border-radius: 50%;
}
.home-hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.home-hero h1 {
    font-size: 38px; font-weight: 900; margin: 0 0 14px;
    line-height: 1.2; letter-spacing: -0.5px;
}
.home-hero p { font-size: 16px; opacity: 0.95; margin: 0 0 28px; line-height: 1.6; }

.home-search {
    display: flex; max-width: 560px; margin: 0 auto 32px;
    background: #fff; border-radius: 50px; padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.home-search input {
    flex: 1; border: none; outline: none;
    padding: 12px 20px; font-size: 15px;
    background: transparent; border-radius: 50px;
    font-family: inherit;
}
.home-search button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; border: none; padding: 12px 32px;
    border-radius: 50px; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.home-search button:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}
.home-hero-stats {
    display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.home-stat { text-align: center; min-width: 90px; }
.home-stat-num {
    display: block; font-size: 26px; font-weight: 900;
    color: #fbbf24; line-height: 1.1;
}
.home-stat-label {
    display: block; font-size: 11px; color: rgba(255,255,255,0.85);
    text-transform: uppercase; letter-spacing: 0.6px;
    font-weight: 700; margin-top: 4px;
}

/* ============ SECTIONS ============ */
.home-section { margin-bottom: 44px; }
.home-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
    padding-bottom: 12px; border-bottom: 2px solid #f1f5f9;
}
.home-section-header h2 {
    font-size: 22px; font-weight: 900; color: #0f172a;
    margin: 0; display: flex; align-items: center; gap: 10px;
}
.count-badge {
    background: #eff6ff; color: #1e40af;
    font-size: 12px; font-weight: 800;
    padding: 3px 10px; border-radius: 50px;
}
.home-view-all {
    color: #1e40af; font-weight: 800; font-size: 14px;
    text-decoration: none; padding: 6px 14px;
    background: #eff6ff; border-radius: 50px; transition: all 0.2s;
}
.home-view-all:hover { background: #1e40af; color: #fff; }

/* ============ EXPIRED BANNER ============ */
.expired-banner {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(220,38,38,0.08);
}
.expired-banner-content {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.expired-icon { font-size: 32px; flex-shrink: 0; }
.expired-text {
    flex: 1; min-width: 200px;
    font-size: 14px; color: #7f1d1d; font-weight: 600;
    line-height: 1.5;
}
.expired-text strong {
    color: #dc2626; font-weight: 900; font-size: 16px;
}
.expired-sub {
    display: block; font-size: 12px; color: #991b1b;
    font-weight: 500; margin-top: 4px;
}
.expired-btn {
    display: inline-block; padding: 10px 20px;
    background: #dc2626; color: #fff;
    border-radius: 50px; text-decoration: none;
    font-weight: 800; font-size: 13px;
    transition: all 0.2s; white-space: nowrap;
}
.expired-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220,38,38,0.3);
}

/* ============ GOVT DEPT GRID (6×2) ============ */
.gov-dept-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.gov-dept-card {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 14px;
    text-decoration: none; color: #0f172a;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.gov-dept-card:hover {
    transform: translateY(-3px);
    border-color: #1e40af;
    box-shadow: 0 8px 20px rgba(30,64,175,0.10);
}
.gov-dept-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.gov-dept-card h4 {
    font-size: 14px; font-weight: 800;
    margin: 0 0 2px; color: #0f172a;
}
.gov-dept-card p { font-size: 11px; color: #64748b; margin: 0; font-weight: 500; }

/* ============ CATEGORY CARDS ============ */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.home-cat-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 14px; overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    display: flex; flex-direction: column;
}
.home-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.10);
}
.home-cat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px; color: #fff;
}
.home-cat-icon {
    font-size: 26px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.2); border-radius: 10px;
    flex-shrink: 0;
}
.home-cat-header h3 {
    font-size: 15px; font-weight: 900;
    margin: 0 0 2px; color: #fff; line-height: 1.2;
}
.home-cat-header p {
    font-size: 11px; opacity: 0.9;
    margin: 0; color: #fff; font-weight: 500;
}
.home-cat-list { list-style: none; padding: 8px 0; margin: 0; flex: 1; }
.home-cat-list li { border-bottom: 1px solid #f1f5f9; }
.home-cat-list li:last-child { border-bottom: none; }
.home-cat-list li.empty {
    padding: 20px; text-align: center;
    color: #94a3b8; font-size: 13px; font-style: italic;
}
.home-cat-list a {
    display: block; padding: 10px 18px;
    color: #334155; text-decoration: none;
    font-size: 13px; font-weight: 500;
    line-height: 1.5; transition: all 0.15s;
}
.home-cat-list a:hover {
    background: #f8fafc; color: #1e40af; padding-left: 24px;
}
.home-cat-footer {
    display: block; padding: 12px 18px;
    text-align: center; background: #f8fafc;
    color: #1e40af; font-weight: 800; font-size: 13px;
    text-decoration: none; border-top: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.home-cat-footer:hover { background: #1e40af; color: #fff; }

/* ============ STUDENT CTA ============ */
.home-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px; padding: 40px 30px;
    text-align: center; margin: 30px 0;
    position: relative; overflow: hidden; color: #fff;
}
.home-cta::before {
    content: '📚'; position: absolute;
    top: -20px; right: -10px;
    font-size: 140px; opacity: 0.08;
}
.home-cta-icon { font-size: 48px; margin-bottom: 12px; }
.home-cta-content h3 {
    font-size: 24px; font-weight: 900;
    margin: 0 0 8px; color: #fff;
}
.home-cta-content p {
    font-size: 15px; margin: 0 0 22px;
    color: #fff; opacity: 0.95;
}
.home-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: #fff;
    color: #d97706; border-radius: 50px;
    text-decoration: none; font-weight: 900;
    font-size: 15px; transition: all 0.2s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.home-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    color: #b45309;
}

/* ============ GOVT SCHEMES (Compact) ============ */
.scheme-section { margin-bottom: 44px; }
.scheme-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; flex-wrap: wrap; gap: 10px;
}
.scheme-header-left { display: flex; align-items: center; gap: 10px; }
.scheme-header-left h2 {
    font-size: 20px; font-weight: 900;
    color: #0f172a; margin: 0;
}
.scheme-live-dot {
    width: 10px; height: 10px; background: #dc2626;
    border-radius: 50%; animation: schemePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes schemePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.scheme-view-all {
    color: #1e40af; font-weight: 800; font-size: 14px;
    text-decoration: none; padding: 6px 14px;
    background: #eff6ff; border-radius: 50px; transition: all 0.2s;
}
.scheme-view-all:hover { background: #1e40af; color: #fff; }

.scheme-ticker-wrap {
    display: flex; align-items: center;
    background: linear-gradient(90deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}
.scheme-ticker-label {
    background: #dc2626; color: #fff;
    font-size: 11px; font-weight: 900;
    padding: 5px 12px; border-radius: 50px;
    flex-shrink: 0; margin-right: 16px;
    letter-spacing: 0.5px;
    animation: schemePulse 1.5s ease-in-out infinite;
}
.scheme-ticker {
    flex: 1; overflow: hidden;
    white-space: nowrap; position: relative;
}
.scheme-ticker-content {
    display: inline-block; padding-left: 100%;
    animation: schemeMarquee 60s linear infinite;
    font-size: 14px; font-weight: 600; color: #78350f;
}
.scheme-ticker-content:hover { animation-play-state: paused; }
.scheme-ticker-content a {
    color: #7c3aed; text-decoration: none;
    font-weight: 800; margin-left: 8px;
}
.scheme-ticker-content a:hover { text-decoration: underline; }
.scheme-sep {
    color: #b45309; margin: 0 18px; font-weight: 900;
}
@keyframes schemeMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.scheme-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.scheme-card {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 14px; padding: 14px;
    text-decoration: none; color: #0f172a;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    position: relative; overflow: hidden;
}
.scheme-card::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    background: #1e40af; transition: width 0.25s ease;
}
.scheme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.10);
}
.scheme-card:hover::before { width: 6px; }

.scheme-card-blue::before    { background: linear-gradient(180deg, #3b82f6, #1e40af); }
.scheme-card-green::before   { background: linear-gradient(180deg, #10b981, #059669); }
.scheme-card-pink::before    { background: linear-gradient(180deg, #ec4899, #be185d); }
.scheme-card-red::before     { background: linear-gradient(180deg, #ef4444, #dc2626); }

.scheme-card-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0; background: #f1f5f9;
    transition: transform 0.25s ease;
}
.scheme-card-blue .scheme-card-icon   { background: #dbeafe; }
.scheme-card-green .scheme-card-icon  { background: #d1fae5; }
.scheme-card-pink .scheme-card-icon   { background: #fce7f3; }
.scheme-card-red .scheme-card-icon    { background: #fee2e2; }
.scheme-card:hover .scheme-card-icon { transform: scale(1.08) rotate(-5deg); }

.scheme-card-body { flex: 1; min-width: 0; }
.scheme-card-body h3 {
    font-size: 13.5px; font-weight: 800;
    color: #0f172a; margin: 0 0 2px; line-height: 1.3;
}
.scheme-card-hi {
    font-size: 11px; color: #1e40af;
    font-weight: 700; margin: 0;
}
.scheme-card-arrow {
    font-size: 16px; color: #cbd5e1;
    transition: all 0.25s ease; flex-shrink: 0;
}
.scheme-card:hover .scheme-card-arrow {
    color: #1e40af; transform: translateX(4px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .gov-dept-grid { grid-template-columns: repeat(3, 1fr); }
    .scheme-grid-compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .home-hero { padding: 40px 20px; border-radius: 12px; }
    .home-hero h1 { font-size: 26px; }
    .home-hero p { font-size: 14px; }
    .home-search {
        flex-direction: column; background: transparent;
        box-shadow: none; padding: 0;
    }
    .home-search input {
        background: #fff; margin-bottom: 10px; padding: 14px 20px;
    }
    .home-search button { width: 100%; padding: 14px; }
    .home-hero-stats { gap: 16px; }
    .home-stat-num { font-size: 20px; }
    .home-stat-label { font-size: 10px; }
    
    .home-section-header h2 { font-size: 18px; }
    .home-cat-grid { grid-template-columns: 1fr; }
    .gov-dept-grid { grid-template-columns: repeat(2, 1fr); }
    .home-cta { padding: 30px 20px; }
    .home-cta-content h3 { font-size: 18px; }
    .home-cta-content p { font-size: 13px; }
    
    .expired-banner-content { gap: 12px; }
    .expired-icon { font-size: 24px; }
    .expired-text { font-size: 13px; }
    .expired-btn { width: 100%; text-align: center; }
    
    .scheme-header-left h2 { font-size: 16px; }
    .scheme-ticker-content { font-size: 13px; }
    .scheme-grid-compact { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 480px) {
    .gov-dept-grid { grid-template-columns: 1fr; }
}