/* TTI custom overrides — keep green-two header geometry (theme owns 100px badge) */

/* Inner-page sticky header (#rs-sticky-header.active) — Univet blue → TTI green */
.rs-header-one .rs-sticky-header.active,
.rs-header-one .rs-sticky-header.active.has-bg {
    background: #009244;
}

/*
 * Univet breadcrumb overlay is clear at the top (rgba … 0), so white
 * header-one / breadcrumb text washes out on light photo areas.
 * Keep a readable dark veil across the full hero, stronger at the top for nav.
 */
.rs-breadcrumb-one .rs-breadcrumb-bg-thumb::before {
    background-image: linear-gradient(
        180deg,
        rgba(0, 25, 44, 0.9) 0%,
        rgba(0, 25, 44, 0.62) 38%,
        rgba(0, 25, 44, 0.9) 100%
    );
}

/* Fit crest inside theme badge; do not expand wrapper width */
.rs-header-two.has-theme-green-two .header-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-inline: auto;
}

/*
 * Theme sets .rs-sticky-header.active .header-logo { width: unset }.
 * Univet logos were tiny; TTI crest PNGs are ~1080px and blow up sticky bar.
 */
.rs-header-two.has-theme-green-two .rs-sticky-header.active .header-logo {
    width: 170px;
    margin-top: 0;
}

.rs-header-two.has-theme-green-two .rs-sticky-header.active .header-logo img {
    max-width: 100%;
    height: auto;
}

@media only screen and (max-width: 575px) {
    .rs-header-two.has-theme-green-two .rs-sticky-header.active .header-logo {
        width: 56px;
    }
}

/* Footer crest PNG is ~1080px native; constrain to ~20% of prior 330px render */
.rs-footer-one .rs-footer-widget-logo img {
    width: 66px;
    max-width: 66px;
    height: auto;
    display: block;
}

/* Footer — replace Univet blues with TTI green #009244 */
.rs-footer-one.has-theme-tti-green::before {
    background-image: linear-gradient(90deg, #009244 34.5%, #009244 0%);
}

@media only screen and (max-width: 1366px) {
    .rs-footer-one.has-theme-tti-green::before {
        background-image: linear-gradient(180deg, #009244 0%, #009244 100%);
    }
}

.rs-footer-one.has-theme-tti-green .rs-footer-subscribe-from {
    background-color: #007a38;
}

.rs-footer-one.has-theme-tti-green .rs-cta-input input {
    background: #007a38;
    border-color: #007a38;
}

.rs-footer-one.has-theme-tti-green .rs-cta-input button {
    background: #009244;
}

.rs-footer-one.has-theme-tti-green .rs-cta-input button:hover {
    background: var(--rs-theme-yellow);
}

.rs-footer-one.has-theme-tti-green .theme-social.has-theme-tti-green a,
.rs-footer-one.has-theme-tti-green .rs-footer-social a {
    background: #007a38;
}

.rs-footer-one.has-theme-tti-green .theme-social.has-theme-tti-green a:hover,
.rs-footer-one.has-theme-tti-green .rs-footer-social a:hover {
    background: var(--rs-theme-yellow);
}

/* Back-to-top — match footer green */
#backtotop-wrap {
    background: #009244;
}

/* Inner pages (About / Programmes / Contact / Admissions) — do not affect home hero */
.tti-filter-link {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.tti-filter-link:hover {
    color: #1a5c3a;
}

/* Programmes — match Univet program.html card + thumb proportions */
.rs-program-five .tti-program-anchor {
    display: block;
    height: 0;
    overflow: hidden;
}

.rs-program-five .rs-filter-three .rs-filter-search input:focus {
    border-color: #1a5c3a;
}

.rs-program-five .filter-sidebar .filter-option label {
    cursor: pointer;
}

.rs-program-five .filter-main-title::before {
    background: #1a5c3a;
}

.rs-program-five .rs-program-thumb {
    align-self: stretch;
    min-height: 220px;
}

.rs-program-five .rs-program-thumb img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.rs-program-five .rs-program-title a:hover {
    color: #1a5c3a;
}

.rs-program-five input[type="checkbox"]:checked ~ label::before {
    background: #1a5c3a;
}

/* Univet tuition-fee.html: main.bg-primary = --rs-bg-primary #F6F4EE; white card, no shadow */
.rs-tuition-two .rs-tuition-thumb img {
    aspect-ratio: 525 / 350;
    object-fit: cover;
}

/* Programmes duration — Univet rs-tuition-three with TTI green */
.rs-tuition-three.has-theme-green-two .rs-tuition-tab-wrapper .nav-link.active,
.rs-tuition-three.has-theme-green-two .rs-tuition-tab-wrapper .nav-link:hover {
    color: #1a5c3a;
    border-color: #1a5c3a;
}

.rs-tuition-three.has-theme-green-two
    .rs-tuition-tab-wrapper
    .nav-link.active
    .rs-tuition-tab-icon
    svg
    path,
.rs-tuition-three.has-theme-green-two
    .rs-tuition-tab-wrapper
    .nav-link:hover
    .rs-tuition-tab-icon
    svg
    path {
    fill: #1a5c3a;
}

.rs-tuition-three.has-theme-green-two .rs-tuition-table-inner thead {
    background-color: #1a5c3a;
    color: #fff;
}

.rs-tuition-three.has-theme-green-two .rs-tuition-table-inner td a:hover {
    color: #1a5c3a;
}

.rs-program-five .rs-program-btn .rs-btn.has-theme-green-two {
    color: #1a5c3a;
}

.tti-entry-block {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
}

.tti-progression-ladder {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.tti-progression-ladder span:not(.tti-progression-arrow) {
    background: #1a5c3a;
    color: #fff;
    padding: 0.45rem 0.85rem;
}

.tti-progression-arrow {
    color: #1a5c3a;
}

.tti-contact-info-item {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 100%;
}

.tti-map-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e8efe9;
    overflow: hidden;
}

.tti-map-placeholder iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/*
 * About thumbs — match Univet about.html rs-about-seven:
 * wrapper ~960×390, each thumb ~463×390, gap 35px, sources 768×647.
 */
.rs-about-seven .rs-about-thumb-wrapper > .rs-about-thumb {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
}

.rs-about-seven .rs-about-thumb img {
    width: 100%;
    aspect-ratio: 768 / 647;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

@media only screen and (max-width: 575px) {
    .rs-about-seven .rs-about-thumb-wrapper > .rs-about-thumb {
        flex: 1 1 100%;
    }
}

/* About — Core Values: 4 columns (theme only grids nested .rs-why-choose-wrapper) */
.rs-why-choose-wrapper.has-theme-green-two.rs-why-choose-one {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
    margin-bottom: 10px;
}

.rs-why-choose-wrapper.has-theme-green-two.rs-why-choose-one
    .rs-why-choose-item {
    padding-inline: 20px;
    padding-bottom: 28px;
    margin-top: 50px;
}

/* Match Univet why-choose icon scale (SVG 50px in ~100–105px badge) */
.rs-why-choose-wrapper.has-theme-green-two.rs-why-choose-one
    .rs-why-choose-icon {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    color: #1a5c3a;
    margin: -52px auto 30px;
}

.rs-why-choose-wrapper.has-theme-green-two.rs-why-choose-one
    .rs-why-choose-icon
    i {
    font-size: 50px;
    line-height: 1;
}

@media only screen and (max-width: 1199px) {
    .rs-why-choose-wrapper.has-theme-green-two.rs-why-choose-one
        .rs-why-choose-icon {
        width: 90px;
        height: 90px;
        margin: -45px auto 25px;
    }

    .rs-why-choose-wrapper.has-theme-green-two.rs-why-choose-one
        .rs-why-choose-icon
        i {
        font-size: 42px;
    }
}

@media only screen and (max-width: 1199px) {
    .rs-why-choose-wrapper.has-theme-green-two.rs-why-choose-one {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 575px) {
    .rs-why-choose-wrapper.has-theme-green-two.rs-why-choose-one {
        grid-template-columns: 1fr;
    }
}

/*
 * Univet page ground (Playwright-measured 2026-08-05):
 *   main.bg-primary → #F6F4EE (--rs-bg-primary)
 *   body → #FFFFFF
 *   contact cards → #FFFFFF
 *   contact-four form → #003A65 (--rs-theme-blue)
 *   form inputs → #003359
 *   text primary → #4C4C4C
 * Brand accents stay green (#1a5c3a / has-theme-green-two); form panel stays Univet navy.
 */

/* Contact five — green icons/links (Univet defaults to theme-blue) */
.rs-contact-five.has-theme-green-two .rs-contact-icon svg path {
    fill: #1a5c3a;
}
.rs-contact-five.has-theme-green-two .rs-contact-links a:hover {
    color: #1a5c3a;
}

/* Contact four — checkbox/label legibility on navy form (Univet) */
.rs-contact-four .rs-form-check label {
    color: var(--rs-white);
}
.rs-contact-four .rs-btn.has-theme-green-two:active {
    transform: scale(0.97);
}

/* Admissions requirements — two white cards (1–3 | 4–6) */
.rs-scholarships-three .rs-scholarships-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}
.rs-scholarships-three .rs-scholarships-cards .rs-scholarships-wrapper {
    height: 100%;
}
.rs-scholarships-three .rs-scholarships-cards .rs-scholarships-item-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
}
@media only screen and (max-width: 767px) {
    .rs-scholarships-three .rs-scholarships-cards {
        grid-template-columns: 1fr;
    }
}

/* Admissions scholarships / admission cards — green accents */
.rs-scholarships-three.has-theme-green-two .rs-scholarships-title {
    color: #1a5c3a;
}
.rs-admission-one.has-theme-green-two .rs-admission-title {
    color: inherit;
}
.rs-admission-one .rs-btn.has-theme-green-two:active {
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .rs-contact-four .rs-btn.has-theme-green-two:active,
    .rs-admission-one .rs-btn.has-theme-green-two:active {
        transform: none;
    }
}

/* Home about award — keep icon + "Established 1982" on one line */
.rs-about-one .rs-about-award {
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
    max-width: 420px;
}
.rs-about-one .rs-about-award-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 8px;
}
.rs-about-one .rs-about-award-heading .rs-about-award-icon {
    flex-shrink: 0;
}
.rs-about-one .rs-about-award-heading .rs-about-award-title {
    margin-bottom: 0;
    white-space: nowrap;
}
@media only screen and (max-width: 480px) {
    .rs-about-one .rs-about-award {
        flex-wrap: nowrap;
    }
}

/* Home/About badge — keep theme green circle; TTI shield logo centered inside */
.rs-about-one.has-theme-green .rs-about-badge,
.rs-about-seven .rs-about-badge {
    background: #009244;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-about-one.has-theme-green .rs-about-badge img,
.rs-about-seven .rs-about-badge img {
    width: 78px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

/* Testimonials — contain long unbroken quotes; prevent card overflow/overlap */
.rs-testimonial-three .swiper-slide,
.rs-testimonial-three .rs-testimonial-item {
    min-width: 0;
    max-width: 100%;
}

.rs-testimonial-three .rs-testimonial-item {
    overflow: hidden;
}

.rs-testimonial-three .rs-testimonial-desc,
.rs-testimonial-three .rs-testimonial-avater-title,
.rs-testimonial-three .rs-testimonial-avater-designation {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Gallery page — TTI green active pills / accordion */
.rs-gallery-two.has-theme-tti-green
    .rs-gallery-tab-wrapper
    .nav-pills
    .nav-link.active,
.rs-gallery-two.has-theme-tti-green
    .rs-gallery-tab-wrapper
    .nav-pills
    .nav-link:hover {
    background: #009244;
    border-color: #009244;
    color: #fff;
}

.rs-gallery-two.has-theme-tti-green
    .rs-gallery-accordion
    .accordion-button:not(.collapsed) {
    background: #009244;
    color: #fff;
}

.rs-gallery-two.has-theme-tti-green .rs-gallery-btn .rs-btn-circle {
    background: #009244;
}
