/* Noor Elaine Farm site-wide refresh. Loaded last to tame the legacy theme. */
:root {
    --nef-green: #17382d;
    --nef-green-dark: #0b1814;
    --nef-gold: #b99a5f;
    --nef-gold-dark: #8f6f33;
    --nef-ink: #24302b;
    --nef-muted: #66716b;
    --nef-cream: #f6f1e7;
    --nef-paper: #fffdf8;
    --nef-line: #ded5c4;
    --nef-white: #ffffff;
    --nef-shadow: 0 24px 54px rgba(8, 22, 18, 0.16);
    --nef-radius: 6px;
    --nef-container: 1280px;
    --nef-font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
    --nef-font-display: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--nef-cream);
}

body {
    overflow-x: hidden;
    background: var(--nef-cream);
    color: var(--nef-ink);
    font-family: var(--nef-font-body);
    font-size: 17px;
    line-height: 1.62;
    text-rendering: optimizeLegibility;
}

body a,
body a:visited {
    color: var(--nef-green);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body a:hover,
body a:focus {
    color: var(--nef-gold-dark);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(185, 154, 95, 0.65);
    outline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    max-width: 72ch;
}

h1,
h2,
h3,
h4,
h5,
h6,
.uk-article-title,
.uk-panel-title,
.main-title,
.section-header,
.section-title {
    color: var(--nef-green);
    font-family: var(--nef-font-display);
    font-weight: 700;
    letter-spacing: 0;
}

.uk-container {
    max-width: var(--nef-container);
    padding-left: clamp(18px, 4vw, 48px);
    padding-right: clamp(18px, 4vw, 48px);
}

/* Navigation */
.tm-navbar {
    min-height: 62px;
    background: rgba(11, 24, 20, 0.98) !important;
    border-bottom: 1px solid rgba(185, 154, 95, 0.3);
    box-shadow: 0 12px 28px rgba(8, 22, 18, 0.22);
}

.tm-navbar-center,
.tm-nav-wrapper {
    min-height: 62px;
}

.uk-navbar-nav {
    margin: 0;
}

.uk-navbar-nav > li > a {
    min-height: 62px;
    height: 62px;
    padding: 0 18px;
    border: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--nef-font-body);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 62px;
    text-transform: uppercase;
}

.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li > a:focus,
.uk-navbar-nav > li.uk-open > a,
.uk-navbar-nav > li.uk-active > a {
    background: rgba(185, 154, 95, 0.14);
    color: var(--nef-white);
    border: 0;
}

.uk-navbar-nav > li:focus-within > .uk-dropdown {
    display: block;
}

.uk-dropdown-navbar {
    min-width: 220px;
    margin-top: 0;
    padding: 10px;
    background: var(--nef-paper);
    border: 1px solid var(--nef-line);
    border-radius: var(--nef-radius);
    box-shadow: var(--nef-shadow);
}

.uk-nav-navbar > li > a {
    padding: 11px 12px;
    color: var(--nef-ink);
    font-size: 15px;
    font-weight: 800;
}

.uk-nav-navbar > li > a:hover,
.uk-nav-navbar > li > a:focus,
.uk-nav-navbar > li.uk-active > a {
    background: rgba(185, 154, 95, 0.16);
    color: var(--nef-green-dark);
}

.uk-navbar-toggle,
.uk-navbar-toggle:hover,
.uk-navbar-toggle:focus {
    color: var(--nef-white);
}

.tm-logo-small .uk-navbar-brand {
    color: var(--nef-white);
    font-family: var(--nef-font-display);
    font-size: clamp(25px, 5vw, 40px);
    letter-spacing: 0;
    line-height: 62px;
    text-indent: 0;
}

.uk-offcanvas-bar {
    background: var(--nef-green-dark);
}

.uk-nav-offcanvas > li > a,
.uk-nav-offcanvas .uk-nav-sub a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.uk-nav-offcanvas > li.uk-active > a,
.uk-nav-offcanvas > li > a:hover,
.uk-nav-offcanvas > li > a:focus,
.uk-nav-offcanvas .uk-nav-sub a:hover,
.uk-nav-offcanvas .uk-nav-sub a:focus {
    background: rgba(185, 154, 95, 0.16);
    color: var(--nef-white);
}

/* Shared hero/header area */
.tm-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--nef-cream);
}

body:not(.nef-home) .tm-wrapper {
    min-height: 280px;
    padding-bottom: 42px;
}

.tm-background {
    background-image: url("../../assets-new/Asfoora pic_france.jpg");
    background-repeat: no-repeat;
    background-position: 50% 24%;
    background-size: cover;
}

.tm-background:after {
    background:
        linear-gradient(90deg, rgba(11, 24, 20, 0.76) 0%, rgba(11, 24, 20, 0.48) 45%, rgba(11, 24, 20, 0.2) 100%),
        linear-gradient(0deg, rgba(246, 241, 231, 0.98) 0%, rgba(246, 241, 231, 0.18) 48%, rgba(11, 24, 20, 0.1) 100%);
}

.logo {
    position: relative;
    max-width: var(--nef-container);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 46px) clamp(18px, 4vw, 48px) 0;
    text-align: left;
}

.tm-logo .logo-wrap {
    display: inline-block;
    padding: 10px;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid rgba(185, 154, 95, 0.62);
    border-radius: var(--nef-radius);
    box-shadow: 0 20px 46px rgba(8, 22, 18, 0.26);
}

.tm-logo img,
.tm-logo-small img {
    display: block;
    width: 156px;
    border-radius: 2px;
}

body:not(.nef-home) .tm-wrapper:after {
    content: "Noor Elaine Farm";
    position: relative;
    display: block;
    max-width: var(--nef-container);
    margin: 18px auto 0;
    padding: 0 clamp(18px, 4vw, 48px);
    color: var(--nef-white);
    font-family: var(--nef-font-display);
    font-size: clamp(34px, 6vw, 70px);
    font-weight: 700;
    line-height: 0.95;
    text-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

/* Content surfaces */
.tm-middle,
.main-content .uk-container {
    position: relative;
}

.tm-wrapper + .tm-middle,
.main-content {
    margin-top: -56px;
}

.tm-main,
.tm-sidebar-a,
.tm-sidebar-b {
    position: relative;
}

.tm-content,
.tm-isblog .uk-article,
.tm-noblog .tm-content,
.main-content .uk-container > .contentWrap,
.main-content .uk-container > .row-fluid,
.main-content .uk-container > #stockA_wrapper,
.thumbnail-data {
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(222, 213, 196, 0.88);
    border-radius: var(--nef-radius);
    box-shadow: var(--nef-shadow);
}

.tm-content {
    padding: clamp(26px, 4vw, 54px);
}

.tm-isblog .uk-article,
.tm-noblog .tm-content {
    padding: clamp(26px, 4vw, 54px);
}

.main-content {
    padding: 0 0 clamp(48px, 6vw, 86px);
    background: transparent;
}

.main-content .uk-container > .contentWrap,
.main-content .uk-container > .row-fluid,
.main-content .uk-container > #stockA_wrapper,
.thumbnail-data {
    padding: clamp(22px, 3vw, 34px);
}

.uk-article-title,
.main-title,
.section-header {
    margin: 0 0 26px;
    color: var(--nef-green);
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 0.98;
    text-align: left;
}

.main-title {
    padding: 0 0 18px;
    border-bottom: 1px solid var(--nef-line);
}

.uk-article-lead,
.tm-article-content p,
section p,
.descWrap p {
    color: var(--nef-ink);
    font-size: 17px;
    line-height: 1.68;
}

.uk-article-lead {
    color: #34413c;
    font-size: clamp(18px, 1.55vw, 21px);
    line-height: 1.62;
}

.uk-article-meta {
    display: inline-flex;
    margin: 0 0 16px !important;
    padding: 6px 12px;
    background: #f3eadb;
    border-left: 3px solid var(--nef-gold);
    color: var(--nef-green);
    font-weight: 900;
}

.img-wrap {
    margin: 0 0 28px;
}

.img-wrap img,
.tm-leading-article img,
.horse-photo img,
.doch,
.PDF,
.wk-gallery-wall img,
.cont-img img,
.contact-map iframe {
    border-radius: var(--nef-radius);
}

.img-wrap img,
.horse-photo img,
.doch,
.cont-img img,
.contact-map iframe {
    box-shadow: 0 16px 34px rgba(8, 22, 18, 0.16);
}

.tm-leading-article img {
    width: min(46%, 420px);
    margin: 0 34px 20px 0;
}

/* Sidebars and stallion pages */
.uk-panel-box-primary,
.uk-panel-box-secondary {
    background: var(--nef-green-dark);
    border: 1px solid rgba(185, 154, 95, 0.38);
    border-radius: var(--nef-radius);
    box-shadow: var(--nef-shadow);
}

.uk-panel-box-primary .uk-panel-title,
.uk-panel-box-secondary .uk-panel-title,
.uk-panel-box-primary h1,
.uk-panel-box-primary h2,
.uk-panel-box-primary h3,
.uk-panel-box-secondary h1,
.uk-panel-box-secondary h2,
.uk-panel-box-secondary h3 {
    color: var(--nef-white);
}

.uk-panel-box-primary,
.uk-panel-box-secondary,
.uk-panel-box-primary p,
.uk-panel-box-secondary p {
    color: rgba(255, 255, 255, 0.86);
}

.uk-panel-box-primary .tm-panel-subtitle,
.uk-panel-box-secondary .tm-panel-subtitle {
    color: var(--nef-gold);
}

.uk-nav-side > li > a,
.uk-nav-side ul a {
    min-height: 38px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.uk-nav-side > li > a:hover,
.uk-nav-side > li > a:focus,
.uk-nav-side > li.uk-active > a,
.uk-nav-sub .uk-active a {
    color: var(--nef-white);
    background: rgba(185, 154, 95, 0.15);
}

.uk-panel-box-secondary .uk-nav-header {
    color: var(--nef-gold);
    font-weight: 900;
}

.gst {
    color: var(--nef-muted);
    font-size: 16px;
}

.nepotism-pedigree {
    padding: 18px;
    background: #fbf7ee;
    border: 1px solid var(--nef-line);
    border-radius: var(--nef-radius);
}

.pedigree-zoom-link {
    position: relative;
    display: inline-block;
    max-width: 100%;
    cursor: zoom-in;
}

.nepotism-pedigree img {
    display: block;
    width: 100%;
    max-width: 774px;
    margin: 0 auto;
}

.pedigree-zoom-link span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    min-height: 40px;
    padding: 9px 14px;
    background: rgba(11, 24, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--nef-radius);
    color: var(--nef-white);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    box-shadow: 0 12px 24px rgba(8, 22, 18, 0.22);
}

.pedigree-zoom-link:hover span,
.pedigree-zoom-link:focus span {
    background: var(--nef-green);
}

.pedigree-zoom-modal {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: none;
    padding: clamp(18px, 4vw, 42px);
    overflow: auto;
    background: rgba(7, 20, 16, 0.92);
}

.pedigree-zoom-modal:target {
    display: block;
}

.pedigree-zoom-content {
    width: fit-content;
    max-width: none;
    margin: 0 auto;
    padding: clamp(14px, 2vw, 24px);
    background: var(--nef-paper);
    border: 1px solid var(--nef-line);
    border-radius: var(--nef-radius);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.pedigree-zoom-content h3 {
    margin: 0 0 14px;
    color: var(--nef-green);
    font-size: clamp(26px, 3vw, 40px);
}

.pedigree-zoom-content img {
    display: block;
    width: min(1220px, 94vw);
    max-width: none;
    height: auto;
}

.pedigree-zoom-close,
.pedigree-zoom-close:visited {
    position: sticky;
    top: 0;
    left: 100%;
    z-index: 1;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px auto;
    padding: 9px 15px;
    background: var(--nef-paper);
    border: 1px solid var(--nef-line);
    border-radius: var(--nef-radius);
    color: var(--nef-green);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.pedigree-zoom-close:hover,
.pedigree-zoom-close:focus {
    background: var(--nef-green);
    color: var(--nef-white);
}

/* Tables and sales data */
.uk-table,
.table,
table#stockA {
    width: 100% !important;
    border: 1px solid var(--nef-line);
    border-collapse: separate;
    border-spacing: 0;
    background: var(--nef-paper);
    border-radius: var(--nef-radius);
    overflow: hidden;
}

.uk-table th,
.table th,
table#stockA th {
    background: var(--nef-green);
    color: var(--nef-white);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.uk-table td,
.uk-table th,
.table td,
.table th,
table#stockA td,
table#stockA th {
    padding: 13px 14px;
    border-color: var(--nef-line);
    vertical-align: middle;
}

.uk-table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd),
table#stockA tbody tr:nth-of-type(odd) {
    background: #fbf7ee;
}

table#stockA tbody tr:hover,
.clickable-row:hover {
    background: rgba(185, 154, 95, 0.16);
}

.toolbar {
    margin: 0 0 18px;
    padding: 0;
}

.grid {
    overflow: hidden;
    border: 1px solid var(--nef-line);
    border-radius: var(--nef-radius);
    background: var(--nef-paper);
    color: var(--nef-green);
    box-shadow: 0 10px 24px rgba(8, 22, 18, 0.08);
}

.grid > div {
    background: transparent;
    color: var(--nef-muted);
}

.grid > div.hover {
    background: var(--nef-green);
    color: var(--nef-white);
}

.thumbnail-data {
    margin-top: 20px;
}

.thumb-data.row-fluid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.thumb-data.row-fluid:before,
.thumb-data.row-fluid:after {
    display: none;
}

.thumb-data.row-fluid .span4 {
    width: auto;
    margin: 0;
}

.cont-img {
    overflow: hidden;
    border-radius: var(--nef-radius);
    background: var(--nef-green-dark);
    box-shadow: 0 16px 32px rgba(8, 22, 18, 0.14);
}

.cont-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.overlay {
    background: rgba(11, 24, 20, 0.76);
}

/* Horse detail pages */
.backArrow,
.next-prev {
    margin-bottom: 18px;
}

.backArrow a,
.prev,
.next,
a.prev,
a.next {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--nef-line);
    border-radius: var(--nef-radius);
    background: var(--nef-paper);
    color: var(--nef-green);
    font-weight: 900;
}

.next-prev .disable {
    opacity: 0.48;
}

.section-title {
    margin: 24px 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--nef-line);
    color: var(--nef-green);
    font-size: 22px;
}

.descWrap.mt-30 p span {
    width: 170px;
    color: var(--nef-green);
    font-weight: 900;
}

h5.capsTitle {
    margin: 22px 0 8px;
    color: var(--nef-gold-dark);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.horse-photo {
    width: min(46%, 420px);
    margin: 12px 0 24px 28px;
}

.horse-photo img,
.doch {
    display: block;
    background: var(--nef-paper);
}

img.doch {
    width: min(100%, 620px);
    border: 1px solid var(--nef-line);
}

img.PDF {
    width: 74px;
    border: 1px solid var(--nef-line);
    box-shadow: none;
}

/* Forms and contact */
.contact h3,
.jicons-icons,
.contact-address {
    display: none;
}

.contact-form .well,
.form-horizontal.well {
    max-width: 760px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.contact-form legend {
    display: block;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nef-line);
    color: var(--nef-green);
    font-family: var(--nef-font-display);
    font-size: clamp(24px, 3vw, 34px);
}

.control-group {
    margin-bottom: 20px;
}

.control-label label,
.contact-form label,
.contact-form .spacer label {
    display: block;
    margin-bottom: 8px;
    color: var(--nef-green);
    font-size: 14px;
    font-weight: 900;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--nef-line);
    border-radius: var(--nef-radius);
    background: var(--nef-white);
    color: var(--nef-ink);
    font-family: var(--nef-font-body);
    font-size: 16px;
    line-height: 1.45;
    box-shadow: none;
}

textarea,
.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--nef-gold);
    box-shadow: 0 0 0 3px rgba(185, 154, 95, 0.24);
    outline: none;
}

.btn,
.btn-primary,
.uk-button,
.home-button {
    min-height: 44px;
    border-radius: var(--nef-radius);
    font-family: var(--nef-font-body);
    font-weight: 900;
}

.btn-primary,
.uk-button-primary,
button.btn-primary {
    background: var(--nef-green);
    border-color: var(--nef-green);
    color: var(--nef-white);
}

.btn-primary:hover,
.btn-primary:focus,
.uk-button-primary:hover,
.uk-button-primary:focus,
button.btn-primary:hover,
button.btn-primary:focus {
    background: var(--nef-green-dark);
    border-color: var(--nef-green-dark);
    color: var(--nef-white);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}

/* Media */
.wk-gallery-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.wk-gallery-wall:before,
.wk-gallery-wall:after {
    display: none;
}

.wk-gallery-wall > * {
    width: auto;
    margin: 0 !important;
    float: none;
}

.wk-gallery-wall img,
.horse-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(8, 22, 18, 0.14);
}

.wk-gallery-wall.zoom > * {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.wk-gallery-wall.zoom > *:hover,
.wk-gallery-wall.zoom > *:focus {
    transform: translateY(-2px);
}

.videoWrapper {
    padding-top: 0;
    overflow: hidden;
    border-radius: var(--nef-radius);
    background: var(--nef-green-dark);
    box-shadow: 0 16px 34px rgba(8, 22, 18, 0.16);
}

.nepotism-video-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.nepotism-video-list .videoWrapper + .videoWrapper {
    margin-top: 0;
}

/* Homepage */
body.nef-home .tm-wrapper {
    min-height: auto;
    padding-bottom: clamp(48px, 6vw, 90px);
}

body.nef-home .tm-background {
    background-position: 50% 20%;
}

body.nef-home .tm-background:after {
    background:
        linear-gradient(90deg, rgba(11, 24, 20, 0.74) 0%, rgba(11, 24, 20, 0.44) 42%, rgba(11, 24, 20, 0.18) 100%),
        linear-gradient(0deg, rgba(246, 241, 231, 0.98) 0%, rgba(246, 241, 231, 0.2) 42%, rgba(11, 24, 20, 0.2) 100%);
}

body.nef-home .logo.uk-container {
    margin-top: 0;
    padding-top: clamp(24px, 4vw, 46px);
}

body.nef-home .home-hero-content {
    margin-top: 0;
    padding-top: clamp(30px, 4vw, 54px);
}

body.nef-home .home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    gap: clamp(26px, 4vw, 52px);
    align-items: start;
}

body.nef-home .home-hero-grid:before,
body.nef-home .home-hero-grid:after {
    display: none;
}

body.nef-home .home-hero-grid > * {
    display: block;
    width: auto;
    padding-left: 0;
}

body.nef-home .home-side,
body.nef-home .home-side .uk-panel-box-primary,
body.nef-home .home-welcome-panel {
    min-height: 0;
}

body.nef-home .home-welcome-panel.uk-panel-box-primary {
    position: relative;
    padding: clamp(32px, 4vw, 52px);
    overflow: hidden;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(222, 213, 196, 0.88);
    border-left: 6px solid var(--nef-gold);
    color: var(--nef-ink);
    box-shadow: var(--nef-shadow);
}

body.nef-home .home-welcome-panel:before {
    display: none;
}

body.nef-home .home-welcome-panel .home-eyebrow,
body.nef-home .home-stallion-copy .home-eyebrow {
    margin: 0 0 10px;
    color: var(--nef-gold-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

body.nef-home .home-welcome-panel .uk-panel-title {
    max-width: 11ch;
    margin: 0 0 24px;
    color: var(--nef-green);
    font-size: clamp(40px, 5.8vw, 72px);
    line-height: 0.96;
}

body.nef-home .home-welcome-panel p {
    max-width: 58ch;
    color: #34413c;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.62;
}

body.nef-home .home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

body.nef-home .home-button,
body.nef-home .home-button:visited,
body.nef-home .home-button:active {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--nef-green);
    color: var(--nef-green);
    font-size: 15px;
    line-height: 1.2;
}

body.nef-home .home-button-primary,
body.nef-home .home-button-primary:visited {
    background: var(--nef-green);
    color: var(--nef-white);
}

body.nef-home .home-button-secondary,
body.nef-home .home-button-secondary:visited {
    background: transparent;
    color: var(--nef-green);
}

body.nef-home .home-button:hover,
body.nef-home .home-button:focus {
    transform: translateY(-1px);
}

body.nef-home .home-feature .tm-content {
    display: grid;
    gap: 20px;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.nef-home .home-stallion-card,
body.nef-home .home-updates-panel {
    overflow: hidden;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid rgba(222, 213, 196, 0.88);
    border-radius: var(--nef-radius);
    box-shadow: var(--nef-shadow);
}

body.nef-home .home-stallion-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
    max-width: 100%;
    min-width: 0;
}

body.nef-home .home-stallion-media,
body.nef-home .home-stallion-media img {
    min-height: clamp(320px, 31vw, 480px);
}

body.nef-home .home-stallion-media,
body.nef-home .home-stallion-copy {
    min-width: 0;
}

body.nef-home .home-stallion-media {
    background: #f3eadb;
}

body.nef-home .home-stallion-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

body.nef-home .home-stallion-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 3vw, 42px);
}

body.nef-home .home-stallion-copy h2 {
    margin: 0 0 14px;
    color: var(--nef-green);
    max-width: 100%;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1;
    overflow-wrap: anywhere;
}

body.nef-home .home-stallion-copy p {
    color: #34413c;
    font-size: 16px;
    line-height: 1.6;
}

body.nef-home .home-stat-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0 22px;
}

body.nef-home .home-stat-row span {
    padding: 13px 14px;
    background: #f3eadb;
    border-left: 3px solid var(--nef-gold);
    color: var(--nef-ink);
    font-size: 14px;
}

body.nef-home .home-stat-row strong {
    display: block;
    color: var(--nef-green);
    font-size: 20px;
}

body.nef-home .home-link,
body.nef-home .home-link:visited {
    color: var(--nef-green);
    font-weight: 900;
}

body.nef-home .home-updates-panel {
    padding: 22px;
}

body.nef-home .home-updates-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

body.nef-home .home-updates-heading h2 {
    margin: 0;
    color: var(--nef-green);
    font-size: 26px;
    line-height: 1.15;
}

body.nef-home .home-updates-feed {
    min-height: 230px;
    overflow: hidden;
    background: var(--nef-white);
    border: 1px solid var(--nef-line);
    border-radius: 4px;
}

/* Footer */
#bottom-b {
    padding: 54px 0 !important;
    background: var(--nef-green-dark);
    color: rgba(255, 255, 255, 0.84);
}

#bottom-b .uk-grid {
    row-gap: 28px;
}

#bottom-b .uk-panel {
    height: 100%;
}

#bottom-b .museo {
    color: var(--nef-white);
    font-family: var(--nef-font-display);
    font-size: clamp(28px, 3vw, 42px) !important;
    line-height: 1.08 !important;
}

#bottom-b h3,
#bottom-b h4,
#bottom-b h6,
#bottom-b strong {
    color: var(--nef-white);
}

#bottom-b p {
    color: rgba(255, 255, 255, 0.82);
}

#bottom-b a {
    color: var(--nef-gold);
}

#bottom-b a:hover,
#bottom-b a:focus {
    color: var(--nef-white);
}

.tm-footer {
    padding: 22px clamp(18px, 4vw, 48px);
    background: #071410;
    color: rgba(255, 255, 255, 0.72);
}

.tm-footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: var(--nef-container);
    margin: 0 auto;
}

.tm-footer .footer-copy,
.tm-footer .footer-sponsor {
    max-width: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.tm-footer a {
    color: var(--nef-gold);
}

.tm-footer .footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tm-footer .footer-social::before {
    content: "Follow Us";
    margin-right: 10px;
    color: var(--nef-gold);
    font-family: var(--nef-font-body);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.tm-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d8a64e;
    color: #071410;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
}

.tm-footer .footer-social-link:hover,
.tm-footer .footer-social-link:focus {
    background: #27d9e8;
    color: #071410;
    text-decoration: none;
    transform: translateY(-2px);
}

.tm-footer .footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #071410;
    font-size: 21px;
    line-height: 1;
}

.tm-footer .footer-social-link span:not(.footer-social-icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.tm-footer .footer-sponsor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tm-footer .footer-sponsor img,
.bluebet-footer img {
    max-height: 30px;
    width: auto;
}

@media (max-width: 1100px) {
    body.nef-home .home-hero-grid {
        grid-template-columns: 1fr;
    }

    body.nef-home .home-stallion-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 959px) {
    body:not(.nef-home) .tm-wrapper {
        min-height: 230px;
    }

    body:not(.nef-home) .tm-wrapper:after {
        font-size: clamp(32px, 9vw, 54px);
    }

    .tm-wrapper + .tm-middle,
    .main-content {
        margin-top: -34px;
    }

    .tm-leading-article img,
    .horse-photo {
        width: 100%;
        float: none;
        margin: 0 0 24px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .tm-footer .footer-inner {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .tm-footer .footer-copy,
    .tm-footer .footer-sponsor {
        text-align: center;
    }

    .tm-navbar,
    .tm-navbar-center,
    .tm-nav-wrapper,
    .tm-navbar .uk-navbar-toggle,
    .tm-navbar .uk-navbar-content {
        min-height: 62px;
        height: 62px;
    }

    .tm-logo-small .uk-navbar-brand {
        max-width: calc(100vw - 96px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not(.nef-home) .tm-wrapper {
        min-height: 210px;
        padding-bottom: 32px;
    }

    .tm-logo img {
        width: 128px;
    }

    .tm-content,
    .tm-isblog .uk-article,
    .tm-noblog .tm-content,
    .main-content .uk-container > .contentWrap,
    .main-content .uk-container > .row-fluid,
    .main-content .uk-container > #stockA_wrapper,
    .thumbnail-data {
        padding: 22px 18px;
    }

    .uk-article-title,
    .main-title,
    .section-header {
        font-size: clamp(31px, 10vw, 44px);
    }

    .uk-overflow-container,
    #stockA_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table#stockA {
        min-width: 780px;
    }

    .thumb-data.row-fluid,
    .wk-gallery-wall,
    .nepotism-video-list {
        grid-template-columns: 1fr;
    }

    .descWrap.mt-30 p span {
        display: block;
        width: auto;
        margin-bottom: 2px;
    }

    body.nef-home .home-hero-content {
        padding-top: 24px;
    }

    body.nef-home .home-welcome-panel.uk-panel-box-primary {
        padding: 28px 22px;
    }

    body.nef-home .home-welcome-panel .uk-panel-title {
        max-width: none;
        font-size: clamp(34px, 12vw, 48px);
    }

    body.nef-home .home-actions,
    body.nef-home .home-updates-heading {
        display: block;
    }

    body.nef-home .home-button {
        width: 100%;
    }

    body.nef-home .home-button + .home-button {
        margin-top: 10px;
    }

    body.nef-home .home-stallion-card {
        display: block;
    }

    body.nef-home .home-stallion-media,
    body.nef-home .home-stallion-media img {
        min-height: 290px;
    }

    body.nef-home .home-updates-heading h2 {
        margin-bottom: 8px;
    }

    #bottom-b,
    .tm-footer {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }
}
