:root {
    --primary: #e9a826;
    --secondary: #000000;
    --light: #ffffff;
    --dark: #111111;
    --gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: var(--light);
    color: var(--dark);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader .logo {
    width: 200px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #555;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .nav-links a {
    color: var(--light);
}

.navbar .nav-links a:hover {
    color: var(--primary);
}

.navbar.scrolled {
    background-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 50px;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--secondary);
}

.navbar .logo {
    height: 60px;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.lang-toggle a {
    font-weight: bold;
    background: #e9a826;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-left: 15px;
    display: inline-block;
}

.lang-toggle a:hover {
    background: #cf8b1c;
    color: #fff;
}
/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary);
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.cta-btn:hover {
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(233, 168, 38, 0.3);
}

/* About Section */
.about {
    padding: 80px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-img {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100px;
    height: 4px;
    background-color: var(--primary);
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Services Section */
.services {
    padding: 100px 50px;
    background-color: var(--gray);
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.services-intro .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-color-block {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    color: white;
    font-size: 36px;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--dark);
}

.service-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* Learn More Button Styling */
.read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.read-more:hover {
    background-color: var(--secondary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.read-more i {
    margin-left: 8px;
}

/* Equalize Service Card Height */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch; /* Ensure all cards align equally */
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Equal height */
}


/* Activities Section */
.activities {
    padding: 100px 50px;
}

.activities-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.activities-intro .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.activities-intro .section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ✅ Add your carousel styles here */
.activities-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers square perfectly */
    border-radius: 15px;
}

.slide-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
}

/* Navigation Buttons */
.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s ease;
}

.slide-nav-btn:hover {
    background: var(--primary);
}

.prev { left: 10px; }
.next { right: 10px; }


/* Locations Section */
.locations {
    padding: 100px 50px;
    background-color: var(--gray);
}

.locations-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.locations-intro .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.location-img {
    height: 200px;
    background-color: #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover .location-img img {
    transform: scale(1.1);
}

.location-content {
    padding: 25px;
}

.location-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--dark);
}

.location-info {
    margin-bottom: 20px;
}

.location-info-item {
    display: flex;
    margin-bottom: 10px;
}

.location-info-item i {
    color: var(--primary);
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

/* Flip Card Container */
.flip-card {
    perspective: 1000px;
    height: 100%;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    border-radius: 10px;
    background: var(--light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    z-index: 1;
}

.flip-card-front {
    z-index: 2;
}

.flip-card-back {
    transform: rotateY(180deg);
    z-index: 3;
    overflow-y: auto;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    pointer-events: none;
}

.flip-card.flipped .flip-card-back {
    pointer-events: auto;
}

.flip-card:not(.flipped) .flip-card-front {
    pointer-events: auto;
}

.directions-btn,
.flip-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 12px;
    background-color: var(--primary);
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.directions-btn:hover,
.flip-btn:hover {
    background-color: var(--secondary);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact {
    padding: 100px 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-form {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 168, 38, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary);
    color: var(--light);
}

/* Social Links Styling */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    font-size: 28px; /* Icon size */
    color: var(--primary); /* Theme color */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--secondary); /* Hover effect */
    transform: scale(1.2); /* Slight zoom on hover */
}

/* Fix Icon Alignment in Contact Section */
.contact-info .social-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--light);
    padding: 50px;
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
    color: var(--dark);
}

.copyright {
    margin-top: 20px;
    color: #999;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.2s;
}

.fade-in-delay-2 {
    transition-delay: 0.4s;
}

.fade-in-delay-3 {
    transition-delay: 0.6s;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Media Queries */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 30px;
    }
    
    .navbar.scrolled {
        padding: 10px 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        order: -1;
        height: auto;
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .navbar .logo {
        height: 50px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100vh;
        background-color: var(--light);
        flex-direction: column;
        padding: 80px 30px;
        gap: 20px;
        transition: all 0.3s ease;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .activities-slider {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar.scrolled {
        padding: 10px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about, .services, .activities, .locations, .contact {
        padding: 80px 20px;
    }
    
    .activities-slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 30px 20px;
    }
    
    .slide-content h3 {
        font-size: 1.5rem;
    }
    
    .slide-nav {
        right: 20px;
    }

}
/* Blog Section — using the original inline card design */
.page-wrap {
  padding: 120px 50px 40px;
  background: var(--light);
}
.page-hero {
  max-width: 900px;
  margin: 0 auto 20px;
  text-align: center;
}
.page-hero .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}
.blog-cover {
  height: 180px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-meta {
  font-size: 13px;
  color: #6b7280;
}
.blog-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
}
.blog-excerpt {
  color: #666;
  line-height: 1.6;
}
.empty {
  text-align: center;
  color: #999;
  margin: 30px 0;
  display: none;
}
@media (max-width: 576px) {
  .page-wrap {
    padding: 110px 20px 40px;
  }
}
/* === Blog Article Page Styling === */
.article-wrap {
  padding: 120px 20px 40px;
  background: var(--gray);
}

.article {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.article-hero {
  background: #f9fafb;
  padding: 30px 35px 20px;
  border-bottom: 1px solid #eee;
}

.article-title {
  font-size: 2rem;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--dark);
}

.article-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.article-body {
  padding: 30px 35px;
  line-height: 1.9;
  color: #222;
}

.article-body h2 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--dark);
  font-size: 1.4rem;
  border-right: 5px solid var(--primary);
  padding-right: 10px;
}

.article-body ul,
.article-body ol {
  padding-right: 25px;
  margin-bottom: 15px;
}

.article-body li {
  margin: 0.4em 0;
}

.back-link {
  display: inline-block;
  margin: 20px 35px 30px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}
/* === Blog page (RTL) === */
.page-wrap{
  padding:120px 50px 40px;       /* space for fixed navbar */
  background:var(--light);
}
.page-hero{max-width:900px;margin:0 auto 20px;text-align:center;}
.page-hero .section-title::after{left:50%;transform:translateX(-50%);}

/* === Enhanced Blog Card Design + Content Fixes === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
}

/* Card container */
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Image */
.blog-cover {
  height: 200px;
  overflow: hidden;
  border-bottom: 3px solid var(--primary);
}

.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-cover img {
  transform: scale(1.08);
}

/* Content wrapper */
.blog-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1; /* Ensures consistent height */
}

/* Meta text */
.blog-meta {
  font-size: 0.85rem;
  color: #6b7280;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
}

/* Title */
.blog-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 2px 0 0;
}

/* Excerpt (2 lines max) */
.blog-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.4em;
  margin: 0;
}

/* RTL and LTR support */
[dir="rtl"] .blog-body   { text-align: right; }
[dir="rtl"] .blog-title,
[dir="rtl"] .blog-excerpt { direction: rtl; }

[dir="ltr"] .blog-body   { text-align: left; }
