/* =================================================================== */
/* ===== MODERN INTERNSHIP PAGE STYLES - YUVA 2026 =================== */
/* =================================================================== */

:root {
    /* Tricolor 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;

    /* Base Styling */
    --color-primary: var(--navy-chakra);
    --color-secondary: var(--green-primary);
    --color-accent: var(--saffron-primary);
    --color-error: #ef4444;
    --color-success: #10b981;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --bg-base: var(--white-warm);
    --bg-elevated: var(--white-primary);
    --bg-subtle: var(--white-cream);
    --bg-muted: #F1F5F9;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;

    --gradient-hero: linear-gradient(135deg, var(--saffron-light) 0%, var(--white-primary) 50%, var(--green-light) 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --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);

    --color-info-pale: #EBF4FF;
    --color-error-pale: #FEE2E2;
}


/* Base resets & layout helpers */
.internship-page {
    background: var(--bg-base);
    padding-top: calc(60px + 1rem * 2);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow-x: hidden;
    padding-bottom: 100px;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-primary);
    transition: var(--transition-base);
}

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

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

.hero-chakra-bg,
.internship-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;
}

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

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

.internship-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: rgba(255, 153, 51, 0.08);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--saffron-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.internship-hero-content .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-title-line {
    display: block;
}

.hero-title-saffron {
    background: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}


.internship-hero-content .hero-description {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.85;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--saffron-primary);
    color: var(--white-primary);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: var(--saffron-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-chakra);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-full);
    border: 2px solid var(--navy-chakra);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.btn-secondary:hover {
    background: var(--navy-chakra);
    color: var(--white-primary);
    transform: translateY(-3px) scale(1.05);
}

.dark-mode .btn-secondary {
    color: var(--white-primary);
    border-color: var(--white-primary);
}

.dark-mode .btn-secondary:hover {
    background: var(--white-primary);
    color: var(--bg-base);
}


/* ===== GENERAL SECTIONS ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 80px auto 48px;
    padding: 0 24px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* ===== WHY JOIN SECTION ===== */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.perk-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-md);
    will-change: transform;
}

.perk-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--saffron-primary);
}

.perk-icon {
    font-size: 2.25rem;
    color: var(--saffron-primary);
    margin-bottom: 20px;
}

.perk-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.perk-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== DOMAINS SECTION ===== */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.domain-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
}

.domain-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-primary);
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.domain-badge {
    background: rgba(19, 136, 8, 0.1);
    color: var(--green-primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.domain-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.domain-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.domain-skills {
    margin-bottom: 24px;
}

.domain-skills h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--bg-muted);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.domain-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.domain-meta span i {
    color: var(--saffron-primary);
    margin-right: 6px;
}

.btn-apply-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--saffron-primary);
    color: white;
    padding: 10px 0;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: var(--transition-base);
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.2;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-apply-sm:hover {
    background: var(--saffron-dark);
}

/* ===== RECRUITMENT TIMELINE ===== */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--border-medium);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-badge {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--saffron-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 0 0 8px var(--bg-base);
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -20px;
}

.timeline-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--saffron-primary);
}

.timeline-content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== TABLE STYLES ===== */
.table-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: auto;
}

.openings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.openings-table th,
.openings-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.openings-table th {
    background: var(--bg-muted);
    font-weight: 700;
    color: var(--text-primary);
}

.openings-table tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

.dark-mode .openings-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.open {
    background: var(--green-pale);
    color: var(--green-primary);
}

.status-badge.closed {
    background: #fee2e2;
    color: #ef4444;
}

/* ===== FAQ SECTION ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease, padding 300ms ease;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px 24px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--saffron-primary);
}

.faq-question i {
    transition: transform var(--transition-base);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-medium);
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== ELIGIBILITY ===== */
.eligibility-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

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

.eligibility-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

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

/* ===== MODAL & FORM ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    transform: translateY(30px);
    transition: transform 300ms ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 24px;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-medium);
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--saffron-primary);
}

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

/* Dynamic Details Page */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

.detail-main {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.detail-sidebar {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
    color: var(--text-primary);
}

.detail-section p,
.detail-section ul {
    color: var(--text-secondary);
    line-height: 1.7;
}

.detail-section ul {
    padding-left: 20px;
}

.detail-section li {
    margin-bottom: 10px;
}

.meta-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meta-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.meta-info-item i {
    font-size: 1.2rem;
    color: var(--saffron-primary);
    width: 24px;
    text-align: center;
}

/* =================================================================== */
/* ===== NEW INTERNSHIP WELCOME & PHASES LAYOUT ====================== */
/* =================================================================== */

.internship-welcome {
    padding: 80px 24px 60px;
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-light);
}

.welcome-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.welcome-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--navy-chakra);
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.dark-mode .welcome-title {
    color: var(--saffron-light);
}

.welcome-text {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* Path of Transformation */
.transformation-path {
    padding: 80px 24px;
    background: var(--bg-base);
}

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

.path-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.path-subtitle {
    font-size: 1.15rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}


.phase-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 240px;
}

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

.phase-card#phase-sugam:hover {
    border-color: var(--saffron-primary);
}

.phase-card#phase-samarth:hover {
    border-color: var(--navy-chakra);
}

.phase-card#phase-saksham:hover {
    border-color: var(--green-primary);
}

.phase-card#phase-srijan:hover {
    border-color: var(--saffron-dark);
}

.phase-header {
    margin-bottom: 20px;
}

.phase-number {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 153, 51, 0.1);
    color: var(--saffron-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.phase-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.phase-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1;
}

/* Application Form Section */
.application-section {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-subtle) 100%);
    border-top: 1px solid var(--border-light);
}

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

.form-section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.form-section-desc {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.application-form-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.form-section-header {
    grid-column: span 2;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-chakra);
    margin: 20px 0 10px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode .form-section-header {
    color: var(--saffron-light);
}



/* Filter Tabs Styling */
.filter-tab {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-full) !important;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-tab.active {
    background: var(--saffron-primary) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-md);
}

.dark-mode .filter-tab.active {
    background: var(--saffron-light) !important;
    color: var(--bg-base) !important;
}

/* SplitType Line Masking */
.line {
    overflow: hidden;
}

/* Custom Select Wrapper and Layout */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper select.native-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
    background: var(--bg-base) !important;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    user-select: none;
    box-sizing: border-box;
}

.custom-select:hover {
    border-color: var(--border-medium);
}

.custom-select .select-trigger {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    min-height: 46px;
    box-sizing: border-box;
}

.custom-select .select-trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select .select-trigger span.placeholder-active {
    color: var(--text-secondary);
    opacity: 0.65;
}

.custom-select .select-trigger i {
    font-size: 0.85rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    margin-left: 10px;
}

.custom-select.active {
    border-color: var(--saffron-primary) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.custom-select.active .select-trigger i {
    transform: rotate(180deg);
}

.custom-select .select-options {
    position: absolute;
    top: calc(100% + 6px);
    /* Floating 6px below trigger */
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    /* Rounded corners */
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Premium soft shadow */
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 0;
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select .select-option {
    padding: 10px 20px;
    color: var(--text-primary);
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-select .select-option:hover {
    background: var(--border-light);
}

.custom-select .select-option.selected {
    background: rgba(249, 115, 22, 0.08);
    color: var(--saffron-primary);
    font-weight: 600;
}

.custom-select .select-option.disabled-option {
    color: var(--text-muted);
    cursor: not-allowed;
    background: transparent !important;
}

/* Custom Scrollbar for Options Panel */
.custom-select .select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select .select-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select .select-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-select .select-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dark mode specific overrides */
.dark-mode .custom-select {
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .custom-select:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

.dark-mode .custom-select .select-options {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .custom-select .select-option:hover {
    background: #334155;
}

.dark-mode .custom-select .select-option.selected {
    background: rgba(249, 115, 22, 0.15);
}

.dark-mode .custom-select .select-options::-webkit-scrollbar-thumb {
    background: #475569;
}

/* ===== HERO IMPACT CARDS ===== */
.volunteer-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 28px auto 0;
    width: 100%;
}

.volunteer-impact-item {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 50, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.volunteer-impact-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.95);
}

.volunteer-impact-item:nth-child(1):hover {
    box-shadow: 0 20px 40px rgba(255, 153, 51, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.volunteer-impact-item:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(0, 0, 128, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.volunteer-impact-item:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(19, 136, 8, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.volunteer-impact-item .impact-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    /* modern squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.volunteer-impact-item:hover .impact-icon {
    transform: scale(1.1) rotate(3deg);
}

/* Unique color themes per card */
.volunteer-impact-item:nth-child(1) .impact-icon {
    background: var(--gradient-saffron);
    box-shadow: 0 6px 16px rgba(255, 153, 51, 0.25);
}

.volunteer-impact-item:nth-child(2) .impact-icon {
    background: var(--gradient-navy);
    box-shadow: 0 6px 16px rgba(0, 0, 128, 0.18);
}

.volunteer-impact-item:nth-child(3) .impact-icon {
    background: var(--gradient-green);
    box-shadow: 0 6px 16px rgba(19, 136, 8, 0.22);
}

.volunteer-impact-item .impact-content {
    text-align: left;
}

.volunteer-impact-number {
    display: block;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    color: var(--navy-chakra);
}

.volunteer-impact-label {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: break-word;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: var(--saffron-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
}

.faq-question i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 20px;
    background: var(--bg-base);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--saffron-primary);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--saffron-primary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

.dark-mode .faq-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .faq-answer {
    background: #1e293b;
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Social Work Phases Grid in Details Page */
.phases-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 30px 0;
}

.phase-detail-card {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.phase-detail-card:hover {
    transform: translateY(-4px);
    border-color: var(--saffron-primary);
}

.phase-detail-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-chakra);
}

.phase-detail-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--saffron-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.phase-detail-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.phase-detail-meta strong {
    color: var(--text-primary);
}

.phase-detail-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-detail-requirements li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding-left: 20px;
    position: relative;
}

.phase-detail-requirements li::before {
    content: "•";
    color: var(--saffron-primary);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 4px;
    top: -2px;
}

.dark-mode .phase-detail-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .phase-detail-card h4 {
    color: #f8fafc;
}


/* Empty State Message */
.empty-state-message {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.empty-state-message p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 450px;
    line-height: 1.6;
    margin: 0;
}

.empty-state-message p i {
    font-size: 2.2rem;
    color: var(--saffron-primary);
    margin-bottom: 16px;
    display: block;
}

/* Specialization Cards Styling */
.specialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.specialization-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    height: auto;
    gap: 16px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.specialization-card .btn-primary {
    background: var(--saffron-primary);
    color: var(--white-primary) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border: none;
    width: fit-content;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
    display: inline-block;
    margin-top: auto;
}

.specialization-card .btn-primary:hover {
    background: var(--saffron-dark);
    transform: scale(1.03);
}

.specialization-card.active-spec {
    cursor: pointer;
}

.specialization-card.active-spec:hover {
    transform: translateY(-5px);
    border-color: var(--saffron-primary);
    box-shadow: var(--shadow-lg);
}

.specialization-card.disabled-spec {
    opacity: 0.65;
    cursor: not-allowed;
    background: rgba(241, 245, 249, 0.5);
}

.dark-mode .specialization-card.disabled-spec {
    background: rgba(30, 41, 59, 0.4);
}

.specialization-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    padding-right: 80px;
    /* Leave space for badge */
}

.specialization-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #cbd5e1;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.dark-mode .coming-soon-badge {
    background: #334155;
    color: #94a3b8;
}

.active-spec-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--saffron-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

/* Skills Checkboxes Grid inside Form */
.skills-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 8px;
    padding: 15px;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.skill-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
}

.skill-checkbox-item input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--saffron-primary);
}

/* Custom Select Disabled Option */
.select-option.disabled-option {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.05);
}

.dark-mode .select-option.disabled-option {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== FLASH NOTIFICATION SYSTEM ===== */
.flash-container {
    position: fixed;
    top: 20px; /* Positions flash container safely below the 60px floating site-header */
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    box-sizing: border-box;
}

.flash-notification {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-bounce, all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275));
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-sizing: border-box;
}

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

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

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

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

.flash-notification.info {
    border-left: 4px solid 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;
    color: var(--white-primary);
    font-size: 11px;
}

.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: 700;
    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;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

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

/* ===== INPUT VALIDATION STYLES ===== */
.form-group input.error,
.form-group textarea.error,
.form-group select.error,
.form-group .custom-select.error {
    border-color: var(--color-error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.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;
    display: block;
    animation: fadeInError 0.2s ease-out;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* =======================================================
   INTERNSHIP PAGE — COMPLETE RESPONSIVE MEDIA QUERIES
   Replaces ALL existing @media blocks in internship.css
   Breakpoints: 1200 | 992 | 900 | 768 | 600 | 480 | 375 | 320
   ======================================================= */

/* ── 1200px: Large tablets / small laptops ── */
@media (max-width: 1200px) {
    .internship-page {
        padding-bottom: 80px;
    }

    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 20px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 20px;
    }

    .section-header {
        margin: 60px auto 40px;
        padding: 0 20px;
    }

    .detail-layout {
        gap: 28px;
        padding: 0 20px;
    }

    .volunteer-impact {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 100%;
        padding: 0 20px;
    }

    .phases-grid {
        gap: 24px;
    }

    .application-form-card {
        padding: 32px;
    }

    .table-container {
        padding: 0 20px;
    }

    .faq-container {
        padding: 0 20px;
    }

    .specialization-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* ── 992px: Tablets ── */
@media (max-width: 992px) {
    .internship-page {
        padding-top: calc(60px + 1rem);
        padding-bottom: 60px;
    }

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

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

    .internship-hero-content .hero-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
        margin-bottom: 20px;
    }

    .internship-hero-content .hero-description {
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    }

    /* Impact cards */
    .volunteer-impact {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 0 16px;
    }

    .volunteer-impact-item {
        padding: 18px !important;
        gap: 14px !important;
        border-radius: 16px;
    }

    .volunteer-impact-item .impact-icon {
        width: 46px !important;
        height: 46px !important;
        font-size: 20px !important;
    }

    .volunteer-impact-number {
        font-size: 20px !important;
    }

    .volunteer-impact-label {
        font-size: 12px !important;
    }

    /* Welcome */
    .internship-welcome {
        padding: 60px 16px 48px;
    }

    .welcome-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        margin-bottom: 24px;
    }

    .welcome-text {
        font-size: clamp(1rem, 2vw, 1.1rem);
    }

    /* Phases */
    .transformation-path {
        padding: 60px 16px;
    }

    .path-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }

    .path-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

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

    .phase-card {
        padding: 24px;
        min-height: 200px;
    }

    .phase-card h3 {
        font-size: 1.15rem;
    }

    .phase-desc {
        font-size: 0.9rem;
    }

    /* Domains / perks / testimonials */
    .section-header {
        margin: 50px auto 36px;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    }

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

    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 0 16px;
    }

    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 16px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 16px;
    }

    .perk-card {
        padding: 24px;
    }

    .domain-card {
        padding: 24px;
    }

    /* Timeline */
    .timeline-container {
        padding: 0 16px;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-badge,
    .timeline-item:nth-child(even) .timeline-badge {
        left: 0;
        right: auto;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    /* Detail layout */
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }

    .detail-sidebar {
        position: static;
    }

    /* Form */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .form-section-header {
        grid-column: span 1;
    }

    .application-form-card {
        padding: 28px 20px;
    }

    /* Flash */
    .flash-container {
        top: 16px;
        right: 12px;
        left: 12px;
    }

    .flash-notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* ── 900px: Original breakpoint (keep timeline fix) ── */
@media (max-width: 900px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-badge,
    .timeline-item:nth-child(even) .timeline-badge {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* ── 768px: Standard tablets ── */
@media (max-width: 768px) {
    .internship-page {
        padding-top: calc(60px + 0.5rem * 4);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        padding-bottom: 50px;
    }

    /* Hero */
    .internship-hero {
        min-height: 55vh;
        padding: 50px 16px 36px;
    }

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

    .internship-hero-content {
        max-width: 100%;
        padding: 0;
    }

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

    .internship-hero-content .hero-title {
        font-size: clamp(1.75rem, 4vw, 3rem);
        margin-bottom: 18px;
    }

    .internship-hero-content .hero-description {
        font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    }

    /* Volunteer impact — stack to single column */
    .volunteer-impact {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
        margin: 20px auto 0;
    }

    .volunteer-impact-item {
        padding: 16px !important;
        gap: 14px !important;
        box-sizing: border-box;
        width: 100%;
        border-radius: 14px;
    }

    .volunteer-impact-item .impact-icon {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        font-size: 18px !important;
    }

    .volunteer-impact-number {
        font-size: 18px !important;
    }

    .volunteer-impact-label {
        font-size: 12px !important;
    }

    /* Hero actions */
    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 12px !important;
        margin-top: 24px !important;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: auto !important;
        max-width: none !important;
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 10px 16px !important;
        font-size: 13.5px !important;
    }

    /* Welcome */
    .internship-welcome {
        padding: 50px 14px 40px;
    }

    .welcome-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
        margin-bottom: 22px;
    }

    .welcome-text {
        font-size: 1rem;
        text-align: left;
    }

    /* Phases — single column on tablet */
    .transformation-path {
        padding: 50px 14px;
    }

    .path-title {
        font-size: clamp(1.4rem, 3vw, 2rem);
    }

    .path-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

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

    .phase-card {
        padding: 22px 18px;
        min-height: auto;
    }

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

    .phase-desc {
        font-size: 0.88rem;
    }

    /* Phases details grid */
    .phases-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .phase-detail-card {
        padding: 20px;
    }

    .phase-detail-card h4 {
        font-size: 1.1rem;
    }

    /* Section headers */
    .section-header {
        margin: 44px auto 30px;
        padding: 0 14px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 3.2vw, 2rem);
        margin-bottom: 10px;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* Perks */
    .perks-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 14px;
    }

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

    .perk-icon {
        font-size: 2rem;
        margin-bottom: 16px;
    }

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

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

    /* Domains */
    .domains-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 14px;
    }

    .domain-card {
        padding: 22px 18px;
    }

    .domain-card h3 {
        font-size: 1.2rem;
    }

    .domain-card p {
        font-size: 0.9rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .domain-meta {
        font-size: 0.8rem;
    }

    /* Filter tabs */
    .filter-tabs {
        gap: 8px !important;
        padding: 0 14px;
    }

    .filter-tab {
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 14px;
    }

    .testimonial-card {
        padding: 22px 18px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    /* Eligibility */
    .eligibility-container {
        max-width: 100%;
        padding: 22px 16px;
        margin: 0 14px;
    }

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

    /* Table */
    .table-container {
        padding: 0 14px;
        overflow-x: auto;
    }

    .openings-table th,
    .openings-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    /* FAQ */
    .faq-container {
        padding: 0 14px;
    }

    .faq-question {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 16px;
    }

    /* Form */
    .application-section {
        padding: 50px 14px;
    }

    .form-section-title {
        font-size: clamp(1.4rem, 3vw, 2rem);
    }

    .form-section-desc {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .application-form-card {
        padding: 22px 16px;
    }

    .form-section-header {
        font-size: 1rem;
        grid-column: span 1;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Skills checkbox grid */
    .skills-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .skill-checkbox-item {
        font-size: 0.85rem;
        gap: 6px;
    }

    /* Specialization grid */
    .specialization-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .specialization-card {
        min-height: auto;
        padding: 20px 18px;
    }

    .specialization-card h4 {
        font-size: 1.05rem;
        padding-right: 60px;
    }

    .specialization-card p {
        font-size: 0.88rem;
    }

    /* Modal */
    .modal-card {
        width: 95%;
        max-width: 95%;
        max-height: 88vh;
    }

    .modal-header {
        padding: 18px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 18px;
    }

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

    .flash-notification {
        width: 100%;
        min-width: auto;
        max-width: none;
        padding: 10px 12px;
    }

    /* Detail layout sidebar */
    .detail-main {
        padding: 24px 18px;
    }

    .detail-sidebar {
        padding: 20px 16px;
    }

    .detail-section h3 {
        font-size: 1.2rem;
    }

    /* Btn */
    .btn-primary,
    .btn-secondary {
        padding: 12px 22px;
        font-size: 0.95rem;
    }

    .btn-apply-sm {
        padding: 9px 16px;
        font-size: 0.88rem;
    }
}

/* ── 600px: Large phones ── */
@media (max-width: 600px) {
    .internship-page {
        padding-bottom: 40px;
    }

    .internship-hero {
        padding: 40px 12px 30px;
    }

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

    .internship-hero-content .hero-title {
        font-size: clamp(1.55rem, 3.5vw, 2.5rem);
    }

    .volunteer-impact {
        padding: 0;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        max-width: 100%;
    }

    .internship-welcome {
        padding: 40px 16px;
    }

    .transformation-path {
        padding: 40px 16px;
    }

    .phases-grid {
        gap: 14px;
    }

    .phase-card {
        padding: 18px 14px;
    }

    .perks-grid,
    .domains-grid,
    .testimonials-grid {
        padding: 0 12px;
        gap: 14px;
    }

    .section-header {
        padding: 0 12px;
        margin: 36px auto 24px;
    }

    .filter-tabs {
        padding: 0 4px;
    }

    .eligibility-container {
        margin: 0 12px;
    }

    .table-container {
        padding: 0 12px;
    }

    .openings-table th,
    .openings-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .faq-container {
        padding: 0 12px;
    }

    .faq-question {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .application-section {
        padding: 40px 12px;
    }

    .application-form-card {
        padding: 18px 12px;
    }

    .skills-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
        padding: 10px;
    }

    /* Coming soon modal */
    .custom-modal-content {
        padding: 28px 20px !important;
        max-width: 95% !important;
    }

    .flash-container {
        top: 90px !important; /* Forces container below site-header on mobile screen widths */
        right: 8px;
        left: 8px;
    }

    .flash-notification {
        padding: 9px 12px;
    }

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

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

/* ── 480px: Standard phones ── */
@media (max-width: 480px) {
    .internship-page {
        padding-top: calc(60px + 0.25rem * 6);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        overflow-x: hidden;
        padding-bottom: 32px;
    }

    /* Hero */
    .internship-hero {
        min-height: 50vh;
        padding: 36px 10px 28px;
    }

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

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

    .internship-hero-content .hero-title {
        font-size: clamp(1.4rem, 3vw, 2rem);
        margin-bottom: 14px;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

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

    /* Impact cards */
    .volunteer-impact {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
        margin: 18px auto 0;
    }

    .volunteer-impact-item {
        padding: 14px !important;
        gap: 12px !important;
        border-radius: 12px;
    }

    .volunteer-impact-item .impact-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
    }

    .volunteer-impact-number {
        font-size: 16px !important;
    }

    .volunteer-impact-label {
        font-size: 11px !important;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 8px !important;
        margin-top: 20px !important;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        text-align: center;
    }

    /* Welcome */
    .internship-welcome {
        padding: 40px 16px;
        margin: 0 auto;
    }

    .welcome-title {
        font-size: clamp(1.4rem, 3vw, 1.85rem);
        margin-bottom: 18px;
    }

    .welcome-text {
        font-size: 0.9rem;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    /* Phases */
    .transformation-path {
        padding: 40px 16px;
    }

    .path-title {
        font-size: clamp(1.25rem, 2.8vw, 1.75rem);
    }

    .path-subtitle {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    .phases-grid {
        gap: 12px;
    }

    .phase-card {
        padding: 16px 14px;
        min-height: auto;
    }

    .phase-number {
        font-size: 0.72rem;
        padding: 3px 10px;
        margin-bottom: 8px;
    }

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

    .phase-desc {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .phase-detail-card {
        padding: 16px;
    }

    .phase-detail-card h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .phase-detail-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        margin-bottom: 12px;
    }

    .phase-detail-meta {
        font-size: 0.8rem;
    }

    .phase-detail-requirements li {
        font-size: 0.82rem;
        margin-bottom: 5px;
    }

    /* Section headers */
    .section-header {
        margin: 28px auto 20px;
        padding: 0 10px;
    }

    .section-header h2 {
        font-size: clamp(1.25rem, 2.8vw, 1.75rem);
        margin-bottom: 8px;
    }

    .section-header p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    /* Perks */
    .perks-grid {
        padding: 0 10px;
        gap: 12px;
    }

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

    .perk-icon {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .perk-card h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

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

    /* Domains */
    .domains-grid {
        padding: 0 10px;
        gap: 12px;
    }

    .domain-card {
        padding: 18px 14px;
    }

    .domain-header {
        margin-bottom: 12px;
    }

    .domain-badge {
        font-size: 0.72rem;
        padding: 3px 8px;
    }

    .domain-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .domain-card p {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 14px;
    }

    .domain-meta {
        font-size: 0.78rem;
        padding-top: 12px;
        margin-bottom: 14px;
    }

    .domain-skills h4 {
        font-size: 0.78rem;
    }

    .skill-tag {
        font-size: 0.72rem;
        padding: 3px 7px;
        border-radius: 4px;
    }

    .skill-tags {
        gap: 6px;
    }

    /* Apply button inside domain card */
    .btn-apply-sm {
        padding: 8px 14px;
        font-size: 0.82rem;
        border-radius: var(--radius-full);
    }

    /* Filter tabs */
    .filter-tabs {
        padding: 0 10px;
        gap: 5px !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .filter-tab {
        padding: 6px 12px !important;
        font-size: 0.76rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Testimonials */
    .testimonials-grid {
        padding: 0 10px;
        gap: 12px;
    }

    .testimonial-card {
        padding: 18px 14px;
    }

    .testimonial-text {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }

    .testimonial-author {
        gap: 12px;
    }

    .testimonial-photo {
        width: 42px;
        height: 42px;
    }

    .testimonial-info h4 {
        font-size: 0.9rem;
    }

    .testimonial-info p {
        font-size: 0.75rem;
    }

    /* Eligibility */
    .eligibility-container {
        margin: 0 10px;
        padding: 18px 14px;
    }

    .eligibility-list li {
        font-size: 0.85rem;
        gap: 8px;
        padding: 10px 0;
    }

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

    /* Table — horizontal scroll on mobile */
    .table-container {
        padding: 0 10px;
    }

    .openings-table {
        min-width: 560px;
    }

    .openings-table th,
    .openings-table td {
        padding: 10px;
        font-size: 0.78rem;
    }

    /* FAQ */
    .faq-container {
        padding: 0 10px;
    }

    .faq-item {
        margin-bottom: 10px;
        border-radius: var(--radius-lg);
    }

    .faq-question {
        padding: 12px 14px;
        font-size: 0.9rem;
        gap: 10px;
    }

    .faq-question i {
        font-size: 0.8rem;
    }

    .faq-answer {
        font-size: 0.85rem;
        padding: 0 14px;
    }

    .faq-item.active .faq-answer {
        padding: 0 14px 14px;
    }

    .faq-accordion {
        gap: 10px;
    }

    /* Form */
    .application-section {
        padding: 32px 10px;
    }

    .form-section-title {
        font-size: clamp(1.25rem, 2.8vw, 1.75rem);
    }

    .form-section-desc {
        font-size: 0.88rem;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .application-form-card {
        padding: 16px 12px;
        border-radius: var(--radius-xl);
    }

    .form-section-header {
        font-size: 0.9rem;
        padding-bottom: 5px;
        margin: 16px 0 8px;
    }

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

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 9px 11px;
        font-size: 0.85rem;
        border-radius: var(--radius-lg);
    }

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

    /* Custom select dropdown */
    .custom-select .select-trigger {
        padding: 9px 14px;
        font-size: 0.85rem;
        min-height: 42px;
    }

    .custom-select .select-option {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* Skills checkboxes */
    .skills-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px;
        border-radius: var(--radius-lg);
    }

    .skill-checkbox-item {
        font-size: 0.8rem;
        gap: 6px;
    }

    .skill-checkbox-item input {
        width: 14px;
        height: 14px;
    }

    /* Specialization grid */
    .specialization-grid {
        gap: 12px;
    }

    .specialization-card {
        padding: 16px 14px;
        min-height: auto;
        border-radius: var(--radius-xl);
    }

    .specialization-card h4 {
        font-size: 1rem;
        padding-right: 55px;
    }

    .specialization-card p {
        font-size: 0.84rem;
    }

    .coming-soon-badge,
    .active-spec-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        top: 14px;
        right: 14px;
    }

    /* Modal */
    .modal-card {
        width: 97%;
        max-height: 90vh;
        border-radius: var(--radius-xl);
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 16px;
    }

    /* Coming soon custom modal */
    .custom-modal-content {
        padding: 24px 16px !important;
        border-radius: var(--radius-xl) !important;
        max-width: 97% !important;
    }

    /* Flash */
    .flash-container {
        right: 6px;
        left: 6px;
        top: 90px !important;
        gap: 8px;
    }

    .flash-notification {
        padding: 9px 11px;
        gap: 8px;
        border-radius: var(--radius-lg);
    }

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

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

    .flash-icon {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* Status badge */
    .status-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    /* Detail page */
    .detail-main {
        padding: 20px 14px;
    }

    .detail-sidebar {
        padding: 18px 14px;
    }

    .detail-section {
        margin-bottom: 22px;
    }

    .detail-section h3 {
        font-size: 1.1rem;
    }

    .detail-section p,
    .detail-section ul {
        font-size: 0.88rem;
    }

    .meta-info-item {
        font-size: 0.88rem;
        gap: 10px;
    }

    .meta-info-item i {
        font-size: 1rem;
    }

    /* Global button sizing */
    .btn-primary {
        padding: 11px 20px;
        font-size: 0.9rem;
    }

    .btn-secondary {
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 8px !important;
        margin-top: 20px !important;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
        padding: 10px 10px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        text-align: center;
    }
}

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

    .internship-hero {
        padding: 30px 8px 24px;
    }

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

    .hero-badge {
        font-size: 10px;
        padding: 3px 9px;
        margin-bottom: 14px;
        gap: 4px;
    }

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

    .internship-hero-content .hero-title {
        font-size: clamp(1.25rem, 2.8vw, 1.75rem);
        margin-bottom: 12px;
    }

    .internship-hero-content .hero-description {
        font-size: 0.82rem;
        margin-bottom: 20px;
    }

    /* Impact cards */
    .volunteer-impact {
        padding: 0 8px;
        gap: 8px;
    }

    .volunteer-impact-item {
        padding: 12px !important;
        gap: 10px !important;
        border-radius: 10px;
    }

    .volunteer-impact-item .impact-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
        border-radius: 9px !important;
    }

    .volunteer-impact-number {
        font-size: 15px !important;
    }

    .volunteer-impact-label {
        font-size: 10.5px !important;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 6px !important;
        margin-top: 16px !important;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
        padding: 9px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        text-align: center;
    }

    /* Welcome */
    .internship-welcome {
        padding: 28px 8px 22px;
    }

    .welcome-title {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
        margin-bottom: 16px;
    }

    .welcome-text {
        font-size: 0.85rem;
    }

    /* Phases */
    .transformation-path {
        padding: 26px 8px;
    }

    .path-title {
        font-size: clamp(1.1rem, 2.5vw, 1.55rem);
        margin-bottom: 8px;
    }

    .path-subtitle {
        font-size: 0.82rem;
        margin-bottom: 20px;
    }

    .phases-grid {
        gap: 10px;
    }

    .phase-card {
        padding: 14px 12px;
    }

    .phase-number {
        font-size: 0.68rem;
        padding: 2px 8px;
    }

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

    .phase-desc {
        font-size: 0.8rem;
    }

    .section-header {
        padding: 0 8px;
        margin: 24px auto 18px;
    }

    .section-header h2 {
        font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    }

    .section-header p {
        font-size: 0.84rem;
    }

    /* Perks / Domains */
    .perks-grid,
    .domains-grid,
    .testimonials-grid {
        padding: 0 8px;
        gap: 10px;
    }

    .perk-card,
    .domain-card,
    .testimonial-card {
        padding: 15px 12px;
    }

    .perk-icon {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

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

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

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

    .domain-card p {
        font-size: 0.82rem;
    }

    .domain-badge {
        font-size: 0.68rem;
    }

    .skill-tag {
        font-size: 0.68rem;
        padding: 2px 6px;
    }

    .btn-apply-sm {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    /* Filter tabs */
    .filter-tabs {
        padding: 0 8px;
    }

    .filter-tab {
        padding: 5px 10px !important;
        font-size: 0.72rem !important;
    }

    /* FAQ */
    .faq-container {
        padding: 0 8px;
    }

    .faq-question {
        padding: 11px 12px;
        font-size: 0.86rem;
    }

    .faq-answer {
        font-size: 0.82rem;
    }

    /* Table */
    .table-container {
        padding: 0 8px;
    }

    .openings-table th,
    .openings-table td {
        padding: 8px;
        font-size: 0.75rem;
    }

    /* Eligibility */
    .eligibility-container {
        margin: 0 8px;
        padding: 16px 12px;
    }

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

    /* Form */
    .application-section {
        padding: 26px 8px;
    }

    .form-section-title {
        font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    }

    .form-section-desc {
        font-size: 0.84rem;
    }

    .application-form-card {
        padding: 14px 10px;
        border-radius: 14px;
    }

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

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 0.82rem;
        border-radius: var(--radius-sm);
    }

    .custom-select .select-trigger {
        padding: 8px 12px;
        font-size: 0.82rem;
        min-height: 40px;
    }

    .custom-select .select-option {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .skills-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 8px;
    }

    .skill-checkbox-item {
        font-size: 0.76rem;
    }

    .specialization-card {
        padding: 14px 12px;
    }

    .specialization-card h4 {
        font-size: 0.92rem;
        padding-right: 48px;
    }

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

    /* Modal */
    .modal-card {
        width: 98%;
        border-radius: 14px;
    }

    .modal-header {
        padding: 14px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 14px;
    }

    .custom-modal-content {
        padding: 20px 14px !important;
    }

    /* Flash */
    .flash-container {
        right: 4px;
        left: 4px;
        top: 90px !important;
    }

    .flash-notification {
        padding: 8px 10px;
    }

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

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

    /* Buttons */
    .btn-primary {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .btn-secondary {
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}

/* ── 320px: Very small phones ── */
@media (max-width: 320px) {
    .internship-hero {
        padding: 26px 6px 20px;
    }

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

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

    .internship-hero-content .hero-title {
        font-size: 1.15rem;
    }

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

    .volunteer-impact {
        padding: 0 6px;
        gap: 7px;
    }

    .volunteer-impact-item {
        padding: 10px !important;
        gap: 8px !important;
    }

    .volunteer-impact-item .impact-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .volunteer-impact-number {
        font-size: 14px !important;
    }

    .volunteer-impact-label {
        font-size: 10px !important;
    }

    .internship-welcome {
        padding: 22px 6px 18px;
    }

    .welcome-title {
        font-size: 1.1rem;
    }

    .welcome-text {
        font-size: 0.82rem;
    }

    .transformation-path {
        padding: 20px 6px;
    }

    .path-title {
        font-size: 1rem;
    }

    .phase-card {
        padding: 12px 10px;
    }

    .phase-card h3 {
        font-size: 0.9rem;
    }

    .phase-desc {
        font-size: 0.78rem;
    }

    .section-header {
        padding: 0 6px;
    }

    .section-header h2 {
        font-size: 1.05rem;
    }

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

    .perks-grid,
    .domains-grid,
    .testimonials-grid {
        padding: 0 6px;
        gap: 8px;
    }

    .perk-card,
    .domain-card {
        padding: 13px 10px;
    }

    .perk-icon {
        font-size: 1.5rem;
    }

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

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

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

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

    .skill-tag {
        font-size: 0.65rem;
    }

    .filter-tab {
        padding: 4px 8px !important;
        font-size: 0.68rem !important;
    }

    .faq-container {
        padding: 0 6px;
    }

    .faq-question {
        padding: 10px;
        font-size: 0.82rem;
    }

    .faq-answer {
        font-size: 0.78rem;
    }

    .table-container {
        padding: 0 6px;
    }

    .openings-table th,
    .openings-table td {
        padding: 7px;
        font-size: 0.72rem;
    }

    .application-section {
        padding: 20px 6px;
    }

    .application-form-card {
        padding: 12px 8px;
    }

    .form-section-title {
        font-size: 1.05rem;
    }

    .form-section-desc {
        font-size: 0.8rem;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 7px 9px;
        font-size: 0.78rem;
    }

    .skills-checkbox-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 7px;
    }

    .skill-checkbox-item {
        font-size: 0.72rem;
    }

    .specialization-card {
        padding: 12px 10px;
    }

    .specialization-card h4 {
        font-size: 0.88rem;
    }

    .flash-container {
        right: 3px;
        left: 3px;
    }

    .flash-notification {
        padding: 7px 9px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 9px 14px;
        font-size: 0.82rem;
    }
}

/* ── Touch device optimizations ── */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover lifts — use active tap feedback instead */
    .perk-card:hover,
    .domain-card:hover,
    .testimonial-card:hover,
    .phase-card:hover,
    .timeline-content:hover,
    .specialization-card.active-spec:hover {
        transform: none;
    }

    .perk-card:active,
    .domain-card:active,
    .testimonial-card:active,
    .phase-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Increase tap targets */
    .btn-primary,
    .btn-secondary,
    .btn-apply-sm {
        min-height: 44px;
    }

    .filter-tab {
        min-height: 40px;
    }

    .faq-question {
        min-height: 48px;
    }

    .custom-select .select-trigger {
        min-height: 46px;
    }

    .custom-select .select-option {
        min-height: 42px;
    }

    .portal-btn {
        min-height: 48px;
    }
}

/* ── Landscape mode ── */
@media (max-height: 600px) and (orientation: landscape) {
    .internship-hero {
        min-height: 100vh;
        padding: 40px 20px;
    }

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

    .volunteer-impact {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 20px;
    }

    .transformation-path {
        padding: 40px 20px;
    }

    .phases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .application-section {
        padding: 40px 20px;
    }

    .application-form-card {
        padding: 20px;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .hero-chakra-bg {
        animation: none !important;
    }

    .hero-badge {
        animation: none !important;
    }

    .perk-card,
    .domain-card,
    .phase-card,
    .timeline-content,
    .testimonial-card,
    .specialization-card,
    .volunteer-impact-item,
    .btn-primary,
    .btn-secondary {
        transition: none !important;
    }

    .volunteer-impact-item:hover .impact-icon {
        transform: none !important;
    }

    .flash-notification {
        transition: opacity 0.2s ease !important;
    }
}

/* ── Print ── */
@media print {
    .internship-hero {
        min-height: auto;
        background: white !important;
        padding: 24px 16px;
    }

    .hero-chakra-bg {
        display: none;
    }

    .hero-badge {
        background: #f1f5f9;
    }

    .internship-page {
        background: white !important;
    }

    .perk-card,
    .domain-card,
    .testimonial-card,
    .phase-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .modal-overlay,
    .modal-card,
    .flash-container,
    .custom-modal,
    .hero-actions .btn-secondary {
        display: none !important;
    }

    .phases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-container {
        overflow: visible;
    }

    .openings-table {
        min-width: unset;
    }
}

/* ===== MODERN FILTER TABS CIRCULAR ICON WITH OUTSIDE TEXT DESIGN ===== */
.filter-tabs-wrapper {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    overflow: visible;
}

.filter-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0px;
    padding: 8px 4px;
    overflow: visible;
}

.filter-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: transform 0.25s ease;
    width: auto;
}

.filter-tab:hover,
.filter-tab:focus,
.filter-tab:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.filter-tab .tab-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card, #ffffff);
    border: 2px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--text-muted, #64748b);
    font-size: 1.15rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-tab .tab-label {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Active State - Only Highlight The Circle */
.filter-tab.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.filter-tab.active .tab-icon-circle {
    background: linear-gradient(135deg, var(--saffron-primary, #FF9933), var(--saffron-dark, #E67300)) !important;
    border-color: var(--saffron-primary, #FF9933) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(255, 153, 51, 0.35) !important;
    transform: scale(1.08);
}

.filter-tab.active .tab-label {
    color: var(--saffron-primary, #FF9933) !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .filter-tabs {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 12px 4px;
        justify-items: center;
        align-items: start;
        padding: 8px 2px;
    }

    .filter-tab .tab-icon-circle {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

    .filter-tab .tab-label {
        margin-top: 6px;
        font-size: 0.68rem;
    }
}

@media (max-width: 440px) {
    .filter-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 8px;
    }

    .filter-tab .tab-icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.05rem;
    }

    .filter-tab .tab-label {
        font-size: 0.72rem;
    }
}