/* =================================================================== */
/* ===== FELLOWSHIP PAGE STYLES - YUVA 2026                      ===== */
/* ===== Standalone stylesheet — same aesthetic as Volunteer page ===== */
/* =================================================================== */

/* ===== Root Variables ===== */
:root {
    /* India Theme Color Palette */
    --saffron-primary: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E67300;
    --saffron-pale: #FFE5CC;
    --white-primary: #FFFFFF;
    --white-warm: #FAFAF9;
    --white-cream: #F5F5F4;
    --green-primary: #138808;
    --green-light: #22C55E;
    --green-dark: #0F6606;
    --green-pale: #D1FAE5;
    --navy-chakra: #000080;
    --navy-dark: #00005C;

    /* Semantic Colors */
    --color-primary: var(--navy-chakra);
    --color-secondary: var(--green-primary);
    --color-accent: var(--saffron-primary);
    --color-error: #ef4444;
    --color-error-pale: #fef2f2;
    --color-info-pale: #EBF4FF;

    /* Text & Background */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-on-dark: var(--white-primary);
    --text-on-accent: var(--white-primary);
    --bg-base: var(--white-warm);
    --bg-elevated: var(--white-primary);
    --bg-subtle: var(--white-cream);
    --bg-muted: #F1F5F9;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--saffron-light) 0%, var(--white-primary) 50%, var(--green-light) 100%);
    --gradient-saffron: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
    --gradient-green: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 100%);
    --gradient-navy: linear-gradient(135deg, var(--navy-chakra) 0%, var(--navy-dark) 100%);

    /* Shadows & Radii */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


/* ===== FELLOWSHIP PAGE LAYOUT ===== */
.volunteer-page {
    background: var(--bg-base);
    position: relative;
    top: calc(60px + 1rem * 2);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
}


/* ===== HERO SECTION ===== */
.volunteer-hero {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    background: var(--gradient-hero);
    display: grid;
    place-items: center;
    padding: 80px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: var(--gradient-hero);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Chakra SVG + hero content share the same grid cell */
.hero-chakra-bg,
.volunteer-hero-content {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.hero-chakra-bg {
    width: 500px;
    height: 500px;
    z-index: 1;
    color: var(--navy-chakra);
    opacity: 0.08;
    stroke: currentColor;
    fill: currentColor;
    animation: spin 60s linear infinite;
    pointer-events: none;
}

.volunteer-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-primary);
    max-width: 1000px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--saffron-pale);
    border: 1px solid var(--saffron-light);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
    color: var(--saffron-dark);
}

.volunteer-hero-content .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-primary);
}

.volunteer-hero-content .hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.9;
    color: var(--text-secondary);
}


/* ===== WHY FELLOWSHIP / PERKS SECTION ===== */
.perks-section {
    background: var(--white-primary);
    padding: 100px 0;
    position: relative;
    z-index: 5;
    margin-top: -30px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

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

.perks-header {
    text-align: center;
    margin-bottom: 60px;
}

.perks-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 16px;
}

.perks-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.perk-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
}

.perk-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.perk-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--white-primary);
    font-size: 28px;
    box-shadow: 0 0 20px rgba(0, 0, 128, 0.3);
}

.perk-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.perk-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}


/* ===== FELLOWSHIP FOCUS AREAS SECTION ===== */
.roles-section {
    padding: 100px 20px;
    background: var(--bg-base);
}

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

.roles-header {
    text-align: center;
    margin-bottom: 60px;
}

.roles-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 16px;
}

.roles-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.role-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.role-filter-chip {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: var(--white-primary);
    color: var(--color-primary);
    border: 2px solid var(--border-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.role-filter-chip:hover {
    transform: translateY(-2px);
    border-color: var(--border-medium);
}

.role-filter-chip.active {
    background: var(--color-primary);
    color: var(--white-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.role-card {
    background: var(--white-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    border-left: 5px solid var(--border-medium);
    display: flex;
    flex-direction: column;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-left-color: var(--color-primary);
}

.role-card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.role-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.role-card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.role-tag {
    display: inline-block;
    background: var(--bg-subtle);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    margin-top: 8px;
}


/* ===== IMPACT STATISTICS SECTION ===== */
.stats-section {
    padding: 80px 20px;
    background: var(--white-primary);
    position: relative;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    padding: 40px 20px;
    border-radius: var(--radius-xl);
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--saffron-primary);
    background: var(--white-primary);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--saffron-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--navy-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== JOURNEY TIMELINE SECTION ===== */
.journey-section {
    padding: 100px 20px;
    background: var(--bg-subtle);
}

.journey-container {
    max-width: 900px;
    margin: 0 auto;
}

.journey-header {
    text-align: center;
    margin-bottom: 60px;
}

.journey-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 16px;
}

.journey-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Curved Timeline Container */
.curved-timeline {
    margin: 20px auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.curved-timeline .outer {
    display: flex;
    flex-direction: column;
}

/* Card container */
.timeline-card {
    position: relative;
    width: 800px;
    max-width: 100%;
}

/* setting padding based on even or odd */
.timeline-card:nth-child(odd) {
    padding: 30px 0 30px 30px;
}

.timeline-card:nth-child(even) {
    padding: 30px 30px 30px 0;
}

/* Global ::before (The curved line) */
.timeline-card::before {
    content: "";
    position: absolute;
    width: 50%;
    border: solid var(--saffron-primary);
}

/* Setting the border of top, bottom, left */
.timeline-card:nth-child(odd)::before {
    left: 0px;
    top: -4.5px;
    bottom: -4.5px;
    border-width: 5px 0 5px 5px;
    border-radius: 50px 0 0 50px;
}

/* Setting the border of top, bottom, right */
.timeline-card:nth-child(even)::before {
    right: 0;
    top: 0;
    bottom: 0;
    border-width: 5px 5px 5px 0;
    border-radius: 0 50px 50px 0;
}

/* Removing the border if it is the first card */
.timeline-card:first-child::before {
    border-top: 0;
    border-top-left-radius: 0;
}

/* Removing the border if it is the last card and it's odd */
.timeline-card:last-child:nth-child(odd)::before {
    border-bottom: 0;
    border-bottom-left-radius: 0;
}

/* Removing the border if it is the last card and it's even */
.timeline-card:last-child:nth-child(even)::before {
    border-bottom: 0;
    border-bottom-right-radius: 0;
}

/* Information card */
.timeline-card .info {
    display: flex;
    flex-direction: column;
    background: var(--white-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.timeline-card.animate-in .info {
    opacity: 1;
    transform: translateY(0);
}

.timeline-card.animate-in .info:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Title of the card */
.timeline-card .title {
    color: var(--navy-dark);
    position: relative;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Timeline dot */
.timeline-card .title::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--white-primary);
    border-radius: 50%;
    border: 4px solid var(--saffron-primary);
    top: 4px;
}

/* text right if the card is even */
.timeline-card:nth-child(even)>.info>.title {
    text-align: right;
}

/* setting dot to the left if the card is odd */
.timeline-card:nth-child(odd)>.info>.title::before {
    left: -62.5px;
}

/* setting dot to the right if the card is even */
.timeline-card:nth-child(even)>.info>.title::before {
    right: -62.5px;
}


/* ===== ELIGIBILITY SECTION ===== */
.eligibility-section {
    padding: 100px 20px;
    background: var(--white-primary);
}

.eligibility-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.eligibility-content {
    flex: 1;
}

.eligibility-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 16px;
}

.eligibility-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.eligibility-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eligibility-list li {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.eligibility-list li i {
    color: var(--green-primary);
    font-size: 1.25rem;
    margin-top: 2px;
}

.eligibility-label {
    font-weight: 700;
    min-width: 120px;
    flex-shrink: 0;
    color: var(--text-primary);
}

.eligibility-value {
    color: var(--text-secondary);
    line-height: 1.5;
}

.eligibility-image {
    flex: 1;
    position: relative;
}

.eligibility-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--saffron-pale);
    border-radius: 24px;
    z-index: 0;
    transform: rotate(3deg);
}

.eligibility-image-card {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.eligibility-image-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.eligibility-image-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.eligibility-image-card:hover img {
    transform: scale(1.08);
}


/* ===== APPLICATION FORM SECTION ===== */
.form-section {
    padding: 100px 20px;
    background: var(--gradient-hero);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: var(--white-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 60px;
    border-top: 6px solid var(--navy-chakra);
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 16px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    padding: 0 40px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 80px;
    right: 80px;
    transform: translateY(-50%);
    height: 6px;
    background: var(--border-light);
    border-radius: 4px;
    z-index: 1;
}

.progress-step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 120px;
    text-align: center;
}

.progress-step {
    width: 40px;
    height: 40px;
    background: var(--white-primary);
    border: 4px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-base);
    margin-bottom: 12px;
}

.progress-step.active {
    border-color: var(--saffron-primary);
    background: var(--saffron-primary);
    color: var(--white-primary);
    box-shadow: 0 0 0 6px var(--saffron-pale);
}

.step-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.progress-step.active+.step-label {
    color: var(--saffron-dark);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
    transition: var(--transition-base);
    font-size: 1.05rem;
    box-sizing: border-box;
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-chakra);
    background: var(--white-primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 128, 0.1);
}

/* Radio & Checkbox */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.radio-group-horizontal {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.radio-group .radio-label,
.form-group .radio-label,
.radio-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--text-primary);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    outline: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.radio-label input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-saffron, #ff9933);
    transform: scale(0);
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-label input[type="radio"]:checked::before {
    transform: scale(1);
}

.radio-label:has(input[type="radio"]:checked) {
    background: rgba(255, 153, 51, 0.04);
    border-color: var(--accent-saffron, #ff9933);
    color: var(--primary-color, #1a365d);
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.08);
}

.radio-label input[type="radio"]:checked {
    border-color: var(--accent-saffron, #ff9933);
    background: #ffffff;
}

.radio-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #94a3b8;
    border-radius: 5px;
    outline: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.radio-label input[type="checkbox"]::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    font-size: 11px;
    color: #ffffff;
    transform: scale(0);
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.radio-label:has(input[type="checkbox"]:checked) {
    background: rgba(16, 185, 129, 0.04);
    border-color: var(--accent-green, #10b981);
    color: var(--primary-color, #1a365d);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.radio-label input[type="checkbox"]:checked {
    border-color: var(--accent-green, #10b981);
    background: var(--accent-green, #10b981);
}

.radio-label span {
    line-height: 1.4;
}

/* Conditional field */
.conditional-field {
    display: none;
    margin-top: 16px;
    padding-left: 10px;
    border-left: 3px solid var(--border-light);
}

.conditional-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Inline error styles */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    background: var(--color-error);
    color: var(--white-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    margin-top: 6px;
}

/* Form summary */
.form-summary {
    text-align: center;
    padding: 24px;
    background: var(--bg-base);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.form-summary h4 {
    font-size: 1.5rem;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.form-summary p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

.btn-next,
.btn-submit,
.btn-prev {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.btn-next,
.btn-submit {
    background: var(--color-primary);
    color: var(--white-primary);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-prev {
    background: var(--border-light);
    color: var(--text-primary);
}


/* ===== FLASH NOTIFICATION SYSTEM ===== */
.flash-container {
    position: fixed;
    left: auto;
    top: 20px;
    right: 20px;
    z-index: 30000000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.flash-notification {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
    pointer-events: auto !important;
}

.flash-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-notification.success {
    border-left-color: var(--green-primary);
    background: var(--green-pale);
}

.flash-notification.error {
    border-left-color: var(--color-error);
    background: var(--color-error-pale);
}

.flash-notification.warning {
    border-left-color: var(--saffron-primary);
    background: var(--saffron-pale);
}

.flash-notification.info {
    border-left-color: var(--navy-chakra);
    background: var(--color-info-pale);
}

.flash-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--white-primary);
}

.flash-notification.success .flash-icon {
    background: var(--green-primary);
}

.flash-notification.error .flash-icon {
    background: var(--color-error);
}

.flash-notification.warning .flash-icon {
    background: var(--saffron-primary);
}

.flash-notification.info .flash-icon {
    background: var(--navy-chakra);
}

.flash-content {
    flex: 1;
}

.flash-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.flash-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.flash-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer !important;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    pointer-events: auto !important;
}

.flash-close * {
    pointer-events: none !important; /* Let clicks pass directly through to the button */
}

.flash-close:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}


/* ===== ANIMATIONS ===== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =======================================================
   FELLOWSHIP PAGE — COMPLETE RESPONSIVE MEDIA QUERIES
   Replaces ALL existing @media blocks in Fellowship.css
   Breakpoints: 1024 | 768 | 600 | 480 | 375 | 320
   ======================================================= */

/* ── 1024px: Large tablets / small laptops ── */
@media (max-width: 1024px) {
    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .eligibility-container {
        gap: 40px;
    }

    .eligibility-content h2 {
        font-size: 2.4rem;
    }

    .form-card {
        padding: 48px 40px;
    }

    .timeline-card {
        width: 700px;
    }
}

/* ── 768px: Tablets ── */
@media (max-width: 768px) {
    .main {
        padding: 0;
        margin: 0;
    }

    .volunteer-page {
        top: calc(60px + 0.5rem * 4);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    /* Hero */
    .volunteer-hero {
        min-height: 50vh;
        padding: 60px 16px;
    }

    .hero-chakra-bg {
        width: 350px;
        height: 350px;
    }

    .volunteer-hero-content {
        max-width: 90%;
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 20px;
    }

    .volunteer-hero-content .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .volunteer-hero-content .hero-description {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        max-width: 100%;
    }

    /* Hero action button */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px !important;
    }

    /* Perks */
    .perks-section {
        padding: 60px 16px;
        margin-top: -20px;
        border-radius: var(--radius-xl);
    }

    .perks-container {
        padding: 0 16px;
    }

    .perks-header h2 {
        font-size: 2.25rem;
    }

    .perks-header p {
        font-size: 1rem;
        max-width: 90%;
    }

    .perks-header {
        margin-bottom: 40px;
    }

    .perks-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .perk-card {
        padding: 32px 24px;
    }

    .perk-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .perk-card h3 {
        font-size: 1.35rem;
    }

    .perk-card p {
        font-size: 0.95rem;
    }

    /* Stats */
    .stats-section {
        padding: 60px 16px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-card {
        padding: 28px 16px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    /* Journey Timeline */
    .journey-section {
        padding: 60px 16px;
    }

    .journey-header h2 {
        font-size: 2.2rem;
    }

    .journey-header p {
        font-size: 1rem;
    }

    .journey-header {
        margin-bottom: 40px;
    }

    .curved-timeline {
        padding: 10px;
    }

    .timeline-card {
        width: 100%;
        max-width: 100%;
    }

    .timeline-card:nth-child(odd) {
        padding: 20px 0 20px 20px;
    }

    .timeline-card:nth-child(even) {
        padding: 20px 20px 20px 0;
    }

    .timeline-card:nth-child(odd)::before {
        top: -3px;
        bottom: -3px;
    }

    .timeline-card .info {
        padding: 20px;
    }

    .timeline-card .title {
        font-size: 1.1rem;
    }

    .timeline-card p {
        font-size: 0.95rem;
    }

    /* Dot positions for narrower cards */
    .timeline-card:nth-child(odd)>.info>.title::before {
        left: -50px;
    }

    .timeline-card:nth-child(even)>.info>.title::before {
        right: -50px;
    }

    /* Eligibility */
    .eligibility-section {
        padding: 60px 16px;
    }

    .eligibility-container {
        flex-direction: column;
        gap: 32px;
    }

    .eligibility-content h2 {
        font-size: 2.2rem;
    }

    .eligibility-content p {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }

    .eligibility-list li {
        font-size: 1rem;
    }

    .eligibility-image::before {
        inset: -12px;
    }

    /* Roles */
    .roles-section {
        padding: 60px 16px;
    }

    .roles-header h2 {
        font-size: 2.25rem;
    }

    .roles-header p {
        font-size: 1rem;
        max-width: 90%;
    }

    .roles-header {
        margin-bottom: 40px;
    }

    .role-filter-chip {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .roles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .role-card-content {
        padding: 24px;
    }

    .role-card-content h3 {
        font-size: 1.35rem;
    }

    .role-card-content p {
        font-size: 0.95rem;
    }

    /* Form */
    .form-section {
        padding: 60px 16px;
    }

    .form-container {
        padding: 0;
        max-width: 100%;
    }

    .form-card {
        padding: 32px 24px;
        border-radius: var(--radius-xl);
    }

    .form-header h2 {
        font-size: 2rem;
    }

    .form-header p {
        font-size: 1rem;
    }

    .form-header {
        margin-bottom: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .progress-bar {
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .progress-bar::before {
        left: 55px;
        right: 55px;
    }

    .progress-step-container {
        width: 90px;
    }

    .progress-step {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        border-width: 3px;
        margin-bottom: 10px;
    }

    .step-label {
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="url"],
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .radio-group {
        gap: 10px;
    }

    .radio-label {
        font-size: 0.95rem;
        gap: 8px;
    }

    .radio-group-horizontal {
        flex-wrap: wrap;
        gap: 12px;
    }

    .form-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .btn-next,
    .btn-submit,
    .btn-prev {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Flash */
    .flash-container {
        top: 80px;
        right: 10px;
        left: 10px;
    }

    .flash-notification {
        min-width: auto;
        max-width: none;
        width: 100%;
        padding: 0.9rem 1.2rem;
    }

    /* ATS warning banner inside form */
    .ats-warning-banner {
        font-size: 11.5px !important;
        padding: 10px 12px !important;
    }

    .ats-warning-banner ul {
        gap: 2px !important;
    }
}

/* ── 600px: Large phones ── */
@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 24px 12px;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .stat-label {
        font-size: 0.88rem;
        letter-spacing: 0.3px;
    }

    .perks-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .roles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .timeline-card:nth-child(odd) {
        padding: 16px 0 16px 14px;
    }

    .timeline-card:nth-child(even) {
        padding: 16px 14px 16px 0;
    }

    .timeline-card:nth-child(odd)>.info>.title::before {
        left: -44px;
    }

    .timeline-card:nth-child(even)>.info>.title::before {
        right: -44px;
    }

    .form-card {
        padding: 24px 16px;
    }

    .progress-bar {
        padding: 0 10px;
    }

    .progress-bar::before {
        left: 42px;
        right: 42px;
        top: 14px;
    }

    .progress-step-container {
        width: 72px;
    }

    .progress-step {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .step-label {
        font-size: 11px;
    }

    .eligibility-image::before {
        inset: -8px;
        transform: rotate(2deg);
    }
}

/* ── 480px: Standard phones ── */
@media (max-width: 480px) {
    .main {
        padding: 0;
        margin: 5px;
        width: 100%;
    }

    .volunteer-page {
        top: calc(60px + 0.25rem * 6);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        width: 100%;
        overflow-x: hidden;
    }

    /* Hero */
    .volunteer-hero {
        min-height: 45vh;
        padding: 40px 12px;
    }

    .hero-chakra-bg {
        width: 250px;
        height: 250px;
    }

    .volunteer-hero-content {
        max-width: 100%;
        padding: 0 12px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 4px 8px;
        margin-bottom: 16px;
        gap: 4px;
    }

    .hero-badge i {
        font-size: 10px;
    }

    .volunteer-hero-content .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        line-height: 1.2;
    }

    .volunteer-hero-content .hero-description {
        font-size: clamp(0.8rem, 1.5vw, 0.95rem);
        line-height: 1.4;
    }

    /* Perks */
    .perks-section {
        padding: 30px 12px;
        margin-top: -15px;
        border-radius: var(--radius-lg);
    }

    .perks-container {
        padding: 0 8px;
    }

    .perks-header h2 {
        font-size: 1.6rem;
    }

    .perks-header p {
        font-size: 0.85rem;
    }

    .perks-header {
        margin-bottom: 24px;
    }

    .perks-grid {
        gap: 16px;
    }

    .perk-card {
        padding: 22px 14px;
    }

    .perk-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .perk-card h3 {
        font-size: 1.1rem;
    }

    .perk-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Stats */
    .stats-section {
        padding: 30px 12px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 20px 10px;
        border-radius: var(--radius-lg);
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 0.78rem;
        letter-spacing: 0.2px;
    }

    /* Journey */
    .journey-section {
        padding: 30px 12px;
        overflow-x: hidden;
    }

    .journey-header h2 {
        font-size: 1.6rem;
    }

    .journey-header p {
        font-size: 0.85rem;
    }

    .journey-header {
        margin-bottom: 28px;
    }

    .curved-timeline {
        padding: 4px 0;
        overflow: hidden;
    }

    .curved-timeline .outer {
        width: 100%;
        overflow: hidden;
    }

    /* All cards: full width, left-side only layout */
    .timeline-card {
        width: 100%;
        max-width: 100%;
    }

    /* Override both odd AND even to left-indent (shifting cards right by 16px) */
    .timeline-card:nth-child(odd),
    .timeline-card:nth-child(even) {
        padding: 14px 8px 14px 44px;
    }

    /* Single left vertical line for ALL cards – shifted right for breathing room */
    .timeline-card:nth-child(odd)::before,
    .timeline-card:nth-child(even)::before {
        left: 16px;
        right: unset;
        top: 0;
        bottom: 0;
        width: 0;
        border-width: 0 0 0 4px;
        border-radius: 0;
        border-color: var(--saffron-primary);
    }

    /* Remove top cap on first card */
    .timeline-card:first-child::before {
        border-top: 0;
        border-top-left-radius: 0;
    }

    /* Remove bottom cap on last card (covers both odd/even) */
    .timeline-card:last-child:nth-child(odd)::before,
    .timeline-card:last-child:nth-child(even)::before {
        border-bottom: 0;
        border-bottom-left-radius: 0;
    }

    .timeline-card .info {
        padding: 16px 14px;
    }

    /* ALL titles left-aligned */
    .timeline-card:nth-child(odd)>.info>.title,
    .timeline-card:nth-child(even)>.info>.title {
        text-align: left;
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .timeline-card .title::before {
        width: 10px;
        height: 10px;
        border-width: 3px;
        top: 3px;
    }

    /* ALL dots on the left – centered on the 4px vertical line.
       title starts at card-padding(28) + info-padding(14) + border(1) = 43px;
       dot outer width = 16px (10px content + 6px border), half = 8px;
       line center target = 2px → left = 2px - 8px - 43px = -49px */
    .timeline-card:nth-child(odd)>.info>.title::before,
    .timeline-card:nth-child(even)>.info>.title::before {
        left: -49px;
        right: unset;
    }

    .timeline-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Eligibility */
    .eligibility-section {
        padding: 30px 12px;
    }

    .eligibility-container {
        gap: 20px;
    }

    .eligibility-content h2 {
        font-size: 1.6rem;
    }

    .eligibility-content p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .eligibility-list {
        gap: 14px;
    }

    .eligibility-list li {
        font-size: 0.9rem;
        gap: 8px;
    }

    .eligibility-label {
        min-width: 100px;
    }

    .eligibility-list li i {
        font-size: 1.1rem;
    }

    .eligibility-image::before {
        inset: -6px;
        transform: rotate(1.5deg);
    }

    /* Roles */
    .roles-section {
        padding: 30px 12px;
    }

    .roles-header h2 {
        font-size: 1.6rem;
    }

    .roles-header p {
        font-size: 0.85rem;
    }

    .roles-header {
        margin-bottom: 24px;
    }

    .role-filter-chip {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .role-filters {
        gap: 6px;
        margin-bottom: 20px;
    }

    .role-card {
        border-left-width: 3px;
    }

    .role-card-content {
        padding: 18px 14px;
    }

    .role-card-content h3 {
        font-size: 1.1rem;
    }

    .role-card-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .role-tag {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    /* Form */
    .form-section {
        padding: 30px 12px;
    }

    .form-container {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    .form-card {
        padding: 18px 12px;
        border-radius: var(--radius-lg);
        width: 100%;
        box-sizing: border-box;
        border-top-width: 4px;
    }

    .form-header h2 {
        font-size: 1.45rem;
    }

    .form-header p {
        font-size: 0.85rem;
    }

    .form-header {
        margin-bottom: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .progress-bar {
        margin-bottom: 24px;
        padding: 0 4px;
        flex-wrap: nowrap;
    }

    .progress-bar::before {
        top: 10px;
        left: 38px;
        right: 38px;
        height: 4px;
    }

    .progress-step-container {
        width: 60px;
        min-width: 60px;
    }

    .progress-step {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        border-width: 2px;
        margin-bottom: 4px;
    }

    .step-label {
        font-size: 9px;
        line-height: 1.2;
        word-wrap: break-word;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 7px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="url"],
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.85rem;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        border-radius: var(--radius-lg);
        border-width: 1.5px;
    }

    .form-group textarea {
        min-height: 80px;
    }

    .radio-group {
        gap: 8px;
    }

    .radio-group-horizontal {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1px !important;
    }

    .radio-label {
        font-size: 0.85rem;
        gap: 6px;
    }

    .radio-label input[type="radio"],
    .radio-label input[type="checkbox"] {
        width: 0.95em;
        height: 0.95em;
    }

    .conditional-field {
        margin-top: 10px;
        padding-left: 6px;
        border-left-width: 2px;
    }

    .conditional-field label {
        font-size: 0.8rem;
    }

    .error-message {
        font-size: 11px;
        padding: 6px 10px;
    }

    .form-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }

    .btn-next,
    .btn-submit,
    .btn-prev {
        width: 100%;
        padding: 11px 18px;
        font-size: 0.85rem;
    }

    /* Resume upload zone */
    #resume-upload-zone {
        padding: 18px 12px !important;
    }

    /* ATS warning banner */
    .ats-warning-banner {
        font-size: 11px !important;
        padding: 10px !important;
    }

    /* Flash */
    .flash-container {
        top: 80px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
    }

    .flash-notification {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.75rem 1rem !important;
    }

    .flash-title {
        font-size: 13px;
    }

    .flash-message {
        font-size: 12px;
    }
}

/* ── 375px: iPhone SE / compact phones ── */
@media (max-width: 375px) {
    .volunteer-page {
        top: calc(60px + 0.2rem * 6);
    }

    .volunteer-hero {
        padding: 32px 10px;
        min-height: 40vh;
    }

    .hero-chakra-bg {
        width: 200px;
        height: 200px;
    }

    .hero-badge {
        font-size: 9px;
        padding: 3px 7px;
        gap: 3px;
    }

    .volunteer-hero-content .hero-title {
        font-size: clamp(1.35rem, 3.5vw, 1.9rem);
    }

    .volunteer-hero-content .hero-description {
        font-size: 0.78rem;
    }

    /* Perks */
    .perks-section {
        padding: 24px 10px;
    }

    .perks-container {
        padding: 0 4px;
    }

    .perks-header h2 {
        font-size: 1.4rem;
    }

    .perks-header p {
        font-size: 0.8rem;
    }

    .perks-header {
        margin-bottom: 18px;
    }

    .perk-card {
        padding: 18px 12px;
    }

    .perk-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .perk-card h3 {
        font-size: 1rem;
    }

    .perk-card p {
        font-size: 0.8rem;
    }

    /* Stats */
    .stats-section {
        padding: 24px 10px;
    }

    .stats-container {
        gap: 10px;
    }

    .stat-card {
        padding: 16px 8px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    /* Journey */
    .journey-section {
        padding: 24px 6px;
        overflow-x: hidden;
    }

    .journey-header h2 {
        font-size: 1.4rem;
    }

    .journey-header p {
        font-size: 0.8rem;
    }

    .curved-timeline {
        padding: 4px 0;
        overflow: hidden;
        margin: 0;
    }

    .curved-timeline .outer {
        width: 100%;
    }

    /* Both odd and even: left-side only (shifting cards right by 12px) */
    .timeline-card:nth-child(odd),
    .timeline-card:nth-child(even) {
        padding: 10px 4px 10px 38px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    /* Single left vertical line for ALL cards – shifted right by 12px */
    .timeline-card:nth-child(odd)::before,
    .timeline-card:nth-child(even)::before {
        left: 12px;
        right: unset;
        top: 0;
        bottom: 0;
        width: 0;
        border-width: 0 0 0 3px;
        border-radius: 0;
        border-color: var(--saffron-primary);
    }

    /* Remove top cap on first card */
    .timeline-card:first-child::before {
        border-top: 0;
        border-top-left-radius: 0;
    }

    /* Remove bottom cap on last card */
    .timeline-card:last-child:nth-child(odd)::before,
    .timeline-card:last-child:nth-child(even)::before {
        border-bottom: 0;
        border-bottom-left-radius: 0;
    }

    .timeline-card .info {
        padding: 13px 11px;
    }

    /* ALL titles left-aligned */
    .timeline-card:nth-child(odd)>.info>.title,
    .timeline-card:nth-child(even)>.info>.title {
        text-align: left;
        font-size: 0.92rem;
        margin-bottom: 6px;
    }

    .timeline-card .title::before {
        width: 9px;
        height: 9px;
        border-width: 2.5px;
    }

    /* ALL dots on the left – centered on the 3px vertical line.
       title starts at card-padding(26) + info-padding(11) + border(1) = 38px;
       dot outer width = 14px (9px content + 5px border), half = 7px;
       line center target = 1.5px → left = 1.5px - 7px - 38px = -43.5px */
    .timeline-card:nth-child(odd)>.info>.title::before,
    .timeline-card:nth-child(even)>.info>.title::before {
        left: -43.5px;
        right: unset;
    }

    .timeline-card p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    /* Eligibility */
    .eligibility-section {
        padding: 24px 10px;
    }

    .eligibility-content h2 {
        font-size: 1.4rem;
    }

    .eligibility-content p {
        font-size: 0.82rem;
    }

    .eligibility-list li {
        font-size: 0.82rem;
    }

    .eligibility-label {
        min-width: 90px;
    }

    /* Roles */
    .roles-section {
        padding: 24px 10px;
    }

    .roles-header h2 {
        font-size: 1.4rem;
    }

    .roles-header p {
        font-size: 0.8rem;
    }

    .role-filter-chip {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .role-card-content {
        padding: 14px 12px;
    }

    .role-card-content h3 {
        font-size: 1rem;
    }

    .role-card-content p {
        font-size: 0.8rem;
    }

    /* Form */
    .form-section {
        padding: 24px 10px;
    }

    .form-card {
        padding: 15px 10px;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }

    .form-header p {
        font-size: 0.8rem;
    }

    .progress-bar::before {
        left: 32px;
        right: 32px;
        top: 9px;
        height: 3px;
    }

    .progress-step-container {
        width: 52px;
        min-width: 52px;
    }

    .progress-step {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .step-label {
        font-size: 8px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="url"],
    .form-group textarea {
        padding: 9px 10px;
        font-size: 0.82rem;
    }

    .form-group textarea {
        min-height: 72px;
    }

    .radio-label {
        font-size: 0.8rem;
    }

    .btn-next,
    .btn-submit,
    .btn-prev {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    /* Resume toggle buttons */
    .resume-source-toggle button {
        font-size: 11px !important;
        padding: 8px 6px !important;
    }

    #resume-upload-zone {
        padding: 14px 10px !important;
    }

    .flash-notification {
        padding: 0.65rem 0.85rem;
    }

    .flash-title {
        font-size: 12px;
    }

    .flash-message {
        font-size: 11px;
    }
}

/* ── 320px: Very small phones (Galaxy S5, older Android) ── */
@media (max-width: 320px) {
    .volunteer-page {
        top: calc(60px + 0.15rem * 6);
    }

    .volunteer-hero {
        padding: 28px 8px;
    }

    .hero-chakra-bg {
        width: 160px;
        height: 160px;
    }

    .volunteer-hero-content .hero-title {
        font-size: 1.2rem;
    }

    .volunteer-hero-content .hero-description {
        font-size: 0.75rem;
    }

    .hero-badge {
        font-size: 8.5px;
        padding: 3px 6px;
    }

    /* Perks */
    .perks-section {
        padding: 20px 8px;
    }

    .perks-header h2 {
        font-size: 1.25rem;
    }

    .perk-card {
        padding: 16px 10px;
    }

    .perk-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .perk-card h3 {
        font-size: 0.95rem;
    }

    .perk-card p {
        font-size: 0.78rem;
    }

    /* Stats */
    .stats-section {
        padding: 20px 8px;
    }

    .stat-card {
        padding: 14px 6px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.68rem;
        letter-spacing: 0;
    }

    /* Journey */
    .journey-section {
        padding: 20px 8px;
        overflow-x: hidden;
    }

    .journey-header h2 {
        font-size: 1.25rem;
    }

    /* Both odd and even: left-side only (shifting cards right by 10px) */
    .timeline-card:nth-child(odd),
    .timeline-card:nth-child(even) {
        padding: 10px 4px 10px 30px;
    }

    /* Single left vertical line for ALL cards – shifted right by 10px */
    .timeline-card:nth-child(odd)::before,
    .timeline-card:nth-child(even)::before {
        left: 10px;
        right: unset;
        top: 0;
        bottom: 0;
        width: 0;
        border-width: 0 0 0 3px;
        border-radius: 0;
        border-color: var(--saffron-primary);
    }

    /* Remove top cap on first card */
    .timeline-card:first-child::before {
        border-top: 0;
        border-top-left-radius: 0;
    }

    /* Remove bottom cap on last card */
    .timeline-card:last-child:nth-child(odd)::before,
    .timeline-card:last-child:nth-child(even)::before {
        border-bottom: 0;
        border-bottom-left-radius: 0;
    }

    .timeline-card .info {
        padding: 11px 9px;
    }

    /* ALL titles left-aligned */
    .timeline-card:nth-child(odd)>.info>.title,
    .timeline-card:nth-child(even)>.info>.title {
        text-align: left;
        font-size: 0.85rem;
    }

    .timeline-card .title::before {
        width: 8px;
        height: 8px;
        border-width: 2px;
    }

    /* ALL dots on the left – centered on the 3px vertical line.
       title starts at card-padding(20) + info-padding(9) + border(1) = 30px;
       dot outer width = 12px (8px content + 4px border), half = 6px;
       line center target = 1.5px → left = 1.5px - 6px - 30px = -34.5px */
    .timeline-card:nth-child(odd)>.info>.title::before,
    .timeline-card:nth-child(even)>.info>.title::before {
        left: -34.5px;
        right: unset;
    }

    .timeline-card p {
        font-size: 0.75rem;
    }

    /* Eligibility */
    .eligibility-section {
        padding: 20px 8px;
    }

    .eligibility-content h2 {
        font-size: 1.25rem;
    }

    .eligibility-content p {
        font-size: 0.78rem;
    }

    .eligibility-list li {
        font-size: 0.78rem;
    }

    .eligibility-label {
        min-width: 85px;
    }

    /* Roles */
    .roles-section {
        padding: 20px 8px;
    }

    .roles-header h2 {
        font-size: 1.25rem;
    }

    .role-filter-chip {
        padding: 4px 9px;
        font-size: 0.72rem;
    }

    .role-card-content {
        padding: 12px 10px;
    }

    .role-card-content h3 {
        font-size: 0.95rem;
    }

    .role-card-content p {
        font-size: 0.78rem;
    }

    /* Form */
    .form-section {
        padding: 20px 8px;
    }

    .form-card {
        padding: 13px 9px;
    }

    .form-header h2 {
        font-size: 1.2rem;
    }

    .form-header p {
        font-size: 0.78rem;
    }

    .progress-bar {
        padding: 0 2px;
    }

    .progress-bar::before {
        left: 28px;
        right: 28px;
    }

    .progress-step-container {
        width: 46px;
        min-width: 46px;
    }

    .progress-step {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .step-label {
        font-size: 7.5px;
    }

    .form-group label {
        font-size: 0.78rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="url"],
    .form-group textarea {
        padding: 8px 9px;
        font-size: 0.78rem;
    }

    .form-group textarea {
        min-height: 65px;
    }

    .radio-label {
        font-size: 0.78rem;
        gap: 5px;
    }

    .btn-next,
    .btn-submit,
    .btn-prev {
        padding: 9px 12px;
        font-size: 0.78rem;
    }

    .resume-source-toggle button {
        font-size: 10px !important;
        padding: 7px 4px !important;
    }

    #resume-upload-zone {
        padding: 12px 8px !important;
    }

    .flash-container {
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
    }

    .flash-notification {
        padding: 0.8rem 1rem !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .flash-title {
        font-size: 13px !important;
    }

    .flash-message {
        font-size: 12px !important;
    }
}