/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: Arial, sans-serif;
    background: #e9edf6;
    color: #1e1e1e;
}

/* GLOBAL */
a { text-decoration: none; color: inherit; }

img {
    width: 100%;
    display: block;
}

/* PAGE LAYOUT */
.page-bg {
    min-height: 100vh;
    padding: 14px;
}

.site-shell {
    max-width: 1250px;
    margin: 0 auto;
}

.main-card {
    background: #fff;
    padding: 14px;
}

/* HEADER */
.topbar {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f7a526;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu {
    display: flex;
    gap: 22px;
    font-size: 14px;
}

.top-actions {
    display: flex;
}

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-dark { background: #111; color: #fff; }
.btn-orange { background: #f7a526; color: #fff; }
.btn-light { background: #edf0f4; color: #222; }

/* SECTION */
.section {
    padding: 60px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.section-header h3 { font-size: 28px; }

.section-header p {
    color: #6b7280;
    font-size: 14px;
}

/* HERO */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.hero-box {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 14px;
}

.hero-box h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.hero-box p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-image img {
    min-height: 240px;
    object-fit: cover;
}

/* CARDS */
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-card,
.contact-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.about-card h4,
.contact-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.about-card p,
.contact-card p {
    color: #6b7280;
    font-size: 14px;
}

/* COURSES */
.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.course-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

/* IMAGE + OVERLAY */
.course-image {
    position: relative;
    aspect-ratio: 16 / 8;
    overflow: hidden;
}

.course-image img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover img {
    transform: scale(1.05);
}

/* OVERLAY */
.course-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
}

/* TEXT */
.course-overlay-text {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    color: #fff;
    z-index: 2;
}

.level-tag {
    background: #f7a526;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
}

.course-overlay-text h4 {
    font-size: 18px;
    font-weight: 800;
}

/* BODY */
.course-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    margin-top: auto;
}

.course-price {
    font-size: 22px;
    font-weight: 800;
    margin: 14px 0;
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* FOOTER */
.footer {
    margin-top: 30px;
    background: #111;
    color: #fff;
    padding: 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* TABLET */
@media (min-width: 700px) {

    .hero-grid { grid-template-columns: 1fr 1fr; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* DESKTOP */
@media (min-width: 1100px) {

    .courses-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: repeat(3, 1fr); }

    .hero-box h1 { font-size: 42px; }
}

/* MOBILE NAV */
@media (max-width: 768px) {

    .topbar { display: block; }

    .mobile-toggle {
        display: block;
        position: absolute;
        top: 14px;
        right: 14px;
    }

    .menu {
        display: none;
        flex-direction: column;
        margin-top: 14px;
        border: 1px solid #e5e7eb;
        background: #fff;
    }

    .menu.active { display: flex; }

    .menu a {
        padding: 14px;
        border-bottom: 1px solid #eee;
    }

    .top-actions { margin-top: 12px; }

    .top-actions .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; }
}