/* ===================================
   HOW TO APPLY PAGE STYLES
   =================================== */

/* Note: Global variables and base styles are inherited from styles.css */
/* Note: Global Layout Utilities are inherited from homepage-styles.css */

/* --- Hero Section Refinements --- */
/* (Reusing .page-hero from eligibility-styles logic if needed, but defining specific overrides here) */
.page-hero {
    background: radial-gradient(circle at center, #002699 0%, #000000 100%);
    padding: 6rem 0 5rem;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- Steps Grid --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    counter-reset: step-counter;
}

.step-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 51, 102, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.15);
    border-color: var(--color-primary-blue);
}

.step-number {
    background: linear-gradient(135deg, #0066FF 0%, #003366 100%);
    color: #fff;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-secondary-blue);
}

.step-card p {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.step-link {
    color: var(--color-primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.step-link:hover {
    color: var(--color-deep-blue);
    text-decoration: underline;
}

/* --- Timeline Section --- */
.timeline-wrapper {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

/* Vertical Connecting Line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 2rem;
    /* Aligns with icon center approx */
    top: 1rem;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 1;
    /* Above the line */
}

.timeline-icon {
    width: 4rem;
    height: 4rem;
    background: #fff;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #0066FF, #003366);
    background-origin: border-box;
    background-clip: content-box, border-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    flex: 1;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    margin: 0;
}

/* --- Resources Grid (Reusing general card styles but specifying just in case) --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    display: block;
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all 0.2s;
}

.resource-card:hover {
    border-color: var(--color-primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.resource-card h3 {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: var(--color-text-medium);
    margin: 0;
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.section-cta {
    background: var(--bg-gradient-primary);
    padding: 5rem 0;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-primary-large {
    background: #fff;
    color: var(--color-primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary-large {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.25rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .timeline-wrapper::before {
        left: 1.5rem;
    }

    .timeline-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .timeline-item {
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary-large {
        width: 100%;
        max-width: 300px;
    }
}

/* --- ANIMATIONS --- */

/* Initial States */
.fade-in-up,
.slide-in-left,
.slide-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-up {
    transform: translateY(30px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

/* Visible States (Triggered by JS) */
.visible.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.visible.slide-in-left {
    opacity: 1;
    transform: translateX(0);
}

.visible.slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

@media (max-width: 768px) {

    .slide-in-left,
    .slide-in-right {
        transform: translateY(30px);
        /* Reset to simple fade-up on mobile */
    }

    .visible.slide-in-left,
    .visible.slide-in-right {
        transform: translateY(0);
    }
}