/* GLOBAL STYLES */

/* Color Variables */
:root {
    --primary-color: #45725E;
    /* Earthy green symbolizing healing and nature */
    --primary-color-rgb: 69, 114, 94;
    /* RGB version of primary color */
    --primary-color-dark: #3a5f4e;
    /* Darker shade for hovers */
    --secondary-color: #8B5A3F;
    /* Warm brown for cultural grounding */
    --secondary-color-rgb: 139, 90, 63;
    /* RGB version of secondary color */
    --accent-color: #7E57C2;
    /* Purple for transformation and spirituality */
    --accent-color-rgb: 126, 87, 194;
    /* RGB version of accent color */
    --text-color: #333333;
    /* Dark gray for general text */
    --text-color-light: #555555;
    /* Lighter text for secondary content */
    --text-color-lighter: #888888;
    /* Even lighter for placeholders */
    --light-color: #F5F5F0;
    /* Soft off-white for backgrounds */
    --background-color: #FFFFFF;
    /* Pure white background */
    --dark-color: #334A41;
    /* Dark green for footer and contrast */
    --dark-color-rgb: 51, 74, 65;
    /* RGB version of dark color */
    --border-color: #D8C9BC;
    /* Soft earth tone for borders */
    --header-text-color: #333333;
    /* Dark text for headers */
    --footer-text-color: #ECF0F1;
    /* Light text for footer */

    /* Additional value colors for accordions */
    --value-color-1: #6B8E23;
    /* Olive Green */
    --value-color-2: #5F9EA0;
    /* Cadet Blue */
    --value-color-3: #DAA520;
    /* Goldenrod */
    --value-color-4: #8A2BE2;
    /* Blue Violet */

    /* Shadow system */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);

    /* Border radius system */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

/* Base Typography and Colors */
body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 400;
    font-size: 17px;
}

/* Layout Container */
.container {
    width: 100%;
    margin: 0;
    padding: 0 20px;
}

/* Global Link Styles */
a {
    text-decoration: none;
    color: var(--primary-color);
}

/* List Reset */
ul {
    list-style: none;
}

/* IMAGES */
img {
    max-width: 100%;
}

/* BUTTON STYLES */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.3);
}

/* Small Button Variant */
.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* Outline Button Variant */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Global Section Padding */
section {
    padding: 40px 0;
}

/* HEADINGS */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Nunito Sans', sans-serif;
    margin-bottom: 15px;
    color: var(--header-text-color);
    font-weight: 700;
}

/* PARAGRAPHS */
p {
    margin-bottom: 20px;
}

/* HEADER */
header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    /* Fixed height for consistent header size */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    padding-left: 5px;
    /* Reduced left padding to move logo closer to the edge */
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    width: 120px;
    flex: 0 0 120px;
    justify-content: center;
    margin-left: -10px;
    /* Negative margin to move logo more to the left */
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.logo img {
    display: block;
    max-height: 70%;
    width: auto;
    object-fit: contain;
    margin: auto;
}

header h1 {
    margin: 0;
    color: var(--header-text-color);
    font-weight: 600;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--header-text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a:focus {
    outline: none;
    color: var(--primary-color);
    box-shadow: 0 2px 0 0 var(--primary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* MOBILE NAVIGATION */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hamburger Animation */
.mobile-nav-toggle.active .hamburger {
    background: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    header .container {
        padding: 0 10px 0 15px;
    }

    .logo {
        width: 100px;
        flex: 0 0 100px;
        justify-content: flex-start;
    }

    @media (max-width: 480px) {
        .logo {
            width: 90px;
            flex: 0 0 90px;
        }
    }

    nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--background-color);
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    nav.active {
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child {
        border-bottom: none;
    }
}

/* HERO SECTION */
.hero {
    background-image: linear-gradient(rgba(74, 144, 167, 0.85), rgba(44, 62, 80, 0.9)), url('../images/home/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero .container {
    padding: 40px 20px;
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 25px;
    color: white;
    /* Explicitly set to white */
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* FEATURES SECTION */
.features {
    background-color: white;
    padding: 60px 0 50px;
    position: relative;
    z-index: 1;
    padding-bottom: 70px;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(var(--light-color), 0.2));
    pointer-events: none;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 2px;
    background-color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature {
    padding: 28px;
    border-radius: var(--radius-sm);
    background-color: white;
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    font-size: 1.3em;
}

.feature p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

/* PAGE HEADER */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-header h2 {
    margin-bottom: 0;
    color: white;
}

/* CONTENT SECTION */
.content {
    background-color: white;
    min-height: 500px;
}

/* Content typography - headings */
.content h2 {
    margin-bottom: 30px;
}

.content h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* ABOUT PAGE */

/* ABOUT: INTRODUCTION */
.about-intro {
    max-width: 850px;
    margin: 0 auto 60px;
    text-align: center;
}

/* ABOUT HEADING */
.about-intro h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.about-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-intro p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

.about-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px 0;
    border-radius: var(--radius-md);
}

.about-section.reverse {
    flex-direction: row-reverse;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    padding: 40px 30px;
}

.about-section-content {
    flex: 1;
}

.about-section-content h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.about-section-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

.about-section.reverse .about-section-content h3::after {
    background-color: var(--accent-color);
}

.about-section-content p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-section-content strong {
    color: var(--secondary-color);
    font-size: 1.1em;
}

.about-section-image {
    flex: 1;
    max-width: 550px;
}

/* New styles for about images */
.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    max-height: 350px;
    /* Match the height of the text content */
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.placeholder-image {
    background-color: var(--secondary-color);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-image: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transition: all 0.3s ease;
}

.about-section.reverse .placeholder-image {
    background-image: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.placeholder-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.about-values {
    padding: 20px 0 40px;
    margin-top: 40px;
}

.about-values h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.about-values h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.value-card:nth-child(odd) {
    border-top-color: var(--secondary-color);
}

.value-card:nth-child(even) {
    border-top-color: var(--accent-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.value-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-icon i {
    font-size: 1.8em;
}

.value-card:nth-child(odd) .value-icon {
    background-color: rgba(var(--secondary-color-rgb), 0.1);
}

.value-card:nth-child(even) .value-icon {
    background-color: rgba(var(--accent-color-rgb), 0.1);
}

.value-card h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.value-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color);
}

/* SERVICES PAGE */

/* Grid layout for services cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Individual service card styling */
.service {
    padding: 30px;
    border-radius: var(--radius-sm);
    background-color: var(--light-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon .icon {
    font-size: 1.6em;
}


/* INFO PAGE */
.info-tabs {
    margin-top: 30px;
}

.tab-header {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn:focus {
    outline: none;
    color: var(--primary-color);
    box-shadow: 0 2px 0 0 var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.accordion {
    margin-top: 30px;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    padding: 15px 20px;
    background-color: var(--light-color);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.accordion-header:focus {
    outline: none;
    box-shadow: inset 4px 0 0 0 var(--primary-color);
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.accordion-item.open .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.open .accordion-content {
    padding: 20px;
    max-height: 500px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.resource h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.resource ul li {
    margin-bottom: 10px;
}

.policy-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* CONTACT PAGE */

/* Two-column layout for contact form and information */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

/* FORM LABELS */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* FORM INPUTS */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(217, 165, 138, 0.5);
}

.form-group textarea {
    resize: vertical;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item .icon {
    font-size: 1.5em;
    margin-right: 15px;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.social-links {
    margin-top: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.map-container {
    margin-top: 40px;
}

.map-placeholder {
    background-color: var(--light-color);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-lighter);
    font-size: 1.2em;
    border-radius: var(--radius-md);
    border: 1px solid var(--secondary-color);
}

/* Image Slider Section */
.image-slider {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.image-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(var(--primary-color-rgb), 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(var(--secondary-color-rgb), 0.06) 0%, transparent 60%);
    z-index: 0;
    opacity: 0.7;
}

.image-slider .container {
    position: relative;
    z-index: 1;
}

.image-slider h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 12px;
    font-weight: 600;
}

.image-slider h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.auto-slider-container {
    position: relative;
    max-width: 1200px;
    height: 550px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.auto-slider {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: var(--background-color);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

.auto-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
    transform: scale(1.05);
    will-change: opacity, transform;
    z-index: 0;
}

.auto-slide.preload {
    z-index: 0;
    opacity: 0.01;
    /* Just enough to trigger browser preload */
    transform: scale(1.05);
}

.auto-slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

.slider-image {
    height: 100%;
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.slider-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    background-image:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 1;

    /* Add a subtle vignette effect */
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.3);
}

.slide-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    padding: 0 60px;
    z-index: 2;
    text-align: center;
    transform: translateY(10px);
    opacity: 0;
    transition: all 1s ease 0.5s;
}

.auto-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h3 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.slide-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    z-index: 2;
    opacity: 0;
    transition: all 1s ease 0.7s;
}

.auto-slide.active .slide-icon {
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.slide-icon span {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.slide-icon span::before,
.slide-icon span::after {
    content: '';
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* Gradient Slide Styles */
.gradient-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: gradient-pulse 8s ease-in-out infinite;
}

@keyframes gradient-pulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#gradient-1 {
    background: linear-gradient(135deg, #4A6670, #7A9E9F, #5A7681);
    background-size: 200% 200%;
}

#gradient-2 {
    background: linear-gradient(135deg, #798478, #A1B5AB, #859085);
    background-size: 200% 200%;
}

#gradient-3 {
    background: linear-gradient(135deg, #7D7461, #B9A894, #8D846E);
    background-size: 200% 200%;
}

/* Add a texture overlay to gradients */
.gradient-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    background-image:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 1;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.3);
}

/* Image Slide Styles */
.image-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.auto-slide.active .slide-img {
    transform: scale(1.08);
    animation: subtle-pan 15s ease-in-out infinite alternate;
}

@keyframes subtle-pan {
    0% {
        object-position: center 45%;
    }

    100% {
        object-position: center 55%;
    }
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 60px 40px 60px;
    color: #fff;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.5s;
    z-index: 2;
}

.auto-slide.active .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
    /* Explicitly set to white */
}

.image-overlay p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #fff;
    /* Changed from rgba(255,255,255,0.9) to solid white */
}

/* ICONS */
.icon-circle::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-size: 60px;
}

.icon-people::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E");
    background-size: 60px;
}

.icon-heart::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 60px;
}

.icon-hands::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-size: 60px;
}

.icon-star::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
    background-size: 60px;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        var(--primary-color),
        var(--accent-color),
        var(--secondary-color),
        var(--primary-color)
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    transition: width linear;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 4;
    padding: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.indicator.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.indicator.active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
}

/* Services - Approach Section */
.approach-section {
    margin-top: 40px;
    margin-bottom: 20px;
    /* Reduced margin at the bottom */
}

.values-accordion {
    margin-top: 30px;
    max-width: 800px;
}

.values-accordion .accordion-item {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.values-accordion .accordion-item:nth-child(2) {
    border-left: 4px solid var(--secondary-color);
}

.values-accordion .accordion-item:nth-child(3) {
    border-left: 4px solid var(--accent-color);
}

.values-accordion .accordion-item:nth-child(4) {
    border-left: 4px solid var(--value-color-1);
}

.values-accordion .accordion-item:nth-child(5) {
    border-left: 4px solid var(--value-color-2);
}

.values-accordion .accordion-header {
    padding: 18px 25px;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.values-accordion .accordion-item:hover {
    transform: translateY(-2px);
}

.values-accordion .accordion-content p {
    padding: 0 20px 10px;
    line-height: 1.7;
}

.approach-list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 20px;
}

.approach-list li {
    margin-bottom: 15px;
}

.about-values-accordion {
    margin-bottom: 40px;
}

.about-values-accordion .accordion-item {
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background-color: var(--light-color);
}

.about-values-accordion .accordion-item:nth-child(1) {
    border-left: 4px solid var(--primary-color);
}

.about-values-accordion .accordion-item:nth-child(2) {
    border-left: 4px solid var(--secondary-color);
}

.about-values-accordion .accordion-item:nth-child(3) {
    border-left: 4px solid var(--accent-color);
}

.about-values-accordion .accordion-item:nth-child(4) {
    border-left: 4px solid var(--value-color-1);
    /* Olive Green */
}

.about-values-accordion .accordion-item:nth-child(5) {
    border-left: 4px solid var(--value-color-2);
    /* Cadet Blue */
}

.about-values-accordion .accordion-item:nth-child(6) {
    border-left: 4px solid var(--value-color-3);
    /* Goldenrod */
}

.about-values-accordion .accordion-item:nth-child(7) {
    border-left: 4px solid var(--value-color-4);
    /* Blue Violet */
}

.about-values-accordion .accordion-header {
    font-size: 1.05em;
    padding: 15px 20px;
}

/* VISION SECTION */
.vision-section {
    padding: 70px 0 60px;
    background-color: var(--light-color);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 0;
}

.vision-section::before {
    display: none;
    /* Removing the pattern for a cleaner look */
}

.vision-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
}

.vision-content {
    text-align: center;
    max-width: 800px;
}

.vision-content h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.vision-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background-color: var(--secondary-color);
}

.vision-text {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-color);
}

.core-values-summary {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.core-values-summary h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 12px;
}

.core-values-summary h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 2px;
    background-color: var(--secondary-color);
}

.values-summary {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.values-summary p {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.6;
}

.values-summary .btn {
    margin-top: 15px;
    transition: all 0.3s ease;
}

.values-summary .btn {
    margin-top: 10px;
}

/* Values Slider styles */
.values-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.values-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.values-grid {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0;
    gap: 30px;
    width: max-content;
    /* Allow the container to expand based on content */
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    color: var(--primary-color);
    font-size: 1.2em;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.values-slider-container:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Adjust value-card to maintain consistent width */
.value-card {
    flex: 0 0 300px;
    /* Fixed width for each card */
    max-width: 300px;
    min-width: 300px;
}

@media (max-width: 768px) {
    .value-card {
        flex: 0 0 260px;
        max-width: 260px;
        min-width: 260px;
    }
}

@media (max-width: 992px) {

    .about-section,
    .about-section.reverse {
        flex-direction: column;
    }

    .about-section-image {
        max-width: 100%;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 2em;
    }

    /* CTA section styles moved to cta-section.css */

    .social-cta {
        flex-wrap: wrap;
    }

    .slider {
        height: 400px;
    }

    .slider-image {
        height: 300px;
    }

    .prev-btn,
    .next-btn {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* RESPONSIVE: AUTO-SLIDER */
@media (max-width: 992px) {
    .auto-slider-container {
        height: 500px;
    }

    .slide-content {
        padding: 0 40px;
        bottom: 50px;
    }

    .image-overlay {
        padding: 50px 30px 30px;
    }

    .slide-icon span {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .auto-slider-container {
        height: 450px;
    }

    .slide-content h3,
    .image-overlay h3 {
        font-size: 1.8rem;
        color: #fff;
        /* Explicitly set to white */
    }

    .slide-content p,
    .image-overlay p {
        font-size: 1.1rem;
        color: #fff;
        /* Explicitly set to white */
    }

    .slide-icon span {
        width: 80px;
        height: 80px;
    }

    .icon-circle::before,
    .icon-people::before,
    .icon-heart::before,
    .icon-hands::before,
    .icon-star::before {
        background-size: 45px;
    }

    .image-overlay {
        padding: 40px 25px 25px;
    }
}

@media (max-width: 576px) {
    .auto-slider-container {
        height: 400px;
        border-radius: var(--radius-md);
    }

    .slide-content {
        padding: 0 20px;
        bottom: 40px;
    }

    .image-overlay {
        padding: 30px 20px 20px;
    }

    .slide-content h3,
    .image-overlay h3 {
        font-size: 1.5rem;
        margin-bottom: 5px;
        color: #fff;
        /* Explicitly set to white */
    }

    .slide-content p,
    .image-overlay p {
        font-size: 0.9rem;
        color: #fff;
        /* Explicitly set to white */
    }

    .slide-icon {
        transform: translate(-50%, -100%);
    }

    .auto-slide.active .slide-icon {
        transform: translate(-50%, -70%);
    }

    .slide-icon span {
        width: 60px;
        height: 60px;
    }

    .icon-circle::before,
    .icon-people::before,
    .icon-heart::before,
    .icon-hands::before,
    .icon-star::before {
        background-size: 30px;
    }
}

/* FOOTER */

/* FOOTER */
footer {
    background-color: #e8e8e0;
    /* A more distinct shade from the light-color */
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    position: relative;
    box-shadow: inset 0 15px 15px -15px rgba(0, 0, 0, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.7;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-color);
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-social a:hover i {
    color: white;
}

.footer-social i {
    color: var(--primary-color);
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--text-color-rgb), 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
}

/* ICON THEMING */
.icon-themed {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.icon-themed.secondary {
    color: var(--secondary-color);
}

.icon-themed.accent {
    color: var(--accent-color);
}

.icon-themed:hover {
    color: var(--dark-color);
}

/* Service Icon Styling */
.service-icon .icon i {
    font-size: 1.3em;
}

/* Contact Social Icons */
.social-cta {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
}

.contact-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-social-icon i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.contact-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
}

.contact-social-icon:hover i {
    transform: scale(1.2);
}

/* Contact Info Icon Styling */
.info-item .icon i {
    font-size: 1.2em;
}

/* Section Transitions for Homepage Flow */
.vision-section {
    position: relative;
    z-index: 0;
}

/* Create better flow between Vision section and Image slider */
.vision-section+.image-slider {
    margin-top: 0;
    padding-top: 70px;
}

/* Improve spacing between sections */
section+section {
    margin-top: 0;
    /* Remove default margin between sections */
}

/* TEAM SECTION */
.about-team {
    padding: 20px 0;
    margin-top: 20px;
    background-color: rgba(245, 245, 240, 0.3);
    /* Using the light color value directly */
    border-radius: var(--radius-md);
}

.about-team h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.about-team h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.team-content {
    max-width: 1100px;
    margin: 0 auto;
}

.team-section {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 40px;
}

.team-section p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.team-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.team-service-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.team-service-card:nth-child(2) {
    border-left-color: var(--secondary-color);
}

.team-service-card:nth-child(3) {
    border-left-color: var(--accent-color);
}

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

.team-service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.team-service-icon i {
    font-size: 1.8em;
    color: var(--primary-color);
}

.team-service-card:nth-child(2) .team-service-icon {
    background-color: rgba(var(--secondary-color-rgb), 0.1);
}

.team-service-card:nth-child(2) .team-service-icon i {
    color: var(--secondary-color);
}

.team-service-card:nth-child(3) .team-service-icon {
    background-color: rgba(var(--accent-color-rgb), 0.1);
}

.team-service-card:nth-child(3) .team-service-icon i {
    color: var(--accent-color);
}

.team-service-card h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.team-service-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color);
}

.team-elders {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    padding: 30px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.team-elders-content {
    flex: 1;
}

.team-elders-content h4 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.team-elders-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.team-elders-content p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.team-elders-image {
    flex: 1;
    max-width: 450px;
}

/* RESPONSIVE: TEAM */
@media (max-width: 768px) {
    .team-elders {
        flex-direction: column-reverse;
    }

    .team-elders-image {
        margin-bottom: 20px;
        max-width: 100%;
    }
}