/* ===================================
   ELIGIBILITY PAGE STYLES
   =================================== */

/* --- Page Hero --- */
.page-hero {
    background: radial-gradient(circle at center, #002699 0%, #000000 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--color-primary-blue);
    border-radius: 2px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Requirements Grid --- */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.req-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 51, 102, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.req-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.15);
    border-color: var(--color-primary-blue);
}

.req-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0066FF 0%, #004080 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.req-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-blue);
    font-weight: 700;
}

/* --- Program Visual Card --- */
.program-visual-card {
    background: linear-gradient(135deg, #e6f0ff 0%, #f0f7ff 100%);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 102, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.program-visual-card::before {
    content: '?';
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 15rem;
    opacity: 0.05;
    font-weight: 900;
    color: var(--color-primary-blue);
}

.program-visual-card h3 {
    color: var(--color-primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.program-visual-card p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-secondary-blue);
    font-weight: 500;
}

.btn-primary-small {
    background: var(--color-primary-blue);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1.5rem;
    transition: background 0.2s;
}

.btn-primary-small:hover {
    background: var(--color-primary-dark);
}

/* --- Income Table --- */
.income-table-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.income-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    text-align: left;
}

.income-table th {
    background: linear-gradient(135deg, #003366 0%, #0056b3 100%);
    color: #fff;
    padding: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.income-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 500;
}

.income-table tr:last-child td {
    border-bottom: none;
}

.income-table tr:nth-child(even) {
    background: #f8fafc;
}

/* --- Tribal Section --- */
.tribal-section {
    background: var(--bg-gradient-primary);
    color: #fff;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.tribal-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.tribal-content h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 800;
}

.tribal-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.tribal-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
    list-style: none;
    padding: 0;
}

.tribal-list li {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.tribal-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.tribal-list li:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Myths Grid --- */
.myths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.myth-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.myth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
}

.myth-header {
    background: #fff5f5;
    padding: 1.5rem;
    border-bottom: 1px solid #fed7d7;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-myth {
    background: #e53e3e;
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.3);
}

.myth-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #9b2c2c;
    font-weight: 600;
}

.fact-body {
    padding: 1.5rem;
    background: #f0fff4;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-fact {
    background: #2f855a;
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(47, 133, 90, 0.3);
}

.fact-body p {
    margin: 0;
    color: #276749;
    font-weight: 500;
    line-height: 1.5;
}

/* --- Resources Grid --- */
.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;
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 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);
    }
}