/* ─── Charis Digital – Global Stylesheet ─── */

/* Google Fonts loaded in HTML; ensure Material Symbols work */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
.icon-filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ─── Navigation ─── */
.nav-link-active {
    border-bottom: 2px solid #ff642d;
    color: #ad3300;
    font-weight: 700;
}

/* ─── Footer contact items ─── */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.footer-contact-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #ffb59e;
}
.footer-contact-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.footer-contact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(216, 226, 255, 0.72);
}
.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.45rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.footer-contact-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffdbd0;
    transform: translateY(-1px);
}

/* ─── Brand header responsive ─── */
.header-brand { min-width: 0; }
.header-brand-title,
.header-brand-rc,
.header-enroll-btn { white-space: nowrap; }

@media (max-width: 640px) {
    .header-row { flex-wrap: nowrap; gap: 0.5rem; }
    .header-brand { gap: 0.35rem; }
    .header-brand img { width: 2.75rem; height: 2.75rem; flex-shrink: 0; }
    .header-brand-title {
        font-size: clamp(0.72rem, 3.6vw, 0.98rem) !important;
        line-height: 1 !important;
        letter-spacing: -0.04em;
    }
    .header-brand-rc {
        font-size: clamp(0.43rem, 1.8vw, 0.56rem) !important;
        line-height: 1;
        margin-top: 0.1rem !important;
    }
    .header-enroll-btn {
        padding: 0.45rem 0.65rem !important;
        font-size: clamp(0.62rem, 2.8vw, 0.78rem) !important;
        line-height: 1;
        flex-shrink: 0;
    }
}

/* ─── Bento card hover ─── */
.bento-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,16,49,0.12);
}

/* ─── Course card grid ─── */
.course-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ─── Custom scrollbar ─── */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #c4c6d1; border-radius: 10px; }

/* ─── Modal (courses page) ─── */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,16,49,0.55);
    animation: fadeIn 0.25s ease-in-out;
}
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    max-width: 560px;
    width: 92%;
    box-shadow: 0 20px 60px rgba(0,16,49,0.18);
    animation: slideUp 0.3s ease-out;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-header {
    font-size: 22px;
    font-weight: 800;
    color: #001031;
    margin-bottom: 6px;
    font-family: 'Hanken Grotesk', sans-serif;
}
.modal-price-badge {
    display: inline-block;
    background: #ff642d;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.modal-description {
    font-size: 14px;
    line-height: 22px;
    color: #444650;
    margin-bottom: 20px;
}
.modal-syllabus-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #747781;
    margin-bottom: 8px;
}
.modal-syllabus-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-syllabus-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #1b1c1c;
    line-height: 1.5;
}
.modal-syllabus-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff642d;
    flex-shrink: 0;
    margin-top: 6px;
}
.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-btn-primary { background: #ff642d; color: white; }
.modal-btn-primary:hover { background: #e55a23; transform: translateY(-2px); }
.modal-btn-enroll { background: #001031; color: white; }
.modal-btn-enroll:hover { background: #00235b; transform: translateY(-2px); }
.modal-btn-secondary { background: #eae8e7; color: #1b1c1c; }
.modal-btn-secondary:hover { background: #d4d2d1; }

/* ─── Careers success modal ─── */
.career-success-modal .modal-content {
    border: 1px solid rgba(255, 100, 45, 0.18);
    background:
        radial-gradient(circle at top, rgba(255, 100, 45, 0.08), transparent 48%),
        linear-gradient(180deg, #ffffff 0%, #fff8f5 100%);
}
.career-success-modal__icon {
    background: linear-gradient(135deg, #d9e2ff 0%, #ffdbd0 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 16, 49, 0.05);
}
.career-success-modal__icon-mark {
    color: #001031;
}
.career-success-modal__title {
    font-size: 24px;
    margin-bottom: 8px;
}
.career-success-modal__text {
    margin-bottom: 24px;
}
.career-success-modal__actions {
    gap: 12px;
}
.career-success-modal__close {
    background: #eae8e7;
    color: #1b1c1c;
}
.career-success-modal__close:hover {
    background: #d4d2d1;
}
.career-success-modal__courses {
    background: #001031;
    color: #ffffff;
}
.career-success-modal__courses:hover {
    background: #00235b;
}

/* ─── Animations ─── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,100,45,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255,100,45,0); }
}

/* ─── Hero Carousel ─── */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slides {
    width: 100%;
}
.hero-slide {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}
.hero-slide[data-active="true"] {
    display: block;
}
.carousel-controls {
    z-index: 10;
}
.carousel-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    margin: 0 4px;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
    flex-shrink: 0;
}
.carousel-bullet.active {
    background: #ff642d;
    transform: scale(1.25);
    width: 24px;
    border-radius: 5px;
}
.carousel-nav {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}
.carousel-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* ─── Hero image helpers ─── */
.hero-image { object-position: 50% 40%; }
.hero-image-gradient {
    z-index: 5;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* ─── Category filter buttons ─── */
.category-btn { transition: all 0.2s ease; border-radius: 8px; }
.category-btn.active {
    background: #001031;
    color: white;
    font-weight: 700;
}

/* ─── Upload drop zone ─── */
.upload-zone {
    border: 2px dashed #c4c6d1;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f5f3f3;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: #ff642d;
    background: #fff5f1;
}
.upload-zone.has-file {
    border-color: #001031;
    background: #f0f4ff;
}

/* ─── Careers job card ─── */
.job-card {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,16,49,0.1);
}

/* ─── Step indicator ─── */
.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.step-connector {
    width: 2px;
    background: linear-gradient(180deg, #ff642d 0%, #c4c6d1 100%);
    flex: 1;
    min-height: 32px;
    margin: 0 auto;
}

/* ─── Badge pill ─── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─── Glass card ─── */
.glass-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(196,198,209,0.4);
}

/* ─── Floating WhatsApp button ─── */
.fab-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 60;
    background: #ff642d;
    color: white;
    padding: 14px 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(255,100,45,0.35);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    animation: pulse-glow 2.5s infinite;
}
.fab-whatsapp .fab-label {
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.4s ease, margin 0.4s ease;
    margin-left: 0;
}
.fab-whatsapp:hover {
    padding-right: 22px;
    transform: scale(1.04);
}
.fab-whatsapp:hover .fab-label {
    max-width: 200px;
    margin-left: 8px;
}

/* ─── Section divider accent ─── */
.accent-line {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #ff642d, #ad3300);
    border-radius: 2px;
    margin-bottom: 16px;
}

/* ─── Enrollment progress steps ─── */
.enroll-step-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
}
.enroll-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}
.enroll-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #c4c6d1;
    z-index: 0;
}
.enroll-step-item.done::after { background: #ff642d; }
.enroll-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eae8e7;
    color: #747781;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}
.enroll-step-item.active .enroll-step-num { background: #ff642d; color: white; }
.enroll-step-item.done .enroll-step-num { background: #001031; color: white; }
.enroll-step-label { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #747781; text-align: center; }
.enroll-step-item.active .enroll-step-label { color: #ff642d; }
.enroll-step-item.done .enroll-step-label { color: #001031; }

/* ─── Enrollment wizard slider ─── */
.enroll-wizard { position: relative; overflow: hidden; }
.enroll-step-panel {
    display: none;
    animation: slideInRight 0.35s ease-out;
}
.enroll-step-panel.active { display: block; }
.enroll-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #c4c6d1;
}
.enroll-wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.enroll-wizard-btn--back {
    background: #eae8e7;
    color: #1b1c1c;
}
.enroll-wizard-btn--back:hover { background: #d4d2d1; }
.enroll-wizard-btn--next,
.enroll-wizard-btn--submit {
    background: #ff642d;
    color: white;
    margin-left: auto;
}
.enroll-wizard-btn--next:hover,
.enroll-wizard-btn--submit:hover { background: #e55a23; transform: translateY(-1px); }
.enroll-wizard-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ─── Network error banner ─── */
.network-error-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 16px;
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    animation: slideDown 0.35s ease-out;
}
.network-error-banner.hidden { display: none; }
.network-error-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.network-error-banner__icon {
    color: #fecaca;
    font-size: 24px;
    flex-shrink: 0;
}
.network-error-banner__text {
    flex: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.network-error-banner__close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.network-error-banner__close:hover { background: rgba(255, 255, 255, 0.25); }
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
