/* -----------------------------------------------------------------------------
   Sticky footer layout (flexbox)

   Ensures the page fills the full viewport height and keeps the footer anchored
   at the bottom on short pages, while allowing natural scrolling on long pages.
   ----------------------------------------------------------------------------- */
html, body {
    height: 100%;
    font-family: 'Source Sans Pro', sans-serif;
}

.page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1 0 auto; /* grows to take available space */
}

.page-footer {
    flex-shrink: 0; /* prevents footer from collapsing */
}


/* === Homepage cards section ===  */
.gradient-section {
    background: linear-gradient(to bottom, #002f6c, #007bff);
    padding: 60px 0;
}

.custom-card {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: white;
}

.card-img-top {
    width: 100%;
    height: auto;
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
}

.card-text {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

/* === General cards section === */
.general-cards-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.general-cards-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.card-full {
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 280px; /* card height */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.general-cards-container .row {
    align-items: stretch;
}

.card-full .card-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.card-full .card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Banner full width === */
.banner-fullwidth {
    width: 100%;
}

.banner-fullwidth img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Educational program detail card tab height === */
.fixed-tab-height {
    min-height: 650px;
    display: flex;
    flex-direction: column;
}

/* === Course card & price ribbon styling === */
.course-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.course-card .text-muted {
    flex-grow: 1;
}

.course-card .text-end {
    margin-top: auto;
}

.price-ribbon {
    position: absolute;
    top: 12px;
    right: -40px;
    background-color: #007bff;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 45px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* === Cookies === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* === Table in forms === */
.table-form thead th {
    font-weight: 500;         
    color: #555;               
    background-color: #fafafa;
    border-bottom: 0.5px solid #e5e5e5 !important;
}

/* === Coming soon ribbon (top-right corner) === */
.teaser-card {
    position: relative;
    overflow: hidden;
}

/* === Dim card content  === */
.teaser-card .card-body {
    opacity: 0.65;
}

/* ===  Diagonal status ribbon displayed above the card content === */
.teaser-ribbon {
    position: absolute;
    top: 14px;
    right: -55px;
    width: 300px;

    background-color: #ff0f0f;
    color: #ffffff;

    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.2px;
    white-space: nowrap;

    padding: 6px 0;
    line-height: 1.2;

    transform: rotate(45deg);
    transform-origin: center;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 2;
}

.teaser-ribbon-text {
    display: block;
    transform: translateX(45px); 
    text-align: center;
}

/* =====================================================
   HERO CAROUSEL
   ===================================================== */
.hero-slide {
    background-image: url('/images/public/home-banner.svg');
    background-size: cover;
    background-position: center;
    min-height: 540px;
    position: relative; /* required for absolute positioned content */
}

.hero-content {
    position: absolute;

    top: 0; /* content aligns with top edge of background image */
    left: clamp(1.5rem, 6vw, 6rem);

    max-width: 680px;
    padding: 0 1rem;

    color: #ffffff;
}

/* === Red badge ===  */
.hero-badge {
    display: inline-block;
    background-color: #e53935;
    padding: 0.5rem 3rem;
    font-size: 1.2rem;
    line-height: 1.2;

    margin-bottom: 5rem; /* spacing below badge */
}

/* === Headline ===  */
.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* === Subtitle ===  */
.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* === Body text === */
.hero-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;

    max-width: 580px; /* slightly longer lines for large screens */
}

/* === Button ===  */
.hero-button {
    font-weight: 600;
    padding: 0.6rem 1.2rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

    .hero-slide {
        min-height: auto;
        padding-bottom: 2rem;

        /* Change background image on smaller displays */
        background-image: linear-gradient(
                to bottom,
                #002f6c,
                #007bff
        );

        background-size: cover;
        background-position: center;
    }

    .hero-content {
        position: static;
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
        padding: 2rem 1rem 0;
    }

    .hero-badge {
        margin: 0 auto 1.25rem auto;
        padding: 0.4rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .hero-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0 auto 1.25rem auto;
        max-width: 100%;
    }

    .hero-button {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0.7rem 1rem;
    }
}


