/* ===== VARIABLE DEFINITIONS ===== */
:root {
    --primary-color: #A37A33; /* Gold/Bronze */
    --primary-hover: #8C6627;
    --bg-color: #F8F5EE; /* Beige */
    --bg-light: #F0EDE1; /* Slightly darker beige for sections */
    --text-color: #332B22; /* Dark Brown */
    --white: #FFFFFF;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-text: 'Inter', sans-serif;
    
    --box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --box-shadow-hover: 0 15px 40px rgba(163, 122, 51, 0.2);
    --transition: all 0.3s ease;
}

/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-text);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(163, 122, 51, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.block {
    display: block;
}

.w-100 {
    width: 100%;
}

.mb-1 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title.centered {
    text-align: center;
}

.title-decorator {
    height: 2px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto 3rem auto;
}

/* ===== HEADER & NAVIGATION ===== */
#main-header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo-text h2 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
}

.logo-text span {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

.nav-links {
    display: flex;
    gap: 25px;
    margin: 0 auto;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

#main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: var(--bg-light) !important; margin-top: 80px;
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20vh;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero .sub-title {
    font-size: 3rem;
    color: #D4AF37;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 5px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.hero .main-title {
    font-family: 'Alex Brush', cursive, var(--font-heading);
    font-size: 8rem;
    color: #D4AF37; /* Elegant gold color */
    margin: 0 0 20px 0; /* Add bottom margin to space out the date */
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8); 
    line-height: 1;
}

.hero .date-text {
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-top: 0px;
}

.gold-bar {
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ===== DUAL LAYOUT (Who Is This For & Accommodation) ===== */
.dual-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.dual-layout > div {
    flex: 1;
}

/* --- Collage (Who is this for) --- */
.image-collage { position: relative; width: 100%; max-width: 650px; margin: 0 auto; aspect-ratio: 16/9; min-height: 200px; }

.polaroid {
    position: absolute;
    background: var(--white);
    padding:   10px 10px 40px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: var(--transition);
    border-radius: 2px;
    width: 32%;
    cursor: pointer;
}

.polaroid img {
    width: 100%;
    aspect-ratio:  230/180; height: auto;
    object-fit: cover;
}

.polaroid span {
    position: absolute;
    bottom:  10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(0.6rem, 2.5vw, 1.1rem);
    letter-spacing: 1px;
}

.polaroid:hover {
    transform: scale(1.05) translateY(-10px) rotate(0deg) !important;
    z-index: 10;
    box-shadow: var(--box-shadow-hover);
}

.p-1 { top: 5%; left: 0%; transform: rotate(-8deg); z-index: 1; }
.p-2 { top: 15%; left: 34%; transform: rotate(0deg) scale(1.1); z-index: 3; }
.p-3 { top: 10%; left: 68%; transform: rotate(8deg); z-index: 1; }

/* ===== PROGRAM HIGHLIGHTS ===== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.overlay-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.4);
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
}

.overlay-logo img {
    width: 50px; height: auto;
    margin-bottom: 5px;
}

.card-content {
    padding: 15px;
    border-top: 3px solid var(--primary-color);
}

.card-content h3 {
    font-size: 1rem;
    margin: 0;
    font-family: var(--font-text);
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== ACCOMMODATION ===== */
.images-half {
    display: flex;
    gap: 20px;
    align-items: center;
}

.acc-img-wrapper {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.acc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.acc-img-wrapper:hover img {
    transform: scale(1.05);
}

.img-left { height: 350px; }
.img-right { height: 450px; margin-top: 50px; }

.features-list {
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--primary-color);
}

/* ===== REVIEWS ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.reviewer-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.review-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.review-info p {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin: 5px 0;
}

.stars {
    color: #FFC107; /* Gold stars */
    font-size: 0.8rem;
}

/* ===== CONTACT SECTION ===== */
.cta-form-container {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-inputs {
    display: grid;
    grid-template-columns:  1fr 1fr;
    gap: 15px;
}

.form-inputs input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-text);
}

.form-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.action-buttons-column {
    margin-top: 20px;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--white);
    padding: 40px 0;
    border-top: 4px solid var(--primary-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact h4 {
    margin-bottom: 10px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-contact a {
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 5px;
    width: 15px;
}

.footer-map .map-illustration {
    background: #EAF2F8; /* Light blue representing nature/map */
    padding: 20px;
    border-radius: 8px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-map i {
    font-size: 2rem;
    color: var(--primary-color);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: var(--white);
    border-radius: 50%;
    margin-left: 10px;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS & UTILITIES ===== */
.fade-in-section, .fade-in-left, .fade-in-right, .fade-in-up {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s;
    will-change: opacity, visibility;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in-section.is-visible, 
.fade-in-left.is-visible, 
.fade-in-right.is-visible, 
.fade-in-up.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -250px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.toast.show {
    bottom: 30px;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media screen and (max-width: 1350px) {
    .logo-text span { display: none; }
    #main-nav { gap: 15px; }
    .nav-links { gap: 15px; }
    margin: 0 auto;
    .nav-links a { font-size: 0.85rem; }
    #main-nav .btn { padding: 10px 15px; font-size: 0.8rem; }
}

@media screen and (max-width: 1024px) {
    .hero .main-title { font-size: 5rem; }
    .dual-layout { gap: 30px; }
}

@media screen and (max-width: 900px) {
    .program-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(1, 1fr); }
    .form-inputs { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-social a { margin: 0 5px; }
}

@media screen and (max-width: 1200px) {
    .hero { padding-top: 15vh; }
    .hero .sub-title { font-size: 2.2rem; }
    .hero .main-title { font-size: 4.5rem; }
    .hero .date-text { font-size: 1.5rem; margin-top: 15px; }
    
    .mobile-toggle { display: block; }
    
    #main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    #main-nav.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    margin: 0 auto;
    }
    
    .nav-links li { width: 100%; text-align: center; }
    
    .dual-layout { flex-direction: column; }
    .dual-layout.reverse-mobile { flex-direction: column-reverse; }
    
    .images-half { flex-direction: column; }
    .img-right { margin-top: 0; }
    
    .section-padding { padding: 50px 0; }
}

@media screen and (max-width: 480px) {
    .program-grid { grid-template-columns: 1fr; }
}



/* =========================================
   BSR Transplated Language Switcher
   ========================================= */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
  z-index: 1002;
  margin-right: 0;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
  white-space: nowrap;
}
.lang-current:hover {
  border-color: var(--primary-color);
  background: rgba(163, 122, 51, 0.05);
}
.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 170px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 2000;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--text-color);
  text-align: left;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.lang-dropdown button:hover {
  background: var(--bg-light);
}
.lang-dropdown button.active {
  background: var(--bg-color);
  font-weight: 600;
  color: var(--primary-color);
}
/* Ensure logo wrapping stays fixed */
.logo { flex-shrink: 0; }
.logo-text span { white-space: nowrap; }
.header-container { padding-left: 10px; padding-right: 10px; }
#main-nav { gap: 15px !important; }
.nav-links { gap: 15px !important; }
    margin: 0 auto;
.nav-links a { white-space: nowrap; }
#main-nav .btn { white-space: nowrap; }

/* Video Hero Styles */
.video-hero {
    position: relative;
    overflow: hidden;
    background: #000; /* fallback */
    z-index: 1;
}
.hero-bg-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transform: none !important;
    object-fit: cover !important;
    z-index: -2 !important;
    pointer-events: none !important;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    z-index: -1;
}


/* Gallery Carousel */
.gallery-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.gallery-track {
  display: flex;
  position: relative;
  height: 500px;
}
.gallery-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.gallery-slide.active { opacity: 1; z-index: 1; }
.gallery-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px; height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
}
.gallery-arrow:hover { background: var(--primary); }
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 0; width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px; z-index: 10;
  flex-wrap: wrap;
  padding: 0 20px;
}
.gallery-dot {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}
.gallery-dot.active { background: white; transform: scale(1.2); }


[dir="rtl"] .gallery-next {
    right: auto !important;
    left: 20px !important;
    transform: translateY(-50%) !important;
}





/* ===== CLEAN RTL (Hebrew) FIXES ===== */

/* Gallery arrows: swap positions for RTL */
[dir="rtl"] .gallery-prev {
    left: auto !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
}
[dir="rtl"] .gallery-next {
    right: auto !important;
    left: 20px !important;
    transform: translateY(-50%) !important;
}

/* Gallery dots: keep LTR direction so dots don't reverse */
[dir="rtl"] .gallery-dots {
    direction: ltr;
}

/* Accommodation text: right-align description, fix features */
[dir="rtl"] .acc-text {
    text-align: right;
}
[dir="rtl"] .acc-text p {
    text-align: right;
}
[dir="rtl"] .acc-features {
    text-align: right;
    padding-left: 0;
}
[dir="rtl"] .acc-features li {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
}

/* RTL accommodation description and title alignment */
[dir="rtl"] .acc-text-side .acc-description {
    text-align: right !important;
}
[dir="rtl"] .acc-text-side .acc-description p {
    text-align: right !important;
}
[dir="rtl"] .acc-text-side .section-title {
    text-align: right !important;
}
[dir="rtl"] .acc-text-side .title-decorator {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Hero: keep centered like LTR version */
[dir="rtl"] .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    box-sizing: border-box;
}
[dir="rtl"] .hero-content h1,
[dir="rtl"] .hero-content h2,
[dir="rtl"] .hero-content p {
    text-align: center;
}

/* RTL Team carousel arrows: swap positions */
[dir="rtl"] .team-prev {
    left: auto !important;
    right: 0 !important;
}
[dir="rtl"] .team-next {
    right: auto !important;
    left: 0 !important;
}

/* ===== END RTL FIXES ===== */


/* RTL Inputs Override */
[dir="rtl"] input[type="tel"] {
    direction: ltr !important;
    unicode-bidi: plaintext !important;

    text-align: right !important;
}
input {
    text-align: start;
}







.section-title.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-title.centered::before, .section-title.centered::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--primary-color);
    max-width: 120px;
}
.section-title.centered::before { margin-right: 20px; }
.section-title.centered::after { margin-left: 20px; }

.form-inputs input[name="phone"] { grid-column: span 2; }

.form-inputs button[type="submit"] { grid-column: span 2; }

.bg-white { background-color: #FFFFFF; }





/* --- Nominal spacing between ALL Sections --- */
#who-is-this-for.section-padding { padding-bottom: 15px !important; }
#program.section-padding { padding-top: 15px !important; padding-bottom: 15px !important; }
#accommodation.section-padding { padding-top: 15px !important; padding-bottom: 15px !important; }
#reviews.section-padding { padding-top: 15px !important; padding-bottom: 15px !important; }
#contact.section-padding { padding-top: 15px !important; }

/* ===== OUR TEAM ===== */


.team-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.team-info .role {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.team-info p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

#team.section-padding { padding-top: 15px !important; padding-bottom: 15px !important; }

@media screen and (max-width: 1024px) {
    
}

@media screen and (max-width: 600px) {
    
}

/* ===== ACCOMMODATION TEXT ===== */
.acc-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}
.acc-description p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}
.acc-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}
.acc-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.acc-features i {
    color: var(--primary-color);
}

.team-carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px; /* Space for arrows */
}

.team-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.team-track::-webkit-scrollbar { display: none; }

.team-card {
    scroll-snap-align: start;
    flex: 0 0 calc(25% - 22.5px);
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-arrow:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.team-prev { left: 0; }
.team-next { right: 0; }

@media screen and (max-width: 1024px) {
    .team-card { flex: 0 0 calc(50% - 15px); }
    .team-carousel-wrapper { padding: 0 30px; }
    .team-arrow { width: 35px; height: 35px; }
}

@media screen and (max-width: 600px) {
    .team-card { flex: 0 0 100%; }
    .team-carousel-wrapper { padding: 0 20px; }
    .team-arrow { width: 30px; height: 30px; top: auto; bottom: -20px; }
    .team-prev { left: 30%; }
    .team-next { right: 30%; }
}

/* ===== ACCOMMODATION SPLIT LAYOUT ===== */
.acc-split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.acc-text-side {
    flex: 1 1 400px;
}
.acc-gallery-side {
    flex: 1 1 500px;
    width: 100%;
    min-width: 0; /* allows gallery to shrink properly */
}
.acc-text-side .acc-description {
    text-align: left;
    margin: 0; 
}
.acc-text-side .acc-features {
    justify-content: flex-start;
}
.acc-gallery-side .gallery-carousel {
    max-width: 100%;
    margin: 0;
}
@media screen and (max-width: 1024px) {
    .acc-split-layout {
        flex-direction: column;
    }
    .acc-text-side .section-title {
        text-align: left;
    }
    .acc-text-side .title-decorator {
        margin: 0 0 2rem 0 !important;
    }
    .acc-text-side .acc-description {
        text-align: left;
        margin-bottom: 30px;
    }
    .acc-text-side .acc-features {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .acc-gallery-side .gallery-carousel {
        margin: 0 -20px; /* pull out on mobile to touch edges */
        width: calc(100% + 40px);
        max-width: none;
    }
}

/* ===== HERO POSITIONING OVERRIDE ===== */
@media screen and (min-width: 768px) {
    .hero {
        align-items: flex-start !important;
    }
    .hero-content {
        margin-left: 8%;
        max-width: 50%;
        text-align: center;
    }
}
@media screen and (max-width: 767px) {
    .hero {
        align-items: center !important;
    }
    .hero-content {
        margin-left: 0;
        max-width: 100%;
        text-align: center;
    }
}

/* ===== HERO TEXT GOLD GRADIENT OVERRIDE ===== */
.sub-title, .main-title {
    background: linear-gradient(180deg, #FDF7D1 0%, #DEB349 45%, #AA771C 50%, #E3C161 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important; 
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,1)) drop-shadow(0px 0px 15px rgba(0,0,0,0.8)) !important;
    text-shadow: none !important;
}

.date-text {
    color: #FFFFFF !important;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,1)) drop-shadow(0px 0px 15px rgba(0,0,0,0.8)) !important;
    text-shadow: none !important;
}

.hero .date-text { margin-top: 15vh; font-size: 2rem; color: #FFF; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }

/* ===== RESPONSIVE HERO FIX ===== */
@media screen and (min-width: 768px) {
    
    .hero-bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
@media screen and (max-width: 767px) {
    
    
    .hero .date-text {
        margin-top: 20px !important; 
        font-size: 1.3rem !important; 
    }
}
picture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none;
}
picture img { width: 100%; height: 100%; object-fit: cover; }



/* ===== HERO LIFT (DESKTOP) ===== */
@media screen and (min-width: 768px) {
    .hero {
        padding-top: 14vh !important; /* Lifts the content up */
    }
}

/* ===== HERO MOBILE FACE FIX ===== */
@media screen and (max-width: 767px) {
    .hero-bg-video {
        /* This pushes the focus of the cropped image to the right side, revealing the woman's face */
        object-position: 60% 80% !important; 
    }
}

/* ===== HERO MOBILE FACE & SIZE FIX 2 ===== */
@media screen and (max-width: 767px) {
    .hero-bg-video {
        object-position: 100% center !important; /* Pushes the right edge of the image exactly to the right edge of the screen */
    }
    .hero {
        height: 70vh !important; /* Shrinks the vertical height so the image doesn't zoom in as much */
        min-height: 480px !important;
        padding-top: 15vh !important;
    }
}

/* ===== DEFINITIVE MOBILE HERO FIX ===== */
@media screen and (max-width: 767px) {
    .hero-bg-video {
        object-position: 60% 80% !important; 
    }
    .hero {
        height: 60vh !important;  
        min-height: 480px !important;
        padding-top: 15vh !important;
    }
}

@media screen and (max-width: 767px) {
    .hero-bg-video {
        object-position: 60% 80% !important; 
    }
}

/* ===== FIX CURSIVE K CLIPPING ===== */
.main-title {
    padding-left: 0px !important;
    padding-right: 80px !important;
    padding-top: 10px;
}

/* ===== LIFT MOBILE TEXT HIGHER ===== */
@media screen and (max-width: 767px) {
    .hero {
        padding-top: 5vh !important; /* Changed from 15vh */
    }
}

/* ===== MOBILE HEADER OVERFLOW FIX ===== */
body, html {
    overflow-x: hidden;
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px !important; /* Less padding on very small screens */
    }
    .logo img {
        height: 38px !important; /* Scale logo down slightly */
    }
    .logo {
        gap: 8px !important; /* Less gap between logo image and text */
    }
    .logo-text h1 {
        font-size: 1.1rem !important; /* Make title smaller */
    }
    .logo-text p {
        font-size: 0.55rem !important; /* Make subtitle smaller */
        display: none !important; /* Better yet, hide the slogan on tiny screens to save huge amounts of space */
    }
    /* Slogan usually says PREMIUM COASTAL RETIREMENT which is too long */
    
    .header-container {
        gap: 10px; /* Force minimum gaps */
    }
    
    /* Ensure the language switcher can shrink if needed */
    .language-switcher {
        margin-left: auto;
        margin-right: 10px;
    }
}

/* ===== MOBILE MENU BACKGROUND FIX ===== */
@media screen and (max-width: 1200px) {
    #main-nav.active {
        background-color: #fff !important; /* Ensure solid background */
        z-index: 1000 !important;
        align-items: center; /* Center the links */
    }
    .nav-right-actions {
        flex-direction: column !important;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
}

/* ===== DATE TEXT MOBILE OFFSET ===== */
@media screen and (max-width: 767px) {
    .hero .date-text {
        margin-top: 20px !important;
        font-size: 1.3rem !important;
        /* shifting it left gracefully without breaking layout bounds */
        transform: translateX(-40px) !important; 
    }
}

/* ===== RTL ARROWS FIX ===== */

/* ===== SCROLL MARGIN FIX ===== */
html {
    scroll-padding-top: 100px; /* Accounts for fixed header height */
}
section {
    scroll-margin-top: 100px; /* Fallback for anchor links */
}

/* ===== HIDE HERO DATE ===== */
.hero .date-text {
    display: none !important;
}

/* ===== BOOKING MODAL ===== */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.booking-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.booking-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.booking-modal.active .booking-modal-content {
    transform: translateY(0);
}
.booking-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}
.booking-modal-close:hover {
    color: #D4AF37;
}
.booking-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #2F4F4F;
    text-align: center;
}
html[dir="rtl"] .booking-modal-close {
    right: auto;
    left: 20px;
}
