:root {
    --gray: #8F95AB;
    --blue1: #5A6DB1;
    --blue2: #324BA7;
    --blue3: #009AD9;
    --font-size: 11px;
    --gray2: rgb(226, 226, 228);
}

@font-face {
    font-family: 'Sherlyn';
    src: url("../fonts/Sherlyn.otf") format("opentype");
}

@font-face {
    font-family: 'Urae Nium';
    src: url('../fonts/urae_nium.ttf');
}

/* ===== UTILITY ===== */
.ici-text { font-family: 'Urae Nium'; }
.fs-100 { font-size: 100px; }
.ici-some-text { font-family: 'Sherlyn'; }
.fs-150 { font-size: 150px; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: rgb(9, 40, 146);
    background: linear-gradient(0deg, rgba(9, 40, 146, 1) 0%, rgba(177, 191, 236, 1) 31%, rgba(255, 255, 255, 1) 71%);
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
#t-color { color: var(--blue3) !important; }
.top-bar a { transition: transform 0.2s; }
.top-bar a:hover { transform: scale(1.1); }

/* ===== BRAND ===== */
.beyond, .navbar-brand, .iccolor { color: #009AD9 !important; }
.brand-text { letter-spacing: -0.5px; }

/* ===== NAV ===== */
.nav-link { color: white !important; font-weight: 500; }
.nav-link.underline { padding-bottom: 2px; --bg-h: 2px; }
.enroll-btn { background: rgba(255,255,255,0.15); border-radius: 30px; padding: 6px 18px !important; }
.enroll-btn:hover { background: rgba(255,255,255,0.3); }

/* ===== HERO ===== */
.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #13245d;
    line-height: 1.2;
}
.hero-subtitle {
    font-weight: 300;
    color: #324BA7;
    letter-spacing: 1px;
    margin-top: 8px;
}
.hero-divider {
    width: 60px;
    height: 4px;
    background: #009AD9;
    border-radius: 4px;
    margin: 15px 0 15px auto;
}
.hero-desc {
    font-size: 16px;
    color: #2c3e6b;
    max-width: 400px;
    margin-left: auto;
}
@media (max-width: 992px) {
    .hero-title { font-size: 36px; }
    .hero-divider { margin: 15px auto; }
}

/* ===== SECTION HEADINGS ===== */
.section-heading h2 {
    color: #13245d;
    font-weight: 700;
    position: relative;
    display: inline-block;
}
.heading-underline {
    width: 70px;
    height: 4px;
    background: #009AD9;
    border-radius: 4px;
    margin-top: 8px;
}

/* ===== CARDS (Institutions) ===== */
.cards {
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}
.cards:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.institution-card {
    border-radius: 24px;
    padding: 10px 0;
}
.institution-card .card-body {
    padding: 25px 15px;
}
.institution-badge {
    display: inline-block;
    background: #009AD9;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.institution-badge-sm {
    display: inline-block;
    background: #009AD9;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.institution-icon {
    max-width: 140px;
    margin: 0 auto 10px;
}
.institution-icon img {
    max-height: 90px;
    object-fit: contain;
}
.institution-link-header {
    color: #13245d;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.institution-tagline {
    font-size: 13px;
    color: #5A6DB1;
    margin-bottom: 0;
}
.institution-arrow {
    display: inline-block;
    margin-top: 8px;
    color: #009AD9;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.institution-card:hover .institution-arrow {
    opacity: 1;
}
.institution-card-mobile .card-body {
    padding: 16px 8px;
}
.institution-card-mobile img {
    max-height: 60px;
}

/* ===== SOCIAL CARDS ===== */
.social-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
}
.social-card:hover {
    transform: scale(1.02);
}
.social-card .fb-page {
    background: white;
    min-height: 180px;
}

/* ===== VISION / MISSION ===== */
.text-mv {
    font-size: 17px;
    line-height: 1.7;
    color: #1f2e5a;
}
#vision, #mission {
    margin-top: 50px;
}
.mt-50 { margin-top: 100px; }
@media (max-width: 768px) {
    .mt-50 { margin-top: 40px; }
}
.vision-img, .mission-img {
    border-radius: 24px !important;
    transition: transform 0.4s;
}
.vision-img:hover, .mission-img:hover {
    transform: scale(1.01);
}

/* ===== FOOTER ===== */
.bg-footer { background-color: #009AD9; }
footer {
    background: rgba(9, 40, 146, 0.9);
    border-top: 2px solid rgba(255,255,255,0.1);
}
.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.footer-heading i { color: #009AD9; }
.footer-contact p {
    font-size: 14px;
    line-height: 1.6;
    color: #d0d9f0;
}
.footer-contact p i {
    color: #009AD9;
    width: 20px;
}
.footer-links ul li a {
    font-size: 14px;
    color: #d0d9f0 !important;
}
.footer-links ul li a:hover {
    color: white !important;
}

/* ===== CAROUSEL ===== */
.carousel-inner, .cimg {
    width: 100%;
    max-height: 65vh;
    object-fit: cover;
}
.carousel .shadow-lg {
    border-radius: 24px !important;
    overflow: hidden;
}

/* ===== LINKS (underline hover) ===== */
a {
    background: linear-gradient(0deg, WHITE, #5A6DB1) no-repeat right bottom / 0 var(--bg-h);
    transition: background-size 350ms;
    --bg-h: 100%;
}
a:where(:hover, :focus-visible) {
    background-size: 100% var(--bg-h);
    background-position-x: left;
}
.underline {
    padding-bottom: 2px;
    --bg-h: 2px;
}
.none {
    padding-bottom: 0px;
    --bg-h: 0px;
}
a {
    text-decoration: none;
    color: inherit;
    line-height: 1;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 576px) {
    .hero-title { font-size: 28px; }
    .text-mv { font-size: 15px; }
    .institution-link-header { font-size: 0.95rem; }
    .footer-heading { font-size: 14px; }
}

@media (max-width: 767.98px) {
    .social-card .fb-page,
    .social-card .fb-page span,
    .social-card .fb-page iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    .social-card .fb-page {
        display: block !important;
    }
    .social-card .fb_iframe_widget iframe {
        position: relative !important;
        height: 100% !important;
        min-height: 220px;
    }
}

@media (max-width: 767.98px) {
    #vision .heading-underline,
    #mission .heading-underline {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


.institution-card-mobile .card-body {
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.institution-card-mobile .institution-badge-sm {
    display: inline-block;
    background: #009AD9;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.institution-card-mobile img {
    max-height: 75px;
    object-fit: contain;
    margin-bottom: 6px;
}

.institution-card-mobile .institution-link-header {
    font-size: 1rem;
    font-weight: 700;
    color: #13245d;
    margin-bottom: 2px;
}

.institution-tagline-mobile {
    font-size: 12px;
    color: #5A6DB1;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Para mas malawak ang cards sa maliit na screen */
@media (max-width: 576px) {
    .institution-card-mobile .institution-link-header {
        font-size: 0.95rem;
    }
    .institution-card-mobile img {
        max-height: 65px;
    }
}

/* ============================================================
   VISION & MISSION — ENHANCED & READABLE (added only)
   No existing CSS was removed or modified.
   ============================================================ */

/* --- Section containers --- */
#vision,
#mission {
    position: relative;
    padding: 20px 0;
}

/* decorative accent behind the heading */
#vision .section-heading,
#mission .section-heading {
    position: relative;
}

#vision .section-heading::before,
#mission .section-heading::before {
    content: "✦";
    position: absolute;
    top: -22px;
    left: -6px;
    font-size: 38px;
    color: rgba(0, 154, 217, 0.10);
    font-weight: 300;
    pointer-events: none;
    line-height: 1;
}

/* ---- BIGGER & BOLDER HEADINGS ---- */
#vision .section-heading h2,
#mission .section-heading h2 {
    font-size: 3.2rem;        /* ~51px – bold and impactful */
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #13245d;
    position: relative;
    display: inline-block;
}

/* small dot after heading */
#vision .section-heading h2::after,
#mission .section-heading h2::after {
    content: "";
    position: absolute;
    right: -22px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #009AD9;
    opacity: 0.5;
}

/* --- BIGGER & MORE READABLE BODY TEXT --- */
#vision .text-mv,
#mission .text-mv {
    font-size: 1.2rem;        /* ~19px – comfortable on desktop */
    line-height: 2;           /* generous leading for clarity */
    letter-spacing: 0.02em;
    font-weight: 400;
    color: #1f2e5a;
    padding: 8px 0 4px;
    position: relative;
    max-width: 95%;
}

/* decorative opening quote mark */
#vision .text-mv::before,
#mission .text-mv::before {
    content: "“";
    font-size: 58px;
    font-family: 'Georgia', serif;
    color: rgba(0, 154, 217, 0.12);
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
    pointer-events: none;
}

/* first letter accent */
#vision .text-mv::first-letter,
#mission .text-mv::first-letter {
    font-size: 1.35em;
    font-weight: 700;
    color: #009AD9;
}

/* --- Underline (already styled, just making it match the bigger text) --- */
#vision .heading-underline,
#mission .heading-underline {
    position: relative;
    width: 80px;
    height: 4px;
    background: #009AD9;
    border-radius: 4px;
    margin-top: 12px;
    box-shadow: 0 0 16px rgba(0, 154, 217, 0.25);
}

/* --- Image hover polish --- */
.vision-img,
.mission-img {
    border-radius: 28px !important;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    position: relative;
    z-index: 1;
}

.vision-img:hover,
.mission-img:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 24px 48px rgba(9, 40, 146, 0.18) !important;
}

/* subtle outer glow on image wrapper */
.vision-img-wrapper,
.mission-img-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 28px;
}

.vision-img-wrapper::after,
.mission-img-wrapper::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(0, 154, 217, 0.15), rgba(50, 75, 167, 0.08));
    z-index: 0;
    transition: opacity 0.4s;
    opacity: 0;
}

.vision-img-wrapper:hover::after,
.mission-img-wrapper:hover::after {
    opacity: 1;
}

/* --- Smooth fade-in animation --- */
#vision,
#mission {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

#vision {
    animation-delay: 0.05s;
}
#mission {
    animation-delay: 0.15s;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(26px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- small divider between sections --- */
#vision::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #009AD9, transparent);
    margin: 30px auto 0;
    border-radius: 4px;
    opacity: 0.25;
}

/* ============================================================
   RESPONSIVE TWEAKS (scales down for smaller screens)
   ============================================================ */
@media (max-width: 991.98px) {
    #vision .section-heading h2,
    #mission .section-heading h2 {
        font-size: 2.6rem;    /* ~42px */
    }
    #vision .text-mv,
    #mission .text-mv {
        font-size: 1.05rem;   /* ~17px */
        line-height: 1.9;
    }
    #vision .text-mv::before,
    #mission .text-mv::before {
        font-size: 44px;
        top: -16px;
        left: -4px;
    }
}

@media (max-width: 767.98px) {
    #vision .heading-underline,
    #mission .heading-underline {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #vision .section-heading::before,
    #mission .section-heading::before {
        left: 50%;
        transform: translateX(-50%);
        top: -24px;
        font-size: 30px;
    }
    #vision .section-heading h2::after,
    #mission .section-heading h2::after {
        display: none;
    }
    #vision,
    #mission {
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    #vision .section-heading h2,
    #mission .section-heading h2 {
        font-size: 2rem;      /* 32px — still bold on phones */
        text-align: center;
        display: block;
    }
    #vision .text-mv,
    #mission .text-mv {
        font-size: 1rem;      /* 16px — crisp and readable */
        line-height: 1.8;
        text-align: center;
        padding-left: 4px;
        padding-right: 4px;
        max-width: 100%;
    }
    #vision .text-mv::before,
    #mission .text-mv::before {
        font-size: 34px;
        top: -10px;
        left: 2px;
    }
    #vision::after {
        margin: 20px auto 0;
        width: 40px;
    }
}
/* --- Vision & Mission enhancements (no extra HTML) --- */

#vision, #mission {
    transition: opacity 0.6s ease;
}

/* Bigger, bolder headings */
#vision .section-heading h2,
#mission .section-heading h2 {
    font-size: 2.8rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

/* Decorative underline with glow */
.heading-underline {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #009AD9, #5A6DB1);
    border-radius: 4px;
    margin: 10px 0 20px;
    box-shadow: 0 0 20px rgba(0, 154, 217, 0.25);
    transition: width 0.3s ease;
}

#vision .heading-underline,
#mission .heading-underline {
    margin-left: 0; /* left-aligned on desktop */
}

/* Text styling */
.text-mv {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1f2e5a;
    font-weight: 400;
    max-width: 95%;
}

/* Image styling */
.vision-img, .mission-img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s ease;
    will-change: transform;
    border-radius: 24px !important;
}

.vision-img:hover, .mission-img:hover {
    transform: scale(1.02) translateY(-6px);
    box-shadow: 0 20px 40px rgba(9, 40, 146, 0.20) !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #vision .section-heading h2,
    #mission .section-heading h2 {
        font-size: 2.2rem;
    }
    .text-mv {
        font-size: 1rem;
        text-align: center !important;
    }
    .heading-underline {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #vision .heading-underline,
    #mission .heading-underline {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 575.98px) {
    #vision .section-heading h2,
    #mission .section-heading h2 {
        font-size: 1.8rem;
    }
    .text-mv {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* Subtle fade-in animation (optional) */
#vision, #mission {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}
#vision { animation-delay: 0.1s; }
#mission { animation-delay: 0.2s; }

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
