/* GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --accent: #0ea5e9;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding-bottom: 100px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    padding: 80px 0 60px 0;
}

.badge {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* COURSE GRID LAYOUT */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.course-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.course-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.course-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.fee {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.fee span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 10px;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.w-100 { width: 100%; }

/* MODALS (READ MORE & APPLY) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-card);
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.small-modal { max-width: 450px; }

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SYLLABUS DETAIL DISPLAY FORMATTING */
.modal-body h2 { margin-bottom: 10px; font-weight: 800; }
.modal-body .modal-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 25px; }
.modal-body h4 { font-size: 1.05rem; margin-top: 20px; margin-bottom: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px;}
.modal-body ul { list-style-position: inside; margin-bottom: 20px; color: var(--text-muted); line-height: 1.7; }
.modal-body p { color: var(--text-muted); line-height: 1.6; }

/* FORM CONTROL COMPONENTS */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}
.form-group input:focus {
    border-color: var(--primary);
}

/* RESPONSIVE RENDERING STRUCTURES */
@media(max-width: 768px) {
    .hero-section h1 { font-size: 2.2rem; }
    .courses-grid { grid-template-columns: 1fr; }
    .modal-box { padding: 25px; }
}