/* ============================================
   ROLOF IMT – ADMISSION PAGE STYLESHEET
   admission.css — extends style2.css, about.css, programmes.css
   ============================================ */

/* ============================================
   ADMISSION HERO
   ============================================ */
.admission-hero {
    background-image: linear-gradient(rgba(4, 43, 107, 0.82), rgba(4, 43, 107, 0.70)),
                      url('../images/campus.png');
    min-height: 190px;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hql-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hql-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.hql-gold {
    background: var(--accent-color) !important;
    color: #333 !important;
    border-color: var(--accent-color) !important;
}

.hql-gold:hover {
    background: #e0a800 !important;
    border-color: #e0a800 !important;
    color: #333 !important;
}

/* ============================================
   OVERVIEW STATS
   ============================================ */
.adm-overview-section {
    background: var(--bg-white);
    margin-top: 0;
}

.adm-stat-card {
    background: #f5f7fb;
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.adm-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent-color);
    background: #fff;
}

.adm-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}

.adm-stat-card:hover .adm-stat-icon {
    background: linear-gradient(135deg, var(--accent-color), #e0a800);
    color: #333;
}

.adm-stat-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.adm-stat-card p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   GENERAL REQUIREMENTS
   ============================================ */
.gen-req-section {
    background: #f5f7fb;
}

.req-card {
    border-radius: 16px;
    padding: 32px 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.req-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.req-blue {
    background: linear-gradient(160deg, #eef3ff, #fff);
    border-left: 5px solid var(--primary-color);
}

.req-gold {
    background: linear-gradient(160deg, #fffbee, #fff);
    border-left: 5px solid var(--accent-color);
}

.req-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ecf4;
}

.req-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.req-blue .req-icon { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); }
.req-gold .req-icon { background: linear-gradient(135deg, var(--accent-color), #e0a800); color: #333; }

.req-card-header h5 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.req-card-header span {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

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

.req-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.req-num {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gold-num {
    background: var(--accent-color);
    color: #333;
}

.req-list li div strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.req-list li div p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.req-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(232,168,32,0.1);
    border: 1px solid rgba(232,168,32,0.3);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #7a5400;
    line-height: 1.6;
}

.req-note i {
    color: var(--accent-color);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================
   REQUIREMENTS BY PROGRAMME
   ============================================ */
.prog-req-section {
    background: #fff;
}

.prog-req-card {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.prog-req-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.prc-header {
    padding: 28px 26px 22px;
    color: #fff;
    text-align: center;
}

.prc-blue .prc-header   { background: linear-gradient(135deg, #0b5ed7, #042b6b); }
.prc-green .prc-header  { background: linear-gradient(135deg, #198754, #146c43); }
.prc-orange .prc-header { background: linear-gradient(135deg, #fd7e14, #c05c00); }

.prc-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

.prc-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}

.prc-header h4 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.prc-body {
    padding: 24px 26px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prc-body h6 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
}

.prc-body h6 i { color: var(--primary-color); }

.prc-subject-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.prc-subject-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.prc-subject-list li i {
    color: var(--secondary-color);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.prc-divider {
    height: 1px;
    background: #edf0f7;
    margin: 4px 0;
}

.prc-extra-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.prc-extra-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.prc-extra-list li i {
    color: var(--primary-color);
    font-size: 10px;
    flex-shrink: 0;
}

.prc-footer {
    padding: 16px 26px 24px;
    background: #fff;
}

.btn-prc-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary-dark);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-prc-apply:hover {
    background: var(--accent-color);
    color: #333;
    gap: 12px;
}

/* ============================================
   HOW TO APPLY — STEPS
   ============================================ */
.how-to-apply-section {
    background: #f5f7fb;
}

.adm-intro-text {
    font-size: 15px;
    color: var(--text-light);
    max-width: 620px;
    margin: 14px auto 0;
    line-height: 1.8;
}

.steps-wrapper {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Vertical spine */
.steps-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    border-radius: 2px;
}

.step-row {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 36px);
    padding-bottom: 28px;
    position: relative;
}

.step-row.reverse {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 36px);
}

.step-block {
    background: #fff;
    border-radius: 16px;
    padding: 24px 26px;
    width: 100%;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.step-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Pointer arrow toward spine */
.step-row .step-block::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 24px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 14px solid #fff;
}

.step-row.reverse .step-block::after {
    left: -14px;
    right: auto;
    border-left: none;
    border-right: 14px solid #fff;
}

/* Step number bubble on spine */
.step-num {
    position: absolute;
    right: -72px;
    top: 16px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 2;
}

.step-row.reverse .step-num {
    right: auto;
    left: -72px;
}

/* Step colors */
.step-blue   .step-num { background: var(--primary-color); }
.step-green  .step-num { background: var(--secondary-color); }
.step-orange .step-num { background: #fd7e14; }
.step-purple .step-num { background: #6f42c1; }
.step-teal   .step-num { background: #0d9488; }
.step-gold   .step-num { background: var(--accent-color); color: #333; }

/* Left border color per step */
.step-blue   { border-left: 4px solid var(--primary-color); }
.step-green  { border-left: 4px solid var(--secondary-color); }
.step-orange { border-left: 4px solid #fd7e14; }
.step-purple { border-left: 4px solid #6f42c1; }
.step-teal   { border-left: 4px solid #0d9488; }
.step-gold   { border-left: 4px solid var(--accent-color); }

.step-row.reverse .step-block {
    border-left: none;
}

.step-row.reverse .step-blue   { border-right: 4px solid var(--primary-color); }
.step-row.reverse .step-green  { border-right: 4px solid var(--secondary-color); }
.step-row.reverse .step-orange { border-right: 4px solid #fd7e14; }
.step-row.reverse .step-purple { border-right: 4px solid #6f42c1; }
.step-row.reverse .step-teal   { border-right: 4px solid #0d9488; }
.step-row.reverse .step-gold   { border-right: 4px solid var(--accent-color); }

/* Step icon */
.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
}

.step-blue   .step-icon { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); }
.step-green  .step-icon { background: linear-gradient(135deg, var(--secondary-color), #146c43); }
.step-orange .step-icon { background: linear-gradient(135deg, #fd7e14, #c05c00); }
.step-purple .step-icon { background: linear-gradient(135deg, #6f42c1, #59359e); }
.step-teal   .step-icon { background: linear-gradient(135deg, #0d9488, #0a7a70); }
.step-gold   .step-icon { background: linear-gradient(135deg, var(--accent-color), #e0a800); color: #333; }

.step-block h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-block p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* Final step special */
.final-step {
    background: linear-gradient(160deg, #fffbee, #fff);
}

.final-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-color);
    color: #333;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-top: 12px;
}

.final-badge i { font-size: 11px; }

/* Connector lines (decorative, hidden on mobile) */
.step-connector-left,
.step-connector-right { display: none; }

/* ============================================
   APPLY NOW SECTION
   ============================================ */
.apply-now-section {
    background: #fff;
}

.apply-contact-box {
    background: #f5f7fb;
    border-radius: 14px;
    padding: 24px 22px;
    border-left: 4px solid var(--primary-color);
}

.apply-contact-box h6 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.apply-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apply-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.apply-contact-list li i {
    color: var(--primary-color);
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.apply-docs-needed {
    background: #f5f7fb;
    border-radius: 14px;
    padding: 20px 22px;
}

.apply-docs-needed h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

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

.doc-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #d0d8f0;
    transition: all 0.25s ease;
}

.doc-tags span:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.doc-tags span i {
    font-size: 11px;
    color: var(--primary-color);
    transition: color 0.25s ease;
}

.doc-tags span:hover i { color: #fff; }

/* Apply form card */
.apply-form-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid #e8ecf4;
}

.apply-form-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 24px 30px;
    color: #fff;
}

.apply-form-header h5 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}

.apply-form-header p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

.apply-form-body {
    padding: 28px 30px;
}

.adm-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}

.adm-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.req-star {
    color: #dc3545;
    margin-left: 2px;
}

.adm-form-group input,
.adm-form-group select,
.adm-form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid #dee2f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: #f8f9fc;
    transition: all 0.3s ease;
    outline: none;
    resize: none;
    appearance: none;
    -webkit-appearance: none;
}

.adm-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.adm-form-group input:focus,
.adm-form-group select:focus,
.adm-form-group textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

.adm-form-group input::placeholder,
.adm-form-group textarea::placeholder {
    color: #aab0c4;
}

.btn-submit-app {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-app:hover {
    background: linear-gradient(135deg, var(--accent-color), #e0a800);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 94, 215, 0.3);
}

/* ============================================
   UPLOAD SECTION
   ============================================ */
.upload-section {
    background: #f5f7fb;
}

.upload-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    padding: 50px 48px;
    color: #fff;
    box-shadow: 0 16px 48px rgba(4, 43, 107, 0.3);
}

.upload-box h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
}

.upload-box p {
    font-size: 15px;
    opacity: 0.88;
    line-height: 1.75;
    margin-bottom: 20px;
}

.upload-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-tips li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.upload-tips li i {
    color: var(--accent-color);
    font-size: 14px;
    flex-shrink: 0;
}

.upload-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* File upload zone */
.file-upload-zone {
    border: 2px dashed #c0c8e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background: #f5f7fb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: var(--primary-color);
    background: #eef3ff;
}

.file-upload-zone i {
    font-size: 36px;
    color: var(--primary-color);
    opacity: 0.8;
}

.file-upload-zone p {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

.file-upload-zone p span {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.file-upload-zone small {
    font-size: 12px;
    color: var(--text-light);
}

/* File preview */
.file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef3ff;
    border: 1.5px solid var(--primary-color);
    border-radius: 10px;
    padding: 12px 16px;
}

.file-preview i {
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.file-preview span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.remove-file:hover {
    background: rgba(220,53,69,0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    /* Collapse timeline to single column */
    .steps-wrapper::before {
        left: 22px;
    }

    .step-row,
    .step-row.reverse {
        padding-right: 0;
        padding-left: 72px;
        justify-content: flex-start;
    }

    .step-num {
        right: auto;
        left: -50px;
    }

    .step-row.reverse .step-num {
        left: -50px;
        right: auto;
    }

    .step-block::after,
    .step-row.reverse .step-block::after {
        right: auto;
        left: -13px;
        border-left: none;
        border-right: 13px solid #fff;
    }

    /* Normalize border sides */
    .step-row .step-blue,
    .step-row .step-green,
    .step-row .step-orange,
    .step-row .step-purple,
    .step-row .step-teal,
    .step-row .step-gold,
    .step-row.reverse .step-blue,
    .step-row.reverse .step-green,
    .step-row.reverse .step-orange,
    .step-row.reverse .step-purple,
    .step-row.reverse .step-teal,
    .step-row.reverse .step-gold {
        border-left: 4px solid;
        border-right: none;
    }

    .step-blue   { border-left-color: var(--primary-color) !important; }
    .step-green  { border-left-color: var(--secondary-color) !important; }
    .step-orange { border-left-color: #fd7e14 !important; }
    .step-purple { border-left-color: #6f42c1 !important; }
    .step-teal   { border-left-color: #0d9488 !important; }
    .step-gold   { border-left-color: var(--accent-color) !important; }

    .upload-box {
        padding: 36px 28px;
    }
}

@media (max-width: 767px) {
    .admission-hero { min-height: 260px; }
    .hero-quick-links { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hql-btn { width: auto; }
    .upload-box { padding: 28px 20px; }
    .apply-form-body { padding: 22px 18px; }
    .apply-form-header { padding: 20px 18px; }

    /* Mobile nav */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 999;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul li a { display: block; padding: 12px 20px; }
    .menu-toggle { display: block; }
}

@media (max-width: 575px) {
    .steps-wrapper::before { display: none; }
    .step-row,
    .step-row.reverse {
        padding-left: 0;
    }
    .step-num { position: static; margin-bottom: 12px; }
    .step-block::after,
    .step-row.reverse .step-block::after { display: none; }
    .step-block { border-left: 4px solid; }
}
