/*
Theme Name:   Eduma Child
Theme URI:    http://thimpress.com/eduma
Description:  Eduma Child Theme
Author:       ThimPress
Author URI:   http://thimpress.com
Template:     eduma
Version:      1.0
Text Domain:  eduma-child
*/

/* =========================================
   Branding: Dark Slate (#2E3E4E) & Emerald (#007A33) & Gold (#D4AF37)
   ========================================= */

/* Headings H1-H2 */
h1,
h2,
h3,
h4,
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title,
.uni-section-title {
    color: #2E3E4E;
    /* Removed !important to avoid breaking other pages */
    font-weight: 700;
}

/* Elementor Tabs */
.elementor-widget-tabs .elementor-tab-title {
    color: #2E3E4E;
    /* Inactive Text Dark Slate */
}

.elementor-widget-tabs .elementor-tab-title.elementor-active {
    color: #2E3E4E;
    /* Active Text */
    border-bottom-color: #007A33 !important;
    /* Emerald Underline */
    background-color: rgba(0, 122, 51, 0.1);
    /* Light Emerald BG */
}

/* Eduma/Thim Specific Tabs Override if needed */
.thim-widget-tab .nav-tabs>li.active>a,
.thim-widget-tab .nav-tabs>li.active>a:hover,
.thim-widget-tab .nav-tabs>li.active>a:focus {
    color: #007A33 !important;
}

/* Primary Buttons (Emerald) */
.elementor-button,
button.submit,
input[type="submit"],
.btn-primary,
.uni-btn-gold {
    background-color: #007A33 !important;
    /* Emerald */
    color: #fff !important;
    /* White Text */
    border: 2px solid #007A33 !important;
    padding: 12px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    /* For Shine */
    overflow: hidden;
    /* For Shine */
}

/* Shine Effect Animation */
@keyframes uniShine {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    20% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.elementor-button::after,
button.submit::after,
.btn-primary::after,
.uni-btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: uniShine 4s infinite;
    /* Runs every 4 seconds */
    pointer-events: none;
}

.elementor-button:hover,
button.submit:hover,
input[type="submit"]:hover,
.uni-btn-gold:hover {
    background-color: #2E3E4E !important;
    /* Dark Slate on Hover */
    border-color: #2E3E4E !important;
    color: #fff !important;
}

.uni-btn-outline {
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.uni-btn-outline:hover {
    background: #fff !important;
    color: #2E3E4E !important;
}

/* Hide unwanted header elements */
#toolbar,
.thim-mobile-menu-container .menu-mobile-effect.navbar-toggle,
.menu-right .thim-link-login,
.thim-course-search-overlay,
.menu-right .widget_button,
.thim-widget-button,
/* New potential selector */
.thim-header-top,
/* Toolbar alias */
.menu-right .thim-widget-button,
.menu-right button,
.menu-right .btn {
    display: none !important;
}

/* Specific fix for "Apply Now" if it's a menu item or widget */
header .menu-right {
    display: none !important;
    /* Hide the whole right area if it only contains the button and search */
}

/* Logo Overlap Style */
.site-header {
    background: #fff;
    position: relative;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* =========================================
   HEADER LAYOUT FIX (Flexbox Override)
   ========================================= */

/* 1. Main Wrapper - Center it */
.site-header .thim-nav-wrapper,
.site-header .header_full,
.site-header .container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    /* Force standard width */
    margin: 0 auto !important;
    padding: 0 15px !important;
    /* Safety padding */
}

/* 2. Bust the Table Layout */
.site-header .tm-table {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    table-layout: auto !important;
}

/* 3. Logo Cell */
.site-header .width-logo {
    display: block !important;
    width: auto !important;
    flex-shrink: 0 !important;
    margin-right: 0 !important;
    /* Zero margin */
    padding-right: 10px !important;
    /* Small padding instead */
    position: relative;
    height: 1px;
}

/* 4. Navigation Cell */
.site-header .width-navigation {
    display: flex !important;
    width: auto !important;
    flex-grow: 1 !important;
    justify-content: flex-end !important;
    /* Push menu to right */
    align-items: center !important;
    vertical-align: middle !important;
    height: 100%;
    /* Ensure it takes full height for centering */
    overflow: visible !important;
    /* Don't cut off language switcher */
}

/* Logo Image Styling */
.thim-logo img {
    max-height: 90px !important;
    width: auto;
    background: #fff;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
}

/* Fix sticky header logo - JS OVERRIDE */
header#masthead.site-header.affix .thim-logo img,
header#masthead.site-header.affix .width-logo img,
.site-header.affix .thim-logo img {
    position: relative !important;
    max-height: 80px !important;
    height: 80px !important;
    /* Force height */
    width: auto !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force container to accept large logo */
header#masthead.site-header.affix,
header#masthead.site-header.affix .container,
header#masthead.site-header.affix .thim-nav-wrapper {
    min-height: 90px !important;
    /* Ensure container is taller than logo */
    height: 90px !important;
}

/* Wrapper height fix to allow logo to hang down without pushing header */
.site-header .thim-nav-wrapper {
    min-height: 80px;
    /* Set a base height for the header bar */
    align-items: flex-start !important;
    /* Align everything to top */
    padding-top: 0 !important;
}

/* Menu Alignment Fix */
.menu-main-menu {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 80px;
    /* Match header height */
    overflow: visible !important;
    /* Safety for dropdowns */
}

/* STICKY HEADER FIXES */
.site-header.affix .thim-nav-wrapper {
    max-width: 1200px !important;
}

.site-header.affix .thim-logo img {
    max-height: 50px !important;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

/* 2. Fluid Desktop Menu (Adapt to any width > 1024px) */
@media (min-width: 1025px) {

    /* 1. Fluid Logo */
    .thim-logo img {
        max-height: clamp(60px, 6vh, 90px) !important;
        padding: 8px 12px !important;
        width: auto !important;
    }

    /* 2. Fluid navigation items */
    .menu-main-menu>li>a,
    .navbar-nav>li>a {
        /* Compact cells keep the labels visually balanced across the header. */
        padding-left: clamp(3px, 0.45vw, 8px) !important;
        padding-right: clamp(3px, 0.45vw, 8px) !important;

        /* Fluid font size - Reduced slightly for buffer */
        font-size: clamp(11px, 0.9vw, 15px) !important;
        letter-spacing: -0.2px;
    }

    /* 2.1 Fix submenu arrows - Fluid reserved space */
    .menu-main-menu li.menu-item-has-children>a,
    .navbar-nav li.menu-item-has-children>a {
        /* Reserve only the space the arrow itself needs. */
        padding-right: clamp(14px, 1.2vw, 18px) !important;
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: normal !important;
        /* Allow wrapping */
        height: 100%;
        line-height: 1.2 !important;
        /* Tighten line height for wrapped text */
    }

    /* Arrow positioning */
    .menu-main-menu li.menu-item-has-children>a i,
    .navbar-nav li.menu-item-has-children>a i,
    .menu-main-menu li.menu-item-has-children>a .tc-menu-caret,
    .navbar-nav li.menu-item-has-children>a .tc-menu-caret,
    .menu-main-menu li.menu-item-has-children>a:after,
    .navbar-nav li.menu-item-has-children>a:after {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: clamp(14px, 1.2vw, 18px) !important;
        /* Match the compact reserved space. */
        height: 100% !important;
    }

    /* 3. Compact the CTA button - Two Lines */
    .menu-item-button a {
        padding: 4px 15px !important;
        /* Reduced vertical padding */
        font-size: clamp(10px, 0.85vw, 13px) !important;
        white-space: normal !important;
        /* Allow wrap */
        text-align: center !important;
        line-height: 1.1 !important;
        max-width: 125px;
        /* Force wrap for "Free Consultation" / "Бесплатная Консультация" */
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        /* Keep button substantial */
    }

    /* 4. Allow header to take full fluid width if needed */
    .site-header .thim-nav-wrapper,
    .site-header .container {
        max-width: 96% !important;
        /* Buffer: 96% width leaves 2% gap on each side */
        padding: 0 20px !important;
        /* Extra internal padding */
        min-height: 70px !important;
    }

    .site-header.affix,
    .site-header.affix .thim-nav-wrapper {
        min-height: 70px !important;
        height: 70px !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .site-header .width-navigation {
        display: none !important;
        /* Hide desktop menu on mobile/tablet */
    }

    .menu-mobile-effect {
        display: block !important;
        /* Show hamburger */
    }

    .site-header .tm-table {
        justify-content: space-between !important;
    }
}

/* Menu Button (Get Consultation) - Emerald */
.menu-item-button {
    margin-right: 0 !important;
    /* Remove right margin from button container */
    padding-right: 0 !important;
    /* Remove right padding if any */
}

.menu-item-button a {
    background-color: #007A33 !important;
    /* Emerald Background */
    color: #fff !important;
    /* White Text */
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: 700 !important;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid #007A33;
    margin-top: -5px;
    /* Slight alignment fix if needed */
}

.menu-item-button a:hover {
    background-color: #2E3E4E !important;
    /* Dark Slate Hover */
    border-color: #2E3E4E !important;
    color: #fff !important;
}

/* Ensure it looks good in sticky header too */
.site-header.affix .menu-item-button a {
    margin-top: 0;
}

.single-university .entry-title {
    color: #2E3E4E;
    font-weight: 700;
}

/* =========================================
   Footer Styling (Overrides)
   ========================================= */
footer#colophon,
.site-footer {
    background-color: #2E3E4E !important;
    /* Dark Slate BG */
    color: #fff !important;
    padding-top: 60px !important;
    /* Reduced top space */
    padding-bottom: 60px !important;
    /* Balanced bottom space */
}

/* Remove default widget margins to align to top */
footer#colophon .widget-title,
footer#colophon h2,
footer#colophon h4 {
    margin-top: 0 !important;
}

/* =========================================
   Footer Styling (Clean Rebuild)
   ========================================= */

/* 1. Global Footer Colors & Spacing */
footer#colophon {
    background-color: #2E3E4E !important;
    /* Dark Slate BG */
    color: #fff !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Headings */
footer#colophon .widget-title,
footer#colophon h2 {
    color: #D4AF37 !important;
    /* Gold */
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 20px !important;
    /* Increased from 18px */
}

/* Text & Links */
footer#colophon p,
footer#colophon li,
footer#colophon span,
footer#colophon a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 15px;
    /* Increased from 14px */
    line-height: 1.6;
    text-decoration: none !important;
}

footer#colophon a:hover {
    color: #D4AF37 !important;
}

/* 2. Social Icons (Col 1) */
.thim-social-list {
    margin-top: 20px;
}

.thim-social-list a {
    margin-right: 10px;
    display: inline-block;
}

.thim-social-list i {
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
    width: 34px;
    height: 34px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.thim-social-list a:hover i {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #fff;
}

/* 3. Contact List (Col 3) */
.footer-contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-list i {
    color: #D4AF37 !important;
    margin-top: 5px;
    margin-right: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-list span {
    text-align: left;
}

.footer-contact-list span a {
    color: #fff !important;
    margin-right: 15px;
    display: inline-block;
}

/* 4. Desktop Specific Layout (min-width: 992px) */
@media (min-width: 992px) {

    /* Flex Centering for Footer */
    footer#colophon .footer .row {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        margin-left: 0 !important;
        /* Reset row margins to prevent shift */
        margin-right: 0 !important;
    }

    /* 
       Reset Grid Columns to Auto/Fixed widths for perfect symmetry 
       Overrides col-md-* classes
    */

    /* Column 1: About - Fixed width for text block */
    .footer-col-about {
        width: 300px !important;
        flex: 0 0 300px !important;
        padding: 0 !important;
        margin-right: 60px !important;
        /* Equal Gap 1 */
    }

    /* Column 2: Links - Auto width */
    .footer-col-links {
        width: auto !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
        margin-right: 60px !important;
        /* Equal Gap 2 */
    }

    /* Fix Menu Indentation */
    .footer-col-links ul,
    .footer-col-links .menu {
        padding-left: 0 !important;
        margin-left: 0 !important;
        list-style: none !important;
    }

    /* Column 3: Contact - Auto width */
    .footer-col-contact {
        width: auto !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
    }

    /* Ensure one-line contacts on desktop */
    .footer-contact-list span {
        white-space: nowrap;
    }
}

/* 5. Mobile Layout (max-width: 767px) */
@media (max-width: 767px) {

    /* Mobile text/icon sizes */
    footer#colophon .widget-title {
        font-size: 18px !important;
        /* Increased from 16px */
        margin-bottom: 15px !important;
    }

    footer#colophon p,
    footer#colophon a,
    footer#colophon span,
    footer#colophon li {
        font-size: 14px !important;
        /* Increased from 13px */
    }

    /* Column Spacing */
    .footer-col-about {
        margin-bottom: 40px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 
       Symmetry Fix for 2 Columns 
       Container has 15px padding.
       We remove column padding on outer edges to align with other content (15px from screen).
       We add padding on inner edges to create gap.
    */
    .footer-col-links {
        padding-left: 0 !important;
        /* Align to container left edge */
        padding-right: 10px !important;
        /* Gap */
    }

    .footer-col-contact {
        padding-left: 10px !important;
        /* Gap */
        padding-right: 0 !important;
        /* Align to container right edge */
    }

    /* Contact list on mobile: Stack items vertically if needed */
    .footer-contact-list span a {
        display: block;
        /* Stack phone numbers/emails on mobile */
        margin-right: 0;
        margin-bottom: 5px;
    }

    /* Fix icons alignment in contact list */
    .footer-contact-list i {
        margin-top: 2px;
    }
}

/* Dedicated programme link cards in university and language-school tabs. */
.uni-programme-landing-link {
    margin: 28px 0 4px;
    padding: 24px;
    border: 1px solid #d9e4ef;
    border-left: 4px solid #007a33;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8fbfe 0%, #ffffff 100%);
    box-shadow: 0 8px 22px rgba(26, 57, 84, 0.08);
}

.uni-tab-pane .uni-programme-landing-link h3 {
    margin: 0 0 9px;
    padding: 0;
    border: 0;
    color: #2e3e4e;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.uni-tab-pane .uni-programme-landing-link p {
    margin: 0 0 16px;
    text-align: left;
}

.uni-tab-pane .uni-programme-landing-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007a33;
    font-weight: 700;
}

.uni-tab-pane .uni-programme-landing-link a:hover,
.uni-tab-pane .uni-programme-landing-link a:focus {
    color: #005a26;
}

@media (max-width: 767px) {
    .uni-programme-landing-link {
        padding: 20px;
    }
}

/* Why Us Section (Grid Layout) */
.uni-why-us {
    background-color: #2E3E4E;
    /* Dark Slate Background */
    padding: 100px 0;
    color: #fff;
}

.uni-why-us .uni-section-title {
    color: #fff;
    /* White Title */
}

.uni-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.uni-feature-box {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    /* Semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s, background 0.3s;
}

.uni-feature-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #D4AF37;
    /* Gold Border on Hover for Premium feel */
}

.uni-feature-box i {
    /* font-size: 40px; Removed in favor of .uni-solid-icon */
    /* color: #D4AF37; */
    /* margin-bottom: 20px; Removed to fix centering in .uni-solid-icon */
    margin: 0 !important;
    display: inline-block;
}

.uni-feature-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    /* White Headings */
    margin-bottom: 10px;
}

.uni-feature-box p {
    color: rgba(255, 255, 255, 0.8);
    /* Light Gray Text */
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .uni-why-grid {
        grid-template-columns: 1fr;
    }
}

/* Steps Section (Card Style) */
.uni-steps-section {
    padding: 100px 0;
    background: #fff;
}

.uni-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

/* Hide old line */
.uni-steps-grid::before {
    display: none;
}

.uni-step-item {
    background: #f8f9fa;
    /* Light Gray */
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.uni-step-item:hover {
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-10px);
    border-color: #007A33;
}

.uni-step-icon {
    width: 60px;
    height: 60px;
    background: #007A33;
    /* Emerald BG */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 122, 51, 0.3);
    border: none;
    /* Reset old border */
}

.uni-step-item:hover .uni-step-icon {
    background: #2E3E4E;
    color: #fff;
    transform: scale(1.1);
}

.uni-step-number {
    background: #D4AF37;
    /* Gold Number Badge */
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid #fff;
}

.uni-step-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2E3E4E;
    margin-bottom: 10px;
    height: auto;
    /* Reset flex center if needed */
}

.uni-step-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    padding: 0;
}

@media (max-width: 992px) {
    .uni-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .uni-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Application Form Section */
.uni-application-section {
    padding: 80px 0;
    background: #fff;
}

.uni-app-wrapper {
    background-color: #2E3E4E;
    /* Dark Slate Background */
    border-radius: 20px;
    padding: 60px;
    color: #fff;
}

.uni-app-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    /* White Text */
    margin-bottom: 15px;
    line-height: 1.2;
}

.uni-app-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    /* Light Text */
    margin-bottom: 30px;
    max-width: 90%;
}

.uni-app-form .form-control {
    border: none;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #fff;
    color: #333;
    /* Dark text inside inputs */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    font-size: 14px;
}

.uni-app-form .form-control:focus {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
}

.uni-app-form textarea.form-control {
    height: 120px;
    resize: none;
}

@media (max-width: 768px) {
    .uni-app-wrapper {
        padding: 30px;
    }

    .uni-app-title {
        font-size: 28px;
    }
}

/* Testimonial Updated */
.uni-testimonials-section {
    position: relative;
    background-size: cover;
    background-attachment: fixed;
    padding-top: 100px;
    /* Standard padding */
    padding-bottom: 100px;
    overflow: visible !important;
    /* Allow avatars to pop out */
}

/* iOS Safari Fix: background-attachment:fixed causes full-page repaint on scroll */
@media (max-width: 1024px) {
    .uni-testimonials-section {
        background-attachment: scroll !important;
    }
}

/* Wrapper to push carousel down away from Heading */
.uni-testimonials-wrapper {
    margin-top: 100px;
    /* Space for avatars (80px) + visual gap */
}

/* Owl Stage fix for popping elements */
.uni-testimonial-carousel .owl-stage-outer {
    padding-top: 100px;
    /* Space for the avatar to exist inside the stage */
    margin-top: -100px;
    /* Pull stage back so we don't add double space, but we need the padding for overflow */
    overflow: visible !important;
    /* Crucial: Allow content outside the box */
}

/* If overflow:visible breaks the carousel sliding (it might show all items), 
   we need a different approach: Padding inside the stage.
*/
.uni-testimonial-carousel .owl-stage-outer {
    padding-top: 80px !important;
    margin-top: -40px !important;
    overflow: hidden !important;
    /* Keep hidden for carousel logic, but use padding */
}

/* Testimonial Card Styling */
.uni-testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: auto;
    /* Let it grow */
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    margin-top: 0;
    /* Reset margin since we use stage padding */
}

.uni-testimonial-card:hover {
    transform: translateY(-5px);
}

.uni-testimonial-content {
    position: relative;
}

.uni-testimonial-card .fa-quote-left {
    color: #007A33;
    /* Emerald */
    font-size: 30px;
    margin-bottom: 15px;
    display: block;
}

.uni-testimonial-text {
    font-size: 15px;
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Fix Owl Carousel squashing avatars */
.owl-carousel .owl-item .uni-testimonial-avatar {
    width: 80px !important;
    height: 80px !important;
    display: block !important;
}

/* Avatar Styling */
.uni-testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    margin: 0 auto 15px;
    /* Center and push text down */
    position: absolute;
    top: -70px;
    /* Pull it out of the card */
    left: 50%;
    transform: translateX(-50%);
    background-color: #eee;
    /* Fallback color */
}

.uni-testimonial-author {
    margin-top: 15px;
}

.uni-testimonial-author strong {
    display: block;
    color: #2E3E4E;
    /* Dark Slate */
    font-size: 16px;
    margin-bottom: 2px;
}

.uni-testimonial-author span {
    font-size: 13px;
    color: #888;
}

.uni-video-testimonials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 46px;
}

.uni-video-testimonial-card {
    appearance: none;
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    color: #2E3E4E;
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    width: 100%;
}

.uni-video-testimonial-card:hover,
.uni-video-testimonial-card:focus-visible {
    box-shadow: 0 12px 32px rgba(46, 62, 78, 0.15);
    outline: none;
    transform: translateY(-4px);
}

.uni-video-testimonial-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.25), 0 12px 32px rgba(46, 62, 78, 0.15);
}

.uni-video-testimonial-poster {
    aspect-ratio: 9 / 16;
    background: #2E3E4E;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.uni-video-testimonial-poster img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.uni-video-testimonial-card:hover .uni-video-testimonial-poster img,
.uni-video-testimonial-card:focus-visible .uni-video-testimonial-poster img {
    transform: scale(1.04);
}

.uni-video-testimonial-poster::after {
    background: linear-gradient(180deg, rgba(46, 62, 78, 0.05), rgba(46, 62, 78, 0.45));
    content: '';
    inset: 0;
    position: absolute;
}

.uni-video-testimonial-play {
    align-items: center;
    background: #007A33;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
    display: flex;
    font-size: 18px;
    height: 58px;
    justify-content: center;
    left: 50%;
    padding-left: 4px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    z-index: 2;
}

.uni-video-testimonial-title {
    bottom: 0;
    color: #fff;
    display: block;
    font-size: 15px;
    font-weight: 700;
    left: 0;
    line-height: 1.35;
    padding: 42px 18px 18px;
    position: absolute;
    right: 0;
    z-index: 2;
}

.uni-video-lightbox {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 99999;
}

.uni-video-lightbox.is-open {
    display: flex;
}

.uni-video-lightbox__backdrop {
    appearance: none;
    background: rgba(20, 27, 34, 0.82);
    border: 0;
    cursor: pointer;
    inset: 0;
    padding: 0;
    position: absolute;
}

.uni-video-lightbox__panel {
    background: #111;
    border-radius: 8px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.42);
    max-height: calc(100vh - 56px);
    max-width: min(520px, 100%);
    padding: 12px;
    position: relative;
    width: min(520px, 92vw);
    z-index: 1;
}

.uni-video-lightbox__close {
    align-items: center;
    appearance: none;
    background: rgba(17, 17, 17, 0.72);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 22px;
    top: 22px;
    width: 42px;
    z-index: 2;
}

.uni-video-lightbox__close:hover,
.uni-video-lightbox__close:focus {
    background: rgba(0, 122, 51, 0.95);
    color: #fff;
}

.uni-video-lightbox__close:focus-visible {
    outline: 3px solid rgba(0, 122, 51, 0.45);
    outline-offset: 2px;
}

.uni-video-lightbox__video {
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 6px;
    display: block;
    max-height: calc(100vh - 128px);
    object-fit: contain;
    width: 100%;
}

.uni-video-lightbox__video::cue {
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
}

.uni-video-lightbox__title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 10px 4px 0;
    text-align: center;
}

body.uni-video-lightbox-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .uni-video-testimonials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .uni-video-testimonials {
        gap: 18px;
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .uni-video-lightbox {
        padding: 18px;
    }

    .uni-video-lightbox__panel {
        max-height: calc(100vh - 36px);
        padding: 8px;
        width: min(380px, 94vw);
    }

    .uni-video-lightbox__close {
        right: 16px;
        top: 16px;
    }

    .uni-video-lightbox__video {
        max-height: calc(100vh - 92px);
    }
}

/* Owl Dots Customization */
.uni-testimonial-carousel .owl-dots,
.uni-university-carousel .owl-dots,
.uni-news-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.uni-testimonial-carousel .owl-dot span,
.uni-university-carousel .owl-dot span,
.uni-news-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    background: #ddd;
    display: inline-block;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
}

.uni-testimonial-carousel .owl-dot.active span,
.uni-university-carousel .owl-dot.active span,
.uni-news-carousel .owl-dot.active span {
    background: #007A33;
    /* Emerald */
    transform: scale(1.3);
}

/* Two Columns List (Manual Wrapper: <div class="uni-programs-list">...</div>) */
.uni-programs-list ul,
.uni-programs-list ol {
    column-count: 2 !important;
    column-gap: 40px !important;
    display: block !important;
}

@media (max-width: 768px) {

    .uni-programs-list ul,
    .uni-programs-list ol {
        column-count: 1 !important;
        /* Reset on mobile */
    }
}

/* Styled Content Headings (H3/H4) - FORCED */
.single-university .entry-content h3,
.single-university .entry-content h4,
.single-university .entry-content h5,
.single-university .entry-content h6,
.single-university .elementor-widget-theme-post-content h3,
.single-university .elementor-widget-theme-post-content h4,
.single-university .elementor-widget-theme-post-content h5,
.single-university .elementor-widget-theme-post-content h6,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5,
.elementor-widget-text-editor h6 {
    color: #2E3E4E !important;
    border-left: 4px solid #007A33 !important;
    /* Emerald left border */
    padding-left: 15px !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

/* Sidebar Styling (Conversion Box) */
/* Custom Page Header - Default White */
/* Page Title Section (archive-university, archive-language_school, page-faq) */
.page-title-section {
    position: relative;
    overflow: hidden;
    padding: 30px 0;
    background-size: cover;
    background-position: center;
}

.page-title-section > .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-title-section > .container {
    position: relative;
    z-index: 1;
}

/* Centering Page Headers (Forced) */
.top_site_main .page-title-wrapper,
.uni-page-header {
    text-align: center !important;
}

.top_site_main .page-title-wrapper .banner-wrapper,
.uni-page-header .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.page-title-wrapper .page-title,
.uni-page-header h1 {
    text-align: center !important;
    width: 100% !important;
}

.page-title-wrapper .banner-description,
.uni-page-header .uni-breadcrumbs {
    text-align: center !important;
    width: 100% !important;
    justify-content: center !important;
}

/* Force Lead color to Emerald on all Partnership sections */
.uni-intro-section .lead,
.uni-content .lead,
.uni-text-gold.lead {
    color: #007A33 !important;
}

.uni-divider-gold {
    background-color: #007A33 !important;
    /* Emerald Divider */
    width: 60px !important;
    height: 3px !important;
    margin-top: 15px !important;
    margin-bottom: 30px !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure h3 headers with .text-center are truly centered even if inline-block */
.uni-content h3.text-center,
.uni-dark-section h3.text-center {
    display: table !important;
    /* This allows margin: auto to work on inline-like elements */
    margin-left: auto !important;
    margin-right: auto !important;
}

.uni-page-header h1,
.uni-page-header .uni-page-title {
    color: #2E3E4E !important;
}

.uni-page-header .uni-breadcrumbs,
.uni-page-header .uni-breadcrumbs a,
.uni-page-header .uni-breadcrumbs span {
    color: #777 !important;
}

.uni-page-header .uni-hero-overlay {
    display: none;
    /* Hidden by default */
}


/* Sidebar Box Default */
.uni-sidebar-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.uni-sidebar-box.uni-sidebar-cta {
    background: #2E3E4E;
    color: #fff;
    text-align: center;
}

.uni-sidebar-box.uni-sidebar-cta h3 {
    color: #fff;
}


/* CTA Title in Sidebar */
.uni-cta-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
    color: #2E3E4E;
}

/* =========================================
   Homepage Styles (Scoped to .uni-home-page)
   ========================================= */

.uni-home-page .uni-section {
    padding: 60px 0;
}

/* Reduce spacing for News Section */
.uni-home-page .uni-news-section {
    padding-top: 10px !important;
    /* Drastically reduced from 60px */
}

.uni-home-page .uni-section-title {
    margin-bottom: 20px;
    position: relative;
    display: block;
    /* Changed from inline-block to block for centering */
    text-align: center;
    /* Ensure text is centered */
}

.uni-home-page .uni-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #007A33;
    /* Emerald underline */
    margin: 15px auto 0;
}

/* Hero Section */
.uni-home-page .uni-hero-section {
    position: relative;
    height: 85vh;
    /* Responsive height */
    min-height: 600px;
    background-color: #2E3E4E;
    /* Fallback color */
    /* background-image removed for slider */
    overflow: hidden;
    /* Ensure slider doesn't overflow */
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

/* Hero Slider */
.uni-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind overlay */
}

.uni-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top 20%;
    /* Shift image UP (focus on faces, hide bottom watermark) */
    opacity: 0;
    transform: scale(1.15);
    /* Start slightly larger to push edges out */
    animation: heroSlideFade 35s infinite;
    /* 5 images * 7s = 35s cycle */
}

/* Keyframes for 5 images (35s total) 
   Each image visible for ~7s.
   Fade in: 2s
   Visible: 3s
   Fade out: 2s
   
   4% of 35s ≈ 1.4s
   20% of 35s = 7s
   24% of 35s ≈ 8.4s
*/
@keyframes heroSlideFade {
    0% {
        opacity: 0;
        transform: scale(1.15);
    }

    5% {
        /* Fade in over ~1.7s */
        opacity: 1;
        transform: scale(1.12);
    }

    20% {
        /* Stay visible until 7s */
        opacity: 1;
        transform: scale(1.08);
    }

    25% {
        /* Fade out by 8.75s (overlap next slide) */
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

@media (min-width: 768px) {
    /* Parallax disabled for slider to keep simple, or can be re-added if needed */
    /* .uni-home-page .uni-hero-section { background-attachment: fixed; } */
}

.uni-home-page .uni-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(46, 62, 78, 0.85), rgba(46, 62, 78, 0.6));
    /* Dark Slate Gradient */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.uni-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    /* Increased max-width */
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    /* Add animation */
}

.uni-hero-title {
    color: #fff !important;
    font-size: 3.5rem;
    /* Increased size (~56px) */
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Better legibility */
}

@media (max-width: 768px) {
    .uni-hero-title {
        font-size: 2.5rem;
        /* Smaller on mobile */
    }
}

.uni-hero-subtitle {
    font-size: 1.25rem;
    /* ~20px */
    margin-bottom: 50px;
    opacity: 0.95;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.uni-price-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.95);
    /* Slightly transparent Gold */
    color: #2E3E4E;
    padding: 12px 35px;
    /* Increased padding */
    border-radius: 50px;
    /* Pill shape */
    margin-bottom: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.1rem;
    /* Increased font size */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(1);
    transition: transform 0.3s;
}

.uni-price-badge:hover {
    transform: scale(1.05);
}

/* iOS Safari Fix: backdrop-filter is GPU-intensive on mobile */
@media (max-width: 1024px) {
    .uni-price-badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.uni-price-badge .price {
    font-size: 1.2em;
    margin-left: 5px;
}

/* Hero Buttons Alignment */
.uni-hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.uni-hero-cta .uni-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    /* Fixed height to match */
    padding: 0 30px;
    line-height: 1;
    /* Reset line-height */
}

/* Remove green background from logo */
.thim-logo {
    background-color: transparent !important;
}

/* Ensure logo image has clean white bg and shadow */
.thim-logo img {
    background-color: #fff !important;
    border-radius: 0 0 10px 10px;
    /* Keep rounded corners at bottom */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    /* Light shadow */
    max-height: 85px !important;
    /* Reduced from 100px */
    padding: 10px 15px;
    /* Reduced top/bottom padding */
    width: auto;
    position: relative;
    top: 0;
}

/* If there's a wrapper causing the green bar */
.width-logo {
    background: transparent !important;
}

/* Services Teaser Cards */
.uni-service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.uni-service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #D4AF37;
    /* Gold border on hover */
}

.uni-service-card .icon {
    font-size: 40px;
    color: #D4AF37;
    /* Gold Icons */
    margin-bottom: 20px;
}

.uni-service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.uni-service-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.uni-service-card .read-more {
    color: #2E3E4E;
    font-weight: 600;
    text-decoration: none;
}

/* Steps Section (Card Style) */
.uni-steps-section {
    padding: 100px 0;
    background: #2E3E4E;
    /* Dark Slate Background */
    color: #fff;
}

.uni-steps-section .uni-section-title {
    color: #fff !important;
    /* White Title */
}

.uni-steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Stretch to make all cards equal height */
    margin-top: 60px;
    flex-wrap: wrap;
    position: relative;
}

/* Connecting Line (Desktop Only) */
.uni-steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    /* Center with circle */
    left: 50px;
    right: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    /* Subtle white line */
    z-index: 1;
}

.uni-step-item {
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphism/Dark card */
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 140px;
    z-index: 2;
    /* Above line */
    margin: 0 10px;
    /* Spacing between cards */
}

.uni-step-item:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
    border-color: #D4AF37;
    /* Gold Border on Hover */
}

.uni-step-icon {
    width: 80px;
    height: 80px;
    background: #2E3E4E;
    /* Dark Slate to cover line */
    border: 2px solid #D4AF37;
    /* Gold Border */
    color: #D4AF37;
    /* Gold Icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure FontAwesome icons are visible and centered */
.uni-step-icon i,
.uni-service-card .icon i,
.uni-model-icon i,
.uni-icon-ring i {
    font-family: FontAwesome !important;
    /* No quotes, just to be safe */
    font-weight: normal !important;
    /* Back to normal for 4.7 */
    font-style: normal !important;
    line-height: 1 !important;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force Center Headings using Flex */
.uni-step-item h4,
.uni-service-card h3 {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.uni-step-item:hover .uni-step-icon {
    background: #D4AF37;
    /* Gold Fill */
    color: #2E3E4E;
    /* Dark Icon */
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.uni-step-number {
    display: flex;
    /* Use flex to center text */
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #D4AF37;
    /* Gold Number Badge */
    color: #2E3E4E;
    /* Dark Text */
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 0;
    right: 0;
    /* Fix positioning relative to parent .uni-step-icon */
    margin-top: -5px;
    margin-right: -5px;
    border: 2px solid #2E3E4E;
    /* Dark Border to match bg */
}

.uni-step-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    /* White Text */
    margin-bottom: 10px;
}

.uni-step-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    /* Light Gray Text */
    line-height: 1.4;
    padding: 0 10px;
}

/* Hide arrow icons since we have a line now */
.uni-step-arrow {
    display: none;
}

/* Start Now Button Spacing */
.uni-steps-section .uni-btn {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .uni-steps-grid::before {
        display: none;
    }

    /* No line on mobile */
    .uni-steps-grid {
        flex-direction: column;
        gap: 40px;
    }

    .uni-step-item {
        width: 100%;
    }
}

/* Founder Profile */
.uni-founder-section {
    background-color: #f8f9fa;
    /* Light Gray */
}

.uni-founder-section .uni-social-links a {
    color: #007A33 !important;
    /* Emerald Icons */
    border-color: #007A33 !important;
}

.uni-founder-section .uni-social-links a:hover {
    background: #007A33 !important;
    color: #fff !important;
}

/* 3. Mission, Vision, Slogan (Dark Section) */
.uni-mv-box {
    transition: transform 0.3s;
}

.uni-mv-box:hover {
    transform: translateY(-5px);
}

.uni-solid-icon {
    width: 80px;
    height: 80px;
    background: #2E3E4E;
    /* Dark Slate */
    border: 2px solid #D4AF37;
    /* Gold */
    color: #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.uni-mv-box:hover .uni-solid-icon,
.uni-feature-box:hover .uni-solid-icon {
    background: #D4AF37;
    /* Gold Fill */
    color: #2E3E4E;
    /* Dark Icon */
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* 5. Core Services Teaser (Updated) */
.uni-service-card {
    background: #fff;
    padding: 25px 15px;
    /* Reduced padding from 40px 30px */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.uni-service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: #007A33;
    /* Emerald border on hover */
    box-shadow: 0 15px 40px rgba(0, 122, 51, 0.1);
}

/* 5. Core Services Teaser (Updated Style - Solid Ring) */
.uni-service-card .icon {
    width: 60px;
    /* Reduced from 80px */
    height: 60px;
    /* Reduced from 80px */
    margin: 0 auto 15px;
    /* Reduced margin */
    font-size: 24px;
    /* Reduced from 32px */
    color: #007A33;
    /* Emerald Icon */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* White BG */
    border: 2px solid #007A33;
    /* Emerald Solid Border */
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.uni-service-card:hover .icon {
    background: #007A33;
    /* Fill Emerald on Hover */
    color: #fff;
    /* White Icon */
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 122, 51, 0.3);
}

.uni-service-card h4 {
    font-size: 16px;
    /* Reduced from 18px */
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 700;
    color: #2E3E4E;
}

.uni-service-card p {
    font-size: 13px;
    /* Reduced from 14px */
    margin-bottom: 15px;
    line-height: 1.5;
    color: #666;
    flex-grow: 1;
}

.uni-service-card .read-more {
    font-size: 12px;
    /* Reduced from 13px */
    font-weight: 700;
    color: #007A33;
    /* Emerald Link */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.uni-service-card .read-more:hover {
    color: #2E3E4E;
}

/* 5-Column Grid for Desktop */
@media (min-width: 1200px) {
    .uni-services-teaser .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
        padding: 0 10px;
        /* Tighter gutters */
    }
}

/* Featured Universities Cards */
.uni-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.uni-card-thumb {
    height: 220px;
    position: relative;
}

.uni-card-thumb img {
    transition: transform 0.5s;
}

.uni-card:hover .uni-card-thumb img {
    transform: scale(1.05);
}

.uni-rank {
    background: #007A33;
    /* Emerald Rank */
    color: #fff !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* Why Us Section Refinement */
.uni-why-us {
    position: relative;
    overflow: hidden;
}

/* Add pattern overlay if possible, or just keep clean */
.uni-feature-box {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s;
}

.uni-feature-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

.uni-feature-box i {
    margin-bottom: 20px;
    display: inline-block;
}

/* Logo Marquee */
.uni-logo-marquee {
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    width: 100%;
}

.uni-logo-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
    /* Removed will-change:transform — it creates a permanent GPU compositing layer,
       contributing to iOS Safari memory pressure and crashes */
    transform: translate3d(0, 0, 0);
}

/* iOS Safari Fix: Pause off-screen animations to free GPU memory */
.uni-hero-slider.paused .uni-hero-slide {
    animation-play-state: paused !important;
}

.uni-logo-track.paused {
    animation-play-state: paused !important;
}

.uni-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 120px;
    /* One-sided padding for mathematical precision */
    color: #2E3E4E;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.uni-partners-section .uni-logo-item {
    width: 220px;
    min-height: 88px;
}

.uni-partners-section .uni-logo-item img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 190px;
    max-height: 64px;
    object-fit: contain;
}

.uni-logo-item:hover {
    opacity: 1;
}

.uni-logo-item i {
    color: #007A33;
    font-size: 32px;
    /* Increased icon size */
    width: 50px;
    /* Increased fixed width to accommodate larger icon */
    text-align: center;
    margin-right: 15px;
}

@media (max-width: 768px) {
    .uni-logo-marquee {
        padding: 20px 0;
    }

    .uni-logo-track {
        /* 
           CRITICAL FIX: max-width: none ensures the track takes the full width of content (max-content),
           instead of being capped at the screen width (100vw).
           Without this, translateX(-25%) moves only 25% of the screen, causing the "premature reset".
        */
        max-width: none !important;
        width: max-content;
        animation: marquee-mobile 30s linear infinite;
        /* Adjusted speed: 20s -> 30s for better readability */
        transform: translate3d(0, 0, 0);
    }

    .uni-logo-item {
        padding-right: 80px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .uni-partners-section .uni-logo-item {
        width: 132px;
        min-height: 72px;
        padding-right: 32px;
    }

    .uni-partners-section .uni-logo-item img {
        max-width: 120px;
        max-height: 48px;
    }

    .uni-logo-item i {
        font-size: 22px;
        /* Slightly larger on mobile too */
        width: 30px;
        margin-right: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .uni-partners-section .uni-logo-item {
        width: 180px;
        min-height: 80px;
        padding-right: 56px;
    }

    .uni-partners-section .uni-logo-item img {
        max-width: 150px;
        max-height: 56px;
    }
}

/* 
   Standard Marquee for Desktop (Still -50% because duplicate is x4, so effectively we cycle 2 sets)
   Actually, let's unify to use -25% logic everywhere for consistency, but keep desktop faster/different if needed.
   Let's just use a specific keyframe for mobile to be safe.
*/
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* -50% because we have 2 sets now (was -25% with 4 sets) */
}

@keyframes marquee-mobile {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* -50% for 2 sets (was -25% with 4 sets) */
}

/* Archive Grid (Reused) */
.uni-archive-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.uni-archive-grid .uni-card {
    width: 350px;
    max-width: 100%;
    flex: 0 0 350px;
}

@media (max-width: 768px) {
    .uni-archive-grid .uni-card {
        flex: 0 0 100%;
        /* Full width on mobile */
    }
}

.uni-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Deeper shadow for better separation */
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.uni-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* More prominent shadow on hover */
}

.uni-card-thumb {
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.uni-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.uni-card:hover .uni-card-thumb img {
    transform: scale(1.05);
}

.uni-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.uni-card-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.uni-card-meta span {
    margin-right: 15px;
}

.uni-card-title {
    font-size: 18px;
    margin-bottom: 15px;
    min-height: 44px;
    /* Align titles (approx 2 lines) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uni-card-title a {
    color: #2E3E4E;
    text-decoration: none;
}

.uni-btn-more {
    color: #007A33;
    /* Emerald Links */
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    margin-top: auto;
    /* Push to bottom */
}

/* =========================================
   Expandable List Shortcode Styles
   ========================================= */
.uni-expandable-wrapper {
    position: relative;
    width: 100%;
}

.uni-expandable-content {
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
}

/* Collapsed State */
.uni-expandable-wrapper.collapsed .uni-expandable-content {
    max-height: var(--exp-max-height, 300px);
}

.uni-expandable-wrapper.collapsed .uni-expandable-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    display: block;
}

/* Expanded State */
.uni-expandable-wrapper.expanded .uni-expandable-content {
    max-height: 2000px;
    /* Arbitrary large height for animation */
}

.uni-expandable-wrapper.expanded .uni-expandable-mask {
    display: none;
}

/* Trigger Button */
.uni-expandable-trigger {
    text-align: center;
    margin-top: 15px;
}

.uni-btn-expand {
    background: #f4f4f4;
    border: none;
    color: #2E3E4E;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.uni-btn-expand:hover {
    background: #007A33;
    color: #fff;
}

.uni-btn-expand i {
    margin-left: 5px;
}

/* Restore Turquoise Link Color - Nuclear Option - Actually change to Emerald now? No, user only said Emerald for palette. 
   But "Turquoise Link Color" was specific fix. Let's make it Emerald for consistency. */
body.single-university .elementor-widget-text-editor a,
body.single-university .entry-content a,
body.single-university .thim-course-content a,
body.single-university .elementor-widget-text-editor a *,
body.single-university .entry-content a *,
body.single-university .thim-course-content a * {
    color: #007A33 !important;
    /* Emerald Links */
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.3s;
}

body.single-university .elementor-widget-text-editor a:hover,
body.single-university .entry-content a:hover,
body.single-university .thim-course-content a:hover,
body.single-university .elementor-widget-text-editor a:hover *,
body.single-university .entry-content a:hover *,
body.single-university .thim-course-content a:hover * {
    color: #2E3E4E !important;
    /* Dark Slate on Hover */
    text-decoration: underline !important;
}

.uni-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2147483647;
    /* Max Z-Index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Darker overlay */
    backdrop-filter: blur(5px);

    /* Flex Center */
    align-items: center;
    justify-content: center;
}

.uni-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    z-index: 2147483648;
    /* Content on top of overlay */
}

/* Close Button */
.uni-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 2147483649;
}

.uni-modal-close:hover,
.uni-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.uni-modal-title {
    color: #2E3E4E;
    text-align: center;
    margin-top: 0;
}

.uni-modal-desc {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

/* Form Styles inside Modal */
.uni-modal-form label {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.uni-modal-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.uni-modal-form input[type="text"],
.uni-modal-form input[type="email"],
.uni-modal-form input[type="tel"],
.uni-modal-form textarea,
.uni-modal-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    box-sizing: border-box;
}

.uni-modal-form input[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #007A33;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.uni-modal-form input[type="submit"]:hover {
    background-color: #2E3E4E;
}

/* About Us Page Styling */
.uni-about-page .uni-page-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 50px;
    /* Added top margin to push it down */
}

.uni-about-page .uni-page-title {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 0;
}

.uni-about-page .uni-page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #007A33;
    /* Emerald */
    margin: 10px auto 0;
}

/* =========================================
   Text Alignment & Justification - REFINED
   ========================================= */

/* Blog article body text: justified on desktop and mobile. */
body.single-post .entry-content p,
body.single-post .entry-content li {
    text-align: justify !important;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* 1. Long Text: Justify (Mainly for About page and deep content) */
.uni-content p,
.uni-about-page .uni-content p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* 2. Narrow Cards & Blocks: Center Alignment */
.uni-landing-desc,
.uni-feature-box-dark p,
.uni-feature-box-light p,
.uni-zz-content p,
.uni-feature-card p,
.uni-model-card p {
    text-align: center !important;
}

/* 3. Global Centering Fix (For headings and subheadings) */
.text-center,
.uni-content .text-center,
.uni-intro-section.text-center .lead,
.uni-dark-section .text-center {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Allow long bio paragraphs to be justified even in centered containers */
.uni-content.text-center p,
.uni-content p {
    text-align: justify !important;
    hyphens: auto !important;
}

/* Force centering for specifically centered paragraphs or elements */
.text-center p,
.uni-content .text-center p,
.uni-dark-section .text-center p,
.uni-social-links {
    text-align: center !important;
}

/* Fix signature or short lines */
.uni-signature,
.uni-signature-block p {
    text-align: left !important;
}

/* Fix signature or short lines that shouldn't be justified if needed */
.uni-signature,
.uni-signature-block p {
    text-align: left !important;
}

.uni-about-page .uni-content {
    line-height: 1.8;
    /* Improve readability */
}

.uni-about-page .uni-signature {
    text-align: left;
    /* Keep signature left aligned */
}

/* Standardize Section Padding on About Page */
.uni-about-page .uni-section {
    padding: 40px 0;
    /* Reduced from 60px to 40px */
}

/* Standardize Heading Margins */
.uni-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    /* Reduced from 25px to 20px */
    font-size: 28px;
    /* Slightly smaller font for compact look */
    color: #2E3E4E;
    font-weight: 700;
}

/* Specific adjustment for "Message from CEO" to align with image */
.uni-content h2.uni-ceo-title {
    margin-top: -5px;
    /* Pull up slightly to align perfectly with image top */
}

/* Adjust CEO image container to align with text */
.uni-ceo-image {
    margin-top: 0 !important;
    margin-bottom: 20px;
    /* Reduced margin */
}

/* Social Links margin */
.uni-social-links {
    margin-top: 30px !important;
    /* Reduced from 40px */
}

/* =========================================
   Redesigned CEO Section (Card Style)
   ========================================= */

.uni-ceo-section {
    background-color: #f9f9f9;
    /* Light gray bg for section */
    padding: 80px 0;
    background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
    /* Subtle dot pattern */
}

.uni-ceo-card-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Accent top border */
.uni-ceo-card-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #2E3E4E;
    /* Dark Slate accent */
}

.uni-ceo-content {
    padding-left: 20px;
}

.uni-ceo-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.uni-ceo-title {
    font-size: 32px;
    color: #2E3E4E;
    margin-bottom: 25px;
    font-weight: 700;
}

/* CEO Image in Card */
.uni-ceo-image img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .uni-ceo-card-wrapper {
        padding: 30px;
    }

    .uni-ceo-content {
        padding-left: 0;
        margin-top: 30px;
    }
}

.uni-bg-achievements {
    background-image: url('images/about-bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Overlay for readability */
.uni-bg-achievements::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 62, 78, 0.75);
    /* Dark Slate #2E3E4E with lighter opacity */
    z-index: 0;
}

.uni-bg-achievements .container {
    position: relative;
    z-index: 1;
}

/* Update text colors for dark background */
.uni-bg-achievements .uni-section-title {
    color: #fff !important;
}

.uni-bg-achievements p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.uni-icef-certificate {
    background: #f7f8f6;
}

.uni-icef-certificate__content {
    max-width: 520px;
}

.uni-icef-certificate__eyebrow {
    color: #007a33;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.uni-icef-certificate__image-link {
    display: block;
    max-width: 420px;
    margin: 0 auto;
}

.uni-icef-certificate__image-link img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e2e4df;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .uni-icef-certificate__content {
        margin-bottom: 32px;
    }
}

.uni-about-text-block {
    border-left-color: #D4AF37 !important;
}

/* Social Icons in Card */
.uni-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Increased from 36px */
    height: 40px;
    /* Increased from 36px */
    background: #f4f4f4;
    color: #2E3E4E;
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s;
    font-size: 18px;
    /* Increased from 16px */
}

.uni-icon-link:hover {
    background: #007A33;
    color: #fff;
    transform: translateY(-3px);
}

/* About Page: Achievements List Styles (Transparent/Light Version) */
.uni-ach-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: transparent;
    /* Removed white bg */
    padding: 10px 0;
    /* Reduced padding, vertical only */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle divider */
    border-radius: 0;
    /* Remove radius */
    box-shadow: none;
    /* Remove shadow */
    transition: transform 0.3s;
}

.uni-ach-row:last-child {
    border-bottom: none;
}

.uni-ach-row:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle hover bg */
    padding-left: 10px;
    /* Shift content slightly on hover */
    border-radius: 8px;
}

.uni-ach-icon-circle {
    width: 40px;
    /* Smaller icon circle */
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    /* Gold with low opacity */
    border: 1px solid rgba(212, 175, 55, 0.5);
    /* Gold border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.uni-ach-icon-circle i {
    color: #D4AF37;
    /* Gold Icon */
    font-size: 18px;
}

.uni-ach-content {
    font-size: 16px;
    color: #fff;
    /* White text */
    line-height: 1.4;
}

.uni-ach-content strong {
    color: #fff;
    /* White strong text */
    border-bottom: 1px dotted rgba(212, 175, 55, 0.7);
    /* Subtle underline for emphasis */
}

/* Founder Text & Quote */
.uni-quote-box {
    border-left: 4px solid #D4AF37;
    /* Gold Line */
    padding-left: 20px;
    margin-bottom: 30px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.05), transparent);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.uni-quote-box .lead {
    font-style: italic;
    color: #2E3E4E;
    font-weight: 500;
    margin-bottom: 0;
}

/* Signature Block */
.uni-signature-block {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.uni-signature-block p {
    font-size: 48px !important;
    /* Increased from 36px */
    line-height: 1.2;
}

/* About Right Step - Text Constrain */
.uni-section .lead {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Achievements Grid */
.uni-achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.uni-achievement-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.uni-achievement-item:hover {
    transform: translateY(-5px);
    border-color: #007A33;
    box-shadow: 0 10px 30px rgba(0, 122, 51, 0.1);
}

.uni-ach-icon {
    font-size: 40px;
    color: #D4AF37;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uni-ach-number {
    font-size: 36px;
    font-weight: 800;
    color: #2E3E4E;
    line-height: 1;
    margin-bottom: 5px;
}

.uni-ach-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #007A33;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.uni-achievement-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .uni-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .uni-achievements-grid {
        grid-template-columns: 1fr;
    }

    .uni-founder-text {
        padding-left: 0 !important;
        margin-top: 30px;
    }
}

/* Pagination Styling (Eduma Style) */
.uni-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: #fff;
    color: #2E3E4E;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.uni-pagination .page-numbers:hover,
.uni-pagination .page-numbers.current {
    background: #007A33;
    /* Emerald */
    color: #fff;
    border-color: #007A33;
}

.uni-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #999;
    padding: 10px 5px;
}

/* Arrows */
.uni-pagination .prev.page-numbers,
.uni-pagination .next.page-numbers {
    background: transparent;
    border: 1px solid #2E3E4E;
    color: #2E3E4E;
}

.uni-pagination .prev.page-numbers:hover,
.uni-pagination .next.page-numbers:hover {
    background: #2E3E4E;
    color: #fff;
    border-color: #2E3E4E;
}

/* =========================================
   New Dark Section & Cards Design
   ========================================= */

/* Dark Section Container (Boxed style inside page) */
.uni-dark-section {
    background: linear-gradient(135deg, #2E3E4E 0%, #1a252f 100%);
    /* Dark Slate Gradient */
    padding: 40px 20px;
    border-radius: 30px;
    margin: 30px 0;
    color: #fff !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.uni-dark-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.uni-dark-section h1,
.uni-dark-section h2,
.uni-dark-section h3,
.uni-dark-section h4,
.uni-dark-section h5,
.uni-dark-section h6 {
    color: #fff !important;
    border-bottom: none !important;
}

.uni-dark-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #D4AF37;
    margin: 15px auto 0;
}

/* Zigzag Layout for Long Lists */
.uni-zigzag-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.uni-zigzag-row:nth-child(even) {
    flex-direction: row-reverse;
}

.uni-zigzag-content {
    flex: 1;
}

.uni-zigzag-image {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f1f1f1 100%);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(0, 122, 51, 0.2);
    /* Emerald instead of Gold */
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.uni-zigzag-row:hover .uni-zigzag-image {
    transform: scale(1.02);
    border-color: #007A33;
    /* Emerald instead of Gold */
    box-shadow: 0 25px 50px rgba(0, 122, 51, 0.1);
}

.uni-zigzag-image i {
    font-size: 100px;
    color: #007A33;
    /* Emerald instead of Gold */
    text-shadow: 0 10px 20px rgba(0, 122, 51, 0.2);
    transition: all 0.4s ease;
}

.uni-zigzag-row:hover .uni-zigzag-image i {
    transform: translateY(-10px);
    text-shadow: 0 15px 30px rgba(0, 122, 51, 0.4);
}

/* Fix Title Heights for symmetry in Model Cards */
.uni-feature-box-light h4,
.uni-feature-box-dark h4 {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Improved Lead text on Dark sections */
.uni-dark-section .lead {
    color: #007A33 !important;
    /* Changed to Emerald */
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Partners/Trust Block */
.uni-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    opacity: 0.7;
}

.uni-partner-item {
    font-size: 24px;
    font-weight: 700;
    color: #2E3E4E;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Grid Fixes for Symmetry and Alignment - NUCLEAR VERSION */
.uni-feature-grid-dark,
.uni-feature-grid-light {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
    justify-items: center !important;
    align-items: stretch !important;
}

.uni-feature-box-dark,
.uni-feature-box-light {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 40px 30px !important;
    width: 100% !important;
    /* Take full grid cell width */
    max-width: 400px !important;
    min-height: 300px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.uni-feature-box-dark {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.uni-feature-box-light {
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #eee !important;
}

/* Fix Title Heights and Paragraphs */
.uni-feature-box-dark h4,
.uni-feature-box-light h4 {
    margin: 20px 0 15px 0 !important;
    line-height: 1.2 !important;
    font-size: 18px !important;
    color: inherit !important;
    min-height: auto !important;
}

.uni-feature-box-dark p,
.uni-feature-box-light p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: inherit !important;
    opacity: 0.9 !important;
}

/* Icon Container Fix */
.uni-icon-ring {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    flex-shrink: 0 !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

.uni-feature-box-light .uni-icon-ring {
    background: rgba(0, 122, 51, 0.05) !important;
}

/* Zigzag Layout Fix for uneven content */
.uni-zigzag-row {
    display: flex !important;
    align-items: center !important;
    gap: 50px !important;
    margin-bottom: 80px !important;
}

.uni-zigzag-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.uni-zigzag-image {
    flex: 0.8;
    min-height: 300px;
}

/* Responsive Zigzag */
@media (max-width: 768px) {

    .uni-zigzag-row,
    .uni-zigzag-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

.uni-dark-section p,
.uni-dark-section li,
.uni-dark-section span,
.uni-dark-section div {
    color: rgba(255, 255, 255, 0.9) !important;
}

.uni-dark-section p.text-light {
    color: rgba(255, 255, 255, 0.7) !important;
}

.uni-dark-section a {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.uni-dark-section a:hover {
    color: #D4AF37 !important;
    border-bottom-color: #D4AF37;
}

/* Models Grid (Dark Cards on Dark BG - or Glassmorphism) */
.uni-models-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.uni-model-card {
    background: rgba(255, 255, 255, 0.05);
    /* Transparent/Glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    width: calc(33.333% - 20px);
    /* 3 cards per row */
    min-width: 280px;
}

.uni-model-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: #D4AF37;
    /* Gold border */
}

.uni-model-icon {
    width: 80px;
    /* Default size for icons */
    height: 80px;
    margin: 0 auto 20px;
    border: 2px solid #D4AF37;
    /* Gold ring */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #D4AF37;
    overflow: hidden;
    background: transparent;
    transition: all 0.3s;
}

/* Special styling for Large Hotel/Residence Images */
.uni-model-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Increase size only if it contains an image */
.uni-model-icon:has(img) {
    width: 220px;
    height: 220px;
    border-width: 4px;
    background: #fff;
}

.uni-model-card h4 {
    color: #2E3E4E;
    /* Default for light background */
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

/* Ensure visibility in Dark Sections */
.uni-dark-section .uni-model-card h4 {
    color: #fff !important;
}

.uni-dark-section .uni-model-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.uni-dark-section .uni-model-icon {
    background: rgba(255, 255, 255, 0.05);
}

.uni-dark-section .uni-model-card:hover .uni-model-icon {
    background: #D4AF37;
    color: #2E3E4E;
}

.uni-model-card p {
    color: #666;
    /* Darker gray for better readability on light BG */
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
    text-align: center;
    /* Center location and short text by default */
}

/* Only the long description should be justified */
.uni-model-card p.text-light {
    text-align: justify;
    margin-top: 10px;
}

/* Features Grid (Light Cards) */
.uni-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.uni-features-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.uni-feature-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 3px solid transparent;
    transition: transform 0.3s;
}

.uni-feature-card:hover {
    transform: translateY(-5px);
    border-top-color: #007A33;
    /* Emerald top border */
}

.uni-feature-card .uni-icon {
    font-size: 40px;
    color: #007A33;
    /* Emerald on White BG */
    margin-bottom: 20px;
}

/* Override for Dark Sections if needed */
.uni-dark-section .uni-feature-card .uni-icon {
    color: #D4AF37;
    /* Gold on Dark BG */
}

.uni-feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2E3E4E;
    margin-bottom: 15px;
}

.uni-feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* =========================================
   New Design V2 Utility Classes
   ========================================= */

.uni-text-gold {
    color: #D4AF37 !important;
}

.uni-text-emerald {
    color: #007A33 !important;
}

/* Enhanced Hero/Intro */
.uni-intro-section {
    padding: 100px 0 60px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent 400px);
}

/* Modern Card Style */
.uni-card-v2 {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    height: 100%;
}

.uni-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: #D4AF37;
}

/* Side Icon Box */
.uni-side-icon-box {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.uni-side-icon-box .uni-icon-v2 {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(0, 122, 51, 0.1);
    color: #007A33;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.uni-side-icon-box:hover .uni-icon-v2 {
    background: rgba(0, 122, 51, 0.1);
    /* Keep light background */
    color: #007A33;
    /* Stay emerald */
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 122, 51, 0.2);
}

/* Section Dividers */
.uni-divider-gold {
    width: 80px;
    height: 4px;
    background: #D4AF37;
    margin: 30px 0;
    border-radius: 2px;
}

/* Stats/Counter Box */
.uni-stat-box {
    text-align: center;
    padding: 30px;
}

.uni-stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #D4AF37;
    line-height: 1;
    margin-bottom: 10px;
}

.uni-stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2E3E4E;
    font-weight: 700;
}

/* Check List V2 */
.uni-check-list-v2 {
    list-style: none !important;
    padding: 0 !important;
}

.uni-check-list-v2 li {
    position: relative;
    padding-left: 35px !important;
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
}

.uni-check-list-v2 li::before {
    content: '\f058';
    /* Check Circle */
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 0;
    color: #D4AF37;
    font-size: 20px;
}

/* Zigzag V2 */
.uni-zigzag-v2 {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 100px 0;
}

.uni-zigzag-v2.reverse {
    flex-direction: row-reverse;
}

.uni-zigzag-v2 .uni-zz-img {
    flex: 1;
    position: relative;
}

.uni-zigzag-v2 .uni-zz-img::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid #D4AF37;
    border-radius: 30px;
    z-index: -1;
    opacity: 0.3;
}

.uni-zigzag-v2 .uni-zz-content {
    flex: 1.2;
}

@media (max-width: 768px) {

    .uni-zigzag-v2,
    .uni-zigzag-v2.reverse {
        flex-direction: column !important;
        text-align: center !important;
        margin: 30px 0 !important;
        gap: 20px !important;
    }

    .uni-side-icon-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Bullet list alignment fix - Center the list block, keep items left-aligned */
    .uni-check-list-v2,
    .uni-check-list {
        display: inline-block !important;
        text-align: left !important;
        margin: 0 auto 20px auto !important;
        padding: 0 !important;
    }

    .uni-check-list-v2 li,
    .uni-check-list li {
        text-align: left !important;
        padding-left: 30px !important;
        margin-bottom: 10px !important;
    }

    .uni-check-list-v2 li::before,
    .uni-check-list li::before {
        font-size: 18px !important;
    }

    /* Reduce vertical spacing between sections */
    .uni-section,
    .uni-dark-section,
    .uni-zigzag-v2,
    .uni-zigzag-v2.reverse {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .uni-content h2,
    .uni-content h3 {
        margin-bottom: 15px !important;
        font-size: 22px !important;
    }

    /* Capitalize first letter of list items on mobile */
    .uni-check-list-v2 li::first-letter,
    .uni-check-list li::first-letter,
    .uni-tab-pane li::first-letter {
        text-transform: uppercase !important;
    }
}

/* Global improvements (Desktop & Mobile) */

/* Add air between description and list in cards */
.uni-feature-box-light p,
.uni-card p,
.uni-feature-box-dark p {
    margin-bottom: 15px !important;
}

/* Capitalize first letter of list items globally */
.uni-check-list-v2 li::first-letter,
.uni-check-list li::first-letter,
.uni-tab-pane li::first-letter {
    text-transform: uppercase !important;
}

/* Two Column List */
.two-column-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
}

/* Responsive */
@media (max-width: 992px) {

    .uni-models-grid,
    .uni-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .uni-models-grid,
    .uni-features-grid {
        grid-template-columns: 1fr;
    }

    .uni-dark-section {
        padding: 40px 20px;
    }

    .two-column-list {
        grid-template-columns: 1fr;
    }
}

.uni-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

/* Headings */
.uni-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2E3E4E;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #007A33;
    /* Emerald Underline */
    display: inline-block;
}

.uni-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #007A33;
    /* Emerald */
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Lists */
.uni-content ul {
    list-style: none;
    /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 30px;
}

.uni-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.uni-content ul li::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 2px;
    color: #007A33;
    /* Emerald Check */
    font-size: 14px;
}

/* Special styling for "benefits" lists or similar */
.uni-content ul.uni-list-arrow li::before {
    content: '\f105';
    /* Angle Right */
}

/* Links */
.uni-content a {
    color: #007A33;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted #007A33;
}

.uni-content a:hover {
    color: #2E3E4E;
    border-bottom-style: solid;
}

/* Divider */
.uni-content hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 50px 0;
}

/* =========================================
   Landing Page Grid (Services & Partnership Parent)
   ========================================= */
.uni-landing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.uni-landing-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-decoration: none !important;
    /* Remove underline from card link */
}

.uni-landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 122, 51, 0.1);
    border-color: #007A33;
}

.uni-landing-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    /* Light Gold */
    color: #D4AF37;
    /* Gold */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.uni-landing-card:hover .uni-landing-icon {
    background: #D4AF37;
    color: #fff;
}

.uni-landing-title {
    font-size: 18px;
    font-weight: 700;
    color: #2E3E4E;
    margin-bottom: 10px;
}

.uni-landing-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .uni-landing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .uni-landing-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   University Archive Grid Styling (Unique Classes)
   ========================================= */

.uni-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 30px;
    /* Horizontal gap */
    row-gap: 30px;
    /* Vertical gap */
}

@media (max-width: 1024px) {
    .uni-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Tablet */
    }
}

@media (max-width: 768px) {
    .uni-grid-wrapper {
        grid-template-columns: 1fr;
        /* 1 Column on Mobile */
    }
}

.uni-grid-card {
    background: #fff;
    border: 1px solid #fff;
    /* Border matches bg initially for clean look, or use transparent */
    border-radius: 12px;
    /* Softer corners */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Soft, deep shadow */
}

.uni-grid-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    /* Keep border clean */
}

.uni-grid-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

.uni-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.uni-grid-thumb img.uni-archive-logo {
    object-fit: contain !important;
}

.uni-grid-card:hover .uni-grid-thumb img {
    transform: scale(1.05);
}

.uni-grid-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.uni-grid-meta {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.uni-grid-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.uni-grid-title a {
    color: #2E3E4E;
    text-decoration: none;
    transition: color 0.2s;
}

.uni-grid-title a:hover {
    color: #007A33;
}

.uni-grid-price {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    flex-grow: 1;
}

.uni-grid-price .label {
    font-weight: 600;
    color: #2E3E4E;
    margin-right: 5px;
}

.uni-btn-more {
    display: inline-block;
    color: #007A33;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.uni-btn-more:hover {
    color: #2E3E4E;
    padding-left: 5px;
    /* Slide effect */
}

/* =========================================
   Blog Archive Cards (Catalog-inspired soft version)
   ========================================= */

.uni-blog-archive-content {
    padding-top: 56px;
    padding-bottom: 60px;
}

.uni-blog-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.uni-blog-category-tab {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid #e7ebef;
    border-radius: 4px;
    background: #fff;
    color: #2E3E4E;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s ease;
}

.uni-blog-category-tab:hover,
.uni-blog-category-tab.active {
    border-color: #007A33;
    background: #007A33;
    color: #fff;
}

.uni-blog-card-grid {
    grid-template-columns: repeat(3, 1fr);
}

.uni-blog-card {
    border-color: #e7ebef;
    box-shadow: 0 8px 20px rgba(46, 62, 78, 0.05);
}

.uni-blog-card:hover {
    border-color: rgba(0, 122, 51, 0.2);
    box-shadow: 0 16px 34px rgba(46, 62, 78, 0.09);
}

.uni-blog-card-thumb {
    height: 190px;
}

.uni-blog-card-thumb a {
    display: block;
    height: 100%;
}

.uni-blog-card-thumb img {
    display: block;
}

.uni-blog-thumb-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(46, 62, 78, 0.2), rgba(0, 122, 51, 0.12)),
        linear-gradient(45deg, #dfe6eb, #f8fafb);
    position: relative;
}

.uni-blog-thumb-fallback:after {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 3px;
}

.uni-blog-card-body {
    padding: 22px;
}

.uni-blog-card-meta {
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 13px;
}

.uni-blog-card-meta,
.uni-blog-card-meta a {
    color: #777;
    font-size: 12px;
    text-decoration: none;
}

.uni-blog-card-meta a:hover {
    color: #007A33;
}

.uni-blog-card-meta i {
    color: #007A33;
    margin-right: 5px;
}

.uni-blog-card-title {
    margin-bottom: 14px;
}

.uni-blog-card-excerpt {
    flex-grow: 1;
    margin: 0 0 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    color: #555;
    font-size: 14px;
    line-height: 1.65;
}

.uni-blog-card-more {
    align-self: flex-start;
}

.uni-blog-pagination {
    margin-top: 42px;
    text-align: center;
}

.uni-blog-empty {
    border: 1px solid #e7ebef;
    border-radius: 8px;
    background: #fff;
    padding: 34px;
    text-align: center;
}

.uni-blog-empty h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2E3E4E;
}

.uni-blog-empty p {
    margin: 0;
    color: #66717f;
}

@media (max-width: 1024px) {
    .uni-blog-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .uni-blog-archive-content {
        padding-top: 36px;
        padding-bottom: 42px;
    }

    .uni-blog-category-tabs {
        gap: 8px;
        margin-bottom: 22px;
    }

    .uni-blog-category-tab {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .uni-blog-card-grid {
        grid-template-columns: 1fr;
    }

    .uni-blog-card-thumb {
        height: 210px;
    }
}

/* =========================================
   Blog & Global Color Updates (Dark Slate Fix)
   ========================================= */

/* Page Header Background (Blog, Archive, Single Post) */
body.blog .top_site_main,
body.archive .top_site_main,
body.single-post .top_site_main,
body.search .top_site_main,
.top_site_main,
.page-title-wrapper,
.thim-top-site-main {
    background-color: #2E3E4E !important;
    /* Dark Slate */
    background-image: none !important;
    /* Remove any demo patterns/images */
}

/* Header Overlay */
.top_site_main:before,
.page-title-wrapper:before,
.thim-top-site-main:before {
    background-color: rgba(46, 62, 78, 0.8) !important;
    /* Dark Slate with transparency */
}


/* Sidebar Widget Titles underline */
.widget-title:after,
.thim-widget-heading .thim-line,
.widget-title span:before {
    background-color: #2E3E4E !important;
    /* Dark Slate instead of blue */
}


/* "Need Guidance" or similar CTA boxes in sidebar */
.thim-widget-call-to-action,
.widget_call_to_action,
.call-to-action-box,
.thim-call-to-action {
    background-color: #2E3E4E !important;
    /* Dark Slate */
}

/* Blog Read More Buttons */
.read-more,
.entry-readmore a,
.thim-button.read-more {
    color: #007A33 !important;
    /* Emerald */
    border-color: #007A33 !important;
    background-color: transparent !important;
}

.read-more:hover,
.entry-readmore a:hover,
.thim-button.read-more:hover {
    color: #ffffff !important;
    border-color: #2E3E4E !important;
    background-color: #2E3E4E !important;
    /* Dark Slate on hover */
}

/* Pagination Fix */
.loop-pagination span.current,
.loop-pagination a:hover,
.page-numbers.current,
.pagination ul li span.current,
.pagination ul li a:hover {
    background-color: #2E3E4E !important;
    /* Dark Slate */
    border-color: #2E3E4E !important;
    color: #fff !important;
}

/* Elementor Kit / Global Overrides for common blue elements */
.elementor-button,
.elementor-widget-button .elementor-button {
    background-color: #007A33;
    /* Emerald for buttons */
}

/* Link colors in blog if they are blue */
body.blog .entry-content a,
body.single-post .entry-content a {
    color: #007A33;
}

body.blog .entry-content a:hover,
body.single-post .entry-content a:hover {
    color: #2E3E4E;
}

/* Global Color Overrides for Elementor / Theme Variables */
:root {
    --thim-body-primary-color: #2E3E4E !important;
    --thim-button-hover-color: #2E3E4E !important;
    --e-global-color-primary: #2E3E4E !important;
    --e-global-color-accent: #007A33 !important;
    --thim-footer-bg-color: #2E3E4E !important;
}

/* Footer Background if it's blue */
footer#colophon,
.footer-bottom {
    background-color: #2E3E4E !important;
}

/* Fallback: Show carousel content if JS fails to load or init */
.owl-carousel {
    display: block !important;
    /* Force show container */
}

/* If not loaded, ensure items are visible and stacked */
.owl-carousel:not(.owl-loaded)>.uni-card,
.owl-carousel:not(.owl-loaded)>.uni-testimonial-card,
.owl-carousel:not(.owl-loaded)>div {
    display: block;
    margin-bottom: 20px;
    width: 100%;
}

/* Owl Carousel Equal Height Fix & Shadow Clipping Fix */
.owl-carousel .owl-stage {
    display: flex;
    padding-top: 15px;
    /* Room for shadow on top */
    padding-bottom: 40px;
    /* Room for shadow on bottom when lifted */
}

.owl-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
    padding: 0 5px;
    /* Tiny horizontal padding to prevent side clipping */
}

.owl-carousel .owl-item .uni-card {
    width: 100%;
}

/* Allow shadows to breathe in carousel */
.uni-university-carousel {
    margin-top: -15px;
    /* Offset the padding-top */
    margin-bottom: -20px;
    /* Offset the padding-bottom */
}

.uni-news-carousel {
    margin-top: -15px;
    margin-bottom: -20px;
}

.uni-news-carousel:not(.owl-loaded) {
    display: grid !important;
    gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
    margin-bottom: 0;
}

.uni-news-carousel:not(.owl-loaded) > .uni-news-carousel-item {
    margin-bottom: 0;
    width: 100%;
}

.uni-news-carousel .uni-card-thumb {
    background:
        linear-gradient(135deg, rgba(46, 62, 78, 0.08), rgba(0, 122, 51, 0.05)),
        #f4f6f7;
}

.uni-news-carousel .owl-item .uni-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.uni-news-carousel .uni-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.uni-news-carousel .uni-card-body p {
    flex: 1;
}

@media (max-width: 991px) {
    .uni-news-carousel:not(.owl-loaded) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .uni-news-carousel:not(.owl-loaded) {
        grid-template-columns: 1fr;
    }
}

.uni-feature-grid-dark {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    /* 12-column grid for maximum flexibility */
    gap: 15px !important;
    margin: 15px 0 0 0 !important;
}

/* Default span for items (3 columns) */
.uni-feature-box-dark {
    grid-column: span 4;
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(10px) !important;
    padding: 30px 20px !important;
    border-radius: 15px !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 280px !important;
    height: 100% !important;
    padding-top: 40px !important;
}

/* 5 Items Centering (3 + 2) */
.uni-grid-5 .uni-feature-box-dark:nth-child(4) {
    grid-column: 3 / span 4;
    /* Offset by 2, span 4 */
}

.uni-grid-5 .uni-feature-box-dark:nth-child(5) {
    grid-column: 7 / span 4;
    /* Offset by 6, span 4 */
}

/* 4 Items Centering (2 + 2) */
.uni-grid-4 .uni-feature-box-dark {
    grid-column: span 6;
}

/* 2 Items (6 + 6) */
.uni-grid-2 .uni-feature-box-dark {
    grid-column: span 6;
}

/* 6 Items (3 + 3) */
.uni-grid-6 .uni-feature-box-dark {
    grid-column: span 4;
}

/* Tablet: 2 columns */
@media (max-width: 991px) {
    .uni-feature-grid-dark {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }

    .uni-feature-box-dark,
    .uni-grid-5 .uni-feature-box-dark,
    .uni-grid-4 .uni-feature-box-dark,
    .uni-grid-6 .uni-feature-box-dark {
        grid-column: span 1 !important;
    }

    .uni-grid-5 .uni-feature-box-dark:last-child {
        grid-column: span 2 !important;
        /* Center last odd item */
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
    .uni-feature-grid-dark {
        grid-template-columns: 1fr !important;
    }

    .uni-feature-box-dark,
    .uni-grid-5 .uni-feature-box-dark,
    .uni-grid-4 .uni-feature-box-dark,
    .uni-grid-6 .uni-feature-box-dark {
        grid-column: span 1 !important;
        max-width: 100% !important;
    }
}

.uni-feature-box-dark p {
    margin-bottom: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85) !important;
}

.uni-feature-box-dark h4 {
    min-height: auto !important;
    /* Reset forced height to allow flex centering */
    margin: 15px 0 !important;
}

@media (max-width: 992px) {
    .uni-feature-box-dark {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .uni-feature-box-dark {
        width: 100%;
    }
}

.uni-feature-box-dark:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #D4AF37;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.uni-feature-box-dark .uni-icon-ring {
    width: 80px;
    height: 80px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #D4AF37;
    margin-bottom: 20px;
    transition: all 0.3s;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.uni-feature-box-dark:hover .uni-icon-ring {
    background: #D4AF37;
    color: #2E3E4E;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.uni-feature-box-dark h4 {
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.uni-feature-box-dark p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Light Grid Styling (Consolidated with 12-column logic) */
.uni-feature-grid-light {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
}

.uni-feature-box-light {
    grid-column: span 4;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    padding: 40px 30px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #eee !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    min-height: 280px !important;
}

/* Light Grid Centering (3 + 2) */
@media (min-width: 992px) {
    .uni-grid-light-5 .uni-feature-box-light:nth-child(4) {
        grid-column: 3 / span 4 !important;
    }

    .uni-grid-light-5 .uni-feature-box-light:nth-child(5) {
        grid-column: 7 / span 4 !important;
    }
}

/* Side Icon Boxes Grid (Our Core Services) */
.uni-services-grid {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 30px !important;
}

.uni-services-grid .uni-side-icon-box {
    grid-column: span 4 !important;
    margin-bottom: 0 !important;
}

/* 5 items: 3 in first row, 2 in second row centered (Desktop only) */
@media (min-width: 992px) {
    .uni-services-grid .uni-side-icon-box:nth-child(4) {
        grid-column: 3 / span 4 !important;
    }

    .uni-services-grid .uni-side-icon-box:nth-child(5) {
        grid-column: 7 / span 4 !important;
    }
}

@media (max-width: 991px) {

    .uni-feature-grid-light,
    .uni-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
    }

    .uni-feature-box-light,
    .uni-services-grid .uni-side-icon-box {
        grid-column: span 1 !important;
    }

    .uni-grid-light-5 .uni-feature-box-light:last-child,
    .uni-services-grid .uni-side-icon-box:last-child:nth-child(odd) {
        grid-column: span 2 !important;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {

    .uni-feature-grid-light,
    .uni-services-grid {
        grid-template-columns: 1fr !important;
    }

    .uni-feature-box-light,
    .uni-services-grid .uni-side-icon-box {
        grid-column: span 1 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 992px) {
    .uni-feature-box-light {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .uni-feature-box-light {
        width: 100%;
    }
}

.uni-feature-box-light:hover {
    transform: translateY(-10px);
    border-color: #007A33;
    box-shadow: 0 20px 50px rgba(0, 122, 51, 0.1);
    background: #fff;
}

.uni-feature-box-light .uni-icon-ring {
    width: 80px;
    height: 80px;
    border: 2px solid #007A33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #007A33;
    margin-bottom: 25px;
    transition: all 0.3s;
    background: rgba(0, 122, 51, 0.03);
}

.uni-feature-box-light:hover .uni-icon-ring {
    background: rgba(0, 122, 51, 0.08);
    /* Keep light background */
    color: #007A33;
    /* Stay emerald */
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(0, 122, 51, 0.2);
}

.uni-feature-box-light h4 {
    color: #2E3E4E !important;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.uni-feature-box-light p {
    color: #666 !important;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 992px) {

    .uni-feature-grid-dark,
    .uni-feature-grid-light {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .uni-feature-grid-dark,
    .uni-feature-grid-light {
        grid-template-columns: 1fr;
    }
}

/* Connect FontAwesome to ring icons */
.uni-icon-ring i {
    font-family: FontAwesome !important;
    font-style: normal;
}

/* Dropdown Menu (Sub-menu) Styling */
.navbar-nav .sub-menu,
.menu-main-menu .sub-menu {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 10px 0 !important;
    min-width: 240px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.navbar-nav .sub-menu li,
.menu-main-menu .sub-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.navbar-nav .sub-menu li:last-child,
.menu-main-menu .sub-menu li:last-child {
    border-bottom: none !important;
}

.navbar-nav .sub-menu li a,
.menu-main-menu .sub-menu li a {
    padding: 12px 20px !important;
    display: block !important;
    font-weight: 500 !important;
    color: #2E3E4E !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.navbar-nav .sub-menu li a:hover,
.menu-main-menu .sub-menu li a:hover {
    background-color: rgba(0, 122, 51, 0.05) !important;
    /* Light Emerald BG */
    color: #007A33 !important;
    /* Emerald Text */
    padding-left: 25px !important;
    /* Slight shift effect */
}

/* =========================================
   TranslatePress Language Switcher - FORCED POSITION V2
   ========================================= */
html body #trp-floater-ls,
html body #trp-floater-ls.trp-bottom-right,
html body #trp-floater-ls.trp-bottom-left,
html body #trp-floater-ls.trp-top-right,
html body #trp-floater-ls.trp-top-left {
    top: auto !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    position: fixed !important;
    z-index: 99999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

html body #trp-floater-ls-current-language {
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #eee !important;
    padding: 0 !important;
    display: block !important;
}

html body #trp-floater-ls-language-list {
    bottom: 100% !important;
    top: auto !important;
}

/* =========================================
   MOBILE REFACING & POLISH (Added by AI)
   ========================================= */
@media (max-width: 767px) {

    /* 1. Prevent Horizontal Overflow */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        /* Changed from 100vw to avoid scrollbars */
        position: relative;
    }

    .container,
    .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    /* 2. Typography Refinement */
    h1,
    .uni-hero-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 15px !important;
    }

    h2,
    .uni-section-title,
    .uni-app-title {
        font-size: clamp(1.5rem, 6vw, 1.8rem) !important;
        line-height: 1.2 !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    .uni-hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
        padding: 0 10px;
    }

    /* =========================================
       MOBILE ZEN SPACING (Standardized)
       ========================================= */

    /* 1. Global Section Standard (20px Air) */
    .uni-section,
    .uni-dark-section,
    .uni-intro-section,
    .uni-zigzag-v2 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 2. Content Spacing Inside Sections */
    .uni-content h2,
    .uni-content h3,
    .uni-content .uni-section-title {
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
    }

    .uni-content .lead,
    .uni-content p:not(:last-child) {
        margin-bottom: 15px !important;
    }

    .uni-content ul {
        margin-bottom: 10px !important;
    }

    .uni-divider-gold {
        margin: 10px auto 20px !important;
    }

    /* 3. Grid & Component Standard */
    .uni-feature-grid-dark,
    .uni-feature-grid-light,
    .uni-services-grid,
    .uni-models-grid,
    .uni-grid-wrapper {
        margin-top: 25px !important;
        margin-bottom: 0 !important;
        gap: 20px !important;
    }

    /* 4. Page Header Polish */
    .uni-page-header,
    .top_site_main {
        padding-top: 35px !important;
        padding-bottom: 25px !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
    }

    /* 5. Neutralize Bootstrap Overhangs */
    .uni-content .mb-5,
    .uni-content .pb-5,
    .uni-content .my-5,
    .uni-content .py-5 {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Extra air for Zigzag components on mobile */
    .uni-zigzag-v2 .uni-zz-img {
        margin-bottom: 25px !important;
    }

    .uni-app-wrapper {
        padding: 25px 16px !important;
    }

    /* 4. Images & Logo */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .thim-logo img {
        max-height: 50px !important;
        /* Smaller logo for mobile */
        width: auto !important;
    }

    /* 5. Alignment & Buttons */
    .uni-hero-cta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .uni-hero-cta .uni-btn,
    .elementor-button,
    button.submit {
        width: 100%;
        /* Full width buttons on mobile */
        max-width: 300px;
        text-align: center;
    }

    .uni-price-badge {
        font-size: 0.9rem !important;
        padding: 8px 20px !important;
    }

    /* 6. Grid & Card Fixes */
    .uni-why-grid,
    .uni-steps-grid,
    .uni-services-grid,
    .uni-feature-grid-dark,
    .uni-feature-grid-light,
    .uni-models-grid,
    .uni-features-grid,
    .uni-grid-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        /* Reduced from 20px */
        width: 100% !important;
        padding: 0 !important;
        margin-top: 10px !important;
        /* Overrides global 40px */
        margin-bottom: 10px !important;
        /* Overrides global 40px */
    }

    .uni-feature-box-dark,
    .uni-feature-box-light,
    .uni-step-item,
    .uni-service-card,
    .uni-model-card,
    .uni-feature-card,
    .uni-grid-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 10px 0 !important;
        min-height: auto !important;
        box-sizing: border-box !important;
    }

    /* 7. Footer Fixes */
    footer#colophon .footer .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 !important;
        padding: 0 10px !important;
        /* Reduced padding as requested */
        justify-content: space-between !important;
    }

    footer#colophon .footer .widget {
        text-align: center;
        padding: 0 !important;
        margin-bottom: 30px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Fix for text breaking mid-word */
    footer#colophon .footer .widget,
    footer#colophon .footer .widget p,
    footer#colophon .footer .widget a,
    footer#colophon .footer .widget span {
        word-break: normal !important;
        hyphens: manual !important;
    }

    footer#colophon .footer .widget a,
    footer#colophon .footer .widget li,
    footer#colophon .footer .widget p {
        word-break: normal !important;
        /* Fixed: was break-all */
    }

    footer#colophon .footer .widget:nth-child(1) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    footer#colophon .footer .widget:nth-child(2) {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 20px !important;
        text-align: left !important;
        padding-right: 10px !important;
    }

    footer#colophon .footer .widget:nth-child(3) {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 20px !important;
        text-align: right !important;
        padding-left: 10px !important;
    }

    /* Reduce font size and spacing on mobile */
    footer#colophon .footer .widget,
    footer#colophon .footer .widget p,
    footer#colophon .footer .widget a,
    footer#colophon .footer .widget li,
    footer#colophon .footer .widget span {
        font-size: 12px !important;
        /* Slightly increased from 11px */
        line-height: 1.5 !important;
    }

    footer#colophon .footer .widget li,
    footer#colophon .footer .widget p {
        margin-bottom: 8px !important;
        /* Slightly increased spacing */
        padding: 0 !important;
    }

    /* Copyright area spacing */
    .copyright-area,
    #copyright {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* Ensure icons and text in the 3rd widget (Contact Us) align properly to the right */
    footer#colophon .footer .widget:nth-child(3) ul li,
    footer#colophon .footer .widget:nth-child(3) .thim-widget-icon-box .icon-box-wrapper {
        display: flex !important;
        flex-direction: row-reverse !important;
        /* Icon on the right, Text on the left */
        justify-content: flex-start !important;
        /* In row-reverse, start is RIGHT. This fixes the alignment. */
        align-items: center !important;
        text-align: right !important;
        white-space: normal !important;
        /* Allow wrapping if needed, but flex handles it */
        width: 100% !important;
    }

    /* Ensure the text inside flex item aligns right */
    footer#colophon .footer .widget:nth-child(3) .content-inner {
        text-align: right !important;
        flex-grow: 1 !important;
    }

    /* Add margin to icon when flipped */
    footer#colophon .footer .widget:nth-child(3) .thim-widget-icon-box .icon-box-wrapper i,
    footer#colophon .footer .widget:nth-child(3) .thim-widget-icon-box .icon-box-wrapper .fa {
        margin-right: 0 !important;
        margin-left: 8px !important;
        font-size: 12px !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
    }

    /* Remove redundant mobile alignments */
    /* 8. Extra Polish for Other Pages */
    .archive-university .uni-card,
    .archive-language_school .uni-card,
    .archive-university .uni-grid-card,
    .archive-language_school .uni-grid-card {
        margin: 0 0 25px 0 !important;
        /* Spacing between cards */
    }

    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    iframe,
    video {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix for potential white space on right */
    .elementor-section {
        overflow: hidden !important;
    }

    .elementor-column {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* 9. Professional Header & Mobile Menu (REFACTORED) */
    header#masthead .thim-nav-wrapper .tm-table {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px !important;
        /* Increased padding for "not in upor" */
        width: 100% !important;
        height: auto !important;
        min-height: 70px !important;
    }

    /* Logo Positioning (Left) */
    header#masthead .width-logo {
        width: auto !important;
        flex: 0 1 auto !important;
        order: 1 !important;
        display: block !important;
        position: relative !important;
        height: auto !important;
        padding: 0 !important;
        margin-right: auto !important;
        /* Ensure it sticks to left */
    }

    /* Logo Styling (Remove Shadow/Card, Clean Look) */
    .thim-logo img {
        max-height: 50px !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        position: static !important;
        display: block !important;
    }

    /* Hamburger Menu (Right) */
    header#masthead .menu-mobile-effect {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 auto !important;
        order: 2 !important;
        margin-left: auto !important;
        /* Ensure it sticks to right */
        margin-right: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end !important;
        /* Push bars to right */
        position: relative !important;
        top: auto !important;
        right: auto !important;
        background: transparent !important;
        cursor: pointer !important;
    }

    /* Hamburger Bars */
    header#masthead .menu-mobile-effect .icon-bar {
        background-color: #2E3E4E !important;
        /* Dark Slate */
        width: 24px !important;
        height: 3px !important;
        margin: 3px 0 !important;
        display: block !important;
        border-radius: 2px;
    }

    /* Hide Navigation and Extra Menu Items */
    header#masthead .width-navigation,
    header#masthead .menu-right {
        display: none !important;
    }

    /* Sticky Header Fix */
    header#masthead.affix .thim-nav-wrapper .tm-table {
        padding: 10px 20px !important;
    }

    /* Map Full Container Fix */
    .uni-content-map iframe {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    /* Center Bottom Form on Mobile */
    .uni-bottom-form-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    .uni-sidebar-form {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 500px !important;
        /* Limit width for better look on small screens */
    }

    /* Popup (Modal) Mobile Polish */
    .uni-modal-content {
        padding: 25px 20px !important;
        width: 95% !important;
        margin: 20px auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .uni-modal-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .uni-modal-desc {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }

    .uni-modal-form label {
        display: block !important;
        font-size: 0 !important;
        /* Hide label text */
        margin: 0 !important;
        line-height: 0 !important;
    }

    .uni-modal-form label input,
    .uni-modal-form label textarea,
    .uni-modal-form label select {
        font-size: 14px !important;
        /* Restore font size for inputs */
        line-height: normal !important;
    }

    .uni-modal-form .wpcf7-form-control-wrap {
        margin-bottom: 0 !important;
        display: block !important;
    }

    .uni-modal-form input[type="text"],
    .uni-modal-form input[type="email"],
    .uni-modal-form input[type="tel"],
    .uni-modal-form textarea,
    .uni-modal-form select {
        padding: 10px 12px !important;
        margin-bottom: 5px !important;
        /* Extremely tight spacing */
        font-size: 14px !important;
        height: auto !important;
    }

    .uni-modal-form br {
        display: none !important;
        /* Hide CF7 default breaks */
    }

    .uni-modal-form p {
        margin: 0 !important;
        padding: 0 !important;
    }

    .uni-modal-form .uni-form-grid {
        gap: 8px !important;
    }

    .uni-modal-form textarea {
        min-height: 60px !important;
        /* Smaller textarea height for mobile */
    }

    .uni-modal-form input[type="submit"] {
        padding: 12px !important;
        font-size: 14px !important;
        margin-top: 10px !important;
    }
}

/* =========================================
   Custom Language Switcher - SENIOR ARCHITECTURE V2
   ========================================= */

/* 1. Global Reset for the Menu Item Container */
.menu-item-language-switcher {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    min-height: 80px !important;
    position: relative !important;
    padding: 0 !important;
    margin-left: -5px !important;
    /* Negative margin to pull it closer to the button */
    margin-right: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* 2. Desktop Logic (min-width: 1025px) */
@media (min-width: 1025px) {
    .uni-custom-ls {
        position: relative;
        cursor: pointer;
        z-index: 9999;
    }

    .uni-ls-current-pill {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        background: #fff;
        border: 1px solid #007A33;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
        min-width: 85px;
        justify-content: center;
    }

    .uni-ls-current-pill:hover {
        box-shadow: 0 4px 12px rgba(0, 122, 51, 0.15);
    }

    .uni-ls-mobile-label {
        display: none !important;
    }

    .uni-ls-options {
        position: absolute;
        top: 80%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #fff;
        border: 1px solid #eee;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 8px 0;
        min-width: 110px;
        display: none;
        opacity: 0;
        transition: all 0.3s ease;
    }

    /* Invisible Bridge */
    .uni-custom-ls::after {
        content: '';
        position: absolute;
        top: 60%;
        left: 0;
        width: 100%;
        height: 40%;
        display: block;
        z-index: -1;
    }

    .uni-custom-ls:hover .uni-ls-options {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(5px);
    }

    .uni-ls-option {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 15px !important;
        text-decoration: none !important;
        transition: background 0.2s;
        color: #2E3E4E !important;
        font-weight: 600 !important;
        font-size: 14px !important;
    }

    .uni-ls-option:hover {
        background: rgba(0, 122, 51, 0.05);
        color: #007A33 !important;
    }

    .uni-ls-flag {
        width: 20px;
        height: 14px;
        object-fit: cover;
        border-radius: 2px;
        flex-shrink: 0;
    }
}

/* 3. Mobile Logic (max-width: 1024px) */
@media (max-width: 1024px) {

    /* Hide the duplicated menu item in the drawer completely */
    li.menu-item-language-switcher,
    .mobile-menu-container .menu-item-language-switcher,
    .thim-hidden-mobile {
        display: none !important;
    }
}

/* Fix for iOS Safari Memory Crash in Featured Universities Carousel */
.uni-university-carousel .owl-item,
.uni-university-carousel .uni-card,
.uni-news-carousel .owl-item,
.uni-news-carousel .uni-card {
    /* Prevents iOS Safari from creating too many heavy composition layers */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ensure images don't create composite layer explosions */
.uni-university-carousel .uni-card-thumb img,
.uni-news-carousel .uni-card-thumb img {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* iOS Safari fixes for Testimonials Carousel too */
.uni-testimonial-carousel .owl-item,
.uni-testimonial-carousel .uni-testimonial-card {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ============================
   Featured Universities: Navigation
   Desktop: dots | Mobile: arrows
   ============================ */
.uni-university-carousel,
.uni-news-carousel {
    position: relative;
}

/* --- Desktop default: HIDE arrows, SHOW dots --- */
.uni-university-carousel .owl-nav,
.uni-news-carousel .owl-nav {
    display: none;
}

.uni-university-carousel .owl-dots,
.uni-news-carousel .owl-dots {
    display: block;
    text-align: center;
    margin-top: 20px;
}

/* --- Arrow button base styles --- */
.uni-university-carousel .owl-nav button.owl-prev,
.uni-university-carousel .owl-nav button.owl-next,
.uni-news-carousel .owl-nav button.owl-prev,
.uni-news-carousel .owl-nav button.owl-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #007A33 !important;
    color: #fff !important;
    font-size: 22px;
    line-height: 44px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 122, 51, 0.3);
    padding: 0;
    margin: 0 6px;
}

.uni-university-carousel .owl-nav button.owl-prev:hover,
.uni-university-carousel .owl-nav button.owl-next:hover,
.uni-news-carousel .owl-nav button.owl-prev:hover,
.uni-news-carousel .owl-nav button.owl-next:hover {
    background: #005a25 !important;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 122, 51, 0.4);
}

.uni-university-carousel .owl-nav button.disabled,
.uni-news-carousel .owl-nav button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Mobile: SHOW arrows, HIDE dots --- */
@media (max-width: 768px) {
    .uni-university-carousel,
    .uni-news-carousel {
        padding-bottom: 60px;
    }

    .uni-university-carousel .owl-nav,
    .uni-news-carousel .owl-nav {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
        padding-bottom: 10px;
    }

    .uni-university-carousel .owl-dots,
    .uni-news-carousel .owl-dots {
        display: none !important;
    }
}

/* Blog article reading polish: only standard blog posts */
body.single-post article.post .page-content-inner > .wp-post-image,
body.single-post article.post .page-content-inner img.wp-post-image {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 0 auto 32px;
    border-radius: 6px;
}

body.single-post article.post .page-content-inner .entry-header,
body.single-post article.post .page-content-inner .entry-content,
body.single-post article.post .page-content-inner .entry-tag-share,
body.single-post article.post .page-content-inner .post-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

body.single-post article.post .entry-header {
    margin-bottom: 28px;
}

body.single-post article.post .entry-title {
    color: #1f2937;
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 16px;
}

body.single-post article.post .entry-header .entry-meta,
body.single-post article.post .entry-header .entry-meta a,
body.single-post article.post .entry-header .post-formats-wrapper,
body.single-post article.post .entry-header .date-meta {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

body.single-post article.post .entry-content {
    color: #374151;
    font-size: 17px;
    line-height: 1.82;
}

body.single-post article.post .entry-content p,
body.single-post article.post .entry-content li,
body.single-post article.post .entry-content td,
body.single-post article.post .entry-content th,
body.single-post article.post .entry-content blockquote {
    color: #374151;
    font-size: 17px;
    line-height: 1.82;
}

body.single-post article.post .entry-content p,
body.single-post article.post .entry-content ul,
body.single-post article.post .entry-content ol,
body.single-post article.post .entry-content .table-responsive,
body.single-post article.post .entry-content blockquote,
body.single-post article.post .entry-content figure {
    margin-bottom: 24px;
}

body.single-post article.post .entry-content ul,
body.single-post article.post .entry-content ol {
    padding-left: 1.35em;
}

body.single-post article.post .entry-content h2,
body.single-post article.post .entry-content h3 {
    color: #1f2937;
    letter-spacing: 0;
}

body.single-post article.post .entry-content h2 {
    margin-top: 48px;
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 1.25;
}

body.single-post article.post .entry-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.35;
}

body.single-post article.post .entry-content .table-responsive {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
}

body.single-post article.post .entry-content table {
    margin: 0;
}

body.single-post article.post .entry-content th {
    color: #1f2937;
    background: #f8fafc;
}

body.single-post article.post .entry-content .rs-image-placeholder {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 20px !important;
}

body.single-post article.post .entry-content .rs-image-placeholder > div:first-child {
    color: #64748b !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
}

body.single-post article.post .entry-content .rs-image-placeholder > div:nth-child(2) {
    color: #1f2937 !important;
    font-size: 18px !important;
    margin-bottom: 12px !important;
}

body.single-post article.post .entry-content .rs-image-placeholder p,
body.single-post article.post .entry-content .rs-image-placeholder figcaption {
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

body.single-post article.post .entry-content .rs-image-placeholder p {
    margin-bottom: 6px !important;
}

body.single-post article.post .entry-content .rs-image-placeholder figcaption {
    margin-top: 12px !important;
}

/* Blog layout cleanup: remove the unused right rail and center the articles */
body.blog .container.uni-content-wrapper > .row > .col-md-8 {
    float: none;
    width: 100%;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

body.blog .container.uni-content-wrapper > .row > .col-md-4 {
    display: none;
}

body.blog article.post .entry-summary,
body.blog article.post .entry-summary p,
body.single-post article.post .entry-content,
body.single-post article.post .entry-content p,
body.single-post article.post .entry-content li,
body.single-post article.post .entry-content td,
body.single-post article.post .entry-content th,
body.single-post article.post .entry-content blockquote,
body.single-post article.post .entry-content figcaption {
    text-align: justify;
    text-justify: inter-word;
}

body.single-post article.post .entry-content .rs-seo-article,
body.single-post article.post .entry-content .rs-seo-article p,
body.single-post article.post .entry-content .rs-seo-article li,
body.single-post article.post .entry-content .rs-seo-article td,
body.single-post article.post .entry-content .rs-seo-article th,
body.single-post article.post .entry-content .rs-seo-article blockquote,
body.single-post article.post .entry-content .rs-seo-article figcaption,
body.single-post article.post .entry-content .rs-oae-cluster,
body.single-post article.post .entry-content .rs-oae-cluster p,
body.single-post article.post .entry-content .rs-oae-cluster li,
body.single-post article.post .entry-content .rs-oae-cluster td,
body.single-post article.post .entry-content .rs-oae-cluster th,
body.single-post article.post .entry-content .rs-oae-cluster blockquote,
body.single-post article.post .entry-content .rs-oae-cluster figcaption,
body.single-post article.post .entry-content .rs-related-guides,
body.single-post article.post .entry-content .rs-related-guides p,
body.single-post article.post .entry-content .rs-related-guides li,
body.single-post article.post .entry-content > p,
body.single-post article.post .entry-content .rs-seo-wave-5-article,
body.single-post article.post .entry-content .rs-seo-wave-5-article p,
body.single-post article.post .entry-content .rs-seo-wave-5-article li,
body.single-post article.post .entry-content .rs-seo-wave-5-article td,
body.single-post article.post .entry-content .rs-seo-wave-5-article th,
body.single-post article.post .entry-content .rs-seo-wave-5-article blockquote,
body.single-post article.post .entry-content .rs-seo-wave-5-article figcaption {
    text-align: justify !important;
    text-justify: inter-word;
}

/* Single posts: stretch the main column when the sidebar is not needed */
body.single-post .container.site-content.sidebar-right #main.site-main,
body.single-post .container.site-content.sidebar-left #main.site-main {
    float: none;
    width: 100%;
}

body.single-post .container.site-content.sidebar-right #sidebar,
body.single-post .container.site-content.sidebar-left #sidebar {
    display: none;
}

@media (max-width: 768px) {
    body.single-post article.post .page-content-inner > .wp-post-image,
    body.single-post article.post .page-content-inner img.wp-post-image,
    body.single-post article.post .page-content-inner .entry-header,
    body.single-post article.post .page-content-inner .entry-content,
    body.single-post article.post .page-content-inner .entry-tag-share,
    body.single-post article.post .page-content-inner .post-content {
        max-width: none;
    }

    body.single-post article.post .entry-title {
        font-size: 28px;
        line-height: 1.25;
    }

    body.single-post article.post .entry-content,
    body.single-post article.post .entry-content p,
    body.single-post article.post .entry-content li,
    body.single-post article.post .entry-content td,
    body.single-post article.post .entry-content th,
    body.single-post article.post .entry-content blockquote {
        font-size: 16px;
        line-height: 1.75;
    }

    body.single-post article.post .entry-content h2 {
        margin-top: 38px;
        font-size: 26px;
    }

    body.single-post article.post .entry-content h3 {
        font-size: 20px;
    }

    body.single-post article.post .entry-header .entry-meta,
    body.single-post article.post .entry-header .entry-meta a,
    body.single-post article.post .entry-header .post-formats-wrapper,
    body.single-post article.post .entry-header .date-meta {
        font-size: 12px;
        line-height: 1.5;
    }

body.single-post article.post .entry-content .rs-image-placeholder {
    padding: 16px !important;
}
body.single-post article.post .entry-content .rs-article-figure {
    margin: 32px 0;
}
body.single-post article.post .entry-content .rs-article-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
body.single-post article.post .entry-content .rs-article-figure figcaption {
    margin-top: 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}
}

/* Visible Block of Authorship & Expert Review */
.rs-article-trust {
    background-color: #f8fafc;
    border-left: 4px solid #007A33;
    padding: 16px 20px;
    margin: 0 0 32px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}
.rs-article-trust__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 8px;
}
.rs-article-trust__row:last-child {
    margin-bottom: 0;
}
.rs-article-trust__label {
    font-weight: 700;
    color: #2E3E4E;
    margin-right: 8px;
    min-width: 120px;
    display: inline-block;
}
.rs-article-trust__row a {
    color: #007A33;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.rs-article-trust__row a:hover {
    color: #2E3E4E;
    text-decoration: underline;
}
.rs-article-trust__row time {
    color: #475569;
}
@media (max-width: 600px) {
    .rs-article-trust {
        padding: 12px 16px;
        margin-bottom: 24px;
    }
    .rs-article-trust__label {
        display: block;
        margin-bottom: 2px;
        width: 100%;
    }
}

/* Promotions */
.uni-promotions-section {
    background: #f7f8f6;
}
.uni-promotion-carousel .owl-stage {
    display: flex;
}
.uni-promotion-carousel {
    padding-inline: 8px;
}
.uni-promotion-carousel .owl-stage-outer {
    margin-inline: -12px;
    padding-bottom: 18px;
}
.uni-promotion-carousel .owl-item {
    display: flex;
}
.uni-promotion-card {
    display: grid;
    grid-template-columns: minmax(150px, 45%) 1fr;
    min-height: 250px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e7e3;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(31, 45, 61, 0.08);
}
.uni-promotion-card__image-link {
    display: block;
    min-height: 100%;
    background: #fff;
}
.uni-promotion-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.uni-promotion-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}
.uni-promotion-card h3,
.uni-promotions-page__item h2,
.uni-single-promotion h2 {
    margin: 0;
    color: #2E3E4E;
    font-size: 20px;
    line-height: 1.25;
}
.uni-promotion-card h3 {
    min-height: 3.75em;
}
.uni-promotion-card__offer,
.uni-promotions-page__offer,
.uni-single-promotion__offer {
    margin: 10px 0;
    color: #b48927;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
}
.uni-promotion-card__description {
    margin: 0 0 18px;
    color: #52606d;
    font-size: 14px;
    line-height: 1.55;
}
.uni-promotion-card__link {
    margin-top: auto;
    color: #007A33;
    font-weight: 700;
    text-decoration: none;
}
.uni-promotion-disclaimer {
    margin: 18px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}
.uni-promotion-carousel .owl-nav button.owl-prev,
.uni-promotion-carousel .owl-nav button.owl-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2E3E4E;
    color: #fff;
}
.uni-promotion-carousel .owl-nav button:hover,
.uni-promotion-carousel .owl-nav button:focus {
    background: #007A33;
    color: #fff;
}
.uni-single-promotion {
    display: grid;
    grid-template-columns: minmax(200px, 34%) 1fr;
    gap: 28px;
    align-items: center;
    margin: 40px 0;
    padding: 28px;
    border: 1px solid #e1e7e2;
    border-left: 4px solid #b48927;
    border-radius: 10px;
    background: #f9fbf9;
}
.uni-single-promotion__media {
    align-self: stretch;
    min-height: 240px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
}
.uni-single-promotion__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.uni-single-promotion__eyebrow,
.uni-promotions-page__eyebrow {
    margin: 0 0 8px;
    color: #007A33;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.uni-single-promotion__content > p:not(.uni-single-promotion__eyebrow):not(.uni-single-promotion__offer):not(.uni-promotion-disclaimer) {
    color: #52606d;
    line-height: 1.6;
}
.uni-promotions-page {
    padding: 64px 0;
}
.uni-promotions-page__header {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}
.uni-promotions-page__header h1 {
    margin: 0 0 16px;
    color: #2E3E4E;
}
.uni-promotions-page__header > p:last-child {
    margin: 0;
    color: #52606d;
    line-height: 1.6;
}
.uni-promotions-page__grid {
    display: grid;
    gap: 32px;
}
.uni-promotions-page__item {
    display: grid;
    grid-template-columns: minmax(220px, 34%) 1fr;
    gap: 32px;
    align-items: center;
    padding: 28px;
    border: 1px solid #e3e7e3;
    border-radius: 10px;
    background: #fff;
}
.uni-promotions-page__media {
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}
.uni-promotions-page__image {
    display: block;
    width: 100%;
    height: auto;
}
.uni-promotions-page__content > p:not(.uni-promotions-page__offer):not(.uni-promotion-disclaimer) {
    color: #52606d;
    line-height: 1.6;
}
.uni-promotions-page__empty {
    max-width: 640px;
    margin: 0 auto;
    color: #52606d;
    text-align: center;
}
@media (max-width: 767px) {
    .uni-promotion-carousel {
        padding-inline: 0;
    }
    .uni-promotion-carousel .owl-stage-outer {
        margin-inline: 0;
        padding-bottom: 16px;
    }
    .uni-promotion-card {
        min-height: 190px;
    }
    .uni-promotion-card h3 {
        min-height: 0;
    }
    .uni-promotion-card__image {
        height: 100% !important;
    }
    .uni-promotion-card__body {
        padding: 18px;
    }
    .uni-single-promotion,
    .uni-promotions-page__item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .uni-single-promotion__media {
        min-height: 0;
        max-height: 360px;
    }
    .uni-single-promotion__image {
        height: auto;
        max-height: 360px;
        object-fit: contain;
    }
    .uni-promotions-page {
        padding: 42px 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .uni-promotion-card,
    .uni-promotion-card__image,
    .uni-promotion-carousel .owl-stage {
        transition: none !important;
        animation: none !important;
    }
}

/* Адаптивная шапка для ноутбуков и небольших настольных экранов. */
@media (min-width: 1025px) and (max-width: 1279px) {
    #masthead.site-header .thim-nav-wrapper,
    #masthead.site-header .header_full,
    #masthead.site-header .container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 70px !important;
        padding: 0 20px !important;
    }

    #masthead.site-header .thim-nav-wrapper > .row {
        display: flex !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    #masthead.site-header .navigation {
        display: flex !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    #masthead.site-header .tm-table {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 70px !important;
    }

    #masthead.site-header .width-logo {
        position: relative !important;
        flex: 0 0 auto !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
    }

    #masthead.site-header .thim-logo img {
        position: static !important;
        width: auto !important;
        height: auto !important;
        max-height: 58px !important;
        margin: 0 !important;
        padding: 4px 8px !important;
    }

    #masthead.site-header .width-navigation {
        display: none !important;
    }

    #masthead.site-header .menu-mobile-effect {
        position: static !important;
        display: flex !important;
        flex: 0 0 44px !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 0 0 auto !important;
        padding: 9px 10px !important;
    }
}

@media (min-width: 1280px) and (max-width: 1599px) {
    #masthead.site-header .thim-nav-wrapper,
    #masthead.site-header .header_full,
    #masthead.site-header .container {
        max-width: 100% !important;
        padding: 0 12px !important;
    }

    #masthead.site-header .navigation,
    #masthead.site-header .tm-table,
    #masthead.site-header .width-navigation {
        min-width: 0 !important;
    }

    #masthead.site-header .width-logo {
        padding-right: 4px !important;
    }

    #masthead.site-header .thim-logo img {
        max-height: 52px !important;
        padding: 3px 6px !important;
    }

    #masthead .menu-main-menu > li > a,
    #masthead .navbar-nav > li > a {
        padding-right: clamp(3px, 0.35vw, 6px) !important;
        padding-left: clamp(3px, 0.35vw, 6px) !important;
        font-size: clamp(10px, 0.78vw, 12.5px) !important;
        letter-spacing: -0.3px !important;
    }

    #masthead .menu-main-menu li.menu-item-has-children > a,
    #masthead .navbar-nav li.menu-item-has-children > a {
        padding-right: clamp(16px, 1.35vw, 22px) !important;
    }

    #masthead .menu-main-menu li.menu-item-has-children > a i,
    #masthead .navbar-nav li.menu-item-has-children > a i,
    #masthead .menu-main-menu li.menu-item-has-children > a .tc-menu-caret,
    #masthead .navbar-nav li.menu-item-has-children > a .tc-menu-caret,
    #masthead .menu-main-menu li.menu-item-has-children > a::after,
    #masthead .navbar-nav li.menu-item-has-children > a::after {
        width: clamp(16px, 1.35vw, 22px) !important;
    }

    #masthead .menu-item-button a {
        max-width: 102px !important;
        min-height: 40px !important;
        padding: 4px 7px !important;
        font-size: clamp(9.5px, 0.7vw, 11px) !important;
    }

    #masthead .menu-item-language-switcher {
        min-height: 70px !important;
    }

    #masthead .uni-ls-current-pill {
        gap: 5px !important;
        min-width: 72px !important;
        padding: 4px 8px !important;
    }

    #masthead .uni-ls-current-pill .uni-ls-flag {
        width: 18px !important;
        height: 12px !important;
    }
}

/* =========================================
   Sticky Side Banners
   ========================================= */
.rs-mobile-banner-rail {
    display: none;
}

@media (max-width: 767px) {
    .rs-mobile-banner-rail {
        display: block;
        padding: 20px 0 8px;
        background: #f7f8f6;
    }

    .rs-mobile-banner-rail .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .rs-mobile-banner-card {
        display: flex;
        box-sizing: border-box;
        height: 128px;
        overflow: hidden;
        color: #2e3e4e;
        background: #fff;
        border: 1px solid #d9e5db;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(46, 62, 78, 0.08);
        text-decoration: none;
    }

    .rs-mobile-banner-card:focus-visible {
        outline: 3px solid #007a33;
        outline-offset: 3px;
    }

    .rs-mobile-banner-card__image {
        flex: 0 0 108px;
        width: 108px !important;
        max-width: 108px;
        height: 128px !important;
        object-fit: cover;
    }

    .rs-mobile-banner-card__content {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        padding: 14px 16px;
    }

    .rs-mobile-banner-card__eyebrow,
    .rs-mobile-banner-card__cta {
        color: #007a33;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.7px;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .rs-mobile-banner-card strong {
        display: -webkit-box;
        margin: 5px 0 7px;
        overflow: hidden;
        color: #2e3e4e;
        font-size: 16px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .rs-mobile-banner-rail .owl-nav {
        position: absolute;
        top: 50%;
        right: -7px;
        left: -7px;
        display: flex;
        justify-content: space-between;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .rs-mobile-banner-rail .owl-nav button.owl-prev,
    .rs-mobile-banner-rail .owl-nav button.owl-next {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        color: #2e3e4e !important;
        background: #fff !important;
        border: 1px solid #d9e5db !important;
        border-radius: 50% !important;
        box-shadow: 0 3px 10px rgba(46, 62, 78, 0.14);
        pointer-events: auto;
    }

    .rs-mobile-banner-rail .owl-dots {
        margin-top: 10px;
        text-align: center;
    }

    .rs-mobile-banner-rail .owl-dot span {
        width: 7px;
        height: 7px;
        margin: 5px;
        background: #b8c6bc;
    }

    .rs-mobile-banner-rail .owl-dot.active span {
        background: #007a33;
    }
}

.rs-side-banners {
    position: fixed;
    bottom: -5px;
    right: 25px;
    width: 340px;
    z-index: 9999;
}

.rs-side-banners .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.rs-side-banners .owl-nav button.owl-prev,
.rs-side-banners .owl-nav button.owl-next {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    margin: 0 -18px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    transition: all 0.3s ease;
    border: none !important;
}

.rs-side-banners .owl-nav button:hover {
    background: #007A33 !important;
    color: #fff !important;
    transform: scale(1.1);
}

.rs-side-banners-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    background-color: #333 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

.rs-side-banner-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.rs-side-banner-link img {
    width: 100%;
    display: block;
}

.rs-side-banners .owl-dots {
    text-align: center;
    margin-top: 10px;
}

/* JS shows #rs-side-banners after OwlCarousel init — no CSS override needed */
.rs-side-banner-link img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* =========================================
   Admission packages and prices
   ========================================= */
.uni-pricing-page {
    background: #f7f8f6;
    color: #2e3e4e;
}

.uni-pricing-hero {
    padding: 88px 0 92px;
    color: #fff;
    background: #2e3e4e;
}

.uni-pricing-hero__content {
    max-width: 740px;
}

.uni-pricing-hero__eyebrow,
.uni-pricing-section-heading > p,
.uni-pricing-teaser__eyebrow {
    margin: 0 0 14px;
    color: #55b67b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    line-height: 1.3;
    text-transform: uppercase;
}

.uni-pricing-hero h1 {
    max-width: 690px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.08;
}

.uni-pricing-hero h1::after {
    display: none;
}

.uni-pricing-hero__content > p:not(.uni-pricing-hero__eyebrow) {
    max-width: 620px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.65;
}

.uni-pricing-section-heading {
    max-width: 700px;
    margin-bottom: 35px;
}

.uni-pricing-section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.uni-pricing-section-heading h2 {
    margin: 0;
    color: #2e3e4e;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.18;
}

.uni-pricing-section-heading h2::after {
    display: none;
}

.uni-pricing-section-heading > span {
    display: block;
    margin-top: 14px;
    color: #61707c;
    font-size: 16px;
    line-height: 1.6;
}

.uni-pricing-packages,
.uni-pricing-comparison,
.uni-pricing-extras {
    padding: 78px 0;
}

.uni-pricing-free-card {
    display: grid;
    grid-template-columns: minmax(230px, 0.9fr) minmax(0, 2.1fr);
    gap: 36px;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto 34px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid #d9e5db;
    border-left: 4px solid #007a33;
}

.uni-pricing-free-card__intro > p {
    margin: 0 0 8px;
    color: #007a33;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 1.2;
}

.uni-pricing-free-card h3,
.uni-pricing-extra h3 {
    margin: 0 0 10px;
    color: #2e3e4e;
    font-size: 20px;
    line-height: 1.25;
}

.uni-pricing-free-card__intro > span,
.uni-pricing-extra p {
    margin: 0;
    color: #61707c;
    font-size: 14px;
    line-height: 1.6;
}

.uni-pricing-free-card__routes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.uni-pricing-free-card__routes li {
    position: relative;
    padding-left: 18px;
    color: #44535d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.uni-pricing-free-card__routes li::before {
    position: absolute;
    top: 0.42em;
    left: 0;
    width: 8px;
    height: 8px;
    background: #55b67b;
    border-radius: 50%;
    content: '';
}

.uni-pricing-packages {
    background: #f7f8f6;
}

.uni-pricing-packages__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.uni-pricing-package {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 31px 27px 28px;
    background: #fff;
    border: 1px solid #d9e5db;
    border-radius: 6px;
}

.uni-pricing-package--featured {
    margin-top: -14px;
    padding-top: 45px;
    border: 2px solid #007a33;
    box-shadow: 0 16px 34px rgba(46, 62, 78, 0.11);
}

.uni-pricing-package__label {
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    margin: 0;
    padding: 8px 10px;
    color: #fff;
    background: #007a33;
    border-radius: 0 0 4px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.uni-pricing-package h3 {
    margin: 0;
    color: #2e3e4e;
    font-size: 24px;
    line-height: 1.1;
}

.uni-pricing-package__price {
    margin: 20px 0 3px;
    color: #007a33;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.uni-pricing-package__support {
    min-height: 20px;
    margin: 0;
    color: #82908d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.uni-pricing-package__summary {
    min-height: 96px;
    margin: 22px 0 17px;
    color: #44535d;
    font-size: 14px;
    line-height: 1.6;
}

.uni-pricing-package ul,
.uni-pricing-comparison__group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.uni-pricing-package li,
.uni-pricing-comparison__group li {
    position: relative;
    padding: 0 0 11px 20px;
    color: #55646d;
    font-size: 13px;
    line-height: 1.45;
}

.uni-pricing-package li::before,
.uni-pricing-comparison__group li::before {
    position: absolute;
    top: 0.45em;
    left: 1px;
    width: 8px;
    height: 8px;
    background: #55b67b;
    border-radius: 50%;
    content: '';
}

.uni-pricing-package__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 13px;
    color: #007a33;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25px;
    line-height: 1.3;
    text-transform: uppercase;
}

.uni-pricing-package__link:hover,
.uni-pricing-package__link:focus {
    color: #005d27;
}

.uni-pricing-comparison {
    background: #2e3e4e;
}

.uni-pricing-comparison .uni-pricing-section-heading h2 {
    color: #fff;
}

.uni-pricing-comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.32);
    scrollbar-color: #55b67b rgba(255, 255, 255, 0.16);
    scrollbar-width: thin;
}

.uni-pricing-comparison-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.4;
}

.uni-pricing-comparison-table th,
.uni-pricing-comparison-table td {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff !important;
    text-align: left;
    vertical-align: top;
}

.uni-pricing-comparison-table thead th {
    color: #fff;
    background: rgba(0, 0, 0, 0.18);
    font-size: 16px;
}

.uni-pricing-comparison-table th:first-child {
    width: 38%;
    min-width: 300px;
}

.uni-pricing-comparison-table tbody th {
    color: #fff;
    font-weight: 700;
}

.uni-pricing-comparison-table td {
    width: 15.5%;
}

.uni-pricing-comparison-table__price-row th,
.uni-pricing-comparison-table__price-row td {
    color: #fff;
    background: rgba(0, 122, 51, 0.36);
    font-size: 16px;
    font-weight: 700;
}

.uni-pricing-comparison-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.045);
}

.uni-pricing-comparison-table-wrap:focus-visible {
    outline: 3px solid #55b67b;
    outline-offset: 4px;
}

.uni-pricing-extras {
    background: #fff;
}

.uni-pricing-extras__list {
    border-top: 1px solid #d9e5db;
}

.uni-pricing-extra {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    padding: 23px 4px;
    border-bottom: 1px solid #d9e5db;
}

.uni-pricing-extra strong {
    color: #007a33;
    font-size: 26px;
    line-height: 1;
    white-space: nowrap;
}

.uni-pricing-disclaimer {
    max-width: 940px;
    margin: 26px 0 0;
    color: #71807d;
    font-size: 12px;
    line-height: 1.6;
}

.uni-pricing-teaser {
    padding: 0;
    background: #fff;
}

.uni-pricing-teaser__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr) auto;
    gap: 40px;
    align-items: center;
    padding: 44px 0;
    border-top: 1px solid #d9e5db;
    border-bottom: 1px solid #d9e5db;
}

.uni-pricing-teaser h2 {
    margin: 0 0 8px;
    color: #2e3e4e;
    font-size: 27px;
    line-height: 1.15;
}

.uni-pricing-teaser__intro > p:not(.uni-pricing-teaser__eyebrow) {
    margin: 0;
    color: #61707c;
    font-size: 14px;
    line-height: 1.55;
}

.uni-pricing-teaser__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.uni-pricing-teaser__facts span {
    display: block;
    color: #65736f;
    font-size: 12px;
    line-height: 1.45;
}

.uni-pricing-teaser__facts strong {
    display: block;
    margin-bottom: 4px;
    color: #007a33;
    font-size: 23px;
    line-height: 1.05;
}

.uni-pricing-teaser__cta {
    white-space: nowrap;
}

.uni-admission-pricing-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding: 22px 25px;
    background: #f2f7f3;
    border-left: 3px solid #007a33;
}

.uni-admission-pricing-link p {
    margin: 0;
    color: #44535d;
    font-size: 15px;
    line-height: 1.5;
}

.uni-admission-pricing-link a {
    flex: 0 0 auto;
    color: #007a33;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.uni-pricing-page a:focus-visible,
.uni-pricing-teaser a:focus-visible,
.uni-admission-pricing-link a:focus-visible,
.uni-pricing-comparison__group summary:focus-visible {
    outline: 3px solid #55b67b;
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .uni-pricing-packages__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

    .uni-pricing-package--featured {
        margin-top: 0;
    }

    .uni-pricing-teaser__layout {
        grid-template-columns: 1fr auto;
    }

    .uni-pricing-teaser__facts {
        grid-column: 1 / -1;
        max-width: 430px;
    }
}

@media (max-width: 767px) {
    .uni-pricing-hero,
    .uni-pricing-packages,
    .uni-pricing-comparison,
    .uni-pricing-extras {
        padding: 52px 0;
    }

    .uni-pricing-hero h1 {
        font-size: 36px;
    }

    .uni-pricing-hero__content > p:not(.uni-pricing-hero__eyebrow) {
        font-size: 16px;
    }

    .uni-pricing-packages__grid {
        grid-template-columns: 1fr;
    }

    .uni-pricing-free-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 23px 22px;
    }

    .uni-pricing-free-card__routes {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .uni-pricing-comparison-table th:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background: #2e3e4e;
        box-shadow: 8px 0 12px rgba(0, 0, 0, 0.12);
    }

    .uni-pricing-comparison-table thead th:first-child,
    .uni-pricing-comparison-table__price-row th:first-child {
        z-index: 2;
        background: #263543;
    }

    .uni-pricing-package__summary {
        min-height: 0;
    }

    .uni-pricing-extra {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .uni-pricing-extra strong {
        font-size: 24px;
    }

    .uni-pricing-teaser__layout {
        display: block;
        padding: 36px 0;
    }

    .uni-pricing-teaser__facts {
        margin: 25px 0;
    }

    .uni-pricing-teaser__cta {
        width: 100%;
        text-align: center;
    }

    .uni-admission-pricing-link {
        display: block;
    }

    .uni-admission-pricing-link a {
        display: inline-block;
        margin-top: 16px;
    }
}

/* Compact ICEF accreditation card on the homepage. */
.uni-home-icef-banner {
    padding: 34px 0;
    background: #f7f8f6;
}

.uni-home-icef-banner__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 24px;
    color: #2e3e4e;
    background: #fff;
    border: 1px solid #d9e4ef;
    border-left: 4px solid #007a33;
    box-shadow: 0 8px 22px rgba(26, 57, 84, 0.08);
    text-decoration: none;
}

.uni-home-icef-banner__image {
    display: block;
    flex: 0 0 118px;
    width: 118px;
    height: 118px;
    object-fit: contain;
}

.uni-home-icef-banner__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uni-home-icef-banner__eyebrow {
    color: #007a33;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.uni-home-icef-banner__content strong {
    font-size: 22px;
    line-height: 1.25;
}

.uni-home-icef-banner__cta {
    color: #007a33;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .uni-home-icef-banner {
        padding: 24px 0;
    }

    .uni-home-icef-banner__link {
        align-items: flex-start;
        gap: 16px;
        margin: 0 15px;
        padding: 16px;
    }

    .uni-home-icef-banner__image {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
    }

    .uni-home-icef-banner__content strong {
        font-size: 18px;
    }
}
/* Conversion improvements: study routes, compact support and package overview. */
.uni-study-routes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.uni-study-route {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid #e1e7e4;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
    .uni-study-route:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
        border-color: #007a33;
    }
    .uni-study-route:hover .uni-study-route__image {
        transform: scale(1.04);
    }
}
.uni-study-route__media {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
    background: #f0f4f2;
}
.uni-study-route__image {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.4s ease;
}
.uni-study-route__number {
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #007a33;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.5px;
    line-height: 1.4;
}
.uni-study-route__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
    gap: 14px;
}
.uni-study-route h3, .uni-study-route p { margin: 0; }
.uni-study-route h3 { font-size: 22px; line-height: 1.25; color: #2e3e4e; font-weight: 700; }
.uni-study-route p { font-size: 15px; line-height: 1.55; color: #5b6b79; }
.uni-study-route__link {
    color: #007a33;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    transition: color 0.2s ease;
}
.uni-study-route__link:hover {
    color: #005a24;
    text-decoration: underline;
}
.uni-study-route > a:not(.uni-btn), .uni-study-route li a { color: #007a33; text-decoration: underline; text-underline-offset: 3px; }
.uni-study-route ul { padding-left: 20px; margin: 0 0 8px; }
.uni-study-route__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 4px !important;
}
.uni-study-route__tags li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.uni-study-route__tags a {
    display: inline-block;
    padding: 6px 12px;
    background: #f2f7f4;
    border: 1px solid #d3e2d8;
    border-radius: 6px;
    font-size: 13px;
    color: #1e3a29 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s ease;
}
.uni-study-route__tags a:hover {
    background: #e1efe6;
    border-color: #007a33;
    color: #007a33 !important;
    text-decoration: none !important;
}
.uni-study-route .uni-btn {
    margin-top: auto;
    white-space: normal;
    text-align: center;
    border-radius: 8px;
    padding: 13px 20px;
    font-weight: 700;
}
.uni-study-routes__note { max-width: 820px; margin: 24px auto 0; text-align: center; }
.uni-support-details > summary { cursor: pointer; padding: 18px; border: 1px solid #dce4df; border-radius: 8px; color: #2e3e4e; font-weight: 600; text-align: center; list-style: none; }
.uni-support-details > summary::-webkit-details-marker { display: none; }
.uni-support-details[open] > summary { margin-bottom: 24px; }
@media (min-width: 768px) {
    .uni-support-details > summary { display: none !important; }
}
.uni-pricing-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.uni-pricing-quick a { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid #dce4df; border-radius: 8px; color: #2e3e4e; }
.uni-pricing-quick strong { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.uni-pricing-quick strong span { color: #007a33; }
.uni-pricing-package { scroll-margin-top: 120px; }
.uni-modal .uni-modal-close { background: transparent; border: 0; padding: 0; min-width: 44px; min-height: 44px; line-height: 1; }
.uni-modal-context { color: #007a33; font-weight: 600; }
.uni-modal-context:empty { display: none; }
.uni-modal .uni-form-field label { display: block; font-size: 14px !important; line-height: 1.5 !important; font-weight: 500; }
.uni-form-details { grid-column: 1 / -1; }
.uni-form-details summary { cursor: pointer; padding: 10px 0; }
.uni-form-details .uni-form-field { margin-top: 12px; }
.uni-catalogue-intro-details > summary { cursor: pointer; color: #007a33; font-weight: 600; }
.uni-archive-filters > summary { cursor: pointer; color: #2e3e4e; font-size: 18px; font-weight: 600; }
.uni-archive-filters[open] > summary { margin-bottom: 20px; }
.uni-catalogue-page .uni-archive-intro .uni-btn-outline { color: #2e3e4e !important; border-color: #2e3e4e !important; }
@media (min-width: 768px) and (max-width: 991px) {
    .uni-study-routes__grid { gap: 16px; }
    .uni-study-route__media { aspect-ratio: 16 / 9; height: auto; }
    .uni-study-route__body { padding: 18px 14px; gap: 12px; }
    .uni-study-route h3 { font-size: 19px; }
    .uni-study-route .uni-btn { padding-left: 10px; padding-right: 10px; font-size: 13px; }
}
@media (max-width: 767px) {
    .uni-study-routes__grid { grid-template-columns: 1fr; gap: 20px; }
    .uni-study-route__media { aspect-ratio: 16 / 9; height: auto; width: 100%; }
    .uni-study-route__number { top: 10px; left: 10px; font-size: 12px; padding: 3px 10px; }
    .uni-study-route__body { padding: 20px 18px; gap: 12px; }
    .uni-study-route h3 { font-size: 20px; }
    .uni-study-route p { font-size: 14px; line-height: 1.5; }
    .uni-study-route .uni-btn { padding: 13px 16px; font-size: 14px; }
    .uni-home-page .uni-study-routes, .uni-home-page .uni-services-teaser { padding: 32px 0; }
    .uni-pricing-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uni-pricing-quick a { padding: 12px; font-size: 14px; }
    .uni-catalogue-page .site-content { padding-top: 20px !important; }
    .uni-catalogue-page .uni-archive-intro { padding: 18px !important; margin-bottom: 18px !important; }
    .uni-catalogue-page .uni-archive-intro h2 { font-size: 21px !important; }
    .uni-catalogue-page .uni-archive-filters { margin-bottom: 20px; padding: 16px !important; }
    .uni-catalogue-page .filter-group { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 !important; }
    .uni-catalogue-page .filter-group h4 { width: 100%; margin-bottom: 0 !important; }
    .uni-catalogue-page .filter-group > div { margin: 0 !important; }
    .uni-catalogue-page .filter-group a { display: inline-block; padding: 8px 4px; }
}
