/* ==============================
   BRAND VARIABLES
============================== */
:root {
    --devroots-red: #e63946;
    --devroots-red-dark: #c81e1e;
    --bg-light: #f4f4f6;
    --text-dark: #333;
}

/* ==============================
   RESET & BASE
============================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.65;
}

.course-header h1,
.course-header h2,
.course-container h2 {
    margin-top: 0;
}

/* ==============================
   HERO HEADER
============================== */
.course-header {
    background: linear-gradient(135deg, var(--devroots-red), var(--devroots-red-dark));
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

.course-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* ==============================
   CONTAINER
============================== */
.course-container {
    max-width: 1050px;
    margin: 1px auto 50px;
    padding: 0 15px;
}

/* ==============================
   DESCRIPTION
============================== */
.course-description {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    margin-top: 50px;
    margin-bottom: 30px;
}

/* ==============================
   QUICK FACTS
============================== */
.course-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.fact-card {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    text-align: center;
}

.fact-card h4 {
    margin: 0 0 6px;
    color: var(--devroots-red-dark);
    font-size: 0.95rem;
}

.fact-card p {
    margin: 0;
    color: #444;
    font-size: 0.9rem;
}

/* ==============================
   DETAILS GRID
============================== */
.course-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ==============================
   DETAIL CARDS
============================== */
.details-card {
    background: #fff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.details-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

.details-card h2 {
    margin-bottom: 16px;
    color: var(--devroots-red-dark);
}

/* ==============================
   TABLES
============================== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

th, td {
    padding: 11px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background: var(--devroots-red);
    color: #fff;
    font-weight: 500;
}

table tr:nth-child(even) {
    background: #fafafa;
}

tr:hover {
    background: #ffeaea;
}

/* ==============================
   PAYMENTS BOX
============================== */
.payments-box {
    position: relative;
    margin-top: 26px;
    padding: 24px 18px 20px;
    border: 2px solid var(--devroots-red);
    border-radius: 16px;
    text-align: center;
}

.payments-legend {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--devroots-red);
}

.payments-logos {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.payments-logos img {
    height: 52px;
    max-width: 90px;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
    background: #fff;
}

.payments-logos img:hover {
    transform: translateY(-3px);
}

/* ==============================
   APPLY BUTTON
============================== */
.apply-button-container {
    margin-top: 42px;
    text-align: center;
}

.apply-btn {
    background: linear-gradient(135deg, var(--devroots-red), var(--devroots-red-dark));
    color: #fff;
    padding: 16px 42px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 12px 28px rgba(230,57,70,0.35);
    transition: transform 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-4px);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
    .course-details {
        grid-template-columns: 1fr;
    }

    .course-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .course-header h1 {
        font-size: 1.7rem;
    }

    .course-facts {
        grid-template-columns: 1fr;
    }
}
