/* 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: #e7dda0;
}

/*
 * 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: 70px;
    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 #171968*/
.rs-footer-one.has-theme-tti-green::before {
    background-image: linear-gradient(90deg, #17196834.5%, #1719680%);
}

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

.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: #e80000;
}

.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: #e80000;
}

/* 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: #fff;
    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;
}

.rs-gallery-two .rs-gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Home programmes carousel - keep cards equal height only when cards sit side-by-side */
@media only screen and (min-width: 768px) {
    .rs-program-four .swiper-wrapper {
        align-items: stretch;
    }

    .rs-program-four .swiper-slide {
        display: flex;
        height: auto;
    }

    .rs-program-four .rs-program-item {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .rs-program-four .rs-program-content,
    .rs-program-four .rs-program-info {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }

    .rs-program-four .rs-program-btn {
        margin-top: auto;
    }
}

/* Resources page */
.tti-resource-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tti-resource-quicklinks a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
}

.tti-resource-quicklinks a:hover {
    background: #fff;
    color: #171968;
}

.tti-resource-stat,
.tti-contact-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: center;
    min-height: 150px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(23, 25, 104, 0.09);
    border-radius: 8px;
    color: #171968;
    box-shadow: 0 18px 45px rgba(23, 25, 104, 0.08);
}

.tti-resource-stat span,
.tti-contact-card span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #e8f5ed;
    color: #009244;
    font-size: 28px;
}

.tti-resource-stat strong {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    color: #171968;
}

.tti-resource-stat small,
.tti-contact-card small {
    align-self: start;
    color: #5f6675;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.tti-resource-stat:hover,
.tti-contact-card:hover {
    border-color: #009244;
    transform: translateY(-4px);
}

.tti-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tti-resource-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 26px;
    background: #fff;
    border: 1px solid rgba(23, 25, 104, 0.08);
    border-radius: 8px;
}

.tti-resource-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    color: #667085;
    font-weight: 700;
    font-size: 0.9rem;
}

.tti-resource-filetype {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 34px;
    padding-inline: 12px;
    background: #171968;
    color: #fff;
    border-radius: 6px;
}

.tti-resource-card h3 {
    color: #171968;
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.tti-resource-card p {
    color: #667085;
    margin-bottom: 22px;
}

.tti-resource-card a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #009244;
    font-weight: 800;
}

.tti-news-feature {
    position: sticky;
    top: 120px;
    min-height: 540px;
    background: #171968;
    border-radius: 8px;
    overflow: hidden;
}

.tti-news-feature img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.tti-news-feature-body {
    padding: 32px;
    color: #fff;
}

.tti-news-feature-body span,
.tti-campus-details span {
    display: inline-block;
    margin-bottom: 10px;
    color: #f4c542;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.tti-news-feature-body h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.12;
    margin-bottom: 16px;
}

.tti-news-feature-body p,
.tti-news-feature-body small {
    color: rgba(255, 255, 255, 0.82);
}

.tti-news-feature-empty {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tti-news-list {
    display: grid;
    gap: 18px;
}

.tti-news-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(23, 25, 104, 0.08);
    border-radius: 8px;
}

.tti-news-date {
    display: grid;
    place-items: center;
    align-content: center;
    width: 76px;
    height: 86px;
    background: #f4c542;
    color: #171968;
    border-radius: 8px;
}

.tti-news-date strong {
    font-size: 1.8rem;
    line-height: 1;
}

.tti-news-date span {
    font-weight: 800;
    text-transform: uppercase;
}

.tti-news-item h3 {
    color: #171968;
    font-size: 1.28rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.tti-news-item p {
    margin-bottom: 12px;
}

.tti-news-item summary {
    cursor: pointer;
    color: #009244;
    font-weight: 800;
}

.tti-news-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(23, 25, 104, 0.1);
}

.tti-resource-gallery {
    background: #eef4f1;
}

.tti-resource-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 16px;
}

.tti-resource-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #171968;
}

.tti-resource-gallery-item:first-child,
.tti-resource-gallery-item:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
}

.tti-resource-gallery-item img,
.tti-resource-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tti-resource-gallery-item span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    background: rgba(23, 25, 104, 0.86);
    color: #fff;
    border-radius: 6px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.tti-resource-gallery-item:hover img,
.tti-resource-gallery-item:hover video {
    transform: scale(1.05);
}

.tti-empty-state {
    padding: 52px 24px;
    background: #fff;
    border: 1px dashed rgba(23, 25, 104, 0.2);
    border-radius: 8px;
    text-align: center;
}

.tti-empty-state i {
    display: inline-block;
    margin-bottom: 18px;
    color: #009244;
    font-size: 46px;
}

.tti-empty-state h3 {
    color: #171968;
    margin-bottom: 8px;
}

/* Contact page */
.tti-contact-card {
    min-height: 170px;
}

.tti-contact-card strong {
    color: #171968;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tti-contact-panel,
.tti-campus-panel {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(23, 25, 104, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(23, 25, 104, 0.08);
}

.tti-contact-panel {
    padding: 34px;
}

.tti-contact-panel input,
.tti-contact-panel textarea {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(23, 25, 104, 0.16);
    border-radius: 6px;
    color: #171968;
    background: #f9fafb;
}

.tti-contact-panel textarea {
    min-height: 150px;
    padding-top: 16px;
    resize: vertical;
}

.tti-contact-panel input:focus,
.tti-contact-panel textarea:focus {
    outline: none;
    border-color: #009244;
    background: #fff;
}

.tti-campus-map {
    position: relative;
    min-height: 430px;
    background: #dfe9e3;
}

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

.tti-campus-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
    background: #171968;
}

.tti-campus-details h3 {
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.35;
    margin-bottom: 0;
}

.tti-campus-actions {
    display: grid;
    gap: 10px;
    min-width: 200px;
}

.tti-campus-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
    font-weight: 800;
}

.tti-campus-actions a:hover {
    background: #f4c542;
    color: #171968;
}

@media only screen and (max-width: 1199px) {
    .tti-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tti-news-feature {
        position: relative;
        top: auto;
        min-height: 0;
    }
}

@media only screen and (max-width: 991px) {
    .tti-resource-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 190px;
    }

    .tti-campus-details {
        grid-template-columns: 1fr;
    }

    .tti-campus-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    .tti-resource-grid,
    .tti-resource-gallery-grid {
        grid-template-columns: 1fr;
    }

    .tti-resource-gallery-item:first-child,
    .tti-resource-gallery-item:nth-child(6) {
        grid-column: auto;
        grid-row: auto;
    }

    .tti-news-item {
        grid-template-columns: 1fr;
    }

    .tti-news-date {
        width: 100%;
        height: auto;
        min-height: 70px;
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 8px;
    }

    .tti-campus-actions {
        grid-template-columns: 1fr;
    }
}

/* Resources hub and gallery album flow */
.tti-hub-card {
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(23, 25, 104, 0.1);
    border-radius: 8px;
    color: #171968;
    box-shadow: 0 18px 45px rgba(23, 25, 104, 0.08);
}

.tti-hub-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: #e8f5ed;
    color: #009244;
    font-size: 34px;
}

.tti-hub-card.is-gold span {
    background: #fff6d6;
    color: #b88400;
}

.tti-hub-card.is-blue span {
    background: #eceefe;
    color: #171968;
}

.tti-hub-card small {
    color: #667085;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.tti-hub-card h2 {
    color: #171968;
    font-size: 1.7rem;
    line-height: 1.18;
    margin-bottom: 16px;
}

.tti-hub-card p {
    color: #5f6675;
    margin-bottom: 0;
}

.tti-hub-card:hover {
    transform: translateY(-5px);
    border-color: #009244;
}

.tti-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.tti-album-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(23, 25, 104, 0.1);
    border-radius: 8px;
    overflow: hidden;
    color: #171968;
    box-shadow: 0 18px 45px rgba(23, 25, 104, 0.08);
}

.tti-album-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #171968;
    overflow: hidden;
}

.tti-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tti-album-cover span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    background: rgba(23, 25, 104, 0.9);
    color: #fff;
    border-radius: 6px;
    font-weight: 800;
}

.tti-album-body {
    padding: 24px;
}

.tti-album-body h2 {
    color: #171968;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.tti-album-body p {
    color: #009244;
    font-weight: 800;
    margin-bottom: 0;
}

.tti-album-card:hover .tti-album-cover img {
    transform: scale(1.05);
}

.tti-gallery-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tti-gallery-media-card {
    background: #fff;
    border: 1px solid rgba(23, 25, 104, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.tti-gallery-media-thumb {
    aspect-ratio: 4 / 3;
    background: #171968;
}

.tti-gallery-media-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.tti-gallery-media-thumb img,
.tti-gallery-media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tti-gallery-media-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px;
}

.tti-gallery-media-meta h3 {
    color: #171968;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.tti-gallery-media-meta span {
    flex: 0 0 auto;
    color: #009244;
    font-weight: 800;
}

@media only screen and (max-width: 1199px) {
    .tti-album-grid,
    .tti-gallery-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    .tti-album-grid,
    .tti-gallery-media-grid {
        grid-template-columns: 1fr;
    }
}

/* News index/detail */
.tti-news-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    min-height: 430px;
    margin-bottom: 36px;
    background: #fff;
    border: 1px solid rgba(23, 25, 104, 0.1);
    border-radius: 8px;
    overflow: hidden;
    color: #171968;
    box-shadow: 0 18px 45px rgba(23, 25, 104, 0.08);
}

.tti-news-lead-thumb,
.tti-news-card-thumb {
    background: #171968;
    overflow: hidden;
}

.tti-news-lead-thumb img,
.tti-news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tti-news-lead-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px;
}

.tti-news-lead-content span,
.tti-news-card-body span {
    color: #009244;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.tti-news-lead-content h2 {
    color: #171968;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    margin: 16px 0;
}

.tti-news-lead-content p,
.tti-news-card-body p {
    color: #5f6675;
}

.tti-news-lead-content strong,
.tti-news-card-body strong {
    color: #171968;
    font-weight: 900;
}

.tti-news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tti-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(23, 25, 104, 0.1);
    border-radius: 8px;
    overflow: hidden;
    color: #171968;
}

.tti-news-card-thumb {
    aspect-ratio: 16 / 10;
}

.tti-news-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 24px;
}

.tti-news-card-body h3 {
    color: #171968;
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 10px 0;
    overflow-wrap: anywhere;
}

.tti-news-card-body strong {
    margin-top: auto;
}

.tti-news-lead:hover img,
.tti-news-card:hover img {
    transform: scale(1.05);
}

.tti-news-detail-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #171968;
}

.tti-news-detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tti-news-detail-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 190px 0 80px;
    background: linear-gradient(
        180deg,
        rgba(23, 25, 104, 0.45),
        rgba(23, 25, 104, 0.95)
    );
}

.tti-news-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #fff;
    font-weight: 900;
}

.tti-news-detail-overlay span {
    display: block;
    margin-bottom: 14px;
    color: #f4c542;
    font-weight: 900;
    text-transform: uppercase;
}

.tti-news-detail-overlay h1 {
    max-width: 980px;
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.02;
    margin-bottom: 18px;
}

.tti-news-detail-overlay p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

.tti-news-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 44px;
    background: #fff;
    border-radius: 8px;
    color: #343a46;
    font-size: 1.05rem;
    line-height: 1.8;
}

.tti-news-article h1,
.tti-news-article h2,
.tti-news-article h3,
.tti-news-article h4 {
    color: #171968;
    margin-top: 1.4em;
}

.tti-news-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.tti-public-pagination {
    margin-top: 42px;
}

.tti-public-pagination nav {
    display: flex;
    justify-content: center;
}

.tti-public-pagination .pagination {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
}

.tti-public-pagination .page-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(23, 25, 104, 0.12);
    border-radius: 8px;
    color: #171968;
    background: #fff;
    font-weight: 800;
}

.tti-public-pagination .page-link:hover,
.tti-public-pagination .page-item.active .page-link {
    color: #fff;
    background: #009244;
    border-color: #009244;
}

.tti-public-pagination .page-item.disabled .page-link {
    color: #9aa1ad;
    background: #f4f5f7;
}

@media only screen and (max-width: 1199px) {
    .tti-news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 991px) {
    .tti-news-lead {
        grid-template-columns: 1fr;
    }

    .tti-news-lead-thumb {
        aspect-ratio: 16 / 9;
    }
}

@media only screen and (max-width: 767px) {
    .tti-news-card-grid {
        grid-template-columns: 1fr;
    }

    .tti-news-lead-content,
    .tti-news-article {
        padding: 26px;
    }
}
