/******************/
/* Regional Pages */
/******************/

:root {
    --primary: #005758;
    --secondary: #003031;
    --primary-head: #2D9F88;
}

/* BRANDING THEMES */
.theme-tdsnx {
    --primary: #005758;
    --secondary: #003031;
    --primary-head: #2D9F88;
}

.theme-blueblue {
    --primary-head: #1F728B;
    --primary: #1D3152;
}

.theme-blue {
    --primary-head: #1F728B;
}

.theme-red {
    --primary-head: #AB584D;
}

.theme-plum {
    --primary-head: #AB584D;
    --primary: #5A2D3F;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, var(--primary-head) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.header-logo {
    position: absolute;
    left: 2vw;
    top: 50%;
    transform: translateY(-50%);
    max-height: 6vh;
    width: auto;
}

.header-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-text h1 {
    margin: 0;
    font-size: 2.2rem;
}

.header-text p {
    margin: 0;
    font-size: 1.2rem;
}

main {
    padding: 30px 10%;
    background: #fff;
    justify-content: center;
}

section {
    background-color: #fff;
    padding: 10px;
    overflow: auto;
    margin-bottom: 20px;
}

h2 {
    color: var(--primary);
    font-weight: bold;
}

h3 {
    color: var(--primary);
}

.highlight {
    color: var(--primary);
    font-weight: bold;
}

/* ===== Offer Cards ===== */
.offer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.offer {
    border: 1px solid #ddd;
    border-radius: 8px;
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: #f9f9f9;
}

.offer h3 {
    color: var(--primary);
}

/* ===== CTA Buttons ===== */
.cta {
    text-align: center;
    margin-top: 20px;
}

.cta a {
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
    background-color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.cta a:hover {
    background: var(--secondary);
}

/* ===== Footer ===== */
footer {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 5px 10%;
    margin-top: 10px;
}

footer p {
    font-size: 1rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary);
}

/* ===== Course Box ===== */
.course-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-width: 500px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.course-box h4 {
    margin: 2px 0 10px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.course-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.course-box a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    background: var(--primary);
    color: #fff;
    transition: background 0.3s ease;
}

.course-box a:hover {
    background: var(--secondary);
}

/* ===== Images ===== */
.float-right-img {
    float: right;
    max-width: 15%;
    margin: 10px;
}

/* ===== Flags ===== */
.country-flag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin: 10px;
}

.country-flag:hover {
    transform: translateY(-1px);
}

.flag-label {
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
}

.badge {
    background-color: #fff;
}

.badge:hover {
    transform: translateY(-5px);
}

.header-vendor-badge {
    position: absolute;
    right: 2vw;
    top: 50%;
    transform: translateY(-50%);
    max-height: 6vh;
    width: auto;
    background-color: #fff;
    border-radius: 6px;
    padding: 2px;
}

/* ===== Flag Images ===== */
.flag-be {
    display: inline-block;
    background: url('https://upload.wikimedia.org/wikipedia/commons/6/65/Flag_of_Belgium.svg') no-repeat center center;
    background-size: cover;
}

.flag-ie {
    display: inline-block;
    background: url('https://upload.wikimedia.org/wikipedia/commons/4/45/Flag_of_Ireland.svg') no-repeat center center;
    background-size: cover;
}

/* Remove these flags unless necessary */
.flag-us {
    display: inline-block;
    background: url('https://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg') no-repeat center center;
    background-size: cover;
}

.flag-ca {
    display: inline-block;
    background: url('https://upload.wikimedia.org/wikipedia/commons/1/1f/Flag_of_Canada_%281964%29.svg') no-repeat center center;
    background-size: cover;
}

.flag-jp {
    display: inline-block;
    background: url('https://upload.wikimedia.org/wikipedia/commons/9/9e/Flag_of_Japan.svg') no-repeat center center;
    background-size: cover;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    header {
        display: block;
        text-align: center;
        padding: 20px 10px;
    }

    .header-logo {
        position: static;
        display: block;
        margin: 0 auto 15px auto;
        max-height: 60px;
        transform: none;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .header-text p {
        font-size: 1rem;
    }

    .float-right-img {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 50%;
    }

    .header-vendor-badge {
        position: static;
        display: block;
        margin: 10px auto 0 auto;
        max-width: 50%;
        transform: none;
    }
}