/* -----------------------------------------------------------------------------
   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;
}









