/*
 Theme Name:   Unipix Child
 Theme URI:    https://themewant.com/products/wordpress/unipix
 Description:  Unipix Child
 Author:       ReacThemes
 Author URI:   http://reactheme.com
 Template:     unipix
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */

/* ========================================================================== 
   AGENTIC AI CODING GUIDELINE:
   All custom CSS classes, IDs, PHP functions, hooks, script handles, and JS variables 
   created for this child theme MUST use the "mm-" (or "mm_") prefix to ensure naming uniqueness, 
   clean namespacing, and easy searchability across the codebase.
   ========================================================================== */

/* ========================================================================
   Typography: Azerbaijani/English use DM Sans; Russian uses Inter

   DM Sans has the Azerbaijani Latin characters but no Cyrillic glyphs.
   Inter is an explicit fallback rather than leaving the browser to choose a
   serif system font. On Russian pages, use Inter consistently for text.
   ======================================================================== */
:root {
    --font-primary: "DM Sans", "Inter", Arial, sans-serif;
    --font-secondary: "DM Sans", "Inter", Arial, sans-serif;
}

.elementor-kit-19 {
    --e-global-typography-primary-font-family: "DM Sans", "Inter", Arial, sans-serif;
    --e-global-typography-secondary-font-family: "DM Sans", "Inter", Arial, sans-serif;
    --e-global-typography-text-font-family: "DM Sans", "Inter", Arial, sans-serif;
    --e-global-typography-accent-font-family: "DM Sans", "Inter", Arial, sans-serif;
}

html[lang|="ru"] {
    --font-primary: "Inter", Arial, sans-serif;
    --font-secondary: "Inter", Arial, sans-serif;
    --e-global-typography-primary-font-family: "Inter", Arial, sans-serif;
    --e-global-typography-secondary-font-family: "Inter", Arial, sans-serif;
    --e-global-typography-text-font-family: "Inter", Arial, sans-serif;
    --e-global-typography-accent-font-family: "Inter", Arial, sans-serif;
}

/* The theme option emits an inline DM Sans body rule with !important. */
html[lang|="ru"] body,
html[lang|="ru"] body :is(h1, h2, h3, h4, h5, h6, p, a, li, span, button, input, textarea, select, label, blockquote, td, th, dt, dd) {
    font-family: "Inter", Arial, sans-serif !important;
}

/* ========================================================================== 
   1. Hide Original Elementor Language Widgets
   ========================================================================== */
.elementor-widget-rt-languages,
#langSwitcher,
.lang__trigger {
    display: none !important;
}

/* ==========================================================================
   2. Standalone Language Switcher (Matches Original Theme Design & Typography)
   ========================================================================== */
.mm-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    z-index: 999;
    /* DM Sans has no Cyrillic. Use one Cyrillic-capable face for all labels
       so Azerbaijani, Russian, and English are visually consistent. */
    font-family: "Inter", Arial, sans-serif;
}

/* Trigger in Header (Matches the RT Mega Menu link color) */
.mm-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    color: #1a2a5e;
    padding: 6px 2px;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.mm-lang-btn:hover,
.mm-lang-switcher.is-open .mm-lang-btn {
    opacity: 0.75;
}

/* 2-Letter Code (AZ / EN / RU) */
.mm-selected-code {
    display: inline-block;
    min-width: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    font-family: inherit;
    font-weight: 400;
    color: inherit;
}

/* Dropdown Menu (Clean white popup matching original theme) */
.mm-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 0;
    z-index: 99999;
    font-family: inherit;
    font-weight: 400;

    /* Smooth toggle animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

/* Open State */
.mm-lang-switcher.is-open .mm-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Header language switcher: align with the third header column */
.header-inner .e-con-inner> :nth-child(3) {
    justify-content: flex-end;
}

/* Dropdown List */
.mm-lang-dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mm-lang-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Clean typography matching body font and theme */
.mm-lang-item a {
    display: block;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: #222222 !important;
    text-decoration: none !important;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease;
}

.mm-lang-item a:hover {
    background: #f4f6f8;
    color: #000000 !important;
}

/* Active language item highlighted */
.mm-lang-item.active a {
    background: #f0f2f5;
    color: #111111 !important;
    font-weight: 400;
}

.mm-lang-label {
    display: block;
    font-family: inherit;
}

/* ========================================================================
   Custom Page Title Breadcrumb
   ======================================================================== */
:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) {
    display: block;
    width: 100%;
}

:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .reactheme-breadcrumb {
    height: auto !important;
    background: transparent;
    margin: 0 !important;
    padding: 0 !important;
}

:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .reactheme-breadcrumb::before {
    display: none;
}

:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .breadcrumb-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .breadcrumb-path {
    display: block;
    width: 100%;
    min-width: 0;
    order: 1;
    margin: 0;
    padding: 0;
    color: #1a2a5e;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .breadcrumb-path a {
    color: #6b7280;
    text-decoration: none;
}

:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .breadcrumb-path a:hover {
    color: #1a2a5e;
}

:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .breadcrumb-separator {
    display: inline-block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0 9px;
    background: transparent;
    color: transparent;
    font-size: 0;
    line-height: 1;
}

:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .breadcrumb-separator::before {
    content: "\203A";
    display: block;
    color: #a6adb8;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

:is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .page-title {
    order: 2;
    margin: 0 !important;
    padding: 0;
    color: #1a2a5e !important;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
}

@media (max-width: 767px) {
    :is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .breadcrumb-inner {
        gap: 4px;
    }

    :is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .breadcrumb-path {
        font-size: 11px;
    }

    :is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .breadcrumb-separator {
        margin-right: 7px;
        margin-left: 7px;
    }

    :is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .page-title {
        font-size: 28px;
    }
}

@media (max-width: 479px) {
    :is(#mm-breadcrumb, [id="#mm-breadcrumb"]) .page-title {
        font-size: 24px;
    }
}

/* ========================================================================
   First Main Content Container Spacing
   ======================================================================== */
.rts-header-after-position:has(:is(#mm-breadcrumb, [id="#mm-breadcrumb"]))~.main-contain.offcontents>.elementor>.e-con:first-child {
    --padding-top: 30px !important;
}

/* Blog page list */
.rts-header-after-position:has(:is(#mm-breadcrumb, [id="#mm-breadcrumb"]))~.main-contain.offcontents>.container>#content {
    padding-top: 40px !important;
}

/* ========================================================================== 
   Footer Custom Background
   ========================================================================== */
.mm-footer-bg {
    background-color: #080c22 !important;
}

/* ========================================================================
   RT Mega Menu Colors
   ======================================================================== */
.rtmega-menu-area .mobile-menu-area .rtmega-menu-mobile-sidebar .rtmega-menu-mobile-close {
    background-color: #1a2a5e !important;
}

.rtmega-menu-area .desktop-menu-area ul.rtmega-megamenu .menu-link,
.rtmega-menu-area .mobile-menu-area ul.rtmega-megamenu .menu-link {
    color: #1a2a5e !important;
}

/* ========================================================================
   News Card Title Height
   ======================================================================== */
.blog .reactheme-blog.blog-page .blog-item .full-blog-content .title-wrap .blog-title {
    font-size: 18px;
    height: calc(4 * 1.24em);
    line-height: 1.24;
    overflow: hidden;
}

.blog .reactheme-blog.blog-page .blog-item .full-blog-content .title-wrap .blog-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: normal;
}

/* ========================================================================
   Homepage News Widget Titles
   ======================================================================== */
.reactheme-blog-grid.blog--style2 .rts-blog-post .blog-content .post-title,
.reactheme-blog-grid.blog--style1 .rts-blog-post.blog-v-full .blog-content .post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(20px, 2.25vw, 30px);
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: normal;
}

.reactheme-blog-grid.blog--style2 .rts-blog-post .blog-content .post-title {
    -webkit-line-clamp: 3;
    font-size: 18px;
    line-height: 1.3;
}

@media (max-width: 576px) {
    .reactheme-blog-grid.blog--style1 .rts-blog-post.blog-v-full .blog-content .post-title {
        font-size: 20px;
    }

    .reactheme-blog-grid.blog--style2 .rts-blog-post .blog-content .post-title {
        font-size: 16px;
    }
}

/* ========================================================================
   RT Blog Style 4 Cards
   ======================================================================== */
.reactheme-blog-grid.blog--style4 .blog__thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.reactheme-blog-grid.blog--style4 .blog__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reactheme-blog-grid.blog--style4 .blog__title {
    line-height: 1.3;
    min-height: calc(3 * 1.3em);
    overflow: hidden;
    margin-bottom: 0 !important;
}

.reactheme-blog-grid.blog--style4 .blog__title .post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: normal;
}

/* ========================================================================
   Homepage news section, News page, News single
   ======================================================================== */
.reactheme-blog-grid:is(.blog--style1, .blog--style2, .blog--style4) .rt-date>span:first-child {
    display: none;
}

.reactheme-blog-details .news-details-inner .bs-img {
    text-align: center;
}

.reactheme-blog-details .news-details-inner .bs-img:hover img {
    transform: none;
}

/* ========================================================================== 
   Team / Staff Member Card Thumbnails (Aspect Ratio & Distortion Fix)
   ========================================================================== */
.rs-team .rts__single--member--thumb,
.rts__single--member--thumb {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.rs-team .rts__single--member--thumb img,
.rts__single--member--thumb img {
    width: 100% !important;
    max-width: 100% !important;
    min-height: unset !important;
    aspect-ratio: 3 / 4;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

/* ========================================================================
   Single News Video Ratio
   ======================================================================== */

.single-post .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.single-post .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}


/* ========================================================================== 
   Desktop Header Fluid Gaps & Spacing (For 150% Zoom & 1200px - 1450px screens)
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1450px) {

    /* Fluid gap and padding for navigation menu links */
    .rts-horizental-menu .rts-nav-menu-elementor>li {
        margin-right: clamp(10px, 1.2vw, 22px) !important;
        margin-left: 0 !important;
    }

    .rts-horizental-menu .rts-nav-menu-elementor>li>a {
        font-size: clamp(13px, 0.95vw, 15px) !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
    }

    /* Compress dropdown indicator arrow gap */
    .rts-horizental-menu .rts-nav-menu-elementor>li.menu-item-has-children>a i,
    .rts-horizental-menu .rts-nav-menu-elementor>li.menu-item-has-children>a svg {
        margin-left: 3px !important;
        font-size: 11px !important;
    }

    /* Prevent header action buttons from monopolizing flex space */
    .rts-header-nav {
        gap: clamp(8px, 1vw, 20px) !important;
    }

    .rts-header-action {
        gap: clamp(6px, 0.8vw, 15px) !important;
    }
}

/* ========================================================================
   Single Post Featured Image
   ======================================================================== */
.single-post .reactheme-blog-details .news-details-inner>article>.bs-img {
    text-align: center;
}

.single-post .reactheme-blog-details .news-details-inner>article>.bs-img img {
    display: block;
    width: 100% !important;
    max-width: 1000px !important;
    height: auto !important;
    margin-right: auto;
    margin-left: auto;
}

/* Hide only the single-post date icon; keep the date text visible. */
.single-post .reactheme-blog-details .single-content-full .single-info.date>i {
    display: none;
}

/* ========================================================================
   RT Elements Button — admissions CTA state overrides
   Applied to the widget wrapper class: mm-button
   ======================================================================== */
.mm-button .react_button {
    background: #0754d6 !important;
    border: 1px solid #0754d6 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease !important;
}

/* Unipix uses this pseudo-element as the black hover overlay. */
.mm-button .react_button::after {
    background: #0a459f !important;
}

.mm-button .react_button:visited {
    background: #0754d6 !important;
    border-color: #0754d6 !important;
    color: #ffffff !important;
}

.mm-button .react_button:hover,
.mm-button .react_button:focus,
.mm-button .react_button:focus-visible {
    background: #0a459f !important;
    border-color: #0a459f !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.mm-button .react_button:hover::after,
.mm-button .react_button:focus::after,
.mm-button .react_button:focus-visible::after {
    background: #0a459f !important;
    width: 100% !important;
}

.mm-button .react_button:focus-visible {
    outline: 3px solid rgba(7, 84, 214, 0.32) !important;
    outline-offset: 3px !important;
}

.mm-button .react_button:active {
    background: #063a88 !important;
    border-color: #063a88 !important;
    color: #ffffff !important;
}

.mm-button .react_button:active::after {
    background: #063a88 !important;
    width: 100% !important;
}

.mm-button .react_button span,
.mm-button .react_button span i,
.mm-button .react_button span svg,
.mm-button .react_button span svg path {
    color: #ffffff !important;
    fill: currentColor !important;
}

/* ========================================================================
   Elementor Social Icons — platform-aware hover states
   The color follows the icon class, so item order does not matter.
   ======================================================================== */
.elementor-widget-social-icons .elementor-social-icon {
    background-color: transparent !important;
    border: 1px solid currentColor;
    color: #ffffff !important;
    transition: background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease, transform 0.2s ease !important;
}

.elementor-widget-social-icons .elementor-social-icon svg {
    fill: currentColor !important;
}

.elementor-widget-social-icons .elementor-social-icon:hover,
.elementor-widget-social-icons .elementor-social-icon:focus,
.elementor-widget-social-icons .elementor-social-icon:focus-visible {
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-2px);
}

.elementor-widget-social-icons .elementor-social-icon-instagram:hover,
.elementor-widget-social-icons .elementor-social-icon-instagram:focus,
.elementor-widget-social-icons .elementor-social-icon-instagram:focus-visible {
    background-color: #e1306c !important;
}

.elementor-widget-social-icons .elementor-social-icon-telegram:hover,
.elementor-widget-social-icons .elementor-social-icon-telegram:focus,
.elementor-widget-social-icons .elementor-social-icon-telegram:focus-visible {
    background-color: #229ed9 !important;
}

.elementor-widget-social-icons .elementor-social-icon-youtube:hover,
.elementor-widget-social-icons .elementor-social-icon-youtube:focus,
.elementor-widget-social-icons .elementor-social-icon-youtube:focus-visible {
    background-color: #ff0000 !important;
}

.elementor-widget-social-icons .elementor-social-icon-facebook:hover,
.elementor-widget-social-icons .elementor-social-icon-facebook:focus,
.elementor-widget-social-icons .elementor-social-icon-facebook:focus-visible {
    background-color: #1877f2 !important;
}

.elementor-widget-social-icons .elementor-social-icon:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.55) !important;
    outline-offset: 3px;
}

/* =========================================================================
   Reusable image frames
   Add this class to a container that scopes the image widgets to align.
   ========================================================================= */
.mm-image-frame {
    --mm-image-frame-ratio: 4 / 3;
}

.mm-image-frame--card {
    --mm-image-frame-ratio: 4 / 3;
}

.mm-image-frame :is(.elementor-widget-image, .elementor-widget-rt-react-image) {
    aspect-ratio: var(--mm-image-frame-ratio);
    overflow: hidden;
}

.mm-image-frame :is(.elementor-widget-image, .elementor-widget-rt-react-image)>.elementor-widget-container,
.mm-image-frame .react-image {
    height: 100%;
}

.mm-image-frame :is(.elementor-widget-image, .elementor-widget-rt-react-image) img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}

/* Overrides the Contact page's generated fixed image height. */
body .mm-image-frame.mm-image-frame--square .elementor-widget-rt-react-image .react-image img.react-multi-image {
    height: 100% !important;
}

.mm-image-frame--focus-lower :is(.elementor-widget-image, .elementor-widget-rt-react-image) img {
    object-position: center 65%;
}

/* Contact images are square beside desktop/tablet content, then shorter on phones. */
@media (min-width: 768px) {
    .mm-image-frame--square {
        --mm-image-frame-ratio: 1 / 1;
    }
}

@media (max-width: 767px) {
    .mm-image-frame--square {
        --mm-image-frame-ratio: 16 / 10;
    }

    /* Theme React images need an explicit mobile frame to avoid a shallow crop. */
    .mm-image-frame .elementor-widget-rt-react-image {
        aspect-ratio: auto;
        height: clamp(220px, 66.667vw, 280px);
    }

    body .mm-image-frame .elementor-widget-rt-react-image .react-image img.react-multi-image {
        height: 100% !important;
    }
}

/* =========================================================================
   Standardized content image frames
   Add `mm-natural-image` to an Elementor container. Keep the responsive
   image height in Elementor; this rule crops instead of stretching.
   ========================================================================= */
.mm-natural-image .elementor-widget-rt-react-image {
    overflow: hidden;
}

.mm-natural-image .elementor-widget-rt-react-image img.react-multi-image {
    display: block;
    width: 100% !important;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========================================================================
   Photo Gallery
   Scoped to the Elementor image-gallery widget with the mm-gallery ID.
   ======================================================================== */
#mm-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

#mm-gallery .gallery-item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

#mm-gallery .gallery-icon {
    width: 100%;
    aspect-ratio: 6 / 5;
    overflow: hidden;
    border-radius: 3px;
}

#mm-gallery .gallery-icon>a {
    display: block;
    width: 100%;
    height: 100%;
}

#mm-gallery .gallery-icon img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* Keep image descriptions available without varying the height of grid rows. */
#mm-gallery .gallery-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1023px) {
    #mm-gallery .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    #mm-gallery .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 479px) {
    #mm-gallery .gallery {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   Faculty cards
   Keeps the Faculty Grid widget markup intact while presenting its featured
   image as a card with a separate title/action panel.
   ======================================================================== */
#mm-faculty .rt-faculty-style1 .grid-item {
    margin-bottom: 24px;
}

#mm-faculty .rt-faculty-style1 .rts__program--item {
    --faculty-panel-height: 74px;
    width: 100%;
    max-width: none;
    height: 337px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e1e3e8;
    background-color: #f3f4f6;
    background-position: center;
    background-size: cover;
    transition: box-shadow .25s ease, transform .25s ease;
}

#mm-faculty .rt-faculty-style1 .rts__program--item::before,
#mm-faculty .rt-faculty-style1 .rts__program--item::after {
    right: 0;
    top: auto;
    bottom: 0;
    left: 0;
    height: var(--faculty-panel-height);
    background: #fff;
    opacity: 1;
    transform: none;
}

#mm-faculty .rt-faculty-style1 .rts__program--item:hover::before,
#mm-faculty .rt-faculty-style1 .rts__program--item:hover::after {
    opacity: 1;
    left: 0;
}

#mm-faculty .rt-faculty-style1 .rts__program--item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(7, 22, 61, .13);
}

#mm-faculty .rt-faculty-style1 .rts__program--item--title {
    position: absolute;
    right: 70px;
    bottom: 0;
    left: 20px;
    display: flex;
    align-items: center;
    height: var(--faculty-panel-height);
    margin: 0;
    color: #06153e;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

#mm-faculty .rt-faculty-style1 .rts__program--item--description {
    display: none;
}

#mm-faculty .rt-faculty-style1 .rts-nbg-btn {
    position: absolute;
    right: 20px;
    bottom: 19px;
    z-index: 2;
    display: grid;
    width: 35px;
    height: 35px;
    padding: 0;
    color: #06153e;
    font-size: 0;
    place-items: center;
}

#mm-faculty .rt-faculty-style1 .rts-nbg-btn::before {
    display: none;
}

#mm-faculty .rt-faculty-style1 .rts-nbg-btn>span {
    display: grid;
    width: 35px;
    height: 35px;
    border: 1px solid currentColor;
    border-radius: 50%;
    place-items: center;
    transition: color .2s ease, background-color .2s ease;
}

#mm-faculty .rt-faculty-style1 .rts-nbg-btn i {
    font-size: 14px;
}

#mm-faculty .rt-faculty-style1 .rts-nbg-btn:hover>span {
    color: #fff;
    background-color: #06153e;
}

@media (max-width: 767px) {
    #mm-faculty .rt-faculty-style1 .grid-item {
        margin-bottom: 18px;
    }

    #mm-faculty .rt-faculty-style1 .rts__program--item {
        height: 315px;
        min-height: 0;
        padding: 0;
    }
}

/* Faculty detail pages: reduce the template's default breadcrumb-to-content gap. */
body.rt-faculty-template-default .reactheme-porfolio-details #content {
    padding-top: 30px !important;
}

/* ========================================================================
   Single team pages: remove the theme's duplicate header gap.
   The fixed header is already accounted for by #page's dynamic top padding;
   the global 120px #content padding creates a second, unnecessary gap.
   ======================================================================== */
body.single-teams .main-contain #content {
    padding-top: 30px !important;
}

@media (max-width: 991px) {
    body.single-teams .main-contain #content {
        padding-top: 24px !important;
    }
}

/* ==========================================================================
   Elementor Info / Topic Cards Grid Component (mm-card-grid)
   ========================================================================== */
   
.mm-card-grid {
    display: grid !important;
}

.mm-card-grid > .e-div-block-base {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 20px 24px;
    background-color: #f4f6fa;
    border: 1px solid #D7D9E9;
    border-radius: 0 ;
    color: #06153e;
}
