/* =========================
   PURE-CSS SLIDER STYLES
   ========================= */

/* 1) Outer container: keep everything hidden except one “viewport” wide */
.css-slider {
    margin-bottom: 2rem;          /* space before your existing sections */
    max-width: 80%;              /* make slider narrower */
    margin-left: auto;           /* center it horizontally */
    margin-right: auto;
    position: relative;          /* for absolute positioning of arrows */
}
.css-slider .slider-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Height increased by 50% */
    min-height: 600px;
}

/* 2) The “track” holds all 5 slides in a single row */
.css-slider .slider-track {
    display: flex;
    width: 500%;                  /* 5 slides × 100% each */
    animation: slider-animation 25s infinite;
}

/* 3) Each slide is exactly 100% of .slider-viewport width */
.css-slider .slide {
    flex: 1 0 100%;
    display: flex;
}

/* 4) Left half: text block */
.css-slider .slide-text {
    width: 50%;
    background-color: #f8f9fa;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.css-slider .slide-text h2 {
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1f71;
}
.css-slider .slide-text p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #2d2d2d;
}

/* 5) Right half: image block */
.css-slider .slide-image {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed black background */
}
.css-slider .slide-image img {
    display: block;
    /*max-width: 100%;*/
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* 6) Keyframe animation: move the track leftwards in 5 steps */
@keyframes slider-animation {
    0%    { transform: translateX(0%); }
    20%   { transform: translateX(0%); }
    25%   { transform: translateX(-100%); }
    45%   { transform: translateX(-100%); }
    50%   { transform: translateX(-200%); }
    70%   { transform: translateX(-200%); }
    75%   { transform: translateX(-300%); }
    95%   { transform: translateX(-300%); }
    100%  { transform: translateX(-400%); }
}

/* 7) OPTIONAL: pause on hover */
.css-slider .slider-viewport:hover .slider-track {
    /*animation-play-state: paused;*/
}

/* 8) Responsive adjustment: on small screens stack text above image */
@media (max-width: 768px) {
    .css-slider .slide {
        flex-direction: column;
    }
    .css-slider .slide-text,
    .css-slider .slide-image {
        height: 100%;
    }
    .css-slider .slide-text {
        padding: 1.5rem;
        text-align: center;
    }
}

/* 9) Navigation Arrows */
.slider-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-arrow.prev {
    left: -25px;
}

.slider-nav-arrow.next {
    right: -25px;
}

@media (max-width: 992px) {
    .slider-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-nav-arrow.prev {
        left: -20px;
    }

    .slider-nav-arrow.next {
        right: -20px;
    }
}

/* Slider indicator buttons */
.slider-indicators {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 30px; /* Adjusted for taller slider */
    width: 100%;
    z-index: 20;
    gap: 10px;
    padding: 8px 0;
}

.slider-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.65);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-indicators .indicator:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.slider-indicators .indicator.active {
    background-color: white;
        border: 1px solid rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .slider-indicators {
        bottom: 10px;
    }

    .slider-indicators .indicator {
        width: 10px;
        height: 10px;
    }
}








/* =========================
   PURE-CSS SLIDER (inside header)
   ========================= */

/* 1) Since the slider is now inside <header>, remove the bottom margin
      so it doesn’t double-space between header and <main>. */
.css-slider {
    margin-bottom: 0;   /* previously was 2rem—now zero because it’s in the header */
}

/* 2) Make the slider fill the full header width and sit directly below
      any other header content. */
.css-slider .slider-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Height increased by 50% */
    min-height: 600px;
    max-width: 80%;    /* make slider narrower */
    margin-left: auto; /* center it horizontally */
    margin-right: auto;
}

/* 3) The track remains a 5×100% flex row. */
.css-slider .slider-track {
    display: flex;
    width: 500%;                  /* 5 slides */
    /* animation disabled in JS for custom control */
    will-change: transform; /* Optimize for animation performance */
}

/* 4) Each .slide is one “viewport”-width (100%). */
.css-slider .slide {
    flex: 1 0 100%;
    display: flex;
    transition: opacity 0.3s ease-in-out;
}

/* 5) Left half: text column; right half: image column. */
.css-slider .slide-text {
    width: 50%;
    background-color: #f8f9fa;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.css-slider .slide-text h2 {
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1f71;
}
.css-slider .slide-text p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #2d2d2d;
}

.css-slider .slide-image {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed black background */
}
.css-slider .slide-image img {
    display: block;
    /*max-width: 100%;*/
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* 6) Keyframes remain identical */
@keyframes slider-animation {
    0%    { transform: translateX(0%); }
    20%   { transform: translateX(0%); }
    25%   { transform: translateX(-100%); }
    45%   { transform: translateX(-100%); }
    50%   { transform: translateX(-200%); }
    70%   { transform: translateX(-200%); }
    75%   { transform: translateX(-300%); }
    95%   { transform: translateX(-300%); }
    100%  { transform: translateX(-400%); }
}

/* 7) Pause on hover—still works the same */
.css-slider .slider-viewport:hover .slider-track {
    animation-play-state: paused;
}

/* 8) Mobile: stack text above image */
@media (max-width: 768px) {
    .css-slider .slide {
        flex-direction: column;
    }
    .css-slider .slide-text,
    .css-slider .slide-image {
        height: 100%;
    }
    .css-slider .slide-text {
        padding: 1.5rem;
        text-align: center;
    }
}





/* ─────────────────────────────────────────────────────────────────────────
   FORCE EACH SLIDE TO BE A TWO-COLUMN FLEXBOX (TEXT + IMAGE) AT 80% WIDTH
   ───────────────────────────────────────────────────────────────────────── */

/* 1) Make the viewport a fixed container so each slide can fill it */
.css-slider .slider-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 600px; /* Increased height by 50% (from 400px to 600px) */
}

/* 2) Ensure the track does not collapse—let it grow to fit exactly one slide */
.css-slider .slider-track {
    display: flex;       /* keep slides side by side */
    width: 100%;         /* only one “pane” wide, since no animation */
    height: 100%;
}

/* 3) Force each individual slide to occupy exactly the viewport’s width */
.css-slider .slide {
    flex: 0 0 100%;      /* width = 100% of .slider-viewport */
    max-width: 100%;
    display: flex;       /* side-by-side children */
    height: 100%;
}

/* 4) Left column (text) stays at 50% of slide’s width */
.css-slider .slide-text {
    width: 50%;
    background-color: #f8f9fa;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* 5) Right column (image) stays at 50% of slide’s width */
.css-slider .slide-image {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed black background */
    height: 100%;
}
.css-slider .slide-image img {
    display: block;
    /*max-width: 100%;*/
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Navigation buttons styling */
.slider-nav-arrow {
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.85);
}

/* 6) Responsive rules - hide slider completely on mobile */
@media (max-width: 768px) {
    .css-slider {
        display: none;
    }
}

