/* =========================================================
   SMCEC — STABLE PROFESSIONAL BLUE + GOLD THEME
   FINAL CLEAN VERSION (NO BREAKS)
   ========================================================= */

/* -------------------- RESET -------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #f4f8ff;
    color: #14213d;
    line-height: 1.6;
}

/* -------------------- PAGE WRAPPER -------------------- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* -------------------- HEADER -------------------- */
.header {
    width: 100%;
    padding: 18px 25px;
    background: #eaf3ff;
    border-bottom: 1px solid #d6e7ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 55px;
    border-radius: 8px;
}

.header-left h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #003366;
}

.header nav a {
    margin-left: 16px;
    text-decoration: none;
    font-weight: 600;
    color: #003d8f;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.25s;
}

.header nav a:hover {
    background: #d8e9ff;
}

.header nav a.active {
    background: #d4a017;
    color: white;
}

/* -------------------- BUTTONS -------------------- */
.btn,
.btn-outline {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: 0.25s ease;
}

.btn {
    background: #0a1a33;
    color: white;
    border: 2px solid #d4a017;
}

.btn-outline {
    background: transparent;
    color: #0a1a33;
    border: 2px solid #d4a017;
}

.btn:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px #d4a01755;
}

/* -------------------- HOME -------------------- */
.home-hero {
    text-align: center;
    padding: 60px 20px 80px;
}

.home-logo {
    width: 260px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.home-title {
    font-size: 2rem;
    color: #003366;
    margin-bottom: 8px;
}

.home-tagline {
    color: #4a6280;
    margin-bottom: 25px;
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

/* -------------------- COURSES PAGE -------------------- */
.courses-page {
    text-align: center;
    padding: 40px 20px 80px;
    flex: 1;
}

.page-title {
    font-size: 2rem;
    color: #003366;
}

.page-subtitle {
    color: #5b6e8c;
    margin-bottom: 25px;
}

.courses-wrapper {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.course-box {
    background: white;
    padding: 25px;
    border-radius: 14px;
    text-decoration: none;
    color: #003366;
    border: 1px solid #dfeaff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.course-box:hover {
    transform: translateY(-8px);
    border-color: #d4a017;
}

.course-box .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* -------------------- COURSE DETAIL -------------------- */
.course-detail {
    max-width: 820px;
    margin: 40px auto 80px;
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.course-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #003366;
}

.info-box {
    background: #fff9e6;
    padding: 18px 20px;
    border-left: 5px solid #d4a017;
    border-radius: 12px;
    margin-bottom: 25px;
    max-width: 620px;
}
.detail-buttons {
    display: flex;
    justify-content: center;   
    gap: 20px;                 
    margin-top: 30px;
}
/* -------------------- TOPICS -------------------- */
.topics-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 10px;
}

.topics-list {
    padding-left: 22px;
    margin-bottom: 25px;
}

.topics-list li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #4a6280;
}

/* -------------------- REGISTER PAGE -------------------- */
.form-container {
    max-width: 1000px;
    margin: 30px auto 120px;
    padding: 20px 20px;
    flex: 1;
}

.form-top-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.registration-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #dfeaff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.form-title {
    text-align: center;
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1.6px solid #cfdfff;
    background: #f9fbff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a017;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 100px; /* GAP BETWEEN REGISTER & CLEAR */
    margin-top: 30px;
}

/* -------------------- FOOTER -------------------- */
.footer {
    padding: 20px;
    background: #e6f0ff;
    text-align: center;
    font-weight: 600;
    color: #003366;
}

/* -------------------- MOBILE -------------------- */
@media (max-width: 600px) {

    /* Header */
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Home page buttons */
    .home-buttons {
        gap: 30px;   /* wider looks better on mobile */
    }

    /* Register page buttons */
    .form-actions {
        gap: 18px;   /* clean & controlled */
    }

    /* Logo size */
    .home-logo {
        width: 220px;
    }

    /* Buttons – smaller & clean on mobile */
    .btn,
    .btn-outline {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 8px;
        white-space: nowrap;
    }

}
