/* --- GLOBAL RESET & PREMIUM CANVAS LAYOUT --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc; /* Professional soft canvas background */
    color: #1e293b;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- LANDING PAGE SPLIT CONTAINER --- */
.split-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
    width: 100%;
}

.left-pane {
    padding: 60px 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background-color: #ffffff; /* Crisp white for primary copy */
}

.left-pane::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.logo {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: #0f172a;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.logo span { color: #2563eb; }
.logo sup { font-size: 10px; color: #94a3b8; font-weight: 500; }

.content-wrap {
    margin: auto 0;
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    background-color: #eff6ff;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
}

.headline {
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #0f172a;
}

.headline span { color: #2563eb; }

.subtext {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 36px;
}

.cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- GLOBAL BUTTONS --- */
.btn {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    display: inline-block;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.footer-note { font-size: 13px; color: #94a3b8; font-weight: 500; }

.right-pane {
    background-color: #f8fafc;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    border-radius: 24px;
    background: url('https://images.unsplash.com/photo-1531538606174-0f90ff5dce83?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 8px solid #ffffff;
}

/* --- GLOBAL SUBPAGE WRAPPER --- */
.subpage-header {
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.page-main {
    padding: 50px 5%;
    background-color: #f8fafc;
}

.section-intro {
    max-width: 650px;
    margin-bottom: 35px;
}

.section-intro h1 {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 12px;
}

.section-intro h1 span { color: #2563eb; }
.section-intro p { font-size: 16px; color: #64748b; line-height: 1.5; }

/* --- UNIFIED SINGLE-LINE TOOLBAR ARCHITECTURE --- */
.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.toolbar-left-mix {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    min-width: 300px;
    max-width: 400px;
    flex-grow: 1;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
    background: #ffffff;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f1f5f9;
    border: 1px solid transparent;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.filter-btn.active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
}

/* --- FLOATING GRADUATION CERTIFICATION BADGE --- */
.floating-cert-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 10px 18px;
    border-radius: 12px;
    animation: floatingEffect 3s ease-in-out infinite;
}

.floating-cert-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.floating-cert-badge span {
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
    white-space: nowrap;
}

@keyframes floatingEffect {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* --- RESPONSE CARDS GRID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.student-card {
    background: #ffffff; /* Crisp white card popping off soft background canvas */
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
    border-color: #cbd5e1;
}

.card-image-wrap {
    position: relative;
    height: 190px;
    width: 100%;
    background-color: #e2e8f0;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    color: #ffffff;
    background: #0f172a;
    z-index: 2;
}

.card-badge.premium { background: #2563eb; }
.card-badge.trending { background: #f43f5e; }
.card-badge.high-pay { background: #10b981; }

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
}

.price { font-weight: 700; color: #2563eb; font-size: 16px; }
.duration { color: #64748b; font-weight: 500; }
.desc { font-size: 14px; color: #475569; line-height: 1.5; margin-bottom: 24px; flex-grow: 1; }

.enroll-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.enroll-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .split-container { grid-template-columns: 1fr; }
    .left-pane { padding: 50px 30px; min-height: 60vh; }
    .content-wrap { margin: 40px 0; }
    .right-pane { min-height: 50vh; padding: 20px 30px 40px 30px; }
    .image-frame { max-height: 50vh; }
    .subpage-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .toolbar-row { flex-direction: column; align-items: stretch; }
    .toolbar-left-mix { flex-direction: column; align-items: stretch; }
    .search-container { max-width: 100%; min-width: 100%; }
}