﻿/* ================================
   SAFE ROOT (NO CONFLICT)
================================ */
.eu-course {
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
    background:#f4f7fb;
    color:#333;
    line-height:1.6;
    width:100%;
    overflow-x:hidden;
}

/* ONLY box-sizing inherit (NO margin/padding reset) */
.eu-course * {
    box-sizing:border-box;
}

/* ================================
   HERO
================================ */
.eu-course-hero {
    position:relative;
    padding:80px 20px;
    text-align:center;
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    background-size:cover;
    background-position:center;
}

.eu-course-hero::before {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(11,46,87,0.7), rgba(15,120,200,0.7));
}

.eu-course-hero h1,
.eu-course-hero h3 {
    position:relative;
    z-index:2;
}

.eu-course-hero h1 {
    font-size:48px;
    font-weight:800;
    margin-bottom:15px;
}

.eu-course-hero h3 {
    font-size:20px;
    max-width:800px;
}

/* ================================
   LAYOUT
================================ */
.eu-course-main {
    padding:60px 20px;
}

.eu-course-container {
    max-width:1200px;
    margin:auto;
    width:100%;
}

.eu-course-grid {
    display:grid;
    grid-template-columns:minmax(0,360px) 1fr;
    gap:30px;
    width:100%;
}

/* ================================
   LEFT (FORM)
================================ */
.eu-course-left {
    position:sticky;
    top:100px;
    width:100%;
}

/* 🔥 IMPORTANT FIX */
.eu-course-form {
    background:#fff;
    padding:0;   /* FIXED (no double padding) */
    border-radius:12px;
    box-shadow:0 12px 25px rgba(0,0,0,0.08);
    width:100%;
    overflow:hidden;
}

/* Ensure query form full width */
.eu-course-form #euQueryForm {
    width:100% !important;
    max-width:100% !important;
}

/* ================================
   RIGHT CONTENT
================================ */
.eu-course-card {
    background:#fff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 12px 30px rgba(0,0,0,0.08);
    width:100%;
}

.eu-course-title {
    font-size:24px;
    font-weight:700;
    color:#0b2e57;
    margin-bottom:25px;
}

/* ================================
   TABLE
================================ */
.eu-course-table {
    width:100%;
    border-collapse:collapse;
}

.eu-course-table th {
    background:#0b2e57;
    color:#fff;
    padding:14px;
    text-align:left;
}

.eu-course-table td {
    padding:14px;
    border-bottom:1px solid #eee;
}

.eu-course-table tr:nth-child(even){
    background:#fafafa;
}

/* ================================
   BUTTON
================================ */
.eu-btn {
    background:#f16529;
    color:#fff;
    padding:8px 16px;
    border-radius:25px;
    text-decoration:none;
    font-weight:600;
    display:inline-block;
}

.eu-btn:hover {
    background:#d3541f;
}

/* ================================
   TABLET
================================ */
@media(max-width:992px){

    .eu-course-grid {
        grid-template-columns:1fr;
    }

    .eu-course-left {
        position:relative;
        top:auto;
    }

    .eu-course-hero {
        padding:40px 20px;
        min-height:50vh;
    }

    .eu-course-hero h1 {
        font-size:36px;
    }

    .eu-course-hero h3 {
        font-size:16px;
    }
}

/* ================================
   MOBILE
================================ */
@media(max-width:576px){

    body, html {
        overflow-x:hidden;
    }

    .eu-course {
        padding:0;
        margin:0;
    }

    .eu-course-container {
        max-width:100%;
        padding:0 12px;
    }

    .eu-course-grid {
        display:flex;
        flex-direction:column;
        gap:0;
        width:100%;
    }

    /* RIGHT FIRST */
    .eu-course-card {
        order:1;
        width:100%;
        padding:15px;
        margin:0;
    }

    /* LEFT BELOW */
    .eu-course-left {
        order:2;
        margin-top:20px;
        width:100%;
    }

    /* HERO */
    .eu-course-hero {
        padding:15px;
        min-height:35vh;
    }

    .eu-course-hero h1 {
        font-size:26px;
    }

    .eu-course-hero h3 {
        font-size:16px;
        max-width:95%;
    }

    /* TABLE → CARD */
    .eu-course-table,
    .eu-course-table thead,
    .eu-course-table tbody,
    .eu-course-table tr,
    .eu-course-table th,
    .eu-course-table td {
        display:block;
        width:100%;
    }

    .eu-course-table thead {
        display:none;
    }

    .eu-course-table tr {
        margin:0 0 15px 0;
        padding:15px;
        background:#fff;
        border-radius:12px;
        box-shadow:0 4px 12px rgba(0,0,0,0.08);
    }

    .eu-course-table td {
        padding:10px 0;
        font-size:14px;
        border-bottom:1px solid #eee;
    }

    .eu-course-table td:last-child {
        border-bottom:none;
    }

    .eu-course-table td::before {
        content:attr(data-label);
        display:block;
        font-weight:600;
        color:#0b2e57;
        margin-bottom:4px;
    }

    .eu-btn {
        margin-top:8px;
        padding:6px 14px;
        font-size:13px;
    }
}