/* HERO */
.hero-section {
    position: relative;
}

/* HERO NAV ARROWS — desktop only */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    width: 40px;
    height: 40px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 18px;
    cursor: pointer;

    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    transition: all .35s ease;
}

.hero-prev { left: 40px;  transform: translateY(-50%) translateX(-20px); }
.hero-next { right: 40px; transform: translateY(-50%) translateX(20px); }

/* slide in when the hero is hovered */
.hero-section:hover .hero-nav {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.hero-nav:hover {
    background: var(--yellow, #f5c000);
    border-color: var(--yellow, #f5c000);
    color: #003863;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.hero-section:hover .hero-nav:hover {
    transform: translateY(-50%) scale(1.12);
}

/* greyed out at first/last slide when loop is off */
.hero-nav.swiper-button-disabled {
    opacity: .25 !important;
    cursor: default;
    pointer-events: none;
}

/* HIDE ON TABLET + MOBILE */
@media (max-width: 991px) {
    .hero-nav { display: none !important; }
}

.swiper {
    height: 70vh;
    min-height: 400px;
}

.slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 70vh;
    color: #fff;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.slide-content {
    position: relative;
    z-index: 2;
}

.slide h1 {
    font-size: 60px;
    font-weight: 800;
}

.slide p {
    font-size: 22px;
}

/* ==========================================
   COURSE LINK CARDS
   ========================================== */
.course-links-section {
    background: #fff;
}

.clink-card {
    background: #fff;
    border-bottom: 3px solid #4a5bb8;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 6px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.clink-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .09);
}

/* --- header strip --- */
.clink-head {
    background: #eeeeee;
    display: flex;
    align-items: stretch;
    min-height: 48px;
}

.clink-tag {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
}

/* little arrow notch on the right of the tag */
.clink-tag::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    height: 100%;
    width: 10px;
    background: inherit;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.clr-magenta  { background: #c2179c; }
.clr-blue     { background: #2b3fbf; }
.clr-navy     { background: #0d3a63; }
.clr-orange   { background: #e2762a; }
.clr-purple   { background: #a132c4; }
.clr-crimson  { background: #d81e4a; }

/* --- link list --- */
.clink-list {
    list-style: none;
    margin: 0;
    padding: 20px 18px 8px;
    flex: 1 1 auto;
}

.clink-list li {
    margin-bottom: 16px;
}

.clink-list li.is-hidden {
    display: none;
}

.clink-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: #1b1f7a;
    font-size: 15px;
    line-height: 1.45;
    transition: color .25s ease, transform .25s ease;
}

.clink-list a i {
    color: #4a5bb8;
    font-size: 13px;
    margin-top: 4px;
    flex-shrink: 0;
    transition: transform .25s ease;
}

.clink-list a:hover {
    color: #0b82d0;
    transform: translateX(3px);
}

.clink-list a:hover i {
    transform: translateX(2px);
}

/* --- footer nav --- */
.clink-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 18px 16px;
}

.clink-rule {
    flex: 1 1 auto;
    height: 1px;
    background: #e2e2e2;
}

.clink-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.clink-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #dcdcdc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all .25s ease;
}

.clink-btn:hover:not(:disabled) {
    background: #4a5bb8;
    border-color: #4a5bb8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(74, 91, 184, .3);
}

.clink-btn:disabled {
    opacity: .35;
    cursor: default;
}

/* --- tablet --- */
@media (max-width: 991px) {
    .clink-tag { font-size: 14px; padding: 11px 18px; }
    .clink-list a { font-size: 14px; }
}

/* --- mobile --- */
@media (max-width: 576px) {
    .clink-card { border-bottom-width: 2px; }
    .clink-card:hover { transform: none; box-shadow: none; }

    .clink-head { min-height: 42px; }
    .clink-tag  { font-size: 13px; padding: 10px 16px; }

    .clink-list { padding: 16px 14px 6px; }
    .clink-list li { margin-bottom: 14px; }
    .clink-list a { font-size: 14px; line-height: 1.5; }

    .clink-foot { padding: 4px 14px 14px; }
    .clink-btn  { width: 40px; height: 40px; font-size: 13px; }
}

.counselling-btn {
    display: inline-block;
    background: #ff6d00;
    color: #fff;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: .3s;
}

.counselling-btn:hover {
    background: #e65f00;
    color: #fff;
}

@media(max-width:991px) {
    .who-title {
        font-size: 34px;
    }

    .who-desc {
        font-size: 17px;
    }

    .feature-item h4 {
        font-size: 24px;
    }

    .feature-item p {
        font-size: 18px;
    }

    .feature-icon {
        font-size: 40px;
        min-width: 50px;
    }

    .vertical-line {
        display: none;
    }
}

@media(max-width:576px) {
    .who-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .who-desc {
        font-size: 15px;
        text-align: justify;
        line-height: 1.5;
    }

    .feature-item {
        gap: 5px;
        margin-bottom: 10px;
    }

    .feature-item h4 {
        font-size: 20px;
    }

    .feature-item p {
        font-size: 15px;
    }

    .feature-icon {
        font-size: 32px;
    }

    .counselling-btn {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }
}

.process-section {
    background: #f3f3f3;
    /* padding:70px 0; */
}

.process-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 50px;
}

.process-title span {
    color: #0b4b82;
}

.process-image-wrapper {
    text-align: center;
}

.process-image {
    width: 100%;
    max-width: 1800px;
    height: auto;
    display: block;
    margin: auto;
}

/* Tablet */
@media (max-width:991px) {

    .process-title {
        font-size: 40px;
        margin-bottom: 35px;
    }
}

/* Mobile */
@media (max-width:576px) {

    .process-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 25px;
    }

    .process-image {
        width: 100%;
        height: auto;
    }
}

/* FAQ SECTION */
.faq-section {
    background: #f7f8fa;
}

.faq-title {
    font-size: 32px;
    font-weight: 700;
    color: #003863;
    text-align: center;
    margin-bottom: 20px;
}

.faq-title span {
    color: #0b82d0;
}

.custom-faq {
    max-width: 1000px;
    margin: auto;
}

.custom-faq .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .06);
}

.custom-faq .accordion-button {
    background: #fff;
    color: #003863;
    font-size: 16px;
    font-weight: 600;
    padding: 20px 25px;
    box-shadow: none;
}

.custom-faq .accordion-button:not(.collapsed) {
    background: #003863;
    color: #fff;
}

.custom-faq .accordion-button::after {
    flex-shrink: 0;
}

.custom-faq .accordion-body {
    padding: 20px 25px;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.custom-faq .accordion-button::after {
    flex-shrink: 0;
    transition: transform .3s ease;
}

.custom-faq .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Mobile */
@media(max-width:576px) {
    .faq-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .custom-faq .accordion-button {
        font-size: 15px;
        padding: 16px 18px;
    }

    .custom-faq .accordion-body {
        font-size: 14px;
        padding: 18px;
    }
}

/* .custom-faq .accordion-button::after{
    background-image:none !important;
    content:"+";
    font-size:24px;
    font-weight:700;
    width:auto;
    height:auto;
    transform:none;
}

.custom-faq .accordion-button:not(.collapsed)::after{
    content:"−";
    color:#fff;
} */

.course-action-btn {
    width: 100%;
    background: #014c75;
    color: #fff;
    padding: 5px 15px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
}

.course-action-btn .icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.course-action-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(1,76,117,.25);
}

.course-action-btn:hover .icon-wrap {
    transform: translateX(5px);
    background: rgba(255,255,255,.25);
}

.latest-news-box {
    background: #eaf6fb;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}

.latest-news-title {
    color: #083d4a;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
}

/* The scrolling window */
.news-ticker {
    height: 260px;          /* visible area height */
    overflow: hidden;
    position: relative;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: scrollUp 15s linear infinite;
}

/* pause when the user hovers so they can read/click */
.news-ticker:hover .news-list {
    animation-play-state: paused;
}

.news-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #cfd8dd;
}

.news-list li a {
    color: #2b2f9e;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    display: inline-block;
}

.news-list li a:hover {
    text-decoration: underline;
}

.news-badge {
    background: #ffcc00;
    color: #d12b2b;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
    white-space: nowrap;
}

/* bottom-to-top scroll */
@keyframes scrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Mobile — shorter window, slightly smaller text */
@media (max-width: 767px) {
    .news-ticker { height: 200px; }
    .news-list li a { font-size: 14px; }
    .latest-news-title { font-size: 18px; }
}

.news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.news-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;   /* stops the image from squashing */
}

.news-text {
    font-size: 15px;
    line-height: 1.4;
    color: #2b2f9e;
}

/* ==========================================
   UNIVERSITY LISTING
   append to assets/css/home.css
   ========================================== */
.uni-section {
    background: #fff;
}

/* --- section head --- */
.uni-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.uni-title {
    margin: 0;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #418a41;
}

.uni-view-toggle {
    display: flex;
    gap: 6px;
}

.uni-view-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #418a41;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .25s ease, transform .25s ease;
}

.uni-view-btn:hover     { transform: translateY(-2px); color: #4fa64f; }
.uni-view-btn.is-active { color: #2c5f2c; background: #e8f2e8; border-radius: 6px; }

/* --- card --- */
.uni-card {
    background: #fff;
    border: 1px solid #ececec;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}

.uni-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .10);
}

/* --- cover --- */
.uni-cover {
    position: relative;          /* stays visible so the logo can hang out */
    height: 190px;
    flex-shrink: 0;
    background: #c9c9c9;
}

.uni-cover-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.uni-cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.uni-card:hover .uni-cover-img img { transform: scale(1.06); }

.uni-cover-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0) 60%);
}

.uni-name {
    position: absolute;
    z-index: 2;
    left: 96px;
    right: 14px;
    bottom: 12px;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uni-logo {
    position: absolute;
    z-index: 3;
    left: 14px;
    bottom: -26px;
    width: 66px;
    height: 66px;
    background: #fff;
    border: 1px solid #ececec;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.uni-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- body --- */
.uni-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.uni-location {
    margin: 0;
    padding: 16px 14px 14px 96px;   /* clears the overlapping logo */
    min-height: 56px;
    font-size: 13px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #555;
}

.uni-facilities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-top: 1px solid #f1f1f1;
    color: #4fa64f;
    font-size: 17px;
    min-height: 46px;
}

.uni-facilities i {
    transition: transform .25s ease;
    cursor: default;
}

.uni-facilities i:hover { transform: translateY(-3px); }

.uni-rank {
    padding: 10px 14px;
    border-top: 1px solid #f1f1f1;
    text-align: center;
    line-height: 1.2;
    color: #8a8a8a;
}

.uni-rank b {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.uni-rank span {
    font-size: 13px;
    letter-spacing: .5px;
}

.uni-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 14px;
    border-top: 1px solid #f1f1f1;
}

.uni-tabs a {
    font-size: 13px;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
    transition: color .25s ease;
}

.uni-tabs a:hover { color: #e8500f; }

/* --- actions --- */
.uni-actions {
    display: flex;
    margin-top: auto;
}

.uni-btn {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}

.uni-apply {
    background: #418a41;
    color: #fff;
}

.uni-apply:hover { background: #c8410a; color: #fff; }

.uni-brochure {
    background: #fff;
    color: #418a41;
    border-left: 1px solid #ececec;
}

.uni-brochure:hover { background: #fff4ef; color: #c8410a; }

/* --- keyboard focus --- */
.uni-view-btn:focus-visible,
.uni-tabs a:focus-visible,
.uni-btn:focus-visible {
    outline: 2px solid #003863;
    outline-offset: 2px;
}

/* ==========================================
   LIST VIEW (tablet & up)
   ========================================== */
@media (min-width: 768px) {
    .uni-grid.is-list > .uni-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .uni-grid.is-list .uni-card   { flex-direction: row; }

    .uni-grid.is-list .uni-cover  {
        width: 320px;
        flex: 0 0 320px;
        height: auto;
        min-height: 240px;
    }

    .uni-grid.is-list .uni-logo     { bottom: 14px; }
    .uni-grid.is-list .uni-location { padding-left: 96px; }
    .uni-grid.is-list .uni-actions  { max-width: 440px; }
    .uni-grid.is-list .uni-rank     { text-align: left; }
}

/* ==========================================
   TABLET
   ========================================== */
@media (max-width: 991px) {
    .uni-title      { font-size: 34px; }
    .uni-cover      { height: 175px; }
    .uni-name       { font-size: 15px; }
    .uni-facilities { gap: 12px; font-size: 16px; }
    .uni-tabs       { gap: 14px; }
    .uni-tabs a     { font-size: 12px; }
}

/* ==========================================
   MOBILE
   ========================================== */
@media (max-width: 576px) {
    .uni-title { font-size: 26px; }

    .uni-head  { margin-bottom: 18px; }

    .uni-card:hover {
        transform: none;
        box-shadow: none;
    }

    .uni-card:hover .uni-cover-img img { transform: none; }

    .uni-cover { height: 165px; }

    .uni-logo {
        width: 56px;
        height: 56px;
        bottom: -22px;
        left: 12px;
    }

    .uni-name {
        left: 80px;
        right: 12px;
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .uni-location {
        padding: 14px 12px 12px 80px;
        min-height: 48px;
        font-size: 12px;
    }

    .uni-facilities { padding: 10px 12px; gap: 12px; font-size: 15px; }
    .uni-rank       { padding: 8px 12px; }
    .uni-rank b     { font-size: 16px; }
    .uni-tabs       { padding: 10px 12px; gap: 12px; }

    .uni-btn { padding: 13px 8px; font-size: 13px; }
}

/* --- respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .uni-card,
    .uni-cover-img img,
    .uni-facilities i,
    .uni-view-btn {
        transition: none;
    }

    .uni-card:hover { transform: none; }
    .uni-card:hover .uni-cover-img img { transform: none; }
}

/* ==========================================
   CLICKABLE CARD
   append to assets/css/home.css, AFTER the
   existing .uni-card rules
   ========================================== */

/* the card becomes the positioning context for the overlay */
.uni-card {
    position: relative;
}

/* invisible link covering the whole card */
.uni-card-link {
    position: absolute;
    inset: 0;
    z-index: 4;                 /* above .uni-logo (3) and .uni-name (2) */
    text-decoration: none;
    border-radius: inherit;
}

/* the real links must sit ABOVE the overlay to stay clickable */
.uni-tabs,
.uni-actions {
    position: relative;
    z-index: 5;
}

/* facility icon tooltips still work, but clicks fall through to the card */
.uni-facilities {
    position: relative;
    z-index: 1;
}

/* hover feedback — the name turns orange like a link would */
.uni-card:hover .uni-name {
    color: #ffd9c7;
}

/* keyboard focus: outline the whole card, not the invisible link */
.uni-card-link:focus-visible {
    outline: 3px solid #003863;
    outline-offset: -3px;
}

/* Bootstrap 5 already ships .visually-hidden — this is only a fallback
   in case your build strips it */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   VIEW ALL BUTTON + LISTING PAGE
   append to assets/css/home.css
   ========================================== */

.uni-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.uni-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 38px;
    background: #e8500f;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.uni-more-btn:hover {
    background: #c8410a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(232, 80, 15, .28);
}

.uni-more-btn i {
    transition: transform .25s ease;
}

.uni-more-btn:hover i {
    transform: translateX(5px);
}

.uni-more-btn:focus-visible {
    outline: 3px solid #003863;
    outline-offset: 3px;
}

/* --- listing page --- */
.uni-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    letter-spacing: .3px;
    color: #888;
}

.uni-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.uni-pagination .pagination {
    margin-bottom: 0;
}

.uni-pagination .page-link {
    color: #e8500f;
    border-color: #ececec;
}

.uni-pagination .page-item.active .page-link {
    background: #e8500f;
    border-color: #e8500f;
    color: #fff;
}

/* --- mobile --- */
@media (max-width: 576px) {
    .uni-more { margin-top: 28px; }

    .uni-more-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 14px;
    }

    .uni-more-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .uni-pagination { margin-top: 28px; }
}