/* =========================
           THEME VARIABLES
        ========================= */
:root {
    --velvet: #623371;
    --velvet-dark: #4b2658;
    --velvet-light: #a56abd;
    --velvet-hover: #7b438e;
    --gold: #c9a86c;
    --gold-dark: #9d7a3d;
    --gold-light: #e8c983;
    --gold-bright: #f0d694;
    --bg-body: #0b0710;
    --bg-hero: #100817;
    --bg-secondary: #160c20;
    --bg-card: #1c1028;
    --bg-card-hover: #241332;
    --bg-deep-purple: #2e1640;
    --bg-purple-overlay: #351847;
    --text-primary: #f8f3f7;
    --text-secondary: #d9d0da;
    --text-muted: #887b8c;
    --text-disabled: #625666;
    --text-purple: #c88bde;
    --border-color: #ffffff14;
    --border-card: #ffffff1f;
    --border-strong: #62337199;
    --border-gold: #c9a86c;
    --divider: #ffffff0d;
    --btn-primary-bg: #623371;
    --btn-primary-hover: #7b438e;
    --btn-primary-active: #4b2658;
    --btn-text-light: #ffffff;
    --card-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
    --purple-shadow: 0 14px 34px rgba(98, 51, 113, 0.35);
    --gold-shadow: 0 10px 28px rgba(201, 168, 108, 0.18);
    --purple-glow: 0 0 28px rgba(165, 106, 189, 0.3);
    --gold-glow: 0 0 22px rgba(201, 168, 108, 0.22);

    --hero-overlay-gradient: linear-gradient(90deg,
            rgb(11 7 16 / 49%) 0%,
            rgb(11 7 16 / 46%) 42%,
            rgb(11 7 16 / 41%) 100%);
    --gallery-overlay: linear-gradient(135deg,
            rgba(98, 51, 113, 0.88),
            rgba(11, 7, 16, 0.72));
    --lightbox-bg: rgba(5, 3, 8, 0.94);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --font-family-base: "Inter", sans-serif;
    --font-family-heading: "Cormorant Garamond", serif;
}

[data-theme="light"] {
    --velvet: #623371;
    --velvet-dark: #4b2658;
    --velvet-light: #a56abd;
    --velvet-hover: #7b438e;
    --gold: #c9a86c;
    --gold-dark: #8c671d;
    --gold-light: #b88720;
    --gold-bright: #d9b65f;
    --bg-body: #fcf9f6;
    --bg-hero: #fffdfc;
    --bg-secondary: #f7f0f6;
    --bg-card: #ffffff;
    --bg-card-hover: #fff9fd;
    --bg-deep-purple: #f0e5f3;
    --bg-purple-overlay: #ebdcf0;
    --text-primary: #201a22;
    --text-secondary: #4f4652;
    --text-muted: #746a75;
    --text-disabled: #b5adb5;
    --text-purple: #623371;
    --border-color: #e9e0e8;
    --border-card: #e4dae5;
    --border-strong: #62337199;
    --border-gold: #c9a86c;
    --divider: #ede7ec;
    --btn-primary-bg: #623371;
    --btn-primary-hover: #7b438e;
    --btn-primary-active: #4b2658;
    --btn-text-light: #ffffff;
    --card-shadow: 0 12px 32px rgba(54, 30, 62, 0.08);
    --purple-shadow: 0 12px 28px rgba(98, 51, 113, 0.16);
    --gold-shadow: 0 10px 24px rgba(201, 168, 108, 0.16);
    --purple-glow: 0 0 22px rgba(98, 51, 113, 0.14);
    --gold-glow: 0 0 18px rgba(201, 168, 108, 0.16);
    --hero-overlay-gradient: linear-gradient(90deg,
            rgb(254 254 254 / 51%) 0%,
            rgb(254 254 254 / 52%) 42%,
            rgba(255, 253, 252, 0.18) 100%);
    --gallery-overlay: linear-gradient(135deg,
            rgba(98, 51, 113, 0.76),
            rgba(255, 253, 252, 0.48));
    --lightbox-bg: rgba(32, 26, 34, 0.92);
}

/* =========================
           BASE
 ========================= */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  overflow-x: hidden;
  width: 100%;
}

html[dir="rtl"] {
  direction: rtl;
}

body {
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-family-base);
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Ensure no element causes horizontal overflow */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* RTL scrollbar styling */
html[dir="rtl"] ::-webkit-scrollbar {
  width: 8px;
}
html[dir="rtl"] ::-webkit-scrollbar-track {
  background: var(--bg-body);
}
html[dir="rtl"] ::-webkit-scrollbar-thumb {
  background: var(--velvet);
  border-radius: 4px;
}

html[lang="ar"] body {
    font-family: "El Messiri", sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: "El Messiri", serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--velvet);
    border-radius: 4px;
}

/* =========================
           UTILITY
        ========================= */
.section-label {
    display: inline-block;
    color: var(--gold-light);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-family: "Inter", sans-serif;
    position: relative;
    padding-left: 3rem;
}

.section-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 1px;
    background: var(--gold);
}

[dir="rtl"] .section-label {
    padding-left: 0;
    padding-right: 3rem;
}

[dir="rtl"] .section-label::before {
    left: auto;
    right: 0;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.1;
}

.section-title span {
    color: var(--gold-light);
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.9;
    font-weight: 300;
}

.btn-primary-custom {
    background: var(--btn-primary-bg);
    color: var(--btn-text-light);
    border: 2px solid var(--btn-primary-bg);
    padding: 0.9rem 2.8rem;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 0;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: transparent;
    color: var(--velvet-light);
    border-color: var(--velvet-light);
    box-shadow: var(--purple-shadow);
}

.btn-outline-custom {
    background: transparent;
    color: var(--gold-light);
    border: 2px solid var(--gold);
    padding: 0.9rem 2.8rem;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 0;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--gold);
    color: var(--bg-body);
}

/* ===== REVEAL (no opacity:0) ===== */
.reveal {
    transform: translateY(40px);
    transition: all 0.9s ease;
}

.reveal.active {
    transform: translateY(0);
}

/* =========================
           NAVBAR
        ========================= */
.navbar-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0.8rem 2.5rem;
    background: var(--bg-body);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar-main .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.navbar-brand-custom img {
    height: 44px;
    width: 44px;
    object-fit: cover;
}

.brand-text {
    font-family: var(--font-family-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-text small {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    font-family: "Inter", sans-serif;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    padding: 0.6rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--gold);
    border-bottom-color: var(--velvet-light);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-controls .lang-toggle,
.nav-controls .theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.nav-controls .lang-toggle:hover,
.nav-controls .lang-toggle.active {
    background: var(--velvet);
    color: var(--btn-text-light);
    border-color: var(--velvet);
}

.nav-controls .theme-toggle {
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
}

.nav-controls .theme-toggle:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.3rem;
}

/* =========================
           HERO
        ========================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0;
    background: var(--bg-hero);
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-dots {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: radial-gradient(circle,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: var(--hero-overlay-gradient);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 3rem;
    width: 100%;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold-light);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.8rem;
}

.hero-badge::before,
.hero-badge::after {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: var(--gold-light);
}

[dir="rtl"] .hero-badge::before,
[dir="rtl"] .hero-badge::after {
    display: none;
}

.hero h1 {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 700;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 540px;
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.hero-stat .num {
    font-family: var(--font-family-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    font-weight: 500;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--lightbox-bg);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.active {
    display: flex;
}

.video-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-secondary);
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.video-modal-close:hover {
    color: var(--gold);
}

.modal-video-wrapper {
    width: 90vw;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #000;
}

.modal-video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

/* =========================
           ABOUT
        ========================= */
.about {
    padding: 6rem 3rem;
    background: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 1.8rem 1.5rem;
    transition: var(--transition);
    height: 100%;
    border-radius: 4px;
}

.about-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--velvet-light);
    box-shadow: var(--card-shadow);
    background: var(--bg-card-hover);
}

.about-feature-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.about-feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* =========================
           TIMELINE
        ========================= */
.timeline-section {
    padding: 6rem 0;
    background: var(--bg-body);
}

.timeline-section .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-header .section-label {
    padding-left: 0;
}

.timeline-header .section-label::before {
    display: none;
}

.timeline-header .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--velvet);
    margin: 1rem auto 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
            transparent,
            var(--velvet),
            var(--gold),
            var(--velvet),
            transparent);
    transform: translateX(-50%);
    border-radius: 2px;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item.left {
    flex-direction: row;
}

.timeline-item.right {
    flex-direction: row-reverse;
}

[dir="rtl"] .timeline-item.left {
    flex-direction: row-reverse;
}

[dir="rtl"] .timeline-item.right {
    flex-direction: row;
}

.timeline-content {
    width: 42%;
    padding: 1.8rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.timeline-content:hover {
    border-color: var(--velvet-light);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.timeline-item.left .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item.right .timeline-content {
    margin-left: auto;
    text-align: left;
}

[dir="rtl"] .timeline-item.left .timeline-content {
    text-align: left;
}

[dir="rtl"] .timeline-item.right .timeline-content {
    text-align: right;
}

.timeline-year {
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-badge {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    background: rgba(98, 51, 113, 0.12);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    color: var(--gold-light);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.timeline-badge i {
    margin-right: 0.4rem;
}

[dir="rtl"] .timeline-badge i {
    margin-right: 0;
    margin-left: 0.4rem;
}

.timeline-item.left .timeline-content::after {
    content: "";
    position: absolute;
    right: -24px;
    top: 28px;
    width: 20px;
    height: 2px;
    background: var(--velvet);
}

.timeline-item.right .timeline-content::after {
    content: "";
    position: absolute;
    left: -24px;
    top: 28px;
    width: 20px;
    height: 2px;
    background: var(--velvet);
}

[dir="rtl"] .timeline-item.left .timeline-content::after {
    right: auto;
    left: -24px;
}

[dir="rtl"] .timeline-item.right .timeline-content::after {
    left: auto;
    right: -24px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-body);
    border: 3px solid var(--velvet);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: var(--transition);
    box-shadow: 0 0 0 6px rgba(98, 51, 113, 0.1);
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.timeline-dot i {
    color: var(--gold-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--velvet);
    border-color: var(--gold);
    box-shadow: 0 0 0 8px rgba(201, 168, 108, 0.15);
}

.timeline-item:hover .timeline-dot i {
    color: #fff;
}


/* ===== TIMELINE ENHANCEMENTS ===== */
.timeline-content {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.timeline-content .timeline-badge {
    transition: background 0.3s ease, color 0.3s ease;
}

.timeline-content:hover .timeline-badge {
    background: var(--velvet);
    color: var(--btn-text-light);
    border-color: var(--velvet);
}

/* Fix for right-aligned items on smaller screens */
@media (max-width: 991.98px) {
    .timeline-item.right .timeline-content {
        text-align: left !important;
    }

    [dir="rtl"] .timeline-item.right .timeline-content {
        text-align: right !important;
    }
}

/* =========================
           CHAMPIONS & TROPHIES
        ========================= */
.champions-trophies {
    padding: 6rem 3rem;
    background: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-label {
    padding-left: 0;
}

.section-header .section-label::before {
    display: none;
}

.section-header .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--velvet);
    margin: 1rem auto 0;
}

.sub-heading {
    font-family: var(--font-family-heading);
    color: var(--gold-light);
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
}

.sub-heading i {
    color: var(--gold);
    margin-right: 0.8rem;
}

[dir="rtl"] .sub-heading i {
    margin-right: 0;
    margin-left: 0.8rem;
}
/* ---------- Carousel Wrapper ---------- */
.horse-carousel-wrapper {
  overflow: hidden !important;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* ---------- Carousel Arrows ---------- */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
  left: 10px;
}
.carousel-next {
  right: 10px;
}

/* ---------- Carousel Track ---------- */
.horse-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  user-select: none;
  cursor: grab;
  transition: transform 0.5s ease;
}

.horse-carousel-track.dragging {
  cursor: grabbing;
  transition: none;
}

/* ---------- Horse Card ---------- */
.horse-card {
  flex: 0 0 auto;
  width: 350px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horse-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--velvet), var(--gold), var(--velvet));
  transform: scaleX(0);
  transition: var(--transition);
}

.horse-card:hover::after {
  transform: scaleX(1);
}

.horse-card:hover {
  transform: translateY(-6px);
  border-color: var(--velvet-light);
  box-shadow: var(--card-shadow);
}

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

.horse-body {
  padding: 1.8rem 1.5rem 2rem;
  text-align: center;
}

.horse-body h4 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.horse-body .breed {
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: lowercase;
  font-weight: 500;
}

.horse-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  line-height: 1.7;
  font-weight: 300;
}

.horse-body .achievement {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1.2rem;
  background: rgba(98, 51, 113, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* =========================
   HORSE CAROUSEL – RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 991.98px) {
  .horse-card {
    width: 280px;
  }
  .horse-img {
    height: 220px;
  }
  .horse-body h4 {
    font-size: 1.1rem;
  }
  .horse-body p {
    font-size: 0.85rem;
  }
}

/* Mobile Landscape */
@media (max-width: 767.98px) {
  .horse-card {
    width: 240px;
  }
  .horse-img {
    height: 180px;
  }
  .horse-body {
    padding: 1.2rem 1rem 1.4rem;
  }
  .horse-body h4 {
    font-size: 1rem;
  }
  .horse-body .breed {
    font-size: 0.7rem;
  }
  .horse-body p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
  }
  .horse-body .achievement {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
  }
  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .carousel-prev {
    left: 5px;
  }
  .carousel-next {
    right: 5px;
  }
}

/* Mobile Portrait */
@media (max-width: 575.98px) {
  .horse-card {
    width: 200px;
  }
  .horse-img {
    height: 150px;
  }
  .horse-body {
    padding: 1rem 0.8rem 1.2rem;
  }
  .horse-body h4 {
    font-size: 0.9rem;
  }
  .horse-body .breed {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }
  .horse-body p {
    font-size: 0.7rem;
    margin-top: 0.3rem;
    line-height: 1.4;
  }
  .horse-body .achievement {
    font-size: 0.55rem;
    padding: 0.2rem 0.6rem;
    margin-top: 0.5rem;
  }
  .horse-carousel-track {
    gap: 0.8rem;
  }
  .carousel-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
}

/* Extra Small */
@media (max-width: 360px) {
  .horse-card {
    width: 170px;
  }
  .horse-img {
    height: 130px;
  }
  .horse-body {
    padding: 0.8rem 0.6rem 1rem;
  }
  .horse-body h4 {
    font-size: 0.8rem;
  }
  .horse-body p {
    font-size: 0.65rem;
  }
  .horse-body .achievement {
    font-size: 0.5rem;
    padding: 0.15rem 0.5rem;
  }
  .horse-carousel-track {
    gap: 0.6rem;
  }
}

/* ─── TROPHY CARDS ─── */
.trophy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 2rem 1.2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-radius: 6px;
}

.trophy-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--gold),
            var(--velvet),
            var(--gold));
    transform: scaleX(0);
    transition: var(--transition);
}

.trophy-card:hover::after {
    transform: scaleX(1);
}

.trophy-card:hover {
    transform: translateY(-6px);
    border-color: var(--velvet-light);
    box-shadow: var(--card-shadow);
    background: var(--bg-card-hover);
}

.trophy-icon {
    font-size: 2.8rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    transition: var(--transition);
    line-height: 1;
}

.trophy-card:hover .trophy-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 18px rgba(201, 168, 108, 0.25));
}

.trophy-year {
    font-size: 0.75rem;
    color: var(--velvet-light);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.trophy-name {
    font-family: var(--font-family-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    word-break: break-word;
}

.trophy-loc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.trophy-count-badge {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.15rem 0.9rem;
    border-radius: 20px;
    background: rgba(201, 168, 108, 0.12);
    border: 1px solid rgba(201, 168, 108, 0.2);
    color: var(--gold-light);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ─── TROPHY MODAL ─── */
.trophy-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.trophy-modal.active {
    display: flex;
}

.trophy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 7, 16, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 1;
}

.trophy-modal-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem;
    overflow-y: auto;
    box-shadow: var(--card-shadow);
    margin: 0 1rem;
}

.trophy-modal-content::-webkit-scrollbar {
    width: 6px;
}

.trophy-modal-content::-webkit-scrollbar-track {
    background: var(--bg-body);
    border-radius: 3px;
}

.trophy-modal-content::-webkit-scrollbar-thumb {
    background: var(--velvet);
    border-radius: 3px;
}

.trophy-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.2rem 0.5rem;
    line-height: 1;
    z-index: 11;
}

.trophy-modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.trophy-modal-content h3 {
    font-family: var(--font-family-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
    line-height: 1.2;
}

.trophy-event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 0.8rem;
    flex-wrap: wrap;
}

.trophy-event-item:last-child {
    border-bottom: none;
}

.trophy-event-item .horse {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 90px;
    font-size: 0.95rem;
}

.trophy-event-item .date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    min-width: 80px;
}

.trophy-event-item .position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0.15rem 0.9rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.trophy-event-item .position.pos-1 {
    background: rgba(201, 168, 108, 0.2);
    color: var(--gold-light);
    border: 1px solid rgb(201 168 108 / 58%);
    font-weight: bolder;
    font-size: medium;
}

.trophy-event-item .position.pos-2 {
    background: rgba(165, 106, 189, 0.15);
    color: var(--velvet-light);
    border: 1px solid rgba(165, 106, 189, 1.25);
    font-weight: bolder;
    font-size: medium;
}

.trophy-event-item .position.pos-3 {
    background: rgb(131 128 131 / 12%);
    color: var(--text-muted);
    border: 1px solid rgb(140 132 141 / 66%);
    font-weight: bolder;
    font-size: medium;
}

.trophy-event-item .position.pos-other {
    background: rgba(139, 128, 140, 0.08);
    color: var(--text-disabled);
    border: 1px solid rgba(139, 128, 140, 0.1);
}

.trophy-event-item .event-name {
    color: var(--text-secondary);
    font-size: 0.8rem;
    flex: 1;
    min-width: 100px;
    text-align: left;
}

[data-theme="light"] .trophy-modal-overlay {
    background: rgba(32, 26, 34, 0.88);
}

/* =========================
           PARALLAX
        ========================= */
.parallax {
    position: relative;
    height: 55vh;
    min-height: 380px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-body);
    opacity: 0.7;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.parallax-content blockquote {
    font-family: var(--font-family-heading);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.parallax-content .attribution {
    color: var(--gold-light);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 1.8rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
}



/* =========================
           GALLERY
        ========================= */

/* ---------- Album Card ---------- */
.album-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card, #fff);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Thumbnail container – 4:3 aspect ratio */
.album-thumb {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #eae6f0;
}

.album-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Overlay (title + count) – appears on hover */
.album-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 15, 40, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 1rem;
    text-align: center;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-overlay .album-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}

.album-overlay .album-count {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 1rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Always‑visible image count badge (bottom‑right) */
.album-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-badge {
    opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .album-overlay .album-title {
        font-size: 1rem;
    }
}

.gallery-section {
    padding: 6rem 3rem;
    background: var(--bg-body);
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-header .section-label {
    padding-left: 0;
}

.gallery-header .section-label::before {
    display: none;
}

.gallery-header .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--velvet);
    margin: 1rem auto 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: var(--gallery-overlay);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--gold-light);
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: var(--lightbox-bg);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-secondary);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: var(--transition);
}

.lightbox-nav:hover {
    color: var(--gold-light);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}


/* ---------- Lightbox Thumbnail Strip ---------- */
.lightbox {
    /* your existing lightbox styles */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox #lightboxImg {
    max-width: 90%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Thumbnails container - horizontal scroll */
.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 20px;
    max-width: 90%;
    width: 100%;
    margin-top: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    align-items: center;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

.lightbox-thumbnails .thumb-img {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    opacity: 0.6;
}

.lightbox-thumbnails .thumb-img:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.lightbox-thumbnails .thumb-img.active {
    border-color: #fff;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Lightbox navigation arrows - keep your existing styles */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    user-select: none;
    transition: background 0.3s;
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

/* Mobile responsive */
@media (max-width: 576px) {
    .lightbox-thumbnails .thumb-img {
        width: 50px;
        height: 50px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.8rem;
        padding: 5px 10px;
    }
}

/* =========================
           TESTIMONIALS
        ========================= */
.testimonials {
    padding: 6rem 3rem;
    background: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-header .section-label {
    padding-left: 0;
}

.testimonials-header .section-label::before {
    display: none;
}

.testimonials-header .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--velvet);
    margin: 1rem auto 0;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--velvet-light);
    transform: translateY(-4px);
}

.testimonial-card .stars {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.testimonial-card blockquote {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    font-weight: 300;
    font-style: italic;
    margin: 0 0 1.5rem 0;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(98, 51, 113, 0.15);
}

.testimonial-card .author .name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
}

.testimonial-card .author .title {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* =========================
           CONTACT
        ========================= */
.contact {
    padding: 6rem 3rem;
    background: var(--bg-body);
    position: relative;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header .section-label {
    padding-left: 0;
}

.contact-header .section-label::before {
    display: none;
}

.contact-header .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--velvet);
    margin: 1rem auto 0;
}

.contact-info {
    background: var(--bg-card);
    padding: 3rem;
    height: 100%;
    border: 1px solid var(--border-card);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-family: var(--font-family-heading);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-top: 0.2rem;
}

.contact-item h5 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.contact-map {
    width: 100%;
    height: 280px;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
    filter: grayscale(0.3) sepia(0.05);
    transition: var(--transition);
    border-radius: 4px;
    overflow: hidden;
}

.contact-map:hover {
    filter: grayscale(0) sepia(0);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.contact-social a {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.contact-social a:hover {
    background: var(--velvet);
    border-color: var(--velvet);
    color: var(--btn-text-light);
}

.contact-form .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--velvet-light);
    background: transparent;
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================
           FOOTER
        ========================= */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    height: 100px;
    width: 100px;
    object-fit: cover;
}

.footer-brand-name {
    font-family: var(--font-family-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand-name small {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    font-family: "Inter", sans-serif;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
}

.footer-title {
    font-family: var(--font-family-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* =========================
           SCROLL TOP
        ========================= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--btn-primary-bg);
    color: var(--btn-text-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--velvet-light);
    transform: translateY(-4px);
}

[dir="rtl"] .scroll-top {
    right: auto;
    left: 30px;
}

/* =========================
           RESPONSIVE
        ========================= */
@media (max-width: 991.98px) {
    .navbar-main {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-body);
        backdrop-filter: blur(14px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-color);
        display: block;
    }

    .nav-controls .lang-toggle,
    .nav-controls .theme-toggle {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .about-feature-card {
        margin-bottom: 1rem;
    }

    .about,
    .champions-trophies,
    .gallery-section,
    .testimonials,
    .contact,
    .footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    [dir="rtl"] .timeline::before {
        left: auto;
        right: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
        margin-bottom: 3rem;
    }

    [dir="rtl"] .timeline-item {
        padding-left: 0;
        padding-right: 50px;
    }

    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        width: 100%;
        text-align: left !important;
        margin: 0;
    }

    [dir="rtl"] .timeline-item.left .timeline-content,
    [dir="rtl"] .timeline-item.right .timeline-content {
        text-align: right !important;
    }

    .timeline-item.left .timeline-content::after,
    .timeline-item.right .timeline-content::after {
        display: none;
    }

    .timeline-dot {
        left: 20px;
        top: 8px;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
    }

    [dir="rtl"] .timeline-dot {
        left: auto;
        right: 20px;
        transform: translateX(50%);
    }

    .timeline-dot i {
        font-size: 0.9rem;
    }

    .timeline-year {
        font-size: 1.8rem;
    }

    .trophy-modal-content {
        padding: 1.8rem 1.2rem 1.2rem;
        max-height: 90vh;
        margin: 0 0.5rem;
    }

    .trophy-modal-content h3 {
        font-size: 1.4rem;
        padding-right: 2rem;
    }

    .trophy-event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.6rem 0;
    }

    .trophy-event-item .horse {
        font-size: 0.95rem;
        min-width: auto;
    }

    .trophy-event-item .date {
        font-size: 0.75rem;
        min-width: auto;
    }

    .trophy-event-item .position {
        font-size: 0.6rem;
        min-width: 40px;
        padding: 0.1rem 0.7rem;
    }

    .trophy-event-item .event-name {
        font-size: 0.75rem;
        min-width: auto;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.2rem;
    }

    .hero-stat .num {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 1.8rem 1.2rem;
    }

    .contact-info {
        padding: 2rem 1.2rem;
    }

    .contact-map {
        height: 200px;
    }

    .sub-heading {
        font-size: 1.4rem;
    }

    .trophy-card {
        padding: 1.5rem 0.8rem;
        min-height: 160px;
    }

    .trophy-name {
        font-size: 1rem;
    }

    .trophy-icon {
        font-size: 2.2rem;
    }
}

/* =========================
 MAP CONTAINER (for custom map)
========================= */
.contact-map {
    position: relative;
    width: 100%;
    height: 280px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background: var(--bg-card);
}

.contact-map #customMap {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Fallback message styling */
.contact-map .map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.contact-map .map-fallback i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
}

/* Responsive heights */
@media (max-width: 768px) {
    .contact-map {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    .contact-map {
        height: 180px;
        border-radius: 8px;
    }
}