/* Base font styling */
body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.subtitle,
.navbar-item,
.button {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

.title {
    letter-spacing: -0.01em;
}

.subtitle {
    font-weight: 500;
}

.hero-background {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('/images/hands-on-tree.jpeg');
    background-size: cover;
    background-position: center;
}

/* Dark mode styles */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .navbar {
    background-color: #1e1e1e !important;
}

.dark-mode .navbar-item,
.dark-mode .navbar-link,
.dark-mode .navbar-burger {
    color: #e0e0e0;
}

.dark-mode .section:not(.parallax) {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .title:not(.has-text-white),
.dark-mode .subtitle:not(.has-text-white) {
    color: #e0e0e0;
}

.dark-mode .box,
.dark-mode .card {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.dark-mode .has-background-light {
    background-color: #1e1e1e !important;
}

.dark-mode .content p,
.dark-mode .content li {
    color: #e0e0e0;
}

.dark-mode .label {
    color: #e0e0e0;
}

.dark-mode .input,
.dark-mode .textarea,
.dark-mode .select select {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #3d3d3d;
}

.theme-toggle {
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.service-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.activity-item {
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: scale(1.03);
}

.testimonial-card {
    height: 100%;
}

.parallax {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('/images/02.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer-links a {
    margin: 0 10px;
}

.gradient-text {
    background: linear-gradient(90deg, #04AA6D, #3273dc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-item img {
    max-height: 50px;
}

.is-brown {
    background-color: #8B5A2B !important;
    color: white !important;
}

.is-orange-light {
    background-color: #FFA500 !important;
    color: white !important;
}

.workshop-card .card-content {
    min-height: 180px;
}

.has-bg-green {
    background-color: #04AA6D;
    color: white;
}

.has-text-inherit {
    color: inherit;
    text-decoration: none;
}

.has-text-inherit:hover {
    color: #04AA6D;
}

#go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 99;
    border-radius: 50%;
    /* Make button more visible and touch-friendly on mobile */
    opacity: 0.8;
}

.student-price {
    font-style: italic;
}

/* Ensure button is visible on all screen sizes */
@media screen and (max-width: 768px) {
    #go-to-top {
        bottom: 15px;
        right: 15px;
    }
}

/* Navbar responsive fixes */
.navbar-menu {
    background-color: transparent;
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: white;
    }

    .dark-mode .navbar-menu {
        background-color: #1e1e1e;
    }
}

/* Dropdown background fix for dark mode */
.navbar-dropdown {
    background-color: white;
}

.dark-mode .navbar-dropdown {
    background-color: #1e1e1e;
    border-top-color: #333;
}

.dark-mode .navbar-dropdown .navbar-item:hover {
    background-color: #2d2d2d;
}

/* Hero carousel styles */
.hero-carousel {
    position: relative;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.08);
}

.hero-carousel .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-carousel .slide.active {
    opacity: 1;
}

.hero-carousel .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}
.hero-carousel .carousel-control:hover {
    background: rgba(0, 0, 0, 0.5);
}
.hero-carousel .carousel-control.prev {
  right: 12px;
}
.hero-carousel .carousel-control.next {
  left: 12px;
}
/* RTL-specific overrides for hero carousel */
html[lang="ar"] .hero-carousel .carousel-control.prev {
  right: 12px;
  left: auto;
}
html[lang="ar"] .hero-carousel .carousel-control.next {
  left: 12px;
  right: auto;
}
.hero-carousel .carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.hero-carousel .carousel-dots button {
    width: 8px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}
.hero-carousel .carousel-dots button.active {
    background: #ffffff;
}

/* Dark mode tweaks */
.dark-mode .hero-carousel {
    background-color: rgba(255, 255, 255, 0.06);
}
.dark-mode .hero-carousel .carousel-control { color: #fff; }

/* Responsive */
@media screen and (max-width: 1023px) {
    .hero-carousel { height: 320px; }
}
@media screen and (max-width: 768px) {
    .hero-carousel { height: 260px; }
}