﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --teal: #1a7c9c;
    --teal-dark: #145f78;
    --teal-light: #e8f4f8;
    --gold: #c9a84c;
    --gold-light: #f5efd8;
    --dark: #1e2a35;
    --grey-bg: #f0f2f4;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
    --radius: 10px;
}

.premium-side-ad {
    position: fixed;
    top: 140px;
    width: 160px;
    z-index: 500;
}

.premium-side-ad-left {
    left: 10px;
}

.premium-side-ad-right {
    right: 10px;
}

@media screen and (max-width: 1500px) {
    .premium-side-ad {
        display: none;
    }
}

.topbanner {
    max-width: 1199px;
    text-align: center;
    margin-top: 0.5rem;
}

@media screen and (max-width: 1024px) {
    .topbanner {
        display: none;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background-color: #fff;
    color: #333;
}

.bg-body {
    background-color: var(--grey-bg) !important;
}

.body-margin {
    margin-top: 6em;
}

::selection {
    color: #fff;
    background-color: var(--teal);
}

::-moz-selection {
    color: #fff;
    background-color: var(--teal);
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
}

.bold {
    font-weight: bold;
}

p {
    margin: 0;
}

.container, .container-fluid, .row, .col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
    top: 0px;
    left: 0px;
}

.background-aqua {
    background-color: var(--teal);
}

.bg-grey {
    background-color: #eee;
}

.bg-light-grey {
    background-color: rgba(20,21,22,0.05);
}

.mainbody-premium-bg {
    background-color: #012e6f;
}

.premium-page-wrap {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* #Navigation
================================================== */
.start-header {
    opacity: 1;
    transform: translateY(0);
    padding: 20px 0;
    box-shadow: 0 10px 30px 0 rgba(138, 155, 165, 0.15);
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

    .start-header.scroll-on {
        box-shadow: 0 5px 10px 0 rgba(138, 155, 165, 0.15);
        padding: 10px 0;
        -webkit-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
    }

        .start-header.scroll-on .navbar-brand img {
            height: 24px;
            -webkit-transition: all 0.3s ease-out;
            transition: all 0.3s ease-out;
        }

.navigation-wrap {
    position: fixed;
    width: 100%;
    left: 0;
    z-index: 1000;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.navbar {
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(100%);
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.navbar-toggler {
    float: right;
    border: none;
    padding-right: 0;
}

    .navbar-toggler:active,
    .navbar-toggler:focus {
        outline: none;
    }

.navbar-light .navbar-toggler-icon {
    width: 24px;
    height: 17px;
    background-image: none;
    position: relative;
    border-bottom: 1px solid #000;
    transition: all 300ms linear;
}

    .navbar-light .navbar-toggler-icon:after,
    .navbar-light .navbar-toggler-icon:before {
        width: 24px;
        position: absolute;
        height: 1px;
        background-color: #000;
        top: 0;
        left: 0;
        content: '';
        z-index: 2;
        transition: all 300ms linear;
    }

    .navbar-light .navbar-toggler-icon:after {
        top: 8px;
    }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
    transform: translateY(8px) rotate(-45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    border-color: transparent;
}

.nav-link {
    color: #212121 !important;
    font-weight: 500;
    transition: all 200ms linear;
    position: relative;
    padding: 5px 0 !important;
    display: inline-block;
}

.nav-item:hover .nav-link {
    color: var(--teal) !important;
}

.nav-item.active .nav-link {
    color: #777 !important;
}

.nav-item:after {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    content: '';
    background-color: var(--teal);
    opacity: 0;
    transition: all 200ms linear;
}

.nav-item:hover:after {
    bottom: 0;
    opacity: 1;
}

.nav-item.active:hover:after {
    opacity: 0;
}

.nav-item {
    position: relative;
    transition: all 200ms linear;
}

/* #Primary style
================================================== */

.bg-light {
    background-color: #fff !important;
    transition: all 200ms linear;
}

.section {
    position: relative;
    width: 100%;
    display: block;
}

.full-height {
    height: 100vh;
}

.over-hide {
    overflow: hidden;
}

.absolute-center {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    margin-top: 40px;
    transform: translateY(-50%);
    z-index: 20;
}

h2 {
    color: var(--teal);
    font-size: 1.2em;
    font-weight: 700;
    padding-top: 10px;
}

.rt-venue {
    color: var(--teal);
    font-weight: bold;
}

div.stallion-sectionwrapper > div.RowSep:nth-of-type(odd) {
    background: #f5f7f8;
}

.nav-item .dropdown-menu {
    transform: translate3d(0, 10px, 0);
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    display: block;
    padding: 0;
    margin: 0;
    transition: all 200ms linear;
}

.nav-item.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 999px;
    transform: translate3d(0, 0px, 0);
}

.dropdown-menu {
    padding: 10px !important;
    margin: 0;
    font-size: 13px;
    letter-spacing: 1px;
    color: #212121;
    background-color: #fcfaff;
    border: none;
    border-radius: 3px;
    box-shadow: 0 5px 10px 0 rgba(138, 155, 165, 0.15);
    transition: all 200ms linear;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-item {
    padding: 3px 15px;
    color: #212121;
    border-radius: 2px;
    transition: all 200ms linear;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        color: #fff;
        background-color: rgba(26,124,156,.6);
    }

body.dark {
    color: #fff;
    background-color: #1f2029;
}

    body.dark .navbar-brand img {
        filter: brightness(100%);
    }

    body.dark h1 {
        color: #fff;
    }

        body.dark h1 span {
            transition-delay: 0ms !important;
        }

    body.dark p {
        color: #fff;
        transition-delay: 0ms !important;
    }

    body.dark .bg-light {
        background-color: #14151a !important;
    }

    body.dark .start-header {
        box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
    }

        body.dark .start-header.scroll-on {
            box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.15);
        }

    body.dark .nav-link {
        color: #fff !important;
    }

    body.dark .nav-item.active .nav-link {
        color: #999 !important;
    }

    body.dark .dropdown-menu {
        color: #fff;
        background-color: #1f2029;
        box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.25);
    }

    body.dark .dropdown-item {
        color: #fff;
    }

    body.dark .navbar-light .navbar-toggler-icon {
        border-bottom: 1px solid #fff;
    }

        body.dark .navbar-light .navbar-toggler-icon:after,
        body.dark .navbar-light .navbar-toggler-icon:before {
            background-color: #fff;
        }

    body.dark .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        border-color: transparent;
    }

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2a3f52 100%);
    color: #fff;
    padding: 0;
    position: relative;
}

.hero-breadcrumbs {
    background: rgba(0,0,0,0.2);
    padding: 8px 0;
    font-size: 0.85em;
}

    .hero-breadcrumbs a {
        color: rgba(255,255,255,0.8) !important;
        text-decoration: none;
    }

        .hero-breadcrumbs a:hover {
            color: #fff !important;
        }

    .hero-breadcrumbs .separator {
        color: rgba(255,255,255,0.4);
        margin: 0 6px;
    }

.hero-inner {
    padding: 2rem 0 2.5rem;
}

.hero-left {
    padding-right: 2rem;
}

.hero-sire-name {
    font-size: 3.2em;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.2em;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

    .hero-sire-name .country-suffix {
        font-size: 0.35em;
        font-weight: 400;
        vertical-align: middle;
        opacity: 0.7;
        letter-spacing: 0;
    }

.hero-breeding {
    font-size: 0.95em;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-profile-comment {
    background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--gold);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-profile-description {
    font-size: 0.9em;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-stud-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 6px;
}

    .hero-stud-info .stud-logo {
        max-height: 60px;
        width: auto;
        border-radius: 4px;
    }

@media only screen and (min-width: 992px) {
    .hero-stud-info .stud-logo {
        max-height: 100px;
    }
}

    .hero-stud-info .stud-name {
        font-weight: 600;
        font-size: 1em;
    }

.stud-at,
.stud-fee {
    font-size: 1em;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.2rem;
}

.hero-section .stud-name a:not(.stud-details-toggle) {
    color: var(--gold) !important;
}

.hero-fee-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    font-size: 1em;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

    .hero-actions .btn-enquiry {
        background: var(--gold);
        color: var(--dark);
        border: none;
        font-weight: 600;
        padding: 8px 24px;
        border-radius: 8px;
        font-size: 0.9em;
        transition: all 0.2s;
    }

        .hero-actions .btn-enquiry:hover {
            background: #d4b45a;
            transform: translateY(-1px);
        }

    .hero-actions .btn-directory {
        background: var(--gold);
        color: var(--dark) !important;
        border: none;
        font-weight: 500;
        padding: 8px 20px;
        border-radius: 8px;
        font-size: 0.9em;
        transition: all 0.2s;
    }

        .hero-actions .btn-directory:hover {
            background: #d4b45a;
            transform: translateY(-1px);
        }

    .hero-actions .btn-directory-full {
        width: 100%;
        text-align: center;
    }

.hypo-card-body {
    padding: 0 0.5rem;
}

    .hypo-card-body .search-box-hypo {
        border: 1px solid #ddd;
        border-radius: 50px;
        padding: 10px 20px 10px 42px;
        font-size: 0.95em;
        width: 100%;
        max-width: 450px;
        transition: all 0.2s;
        color: #333;
    }

        .hypo-card-body .search-box-hypo::placeholder {
            color: #999;
        }

        .hypo-card-body .search-box-hypo:focus {
            outline: none;
            border-color: var(--teal);
            box-shadow: 0 0 0 3px rgba(26,124,156,0.15);
        }

/* Autocomplete search wrapper */
.ac-search-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 450px;
}

    .ac-search-wrap .ac-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        font-size: 0.9em;
        pointer-events: none;
        transition: color 0.2s;
        z-index: 2;
    }

    .ac-search-wrap input:focus ~ .ac-icon,
    .ac-search-wrap input:focus + .ac-icon {
        color: var(--teal);
    }

    .ac-search-wrap .ac-spinner {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        display: none;
        z-index: 2;
        line-height: 1;
    }

        .ac-search-wrap .ac-spinner i {
            font-size: 1.1em;
            color: var(--teal);
            animation: ac-gallop 0.5s ease-in-out infinite;
        }

@keyframes ac-gallop {
    0%, 100% {
        transform: translateY(0) scaleX(1);
    }

    30% {
        transform: translateY(-4px) scaleX(1.05);
    }

    60% {
        transform: translateY(1px) scaleX(0.97);
    }
}

/* Pedigree loading state */
.hypo-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
}

.hypo-loader-horse {
    position: relative;
    width: 60px;
    height: 40px;
}

    .hypo-loader-horse i {
        font-size: 2.2em;
        color: var(--teal);
        animation: hypo-gallop 0.6s ease-in-out infinite;
        display: block;
    }

@keyframes hypo-gallop {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-3deg);
    }

    50% {
        transform: translateY(-2px) rotate(0deg);
    }

    75% {
        transform: translateY(-6px) rotate(2deg);
    }
}

.hypo-loader-dust {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: 0;
    left: -8px;
}

    .hypo-loader-dust span {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #ccc;
        animation: dust-puff 0.6s ease-out infinite;
    }

        .hypo-loader-dust span:nth-child(2) {
            animation-delay: 0.1s;
            width: 4px;
            height: 4px;
        }

        .hypo-loader-dust span:nth-child(3) {
            animation-delay: 0.2s;
            width: 3px;
            height: 3px;
        }

@keyframes dust-puff {
    0% {
        opacity: 0.7;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-12px, 2px) scale(0.3);
    }
}

.hypo-loader-track {
    width: 120px;
    height: 3px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
    margin-top: -8px;
}

    .hypo-loader-track::after {
        content: '';
        display: block;
        width: 40%;
        height: 100%;
        background: var(--teal);
        border-radius: 3px;
        animation: track-run 1s ease-in-out infinite;
    }

@keyframes track-run {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

.hypo-loader-text {
    font-size: 0.88em;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.ac-search-wrap .ac-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    background: none;
    border: none;
    color: #999;
    font-size: 1.1em;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    z-index: 2;
}

    .ac-search-wrap .ac-clear:hover {
        color: #333;
    }

/* jQuery UI Autocomplete dropdown override */
.ui-autocomplete {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100000 !important;
    font-family: 'Poppins', sans-serif;
}

    .ui-autocomplete .ui-menu-item {
        list-style: none;
    }

    .ui-autocomplete .ui-menu-item-wrapper {
        display: block;
        padding: 10px 16px;
        font-size: 0.88em;
        color: #333;
        cursor: pointer;
        border-radius: 0;
        border: none;
        transition: background 0.15s;
        line-height: 1.4;
    }

        .ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
        .ui-autocomplete .ui-menu-item-wrapper:hover {
            background: var(--teal-light);
            color: var(--teal-dark);
            border: none;
            font-weight: 500;
        }

    .ui-autocomplete .ui-menu-item + .ui-menu-item {
        border-top: 1px solid #f0f0f0;
    }

    .ui-autocomplete .ac-no-results {
        padding: 14px 16px;
        font-size: 0.88em;
        color: #999;
        text-align: center;
        font-style: italic;
    }

    .ui-autocomplete .ac-item-horse {
        font-weight: 500;
        color: #333;
    }

    .ui-autocomplete .ac-item-meta {
        font-weight: 400;
        color: #888;
        font-size: 0.9em;
    }

    .ui-autocomplete .ac-item-type {
        display: inline-block;
        background: var(--teal-light);
        color: var(--teal);
        font-size: 0.78em;
        font-weight: 600;
        padding: 1px 8px;
        border-radius: 10px;
        margin-left: 6px;
    }

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

    .hero-right .swiper-container img {
        border-radius: 8px;
    }

.hero-sire-search {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

    .hero-sire-search .form-control {
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff;
        border-radius: 8px;
        padding: 10px 16px 10px 40px;
        font-size: 0.9em;
        width: 100%;
        height: auto;
    }

    .hero-sire-search .ac-icon {
        color: rgba(255,255,255,0.5);
    }

    .hero-sire-search input:focus ~ .ac-icon {
        color: var(--gold);
    }

    .hero-sire-search .ac-spinner i {
        color: var(--gold);
    }

    .hero-sire-search .ac-clear {
        color: rgba(255,255,255,0.5);
    }

        .hero-sire-search .ac-clear:hover {
            color: #fff;
        }

    .hero-sire-search .form-control::placeholder {
        color: rgba(255,255,255,0.5);
    }

    .hero-sire-search .form-control:focus {
        outline: none;
        background: rgba(255,255,255,0.25);
        border-color: var(--gold);
        box-shadow: none;
    }

/* ================================================
   STICKY SECTION NAVIGATION
   ================================================ */
.section-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 60px;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.section-nav-inner {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

    .section-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .section-nav-inner a {
        color: #555 !important;
        text-decoration: none;
        font-size: 0.8em;
        font-weight: 500;
        padding: 12px 16px;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        transition: all 0.2s;
        display: block;
    }

        .section-nav-inner a:hover,
        .section-nav-inner a.active {
            color: var(--teal) !important;
            border-bottom-color: var(--teal);
        }

/* ================================================
   SECTION CARD COMPONENT
   ================================================ */
.section-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.04);
    scroll-margin-top: 120px;
    animation: fadeInUp 0.4s ease-out;
}

    .section-card:hover {
        box-shadow: var(--card-shadow-hover);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--teal-light);
}

    .section-card-header .section-icon {
        color: var(--teal);
        font-size: 1.1em;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--teal-light);
        border-radius: 6px;
        flex-shrink: 0;
    }

    .section-card-header h2 {
        margin: 0;
        padding: 0;
        font-size: 1.1em;
        font-weight: 700;
        color: var(--dark);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: none;
    }

    .section-card-header .header-link {
        margin-left: auto;
        font-size: 0.8em;
        font-weight: 500;
    }

/* Single-column content layout */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* ================================================
   STUD DETAILS (in hero)
   ================================================ */
.hero-stud-details {
    margin-top: 0.5rem;
}

.stud-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.stud-contact-item {
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85em;
}

.stud-details-toggle {
    display: block;
    width: 100%;
    margin: 1rem 0 0;
    text-align: center;
    background: var(--gold);
    color: var(--dark) !important;
    border: none;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

    .stud-details-toggle:hover {
        background: #d4b45a;
        color: var(--dark) !important;
        transform: translateY(-1px);
        text-decoration: none;
    }

    .stud-details-toggle i {
        transition: transform 0.3s;
        font-size: 0.85em;
    }

    .stud-details-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

.hero-stud-details {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.7;
}

    .hero-stud-details a {
        color: rgba(255,255,255,0.85) !important;
    }

    .hero-stud-details i {
        width: 20px;
        opacity: 0.7;
        margin-right: 4px;
    }

    .hero-stud-details .mt-2 {
        background: rgba(255,255,255,0.05);
        border-radius: 6px;
        padding: 8px 12px;
    }

.stud-contact-item .contact-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.stud-contact-item .contact-role {
    font-size: 0.85em;
    opacity: 0.7;
}

.stud-contact-item a {
    color: rgba(255,255,255,0.85) !important;
}

.stud-contact-item i {
    width: 18px;
    opacity: 0.7;
}

/* ================================================
   IMPROVED TABLE STYLES
   ================================================ */
.table-premium {
    width: 100%;
    font-size: 0.9em;
    border-collapse: collapse;
}

    .table-premium th {
        background: var(--teal-light);
        color: var(--dark);
        font-weight: 600;
        font-size: 0.85em;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        padding: 8px 12px;
        border-bottom: 2px solid var(--teal);
    }

    .table-premium td {
        padding: 8px 12px;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

    .table-premium tbody tr:hover {
        background: #fafbfc;
    }

    .table-premium .text-right {
        text-align: right;
    }

/* ================================================
   BADGES AND TAGS
   ================================================ */
.badge-position {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
    min-width: 36px;
    text-align: center;
}

.badge-1st {
    background: #ffd700;
    color: #333;
}

.badge-2nd {
    background: #c0c0c0;
    color: #333;
}

.badge-3rd {
    background: #cd7f32;
    color: #fff;
}

.badge-superior {
    background: #e6f7e6;
    color: #1a7a1a;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.badge-date {
    background: var(--teal);
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    display: inline-block;
}

.badge-group {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.8em;
}

.badge-group-1 {
    background: #ffcc00;
    color: #333;
}

.badge-group-2 {
    background: #e0e0e0;
    color: #333;
}

.badge-group-3 {
    background: #ddd;
    color: #555;
}

/* Fee History Tags */
.fee-tag {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 4px 14px;
    margin: 3px 4px;
    font-size: 0.85em;
    transition: all 0.2s;
}

    .fee-tag:hover {
        background: var(--teal-light);
        border-color: var(--teal);
    }

    .fee-tag .fee-year {
        font-weight: 700;
        color: var(--dark);
    }

    .fee-tag .fee-amount {
        color: #555;
        margin-left: 4px;
    }

/* Sire Sons / Grandsire Sons Tags */
.sire-tag {
    display: inline-block;
    background: #f5f7f8;
    border: 1px solid #e0e4e8;
    border-radius: 50px;
    padding: 4px 14px;
    margin: 3px 4px;
    font-size: 0.85em;
    transition: all 0.2s;
}

    .sire-tag:hover {
        background: var(--teal-light);
        border-color: var(--teal);
    }

.sire-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ================================================
   TWITTER / SOCIAL CARD
   ================================================ */
.twitter-top {
    background-image: url(https://breednet.blob.core.windows.net/breednet/images/premium-stallion/twitterheader-sm-3.jpg);
    height: 20vh;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: var(--radius) var(--radius) 0 0;
}

#news-ticker .panel-heading.panel1 {
    background: var(--teal);
    color: #fff !important;
    padding: 14px 18px;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none !important;
}

#news-ticker .panel {
    border: medium none;
    box-shadow: none;
    border-radius: var(--radius);
}

#news-ticker .panel-footer {
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid rgba(0,0,0,0.015);
}

#news-ticker .pagination {
    border-radius: 25px;
    box-shadow: 4px 4px 7px rgba(0, 0, 0, 0.05);
    margin: 0;
}

    #news-ticker .pagination li a.prev {
        border-bottom-left-radius: 25px;
        border-top-left-radius: 25px;
        margin-left: 0;
    }

    #news-ticker .pagination li a.next {
        border-bottom-right-radius: 25px;
        border-top-right-radius: 25px;
    }

.pagination > li > a, .pagination > li > span {
    padding: 7px 12px 3px 12px !important;
}

#news-ticker img {
    max-width: 120px;
}

.pagination a {
    color: #555;
}

.panel ul {
    padding: 0px;
    margin: 0px;
    list-style: none;
}

.news-item {
    padding: 8px 4px;
    margin: 0px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.8em;
}

a {
    color: var(--teal) !important;
}

/* ================================================
   EXISTING STYLES (preserved)
   ================================================ */
.sire-post {
    max-height: 300px;
    position: relative;
    overflow: hidden;
}

    .sire-post .read-more {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 30px 0;
        background-image: linear-gradient(to bottom, transparent, #e8e8e8);
    }

.title-text {
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--teal);
    text-shadow: 3px 3px 0px #EEEEEE;
    letter-spacing: 1px;
    font-weight: bold;
}

.sire-comment {
    display: block;
    font-size: 0.9em;
}

.sire-distance-chart {
    width: 100%;
}

.sire-distance-container {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: 0.8em;
    border: 1px solid grey;
    border-radius: 0px;
    margin: 20px 0px 0px 0px;
}

.sire-distance-wrapper {
    display: block;
}

.sire-distance-cell {
    display: inline-block;
    width: 13%;
    height: 40px;
    border-top: 1px dotted #666;
    margin: 0px 1px 0px 1px;
    text-align: center;
    vertical-align: top;
}

.sire-distance-cell-header {
    display: inline-block;
    width: 13%;
    margin: 0px 1px 0px 1px;
    padding: 6px 0px 3px 0px;
    text-align: center;
    font-weight: bold;
}

.sire-distance-cell-header-long {
    display: inline-block;
    width: 18%;
    margin: 0px 1px 0px 1px;
    text-align: center;
    vertical-align: middle;
}

.sire-distance-cell-long {
    display: inline-block;
    width: 18%;
    border-top: 1px dotted #666;
}

.sire-distance-cell-sup {
    display: inline-block;
    width: 13%;
    height: 40px;
    border-top: 1px dotted #666;
    margin: 0px 1px 0px 1px;
    text-align: center;
    vertical-align: top;
    color: forestgreen;
    font-weight: bold;
}

.carousel-item {
    text-align: center;
}

.profile-comment {
    font-size: 1.1em;
    text-align: left;
}

    .profile-comment ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .profile-comment ul li {
            position: relative;
            padding: 9px 12px 9px 36px;
            border-bottom: 0.5px solid #e0e4ea;
            font-size: 14px;
            color: #1a1a2e;
            line-height: 1.6;
        }

            .profile-comment ul li:last-child {
                border-bottom: none;
            }



#ResultDisplay, #SPDisplay, #WnrDisplay, #PlcDisplay, #StakesDisplay, #SPDisplay, .stallion-nicksboxheader, #sireTxt {
    min-width: 100%
}

.stallion-nickscontent {
    min-width: 100%;
    margin-left: 0 !important;
}

.stallion-nomsboxheader a {
    color: #fff !important;
}

.btn-group-xs > .btn, .btn-xs {
    padding: .25rem .4rem;
    font-size: .875rem;
    line-height: .5;
    border-radius: .2rem;
}

.news-image-preview {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 110px;
    max-height: 110px;
    border-radius: 6px;
}

.dash-border-bottom {
    border-bottom-color: #eee;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.dash-border-left {
    border-left-color: #eee;
    border-left-width: 1px;
    border-left-style: solid;
}

.header-border {
    border-bottom-color: var(--teal);
    border-bottom-width: 0.2px;
    border-bottom-style: solid;
    padding-bottom: 0.3em;
    padding-left: 0.2em;
    text-transform: uppercase;
}

    .header-border span {
        float: right;
        padding-right: 0.5em;
        font-size: 0.7em;
    }

h4 {
    font-size: 1.1rem;
    margin-top: 0.5em;
    font-weight: bold;
    margin-left: 0.5em;
}

.video-icon {
    background-image: url('https://breednet.blob.core.windows.net/breednet/images/play.png');
    height: inherit;
    width: inherit;
    margin-left: auto;
    margin-right: auto;
    bottom: 0px;
    position: absolute;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px;
    opacity: 0.6;
}

.swiper-container img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
}

.thumb-img {
    max-height: 125px !important;
}

.swiper-container {
    width: 100%;
    top: 0px;
    left: 0px;
}

    .swiper-container.slider-thumbnail .swiper-wrapper .swiper-slide {
        width: 25%;
        height: 100%;
        opacity: 0.5;
        overflow: hidden;
    }

        .swiper-container.slider-thumbnail .swiper-wrapper .swiper-slide.swiper-slide-thumb-active {
            opacity: 1;
        }

.media-slider-thumbs {
    background-color: #273A4B;
    padding: .5rem;
    border-radius: 0 0 8px 8px;
}

.distance-winners {
}

.distance-winners-sup {
    color: forestgreen;
    font-weight: bold;
}

.sticky-ad-top {
    z-index: 999;
    position: sticky;
    position: -webkit-sticky;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
}

.ui-front {
    z-index: 10000;
}

.stakes-winner-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 270px;
}

#StudTitle {
    margin-left: 0 !important;
}

#VidThumbsTxt {
    display: flex;
    flex-direction: column;
}

.midvideo-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    width: 100%;
    background-color: white;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.video-player-mid {
    flex: 0 0 62%;
    max-width: 62%;
    min-width: 0;
}

.video-thumbs-mid {
    flex: 1 1 0;
    min-width: 0;
    background-color: white;
    padding: 6px;
    overflow-y: scroll;
    max-height: 420px;
    border-left: 1px solid #e0e0e0;
}

.video-mid-links {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: 0.8em;
    border-bottom: 1px solid #ddd;
    padding: 6px 4px;
}

    .video-mid-links:hover {
        background-color: #eaf4f8;
    }

    .video-mid-links a {
        display: block;
        text-decoration: none;
        color: inherit;
        overflow: hidden;
    }

    .video-mid-links img {
        float: left;
        width: 107px;
        height: 60px;
        object-fit: cover;
        margin-right: 8px;
    }

.vid-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    overflow: hidden;
}

@media (max-width: 767px) {
    .midvideo-container {
        flex-direction: column;
    }

    .video-player-mid {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .video-thumbs-mid {
        flex: none;
        width: 100%;
        max-height: 220px;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: normal;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .video-mid-links {
        display: block;
        width: 100%;
        white-space: normal;
    }
}

/* Race Record Styles */
.race-record-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .race-record-item:last-child {
        border-bottom: none;
    }

.race-record-age {
    background: var(--teal-light);
    color: var(--teal-dark);
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.9em;
    margin-top: 4px;
    border-radius: 4px;
}

/* Pedigree improvements */
.gen3wrapper,
.gen5wrapper {
    border-radius: 6px;
    overflow: hidden;
}

@media only screen and (min-width: 992px) {
    .gen5pageWrapper {
        width: 100%;
    }
}

.gen3wrapper div,
.gen5wrapper div {
    border-color: #e0e4e8;
}

.sire-link {
    margin: 8px 0;
}

.btn-pedigree {
    display: inline-block;
    background: var(--teal);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

    .btn-pedigree:hover {
        background: var(--teal-dark);
        transform: translateY(-1px);
        text-decoration: none;
        color: #fff !important;
    }

.btn-more {
    display: inline-block;
    background: var(--teal);
    color: #fff !important;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 8px;
}

    .btn-more:hover {
        background: var(--teal-dark);
        text-decoration: none;
        color: #fff !important;
    }

/* Modal improvements */
#myModal .modal-dialog {
    max-width: 500px;
}

#myModal .modal-content {
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#myModal .modal-header {
    background: var(--teal);
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1rem 1.5rem;
}

    #myModal .modal-header .modal-title {
        font-weight: 600;
    }

    #myModal .modal-header .close {
        color: #fff;
        opacity: 0.8;
        text-shadow: none;
    }

#myModal .modal-body {
    padding: 1.5rem;
}

    #myModal .modal-body .form-group {
        margin-bottom: 1rem;
    }

    #myModal .modal-body .form-control {
        border-radius: 6px;
        border: 1px solid #ddd;
        padding: 10px 14px;
        font-size: 0.9em;
    }

        #myModal .modal-body .form-control:focus {
            border-color: var(--teal);
            box-shadow: 0 0 0 3px rgba(26,124,156,0.1);
        }

#myModal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

#myModal #SendEnquiry {
    background: var(--teal);
    border: none;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 600;
    transition: all 0.2s;
}

    #myModal #SendEnquiry:hover {
        background: var(--teal-dark);
    }

/* ================================================
   RESPONSIVE BREAKPOINTS
   ================================================ */

.stallion-HeaderDisplay {
    margin: 0;
}

.stallion-head {
    font-size: 4em;
    font-weight: bold;
}

.list-inline-item img {
    max-height: 100px;
}

.breadcrumbs-premium {
    color: lightgrey;
}

    .breadcrumbs-premium a {
        color: var(--teal);
    }

@media (min-width: 1201px) and (max-width: 1600px) {
    .news-image-preview {
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        min-height: 120px;
        max-height: 120px;
    }
}

@media (max-width: 1200px) {
    .news-image-preview {
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        min-height: 100px;
        max-height: 100px;
    }
}

@media (min-width: 1024px) and (max-width: 1500px) {
    .stallion-head {
        font-size: 2.5em;
        font-weight: bold;
    }

    .hero-sire-name {
        font-size: 2.5em;
    }
}

@media (max-width: 1024px) {
    .news-preview {
        display: none;
    }

    .stallion-head {
        font-size: 2em;
        font-weight: bold;
    }

    .swiper-container img {
        max-height: 420px;
    }

    .thumb-img {
        max-height: 68px !important;
    }

    .news-image-preview {
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        min-height: 110px;
        max-height: 110px;
    }

    .hero-sire-name {
        font-size: 2.2em;
    }

    .hero-left {
        padding-right: 0;
    }

    .stud-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 790px) {
    .body-margin {
        margin-top: 7em;
    }

    .stallion-HeaderDisplay {
        margin: 0;
        position: inherit;
        top: auto;
        left: auto;
        margin-right: auto;
        transform: none;
    }

    .stallion-head {
        font-size: 3em;
        font-weight: bold;
    }

    #Breadcrumbs {
        padding: 0.8em;
    }

    .sire-distance-container {
        margin: 0;
    }

    .sire-distance-cell-header-long, .sire-distance-cell-long {
        width: 17%;
    }

    .sire-distance-cell-header, .sire-distance-cell {
        width: 12%;
    }

    .stallion-nickscontent {
        min-width: 100%;
        margin-left: 0px !important;
        font-size: 0.8em;
    }

    .stallion-nickshorse {
        width: 40% !important;
    }

    .stallion-nicksdam {
        width: 45% !important;
    }

    .news-image-preview {
        background-size: cover;
        min-height: 85px;
        max-height: 85px;
    }

    .swiper-container img {
        max-height: 240px;
    }

    .thumb-img {
        max-height: 55px !important;
    }

    .hero-inner {
        padding: 1.5rem 0;
    }

    .hero-sire-name {
        font-size: 2em;
    }

    .hero-right {
        margin-top: 1.5rem;
    }

    .content-wrapper {
        padding: 1rem 0.5rem;
    }

    .section-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .section-nav {
        top: 50px;
    }

    .section-nav-inner a {
        padding: 10px 12px;
        font-size: 0.75em;
    }

    .section-nav::before {
        content: '❯';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        padding: 0 6px 0 4px;
        background: linear-gradient(to right, #fff 60%, transparent);
        color: var(--teal);
        font-size: 0.75em;
        pointer-events: none;
        z-index: 1;
    }

    .section-nav-inner {
        padding-left: 1.5rem;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 38px;
    }

    .nav-item:after {
        display: none;
    }

    .nav-item::before {
        position: absolute;
        display: block;
        top: 15px;
        left: 0;
        width: 11px;
        height: 1px;
        content: "";
        border: none;
        background-color: #000;
        vertical-align: 0;
    }

    .dropdown-toggle::after {
        position: absolute;
        display: block;
        top: 10px;
        left: -23px;
        width: 1px;
        height: 11px;
        content: "";
        border: none;
        background-color: #000;
        vertical-align: 0;
        transition: all 200ms linear;
    }

    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(90deg);
        opacity: 0;
    }

    .dropdown-menu {
        padding: 0 !important;
        background-color: transparent;
        box-shadow: none;
        transition: all 200ms linear;
    }

    .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    body.dark .nav-item::before {
        background-color: #fff;
    }

    body.dark .dropdown-toggle::after {
        background-color: #fff;
    }

    body.dark .dropdown-menu {
        background-color: transparent;
        box-shadow: none;
    }
}

@media (max-width: 715px) {
    .news-image-preview {
        background-size: contain;
        min-height: 150px;
        max-height: 150px;
    }

    .swiper-container img {
        max-height: 360px;
    }

    .thumb-img {
        max-height: 75px !important;
    }
}

@media (max-width: 576px) {
    .hero-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-breadcrumbs .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-sire-name {
        font-size: 1.8em;
    }

    .hero-fee-badge {
        font-size: 0.9em;
        padding: 4px 14px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .table-premium {
        font-size: 0.8em;
    }

    .fee-tag {
        padding: 3px 10px;
        font-size: 0.8em;
    }
}

@media (max-width: 420px) {

    .navigation-wrap {
        top: 0;
    }

    .news-image-preview {
        background-size: contain;
        min-height: 80px;
        max-height: 80px;
    }

    .swiper-container img {
        max-height: 240px;
    }

    .thumb-img {
        max-height: 51px !important;
    }
}

@media only screen and (max-width: 992px) {
    .stallion-head {
        font-size: 1.4em;
    }

    .sire-breeding {
        font-size: 1em;
    }

    .profile-comment {
        font-size: 0.9em;
        font-weight: normal;
        line-height: 1;
    }

    .profile-description {
        font-size: 0.9em;
        font-weight: normal;
        line-height: 1.2;
    }
}

/* #Link to page
================================================== */

.logo {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: block;
    z-index: 100;
    transition: all 250ms linear;
}

    .logo img {
        height: 26px;
        width: auto;
        display: block;
        filter: brightness(100%);
        transition: all 250ms linear;
    }

body.dark .logo img {
    filter: brightness(10%);
}

.showFade {
    opacity: 1;
    transition: opacity 1s;
}

.hideFade {
    opacity: 0;
}

.text-capital {
    text-transform: uppercase;
}

/* Carousel sold badge */
.carousel-img-wrapper {
    position: relative;
}

.carousel-sold-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    font-size: 0.85em;
    padding: 4px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.carousel-sold-amount {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.95;
}
