body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #28a745; /* Vert jardin */
    --secondary-color: #6c757d; /* Gris doux */
    --light-bg: #e9ecef; /* Arrière-plan clair */
    --dark-bg: #343a40; /* Arrière-plan foncé */
    --text-color: #333;
    --white-color: #fff;
    --header-height: 70px;
    --border-radius-main: 8px;
    --shadow-main: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-transition: all 0.3s ease-in-out;
}

/* Global styles for sections */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-light-gradient {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive H2 */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem); /* Responsive H1 */
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* Responsive H2 */
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Responsive H3 */
}

h4 {
    font-size: clamp(1.25rem, 3.5vw, 1.8rem); /* Responsive H4 */
}

.lead {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
}

/* Navbar */
.custom-navbar {
    background-color: var(--white-color);
    box-shadow: var(--shadow-main);
    z-index: 1030;
}

.logo-img {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: clamp(1.25rem, 4vw, 1.8rem); /* Responsive Site Title */
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--hover-transition);
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.offcanvas-header {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.offcanvas-title {
    color: var(--white-color);
}

 section {
    overflow: hidden;
 }

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2840, 167, 69, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 1100px) {
    .navbar-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .navbar-nav .nav-item {
        flex-shrink: 0;
    }
    .offcanvas {
        width: 280px;
    }
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background-image: url('static/uploads/garden-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    backdrop-filter: blur(3px); /* Blur effect */
    z-index: 0;
}

.floating-card {
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-main);
    padding: 3rem;
    max-width: 800px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.floating-card h1 {
    color: var(--primary-color);
}

.floating-card .lead {
    color: var(--secondary-color);
}

.icon-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.icon-highlight i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--hover-transition);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Hero Animations */
.animated-item {
    opacity: 0;
    transform: translateY(20px);
}

.animated-h1 {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 1s;
}

.animated-p {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 1.2s;
}

.animated-icons {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 1.4s;
}

.animated-button {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 1.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General Image Styling */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: var(--border-radius-main) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-main) !important;
}

/* Testimonials Section */
.testimonial-item {
    border: 1px solid #ddd;
    border-radius: var(--border-radius-main);
    transition: var(--hover-transition);
    position: relative;
    overflow: hidden;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-item .avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-item p {
    font-style: italic;
    color: var(--secondary-color);
}

.testimonial-item .bi-quote {
    color: var(--primary-color);
    opacity: 0.2;
}

/* Tool Cards */
.tool-card {
    border: 1px solid #e0e0e0;
    background-color: var(--white-color);
    transition: var(--hover-transition);
}

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

.tool-card i {
    color: var(--primary-color);
}

/* Footer */
.interactive-footer {
    background-color: var(--dark-bg);
    color: var(--white-color);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.interactive-footer a {
    color: var(--white-color);
    text-decoration: none;
    transition: var(--hover-transition);
}

.interactive-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.data-widgets {
    gap: 1.5rem;
}

.widget-item {
    font-size: 0.9rem;
    color: var(--light-bg);
}

.widget-item .widget-icon {
    color: var(--primary-color);
}

/* Animations for footer widgets */
.widget-text-animate {
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(30px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-30px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Animation delays for testimonial cards */
.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}
.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}
.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}
.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}
.animate-on-scroll.delay-5 {
    transition-delay: 0.5s;
}

/* Modal for testimonials */
#testimonialStoryModal .modal-content {
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-main);
}

#testimonialStoryModal .modal-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-bottom: none;
}

#testimonialStoryModal .modal-title {
    color: var(--white-color);
}

#testimonialStoryModal .btn-close {
    filter: invert(1);
}

#testimonialStoryModal .modal-body {
    padding: 2rem;
}

#modalStoryImage {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

#modalStoryName {
    margin-top: 1rem;
    color: var(--primary-color);
}

#modalStoryText {
    color: var(--secondary-color);
    font-style: italic;
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 90vh;
    }
    .floating-card {
        padding: 2rem 1.5rem;
    }
    .icon-highlight span {
        font-size: 0.9rem;
    }
    .btn-lg {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem); /* Mobile H2 */
    }
    h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Mobile H1 */
    }
    h2 {
        font-size: clamp(1.5rem, 7vw, 2.2rem); /* Mobile H2 */
    }
    h3 {
        font-size: clamp(1.25rem, 6vw, 1.8rem); /* Mobile H3 */
    }
    h4 {
        font-size: clamp(1.1rem, 5vw, 1.5rem); /* Mobile H4 */
    }
    .site-title {
        font-size: clamp(1.1rem, 5vw, 1.25rem); /* Mobile Site Title */
    }
    .copyright-info, .data-widgets {
        text-align: center;
        width: 100%;
    }
    .data-widgets {
        justify-content: center;
    }
}
/*
 * Base styles for the .secureTermsHub container
 * Provides internal padding for content spacing.
 */
.secureTermsHub {
    padding-top: 40px; /* Top padding for the content hub */
    padding-left: 20px; /* Left padding for the content hub */
    padding-right: 20px; /* Right padding for the content hub */
    /*
     * Consider adding a max-width and margin: 0 auto; here for better readability
     * on very wide screens, if not already handled by a global layout.
     * Example: max-width: 960px; margin: 0 auto;
     */
}

/*
 * Stock heading styles for h1-h5 within .secureTermsHub
 * Designed to be moderate in size, not overly large.
 */
.secureTermsHub h1 {
    font-size: 2em; /* Relatively large, but not excessive */
    margin-top: 1.5em; /* Space above the heading */
    margin-bottom: 0.8em; /* Space below the heading */
    line-height: 1.2; /* Line height for readability */
    font-weight: 600; /* Semi-bold font weight */
}

.secureTermsHub h2 {
    font-size: 1.75em;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    line-height: 1.3;
    font-weight: 600;
}

.secureTermsHub h3 {
    font-size: 1.5em;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    line-height: 1.4;
    font-weight: 600;
}

.secureTermsHub h4 {
    font-size: 1.25em;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.5;
    font-weight: 600;
}

.secureTermsHub h5 {
    font-size: 1.1em;
    margin-top: 1em;
    margin-bottom: 0.4em;
    line-height: 1.6;
    font-weight: 600;
}

/*
 * Stock paragraph styles within .secureTermsHub
 */
.secureTermsHub p {
    font-size: 1em; /* Base font size for paragraphs */
    margin-top: 0; /* No top margin if following a heading/list */
    margin-bottom: 1em; /* Space between paragraphs */
    line-height: 1.6; /* Line height for improved readability */
}

/*
 * Stock unordered list styles within .secureTermsHub
 */
.secureTermsHub ul {
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 25px; /* Indentation for bullet points */
    list-style-type: disc; /* Default bullet style */
}

/*
 * Stock list item styles within .secureTermsHub
 */
.secureTermsHub li {
    font-size: 1em; /* Inherit or set base font size */
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.6; /* Line height for list item text */
}
#garden-design .row {
    align-items: flex-start; /* Выравнивание по верху */
}

#garden-design img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 1.5rem;
}

/* Для секции #gardener-mistakes */
#gardener-mistakes .row {
    align-items: flex-start; /* Выравнивание по верху */
}

#gardener-mistakes img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 1.5rem;
}

/* Убираем влияние order классов на выравнивание */
#garden-design .col-lg-6,
#gardener-mistakes .col-lg-6 {
    display: flex;
    flex-direction: column;
}