/* Header / Navbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Header / Navbar */
.top-navbar {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--grad-purple);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.brand-text h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.brand-text span {
    font-size: 0.7rem;
    color: var(--brand-accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.login-nav-btn {
    background: var(--text-main);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-nav-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

/* ==========================================
   MOBILE NAVBAR
========================================== */

@media (max-width: 768px) {

    .top-navbar {
        padding: 10px 0;
    }

    .top-navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Brand */
    .brand-logo {
        gap: 8px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 9px;
    }

    .brand-text h2 {
        font-size: 0.88rem;
        letter-spacing: -0.1px;
    }

    .brand-text span {
        font-size: 0.58rem;
        letter-spacing: 0.8px;
    }

    /* Login Button */
    .login-nav-btn {
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.72rem;
        gap: 5px;
        white-space: nowrap;
    }

    .login-nav-btn i {
        font-size: 15px;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .top-navbar {
        padding: 8px 0;
    }

    .top-navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Brand */
    .brand-logo {
        gap: 7px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 8px;
    }

    .brand-text h2 {
        font-size: 0.75rem;
    }

    .brand-text span {
        font-size: 0.48rem;
        letter-spacing: 0.6px;
    }

    /* Login */
    .login-nav-btn {
        padding: 7px 9px;
        font-size: 0.65rem;
        border-radius: 7px;
        gap: 4px;
    }

    .login-nav-btn i {
        font-size: 14px;
    }

}


/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (max-width: 360px) {

    .brand-text h2 {
        font-size: 0.68rem;
    }

    .brand-text span {
        font-size: 0.43rem;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .login-nav-btn {
        padding: 6px 8px;
        font-size: 0.6rem;
    }

}

/* Main Content Container */
.page-content {
    flex: 1;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 30px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0e7ff;
    color: #4338ca;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-title span {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Dynamic Cards Grid */
.card-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
}

.card-purple::before {
    background: var(--grad-purple);
}

.card-emerald::before {
    background: var(--grad-emerald);
}

.card-amber::before {
    background: var(--grad-amber);
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
}

.card-purple .card-icon-wrapper {
    background: #e0e7ff;
    color: #4338ca;
}

.card-emerald .card-icon-wrapper {
    background: #dcfce7;
    color: #059669;
}

.card-amber .card-icon-wrapper {
    background: #fef3c7;
    color: #d97706;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 28px;
}

.btn-card {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    transition: all 0.25s ease;
}

.card-purple .btn-card {
    background: #e0e7ff;
    color: #4338ca;
}

.card-emerald .btn-card {
    background: #dcfce7;
    color: #059669;
}

.card-amber .btn-card {
    background: #fef3c7;
    color: #d97706;
}

.card-purple .btn-card:hover {
    background: #4338ca;
    color: #fff;
}

.card-emerald .btn-card:hover {
    background: #059669;
    color: #fff;
}

.card-amber .btn-card:hover {
    background: #d97706;
    color: #fff;
}

/* Footer */
footer {
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

/* Modal Styles */
.login-modal {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-left {
    background: #ffffff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right {
    position: relative;
    background: #0f172a;
    min-height: 100%;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.login-brand h4 {
    font-weight: 800;
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-main);
}

.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.input-group-custom label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: block;
}

.input-group-custom .form-control {
    height: 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding-left: 44px;
    font-size: 0.95rem;
}

.input-group-custom .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-group-custom .input-icon {
    position: absolute;
    left: 14px;
    bottom: 14px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-group-custom .eye-toggle {
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-submit {
    height: 48px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    width: 100%;
    border: none;
    transition: all 0.25s ease;
}

.btn-submit:hover {
    background: #3730a3;
}

.login-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 991px) {
    .login-left {
        padding: 32px;
    }

    .login-right {
        min-height: 220px;
    }
}


/* school modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.school-modal {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;

    position: relative;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);

    animation: modalOpen 0.25s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #f1f5f9;
    color: #475569;

    font-size: 20px;
    cursor: pointer;
}

.modal-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ede9fe;
    color: #7c3aed;

    border-radius: 16px;

    font-size: 30px;

    margin-bottom: 20px;
}

.school-modal h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #0f172a;
}

.school-modal p {
    margin-bottom: 25px;
    color: #64748b;
    line-height: 1.6;
}

.school-select-wrapper label {
    display: block;
    margin-bottom: 8px;

    font-weight: 600;
    color: #334155;
}

.school-select-wrapper select {
    width: 100%;
    height: 50px;

    padding: 0 14px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #ffffff;

    font-size: 15px;
    color: #334155;

    outline: none;
}

.school-select-wrapper select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.continue-btn {
    width: 100%;
    height: 50px;

    margin-top: 22px;

    border: none;
    border-radius: 10px;

    background: #7c3aed;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.continue-btn:hover {
    background: #6d28d9;
}

@media (max-width: 480px) {

    .school-modal {
        padding: 25px 20px;
    }

}
