/* ── UCT Multi-Branch listing pages ── */

.uct-branch-body [class^="bi-"]::before,
.uct-branch-body [class*=" bi-"]::before {
    display: inline-block;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
    vertical-align: -0.125em;
}

:root {
    --uct-green: #42b64b;
    --uct-dark: #002935;
    --uct-text: #3d4f56;
    --uct-text-light: #7a8c93;
    --uct-border: #e8eff0;
    --uct-radius: 14px;
    --uct-radius-lg: 20px;
    --uct-shadow: 0 1px 3px rgba(0, 41, 53, 0.06), 0 8px 32px rgba(0, 41, 53, 0.06);
    --uct-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Campus switcher ── */
.uct-branch-switcher {
    background: #fff;
    border-bottom: 1px solid var(--uct-border);
    box-shadow: 0 4px 20px rgba(0, 41, 53, 0.04);
}

.uct-branch-switcher__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.uct-branch-switcher__inner::-webkit-scrollbar {
    display: none;
}

.uct-branch-switcher__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--uct-text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.uct-branch-switcher__label i {
    color: var(--uct-green);
}

.uct-branch-switcher__list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.uct-branch-switcher__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid var(--uct-border);
    background: #fff;
    color: var(--uct-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all var(--uct-transition);
    box-shadow: var(--uct-shadow);
}

.uct-branch-switcher__item:hover {
    border-color: rgba(66, 182, 75, 0.45);
    color: var(--uct-green);
    transform: translateY(-1px);
}

.uct-branch-switcher__item.is-active {
    background: linear-gradient(90deg, #42b64b 0%, #359a3d 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(66, 182, 75, 0.35);
}

.uct-branch-switcher__item em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.uct-branch-switcher__item.is-soon:not(.is-active) em {
    background: #fff4e5;
    color: #b45309;
}

.uct-branch-switcher__item.is-main:not(.is-active) em {
    background: #eef9ef;
    color: var(--uct-green);
}

/* Allow native sticky on branch pages (body overflow-x breaks it site-wide) */
html.uct-branch-html,
body.uct-branch-body {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html.uct-branch-html,
    body.uct-branch-body {
        overflow-x: visible;
    }
}

/* ── Page layout ── */
.uct-branch-page {
    padding: 0 0 92px;
    background: #ffffff;
    overflow: visible;
}

.uct-branch-page > .container {
    overflow: visible;
}

.uct-branch-layout {
    display: flex;
    align-items: stretch;
    gap: 28px;
    overflow: visible;
}

.uct-branch-layout__main {
    flex: 1 1 auto;
    min-width: 0;
}

.uct-branch-layout__aside {
    flex: 0 0 340px;
    width: 340px;
    max-width: 340px;
    min-width: 0;
    position: relative;
    align-self: stretch;
}

.uct-branch-layout__aside .uct-branch-sidebar {
    z-index: 2;
}

.uct-branch-tabs-area {
    padding-top: 50px;
    margin-bottom: 10px;
    overflow: hidden;
    max-width: 100%;
}

.uct-branch-tabs-area .course-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 4px;
}

.uct-branch-tabs-area .course-tabs::-webkit-scrollbar {
    height: 4px;
}

.uct-branch-tabs-area .course-tabs::-webkit-scrollbar-thumb {
    background: rgba(66, 182, 75, 0.35);
    border-radius: 4px;
}

.uct-branch-tabs-area .nav-pills {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.uct-branch-tabs-area .nav-link.uct-branch-tab-link {
    text-decoration: none !important;
}

.uct-branch-tabs-area .nav-link.uct-branch-tab-link:hover {
    color: var(--uct-green);
}

.uct-branch-intro {
    margin-bottom: 10px;
}

.uct-branch-intro__text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--uct-text);
    margin: 8px 0 0;
    max-width: 640px;
}

.uct-branch-intro__text--soon {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #fff8eb;
    border: 1px solid #fde6b6;
    border-radius: var(--uct-radius);
    color: #8a5b00;
}

.uct-branch-intro__text--soon i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Course grid ── */
.uct-branch-course-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.uct-branch-tab-pane .uct-branch-course-grid {
    margin: 0;
}

.uct-branch-body .uct-branch-layout__main .course-single-box {
    border-radius: var(--uct-radius);
    overflow: hidden;
    box-shadow: var(--uct-shadow);
    transition: box-shadow var(--uct-transition), transform var(--uct-transition);
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.uct-branch-body .uct-branch-layout__main .course-single-box:hover {
    box-shadow: 0 4px 12px rgba(0, 41, 53, 0.08), 0 20px 48px rgba(0, 41, 53, 0.1);
    transform: translateY(-3px);
}

.uct-branch-body .uct-branch-layout__main .course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.uct-branch-body .uct-branch-layout__main .course-bottom {
    margin-top: auto;
}

.uct-branch-body .uct-branch-layout__main .course-price span {
    font-size: 15px;
    font-weight: 600;
    color: var(--uct-green);
}

/* ── Coming soon branch ── */
.uct-branch-coming-soon {
    padding: 10px 0 20px;
    text-align: center;
}

.uct-branch-coming-soon > i {
    font-size: 40px;
    color: var(--uct-green);
    margin-bottom: 14px;
    display: block;
}

.uct-branch-coming-soon h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--uct-dark);
    margin: 0 0 10px;
}

.uct-branch-coming-soon > p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--uct-text);
    margin: 0 auto 28px;
    max-width: 620px;
}

.uct-branch-soon-card {
    height: 100%;
    padding: 24px 22px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--uct-border);
    border-radius: var(--uct-radius);
    box-shadow: var(--uct-shadow);
    transition: border-color var(--uct-transition), transform var(--uct-transition);
}

.uct-branch-soon-card:hover {
    border-color: rgba(66, 182, 75, 0.4);
    transform: translateY(-3px);
}

.uct-branch-soon-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(66, 182, 75, 0.1);
    color: var(--uct-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.uct-branch-soon-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--uct-dark);
    margin: 0 0 6px;
}

.uct-branch-soon-card span {
    display: block;
    font-size: 13px;
    color: var(--uct-text-light);
    margin-bottom: 14px;
}

.uct-branch-soon-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--uct-green);
    text-decoration: none !important;
}

.uct-branch-category-fallback {
    padding: 36px 28px;
    text-align: center;
    background: #f8fbfb;
    border: 1px solid var(--uct-border);
    border-radius: var(--uct-radius-lg);
}

.uct-branch-category-fallback h3 {
    margin: 0 0 10px;
    color: var(--uct-dark);
}

.uct-branch-category-fallback p {
    margin: 0 0 20px;
    color: var(--uct-text);
}

/* ── CTA ── */
.uct-branch-cta {
    margin-top: 40px;
    padding: 36px 32px;
    text-align: center;
    background: linear-gradient(135deg, #f0f7f1 0%, #f8fbfb 100%);
    border: 1px solid var(--uct-border);
    border-radius: var(--uct-radius-lg);
}

.uct-branch-cta > i {
    font-size: 32px;
    color: var(--uct-green);
    margin-bottom: 12px;
    display: block;
}

.uct-branch-cta h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--uct-dark);
    margin: 0 0 10px;
}

.uct-branch-cta p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--uct-text);
    margin: 0 auto 24px;
    max-width: 540px;
}

.uct-branch-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.uct-branch-cta__actions .main-btn {
    margin: 0;
    text-align: center;
}

.uct-branch-cta__actions .nest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.uct-branch-cta__actions .nest-btn__text i {
    margin-left: 8px;
}

/* ── Sidebar ── */
.uct-branch-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.uct-branch-widget {
    background: #ffffff;
    border: 1px solid var(--uct-border);
    border-radius: var(--uct-radius);
    padding: 24px;
    box-shadow: var(--uct-shadow);
}

.uct-branch-widget__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.uct-branch-widget__head i {
    font-size: 18px;
    color: var(--uct-green);
}

.uct-branch-widget__head h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--uct-dark);
    margin: 0;
}

.uct-branch-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #eef9ef;
    color: var(--uct-green);
}

.uct-branch-badge--main {
    background: var(--uct-green);
    color: #fff;
}

.uct-branch-badge--soon {
    background: #fff4e5;
    color: #b45309;
}

.uct-branch-widget__text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--uct-text);
    margin: 0 0 14px;
}

.uct-branch-widget__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uct-branch-widget__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--uct-text);
    line-height: 1.5;
}

.uct-branch-widget__list li i {
    color: var(--uct-green);
    margin-top: 2px;
    flex-shrink: 0;
}

.uct-branch-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #f8fbfb;
    border-radius: 10px;
    text-decoration: none !important;
    color: var(--uct-dark);
    font-size: 15px;
    font-weight: 600;
    transition: background var(--uct-transition), color var(--uct-transition);
}

.uct-branch-contact-link:hover {
    background: rgba(66, 182, 75, 0.1);
    color: var(--uct-green);
}

.uct-branch-contact-link i {
    color: var(--uct-green);
}

.uct-branch-widget__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 20px;
    background: var(--uct-green);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background var(--uct-transition), transform var(--uct-transition);
}

.uct-branch-widget__btn:hover {
    background: var(--uct-dark);
    transform: translateY(-1px);
}

.uct-branch-explore-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none !important;
    border-bottom: 1px solid var(--uct-border);
}

.uct-branch-explore-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.uct-branch-explore-link:first-of-type {
    padding-top: 0;
}

.uct-branch-explore-link:hover .uct-branch-explore-link__body span {
    color: var(--uct-green);
}

.uct-branch-explore-link__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(66, 182, 75, 0.1);
    color: var(--uct-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.uct-branch-explore-link__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.uct-branch-explore-link__body strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--uct-dark);
}

.uct-branch-explore-link__body span {
    font-size: 12px;
    color: var(--uct-text-light);
    transition: color var(--uct-transition);
}

.uct-branch-explore-link__body span i {
    font-size: 10px;
    transition: transform var(--uct-transition);
}

.uct-branch-explore-link:hover .uct-branch-explore-link__body span i {
    transform: translateX(3px);
}

/* ── Legacy alias (Islamabad old classes) ── */
.uct-isb-body .uct-isb-page,
.uct-isb-body .uct-branch-page { padding: 0 0 92px; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .uct-branch-layout {
        flex-direction: column;
    }

    .uct-branch-layout__aside {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .uct-branch-layout__aside .uct-branch-sidebar {
        position: static;
    }

    .uct-branch-tabs-area {
        padding-top: 36px;
    }

    .uct-branch-page {
        padding-bottom: 72px;
    }

    .uct-branch-switcher__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .uct-branch-switcher__list {
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .uct-branch-cta {
        padding: 28px 20px;
    }

    .uct-branch-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .uct-branch-cta__actions .main-btn,
    .uct-branch-cta__actions .nest-btn {
        width: 100%;
    }
}
