/* =========================================================
   CSS VARIABLES – MATCHES EVENTS.PHP THEME
   ========================================================= */
:root {
    --primary: #15803d;
    --primary-dark: #166534;
    --primary-light: #dcfce7;
    --secondary: #22c55e;
    --text: #1f2937;
    --light-text: #6b7280;
    --white: #ffffff;
    --bg: #f5fff7;
    --border: #d1fae5;
    --shadow: 0 10px 35px rgba(21, 128, 61, 0.08);
    --shadow-hover: 0 18px 40px rgba(21, 128, 61, 0.15);
    --radius: 24px;
    --radius-sm: 14px;
    --transition: 0.35s ease;
}

/* =========================================================
   BASE RESET
   ========================================================= */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.department-hero-modern {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a1f1a; /* fallback */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.department-hero-modern:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,20,10,0.85) 0%, rgba(0,40,20,0.65) 100%);
    z-index: 1;
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
}

.hero-card {
    max-width: 700px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 50px 48px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 30px 60px rgba(0,0,0,0.30);
    animation: fadeUp 0.9s ease forwards;
}

.hero-level-badge {
    display: inline-block;
    background: rgba(74, 222, 128, 0.20);
    color: #a7f0b0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 40px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    margin-bottom: 24px;
}

.hero-title-modern {
    color: #fff;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-tagline-modern {
    color: rgba(255,255,255,0.80);
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-apply-modern,
.btn-explore-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-apply-modern {
    background: #ffffff;
    color: #0a2a1a;
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

.btn-apply-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    color: #0a2a1a;
}

.btn-apply-modern i {
    transition: transform 0.3s ease;
}
.btn-apply-modern:hover i {
    transform: translateX(6px);
}

.btn-explore-modern {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
}

.btn-explore-modern:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-4px);
}

/* Floating Apply Shield (modernised) */
.floating-apply-shield {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 10;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 60px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}

.floating-apply-shield:hover {
    background: rgba(255,255,255,0.20);
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255,255,255,0.4);
}

.floating-apply-shield span {
    display: inline-block;
    line-height: 1.2;
}

.floating-apply-shield i {
    font-size: 22px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.floating-apply-shield:hover i {
    transform: translate(4px, -4px);
}

/* Animation */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   OVERVIEW SECTION – PROFESSIONAL
   ========================================================= */
.overview-section {
    padding: 80px 0;
    background: var(--white);
}

.overview-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 24px;
}

.overview-content h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 28px;
    line-height: 1.1;
}

.overview-content p {
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 2;
    color: var(--light-text);
}

/* INFO CARD – ENHANCED */
.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
}

.info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.info-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 36px;
    margin-bottom: 28px;
}

.info-item small,
.info-full small {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
    margin: 0;
}

.info-item a,
.info-full a {
    color: var(--primary);
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-item a:hover,
.info-full a:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.info-full {
    margin-bottom: 20px;
}

.info-full p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin: 0;
}

/* =========================================================
   COURSE OUTLINE SECTION
   ========================================================= */
.course-outline-section {
    padding: 80px 0 100px;
    background: #ecf1ee;
}

.outline-title h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 10px;
}

.semester-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 50px;
    padding: 0 10px;
}

.semester-btn {
    min-width: 100px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    flex: 0 1 auto;
}

.semester-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}

.active-sem {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}

.semester-content {
    display: none;
}

.semester-content.active-semester {
    display: block;
    animation: fadeIn 0.5s ease;
}

.outline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 0 16px;
}

.outline-column h4 {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.outline-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.outline-column ul li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.outline-column ul li:last-child {
    border-bottom: none;
}

.outline-column ul li:hover {
    transform: translateX(6px);
    color: var(--primary);
}

.outline-column ul li i:first-child {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: rgba(225, 230, 227, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.outline-column ul li i:first-child::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: url('../../images/logo-bg.png') center center/contain no-repeat;
    opacity: 0.8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.outline-column ul li span {
    font-size: 12px;
    color: var(--light-text);
    font-weight: 500;
}

.outline-column ul li i:last-child {
    margin-left: auto;
    color: var(--primary);
    font-size: 16px;
    opacity: 0.6;
    transition: var(--transition);
}

.outline-column ul li:hover i:last-child {
    opacity: 1;
    transform: translateX(4px);
}

/* =========================================================
   FEES SECTION – ENHANCED
   ========================================================= */
.fees-section {
    padding: 80px 0 50px;
    background: var(--white);
}

.fees-header {
    text-align: center;
    margin-bottom: 60px;
}

.fees-header h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.fees-header p {
    max-width: 980px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: var(--light-text);
}

.fees-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
}

.fee-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    transition: var(--transition);
}

.fee-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.fee-card-title {
    background: var(--primary-light);
    text-align: center;
    padding: 20px 24px;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border);
}

.fee-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.fee-session {
    grid-column: 1 / -1;
    text-align: left !important;
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    color: var(--primary-dark);
    font-weight: 600;
}

.fee-session strong {
    color: var(--primary-dark);
}

.fee-col {
    padding: 18px 22px;
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-align: left !important;
    justify-content: flex-start !important;
}

.fee-col:last-child {
    border-bottom: none;
}

.fee-col:first-child {
    font-weight: 700;
    color: var(--primary-dark);
}

.fee-col a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.fee-col a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.session-col {
    font-weight: 500;
    color: var(--primary);
}

.session-col strong {
    font-weight: 700;
    color: var(--primary-dark);
}

/* =========================================================
   CAREER OPPORTUNITIES – ENHANCED
   ========================================================= */
.career-section {
    padding: 20px 0 40px;
    background: var(--white);
}

.career-content h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 32px;
}

.career-content p {
    max-width: 1200px;
    margin: 0 auto 24px auto;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 2;
    color: var(--light-text);
    padding: 0 20px;
    text-align: justify;
}

.career-content p:first-of-type {
    font-weight: 500;
    color: var(--text);
    border-left: 4px solid var(--secondary);
    padding-left: 28px;
}

.career-content p:last-of-type {
    margin-bottom: 0;
}

/* =========================================================
   STUDENT OUTCOMES – ENHANCED
   ========================================================= */
.outcomes-section {
    padding: 60px 0 70px;
    background: var(--white);
}

.outcomes-content h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 24px;
}

.outcomes-content p {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 2;
    color: var(--light-text);
    padding: 0 20px;
    text-align: justify;
}

.outcomes-content p:first-of-type {
    font-weight: 500;
    color: var(--text);
    border-left: 4px solid var(--secondary);
    padding-left: 28px;
}

.outcomes-list {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.outcomes-list li {
    position: relative;
    padding-left: 40px;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.5;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    min-height: 40px;
}

.outcomes-list li:hover {
    transform: translateX(6px);
    color: var(--primary);
}

.outcomes-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: url('../../images/logo.png') center center/contain no-repeat;
}

/* =========================================================
   CAREER PATHS – ENHANCED
   ========================================================= */
.career-paths-section {
    padding: 60px 0 70px;
    background: var(--white);
}

.career-header {
    text-align: center;
    margin-bottom: 50px;
}

.career-header h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.career-header p {
    max-width: 980px;
    margin: 0 auto;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.9;
    color: var(--light-text);
    padding: 0 20px;
}

.career-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 20px;
}

.career-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: var(--transition);
}

.career-item:hover {
    transform: translateX(6px);
}

.career-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.career-item span {
    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

/* =========================================================
   INFRASTRUCTURE – ENHANCED
   ========================================================= */
.infrastructure-section {
    padding: 50px 0 80px;
    background: #f7f7f7;
}

.infrastructure-section .container-fluid {
    padding: 0 16px;
}

.infra-header h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 40px;
}

.infra-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.infra-slider::-webkit-scrollbar {
    display: none;
}

.infra-item {
    min-width: 160px;
    text-align: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.infra-item:hover {
    transform: translateY(-8px);
}

.infra-icon-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    position: relative;
}

.infra-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    opacity: 0.95;
    transition: var(--transition);
}

.infra-item:hover .infra-shape {
    transform: translate(-50%, -50%) scale(1.08);
}

.infra-item:nth-child(1) .infra-shape { background: #b7e4c7; }
.infra-item:nth-child(2) .infra-shape { background: #ddd39c; }
.infra-item:nth-child(3) .infra-shape { background: #b8d6eb; }
.infra-item:nth-child(4) .infra-shape { background: #dfb7ab; }
.infra-item:nth-child(5) .infra-shape { background: #b7e4c7; }
.infra-item:nth-child(6) .infra-shape { background: #ddd39c; }

.infra-icon {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infra-icon i {
    font-size: clamp(40px, 5vw, 60px);
    color: var(--primary-dark);
}

.infra-item h5 {
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 700;
    color: #333;
    margin: 0;
}

.infra-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.infra-arrow {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    font-size: 28px;
    color: #b98529;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.infra-arrow:hover {
    transform: scale(1.1);
    background: var(--primary-light);
    box-shadow: 0 6px 20px rgba(21, 128, 61, 0.12);
}

.infra-dots {
    display: flex;
    align-items: center;
    gap: 12px;
}

.infra-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d8c58e;
    opacity: 0.6;
    transition: var(--transition);
}

.infra-dot.active {
    width: 16px;
    height: 16px;
    background: #b98529;
    opacity: 1;
}

    /* ============================================================ */
    /* =============== HOD SECTION STYLES ========================== */
    /* ============================================================ */

    /* ----- section is now the full-width container/card ----- */
    .hod-section {
        display: flex;
        align-items: center;
        gap: 60px;

        /* full-width card styling */
        background: var(--primary-dark);
        padding: 50px 60px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
        border-radius: 0;               /* flush edges – full width */

        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

        /* ensure it spans the full viewport width */
        width: 100%;
        box-sizing: border-box;
    }

    /* ===== LEFT SIDE ===== */
    .hod-left {
        flex: 0 0 320px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;                    /* keeps everything contained */
        background: rgba(0, 0, 0, 0.15);     /* subtle dark base */
    }

   .college-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: url('../../images/new.png') center center/contain no-repeat;
    opacity: 0.15;                       /* subtle watermark – adjust to your liking */
    pointer-events: none;                /* allows clicking through to the image */
    
}

 .hod-person {
    width: 100%;
    border-radius: 30px;
    object-fit: cover;
    z-index: 1; 
}

    

    /* ===== RIGHT SIDE ===== */
    .hod-right {
        flex: 1;
        position: relative;
        padding-left: 10px;
    }

    .big-quote {
        font-size: 50px;
        line-height: 0.7;
        font-weight: 700;
        color: #f8f8f8;
        opacity: 0.12;
        margin-bottom: -8px;
        font-family: Georgia, 'Times New Roman', serif;
        user-select: none;
    }

    .hod-right p {
        font-size: 18px;
        line-height: 1.75;
        color: #ffffff;
        margin-bottom: 16px;
        font-weight: 400;
        letter-spacing: 0.01em;
        text-align: justify;
    }

    .hod-right p:last-of-type {
        margin-bottom: 24px;
    }

    /* ===== HOD INFO ===== */
    .hod-info {
        margin-top: 8px;
        border-top: 2px solid #e2e8f0;
        padding-top: 20px;
    }

    .hod-info h3 {
        font-size: 22px;
        font-weight: 700;
        color: #ffffff;
        margin: 0 0 2px 0;
        letter-spacing: 0.5px;
    }

    .hod-info h5 {
        font-size: 16px;
        font-weight: 500;
        color: #ffffff;
        margin: 0;
        letter-spacing: 0.3px;
    }



/* =========================================================
   STORIES & AWARDS – ENHANCED
   ========================================================= */
.stories-section,
.awards-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--primary-dark);
    text-align: center;
}

.stories-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.story-tab {
    border: none;
    background: transparent;
    border-bottom: 2px solid var(--border);
    padding: 12px 24px;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    cursor: pointer;
}

.story-tab.active,
.story-tab:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.stories-grid,
.awards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
}

.story-card,
.award-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.story-card:hover,
.award-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.story-card img,
.award-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.story-card:hover img,
.award-card:hover img {
    transform: scale(1.04);
}

.story-overlay,
.award-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.05));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.story-overlay h3,
.award-overlay h3 {
    color: var(--white);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    margin-bottom: 4px;
}

.story-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

/* =========================================================
   APPLY SECTION – ENHANCED
   ========================================================= */
.apply-section {
    padding: 80px 0 90px;
    background: var(--bg);
}

.apply-title {
    text-align: center;
    margin-bottom: 60px;
}

.apply-title h2 {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.apply-title p {
    font-size: clamp(17px, 1.2vw, 22px);
    color: var(--light-text);
}

/* Hide zigzag on all devices – cleaner */
.apply-journey-line,
.journey-dot,
.zigzag-line {
    display: none !important;
}

.apply-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.apply-step {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 32px 20px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.apply-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.step-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
}

.step-icon i {
    font-size: clamp(36px, 3.5vw, 48px);
    color: var(--primary);
    margin-bottom: 12px;
}

.apply-step h4 {
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.apply-btn-wrap {
    text-align: center;
    margin-top: 50px;
    padding: 0 16px;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 18px 44px;
    border-radius: var(--radius-sm);
    font-size: clamp(17px, 1.2vw, 22px);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 12px 30px rgba(21, 128, 61, 0.25);
}

.apply-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(21, 128, 61, 0.35);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS 
   ========================================================= */

/* ---------- TABLETS (≥768px) ---------- */
@media (min-width: 768px) {
    .overview-wrapper {
        grid-template-columns: 1.25fr 0.9fr;
        gap: 50px;
        padding: 0 32px;
    }

    .outline-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        padding: 0 20px;
    }

    .fees-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .outcomes-list {
        grid-template-columns: 1fr 1fr;
        gap: 12px 40px;
        padding: 0 24px;
    }

    .career-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 40px;
        padding: 0 24px;
    }

    .stories-grid,
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .apply-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 20px;
    }


    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hod-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 50px;
        padding: 0 32px;
    }

    .hod-person {
        max-width: 100%;
    }

    .big-quote {
        font-size: 100px;
    }
}

/* ---------- DESKTOPS (≥992px) ---------- */
@media (min-width: 992px) {
    .overview-wrapper {
        gap: 70px;
        padding: 0 40px;
    }

    .outline-grid {
        gap: 90px;
        padding: 0 30px;
    }

    .fees-grid {
        gap: 42px;
        padding: 0 30px;
    }

    .outcomes-list {
        gap: 12px 60px;
        padding: 0 30px;
    }

    .career-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 60px;
        padding: 0 30px;
    }

    .stories-grid,
    .awards-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 30px;
    }

    .apply-steps {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
        padding: 0 30px;
    }

    .fee-row {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
    }

    .fee-col {
        border-bottom: none;
        border-right: 1px solid var(--border);
        text-align: center !important;
        justify-content: center !important;
    }

    .fee-col:first-child {
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .fee-col:last-child {
        border-right: none;
    }

    .infra-item {
        min-width: 220px;
    }

    .infra-icon-wrap {
        width: 140px;
        height: 140px;
    }

    .infra-shape {
        width: 110px;
        height: 110px;
    }

    .infra-icon {
        width: 140px;
        height: 140px;
    }

    .infra-icon i {
        font-size: 74px;
    }

    .story-card img,
    .award-card img {
        height: 380px;
    }
}

/* ---------- LARGE DESKTOPS (≥1200px) ---------- */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        padding: 0 40px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ---------- MOBILE SAFETY (≤767px) ---------- */
@media (max-width: 767px) {
    .fee-row {
        grid-template-columns: 1fr !important;
    }

    .fee-col {
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        text-align: left !important;
        justify-content: flex-start !important;
        padding: 14px 18px !important;
    }

    .fee-col:last-child {
        border-bottom: none !important;
    }

    .stories-tabs {
        gap: 8px;
    }

    .story-tab {
        padding: 10px 16px;
        font-size: 14px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .story-card img,
    .award-card img {
        height: 220px;
    }

    .apply-step {
        padding: 28px 16px 20px;
    }

    .big-quote {
        font-size: 60px;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .hero-card {
        padding: 32px 24px;
        backdrop-filter: blur(8px);
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-apply-modern,
    .btn-explore-modern {
        justify-content: center;
        width: 100%;
    }
    .floating-apply-shield {
        right: 20px;
        bottom: 20px;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 40px;
        gap: 12px;
    }
    .floating-apply-shield i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-card {
        padding: 24px 18px;
    }
    .hero-title-modern {
        font-size: 28px;
    }
    .hero-tagline-modern {
        font-size: 16px;
    }
}


/* =========================================================
   EXTRA: PRINT STYLES
   ========================================================= */
@media print {
    .department-shield-btn,
    .infra-controls,
    .semester-tabs {
        display: none !important;
    }
}


/* =========================================================
   RESTORED: ZIGZAG LINE (visible on desktop/tablet)
   ========================================================= */
.apply-journey-line,
.journey-dot,
.zigzag-line {
    display: block; /* visible by default */
}

/* Hide zigzag only on mobile */
@media (max-width: 767px) {
    .apply-journey-line,
    .journey-dot,
    .zigzag-line {
        display: none !important;
    }
}

/* Ensure the zigzag SVG is positioned correctly */
.zigzag-line {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    height: 250px;
    z-index: 1;
    pointer-events: none;
}

.apply-steps-wrapper {
    position: relative;
    padding-top: 30px;
}