/* Professional, Trustworthy Design with Advanced SEO Optimization */

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    font-size: 16px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a202c;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button.primary {
    background-color: #3182ce;
    color: white;
    border-color: #3182ce;
}

.cta-button.primary:hover {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #3182ce;
    border-bottom-color: #3182ce;
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    background: #f7fafc;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #a0aec0;
}

.breadcrumb-list a {
    color: #3182ce;
}

.breadcrumb-list [aria-current="page"] {
    color: #718096;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-benefits {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.benefit-icon {
    font-size: 2rem;
    min-width: 50px;
}

.benefit-content h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.benefit-content p {
    margin: 0;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 2rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: #f7fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
}

.about-stats {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.stats-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

/* Dynamic Content */
.dynamic-content {
    padding: 4rem 0;
    background: white;
}

.dynamic-content h2 {
    margin-bottom: 2rem;
}

/* Eligibility Section */
.eligibility-section {
    padding: 4rem 0;
    background: white;
}

.eligibility-content {
    margin-top: 2rem;
}

.eligibility-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.method-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3182ce;
}

.method-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.income-table {
    margin-top: 1.5rem;
}

.income-table h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #4a5568;
}

.income-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.income-table th,
.income-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.income-table th {
    background: #edf2f7;
    font-weight: 600;
    color: #2d3748;
}

.program-list {
    list-style: none;
    padding: 0;
}

.program-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3182ce;
    font-weight: bold;
}

.eligibility-cta {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Apply Section */
.apply-section {
    padding: 4rem 0;
    background: #f7fafc;
}

.apply-steps {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-number {
    background: #3182ce;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.apply-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Location Section */
.location-section {
    padding: 4rem 0;
    background: white;
}

.location-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.location-info {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.contact-item strong {
    display: block;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    color: #4a5568;
}

/* Interlinking Section */
.interlinking-section {
    padding: 4rem 0;
    background: #f7fafc;
}

.city-links,
.state-links {
    margin: 2rem 0;
}

.city-links h3,
.state-links h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.city-grid li {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.city-grid a {
    display: block;
    padding: 1rem;
    color: #3182ce;
    font-weight: 500;
    transition: all 0.2s ease;
}

.city-grid a:hover {
    background: #f7fafc;
    text-decoration: none;
    transform: translateY(-1px);
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.state-grid a {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    color: #3182ce;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.state-grid a:hover {
    background: #f7fafc;
    text-decoration: none;
    transform: translateY(-1px);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.faq-question h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: #3182ce;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.faq-answer[aria-hidden="true"] {
    display: none;
}

.faq-answer[aria-hidden="false"] {
    display: block;
}

/* Final CTA Section */
.final-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.final-cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.final-cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.benefit-check {
    color: #68d391;
    font-weight: bold;
}

.disclaimer {
    margin-top: 2rem;
    font-size: 0.875rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #2d3748;
    color: #e2e8f0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links {
    display: flex;
    gap: 1rem;
}

.legal-links a {
    color: #cbd5e0;
    font-size: 0.875rem;
}

.footer-bottom .disclaimer {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    opacity: 0.8;
    flex-basis: 100%;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .eligibility-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-benefits {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .city-grid {
        grid-template-columns: 1fr;
    }
    
    .state-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .cta-button.large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .method-card,
    .step-item {
        padding: 1.5rem;
    }
    
    .about-section,
    .eligibility-section,
    .apply-section,
    .location-section,
    .interlinking-section,
    .faq-section,
    .final-cta-section {
        padding: 3rem 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .breadcrumb,
    .hero,
    .final-cta-section,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .faq-answer[aria-hidden="true"] {
        display: block !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
    }
    
    .cta-button.primary {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}