:root {
    --primary-color: #548357;
    ----secondary: #E1C16E;
    /* --background-color: #F9F7F3; */
    --text-color: #333333;
    --card-background-color: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

.page-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--text-color);
}

/* Slider Component Styling */
.slider-container {
    position: relative;
    width: 90%;
    align-self: center;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 15px;
}

.testimonials-section {
    display: grid;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 40px 50px;
    background-color: var(--card-background-color);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-color);
    border-radius: 15px;
    min-height: 300px;
    display: grid;
    grid-template-rows: max-content 1fr max-content;
    justify-content: center;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    /* margin-bottom: 20px; */
    color: #555;
    grid-row: 2;
    align-self: center;
}


.testimonial-author {
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: auto;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(----secondary);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-130%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 2;
    align-self: center;
}

.slider-btn > i {
    padding: 0px;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.slider-btn-prev {
    left: 15px;
}

.slider-btn-next {
    right: 15px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}


.cta-section {

    text-align: center;
    margin-top: calc(var(--spacing-unit) * 6);
    padding: calc(var(--spacing-unit) * 4);
    background-color: #fff;
    border-radius: calc(var(--spacing-unit) * 2);
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    justify-self: center;
    padding: 30px;
    
}

.cta-section > p {
    padding: 20px 5px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 4);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: calc(var(--spacing-unit) * 2);
}

.cta-button:hover, .cta-button:focus {
    background-color: #456d48;
    transform: translateY(-2px);
    outline: 2px solid #456d48;
    outline-offset: 2px;
}
/* Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .slider-container {
        width: 90%;
    }

    .testimonial-card {
        padding: 30px 35px;
    }

    .page-title {
        font-size: 2rem;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .slider-container {
        width: 95%;
    }
    
    .testimonial-card {
        padding: 25px 20px;
        min-height: 350px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .slider-btn-prev {
        left: 8px;
    }

    .slider-btn-next {
        right: 8px;
    }

    .slider-dots {
        margin-top: 20px;
    }
}


/* Buttons - Consolidated */
a.btn,
button.btn {
  padding: clamp(6px, 1vw, 8px) clamp(16px, 2vw, 24px) !important;
  border-radius: 30px;
  color: #ffffff;
  border: solid 1px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  z-index: 1;
  cursor: pointer;
}

a.btn::before,
button.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  background: #ffffff;
  opacity: 1;
  transition: 0.2s ease-in-out;
  z-index: -1;
  border-radius: 200px;
}

a.btn:hover::before,
button.btn:hover::before {
  width: 150%;
  height: 200px;
}

a.btn:active,
button.btn:active {
  opacity: 0.5;
}

a.btn.btn-main,
button.btn.btn-main {
  border-color: var(--accent-border);
  background: var(--accent);
}

a.btn.btn-main:hover,
button.btn.btn-main:hover {
  color: var(--accent-border);
}

a.btn.btn-sec,
button.btn.btn-sec {
  border-color: var(--secondary-border);
  background: var(--secondary);
}

a.btn.btn-sec:hover,
button.btn.btn-sec:hover {
  color: var(--secondary-border);
}

a.btn.btn-other,
button.btn.btn-other {
  border-color: var(--secondary-border);
  opacity: 0.75;
  color: var(--secondary-border);
}

a.btn.btn-other:hover,
button.btn.btn-other:hover {
  color: #fff;
}

a.btn.btn-other:active,
button.btn.btn-other:active {
  opacity: 0.25;
}

a.btn.btn-other::before,
button.btn.btn-other::before {
  background: var(--secondary);
}

.btn.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
