﻿/* --- GLOBAL & TYPOGRAPHY --- */
html {
    scroll-behavior: smooth;
}

.lato-bold {
    font-family: 'Lato-Bold', sans-serif;
}

.lato-light {
    font-family: 'Lato-Light', sans-serif;
}

article {
    scroll-margin-top: 250px;
}
p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}
/* --- HERO --- */
.education-hero {
    background: linear-gradient(135deg, #1e5f98 0%, #2c3e50 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}
    .education-hero h1 {
        font-size: clamp(1.8rem, 4vw, 3rem); /* scales automatically */
        line-height: 1.2; /* slightly tighter, keeps two lines visually compact */
        word-break: keep-all; /* prevents breaking words awkwardly */
        hyphens: none; /* avoid automatic hyphenation on mobile */
    }
p.lead {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
}
.hero-bg-logo {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 120%;
    opacity: 0.15;
    pointer-events: none;
}
/* --- PAGE INDEX --- */

/* --- PAGE INDEX --- */
.page-index {
    background-color: #2c3e50;
    border-radius: 12px;
    padding: 20px;
    max-width: 1000px;
    margin: 40px auto 30px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    /* Heading */
    .page-index h4 {
        color: #fff;
        margin-bottom: 15px;
        font-size: clamp(1rem, 2vw, 1.25rem);
    }

    /* --- LINKS GRID --- */
    .page-index ul {
        list-style: none;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 links per row on desktop */
        gap: 20px;
        margin-bottom: 20px;
    }

/* Tablet: 2 links per row */
@media (max-width: 991px) {
    .page-index ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 link per row */
@media (max-width: 576px) {
    .page-index ul {
        grid-template-columns: 1fr;
    }
}

/* --- LINK STYLE --- */
.page-index ul a {
    font-size: clamp(0.9rem, 2vw, 0.9rem); /* responsive font size */
    white-space: nowrap; /* prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 15px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

    .page-index ul a:hover {
        background-color: rgba(255,255,255,0.1);
    }

/* --- DIVIDER --- */
.page-index hr {
    border-color: rgba(255,255,255,0.2);
}

/* --- EXTERNAL BUTTON --- */
.page-index .outside-link {
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #fff;
    font-weight: 600;
    margin-top: 10px;
}

    .page-index .outside-link:hover {
        color: #656565;
    }
/* --- SPLIT CARDS --- */
.split-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    margin-bottom: 2rem;
}

    .split-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

.card-inner {
    display: flex;
    flex-wrap: wrap;
}

.visual-zone {
    position: relative;
    min-height: 300px;
}

.img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
    background: #f3f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-lg-2 .img-wrapper {
    border-radius: 0 20px 20px 0;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(33,89,139,0.05), rgba(33,89,139,0.55));
    pointer-events: none;
}

@media (max-width: 991px) {
    .split-card {
        flex-direction: column;
    }

    .img-wrapper {
        height: auto;
        border-radius: 20px 20px 0 0 !important;
    }
        .img-wrapper img {
            width: 100%; /* full width */
            height: auto; /* auto height to keep aspect ratio */
            object-fit: contain; /* keeps image from stretching */
        }
    .order-lg-2 .img-wrapper {
        border-radius: 20px 20px 0 0 !important;
    }

    .visual-zone {
        min-height: auto;
        width: 100%;
    }
}

/* --- TEXT ZONE --- */
.text-zone {
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-zone p {
    margin-bottom: 1rem;
    color: #333;
}

    .text-zone p.text-muted {
        color: #546e7a !important;
    }
/* --- MODERN BUTTON --- */
.btn-modern {
    display: inline-block;
    width: auto;
    background-color: #1e5f98;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 700;
    font-family: 'Lato-Bold', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

    .btn-modern:hover {
        background-color: #164a77;
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
        transform: translateY(-2px);
    }

/*Sub-Sections*/

.elcc-content-bg {
    background-color: rgba(255,255,255,0.3);
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}
.bridge-content,
.elcc-content-bg {
    margin-top: 9px; /* top spacing */
    margin-bottom: 12px; /* bottom spacing */
}
.MainTitle {
    font-family: 'Lato-Bold';
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: #1e5f98;
    margin-bottom: 0.05rem;
}

.SubTitle {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: #8c8c8c;
    padding-left: 10px;
}
.elcc-links a {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
}
.elcc-links {
    margin-left: 15px;
    background-color: #f5f7fa; /* soft light gray-blue */
    padding: 20px 10px;
    border-radius: 15px;
    max-width: 400px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.mini-card a {
    color: #000; /* black text */
    text-decoration: none; /* remove underline */
    display: block; /* allows centering */
    text-align: center; /* center text */
}

    .mini-card a:hover {
        color: #333; /* optional hover */
        text-decoration: none;
    }



.program-card {
    display: flex; /* Align image and text horizontally */
    gap: 20px; /* Space between the image and text */
    align-items: start; /* Align items to the top */
    margin-bottom: 2rem;
    padding: 1px;
}

.program-image img {
    width: 120px;
    height: 120px;
   
    border-radius: 10px;
}

.program-text {
    flex: 1; /* Allow text to take the remaining space */
    padding: 0 20px; /* Padding on both sides of text */
}

    .program-text p,
    .program-text ul {
        margin-bottom: 1rem;
        line-height: 1.6;
        color: #333;
    }

    .program-text ul {
        padding-left: 20px;
    }

.link-btn {
    display: inline-flex;
    align-items: center;
    background: #1e5f98;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .link-btn:hover {
        background: #174a77;
        transform: translateY(-1px);
    }

/* Responsive: stack image on top for smaller screens */
@media (max-width: 768px) {
    .program-card {
        flex-direction: column; /* Stack the image and text on smaller screens */
        gap: 10px; /* Reduce space between image and text */
    }

    .program-image {
        margin-bottom: 15px; /* Keep the spacing between image and text */
    }

    .program-text {
        padding: 0 10px; /* Reduced padding */
        text-align: left; /* Align text to the left on mobile */
    }

        .program-text ul {
            padding-left: 15px; /* Adjust padding for lists */
        }
}
.programs-title {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: #1e5f98;
    font-family: 'Lato-Bold';
}
.link-btn {
    display: inline-flex;
    align-items: center;
    background: #1e5f98;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .link-btn:hover {
        background: #174a77;
        color: #fff;
        transform: translateY(-1px);
    }