/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8fffe;
}

/* CSS Variables for Consistent Theming */
:root {
    --primary-color: #27ae60;
    --secondary-color: #2ecc71;
    --accent-color: #f39c12;
    --dark-green: #1e6e3e;
    --light-green: #e8f5e8;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-green);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    line-height: 1;
}

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

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

.btn-secondary {
    background-color: var(--light-green);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-green) 0%, #f0f8f0 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-image {
    text-align: center;
}

.hero-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.hero-decoration {
    position: absolute;
    top: 10%;
    right: -10%;
    opacity: 0.1;
    z-index: 0;
}

.leaf-decoration {
    width: 300px;
    height: auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.header-decoration {
    width: 50px;
    height: auto;
    opacity: 0.3;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Services Grid */
.services-grid {
    padding: 80px 0;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card.featured {
    border: 3px solid var(--primary-color);
    position: relative;
}

.service-card.featured::before {
    content: 'Più Popolare';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Learning Modules */
.learning-modules {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.learning-modules h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.module {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.module h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Course Features */
.course-features {
    padding: 80px 0;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: var(--light-green);
    border-radius: var(--border-radius);
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.feature-text h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-gray);
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card.featured {
    border: 2px solid var(--primary-color);
    grid-column: span 2;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.rating {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.testimonial-role {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
}

blockquote {
    font-style: italic;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.stats h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

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

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    filter: brightness(0) invert(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Success Stories */
.success-stories {
    padding: 80px 0;
}

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

.story {
    padding: 30px;
    background-color: var(--light-green);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.story h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Blog Styles */
.featured-article {
    padding: 80px 0;
}

.article-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-category {
    background-color: var(--light-green);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.read-more:hover {
    color: var(--dark-green);
}

/* Blog Articles Grid */
.blog-articles {
    padding: 80px 0;
    background-color: var(--light-gray);
}

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

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

/* Blog Categories */
.blog-categories {
    padding: 80px 0;
}

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

.category-card {
    text-align: center;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

/* Contact Styles */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-container h2 {
    margin-bottom: 20px;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

/* Contact Info */
.contact-info {
    background-color: var(--light-green);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-details p {
    margin-bottom: 5px;
    color: var(--text-light);
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Quick Contact */
.quick-contact {
    padding: 80px 0;
    background-color: var(--light-gray);
}

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

.quick-contact-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.quick-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

/* Location Map */
.location-map {
    padding: 80px 0;
}

.map-container {
    background-color: var(--light-gray);
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
}

.map-placeholder {
    max-width: 600px;
    margin: 0 auto;
}

.map-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    opacity: 0.5;
}

.map-directions {
    text-align: left;
    margin-top: 30px;
}

.map-directions ul {
    list-style: none;
    padding-left: 0;
}

.map-directions li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Thanks Page */
.thanks-section {
    padding: 80px 0;
    text-align: center;
}

.thanks-content {
    max-width: 800px;
    margin: 0 auto;
}

.thanks-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.thanks-message {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--text-light);
}

.next-steps {
    margin-bottom: 50px;
}

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

.step {
    text-align: center;
    padding: 30px;
    background-color: var(--light-green);
    border-radius: var(--border-radius);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.thanks-actions {
    margin-bottom: 50px;
}

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

.action-card {
    display: block;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.action-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.contact-reminder {
    background-color: var(--light-green);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 20px;
}

.back-home {
    margin-top: 30px;
}

/* Blog Article Styles */
.blog-article {
    padding-top: 0;
}

.article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.article-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-hero-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.article-content {
    padding: 80px 0;
}

.article-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.article-body {
    max-width: none;
}

.article-intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-green);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.article-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 5px;
    color: var(--text-light);
}

.article-body strong {
    color: var(--text-dark);
}

.article-cta {
    background-color: var(--light-green);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 40px;
    border: 2px solid var(--primary-color);
}

.article-cta h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Article Sidebar */
.article-sidebar {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.article-sidebar > div {
    margin-bottom: 40px;
}

.article-sidebar > div:last-child {
    margin-bottom: 0;
}

.article-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.related-article {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.related-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-article img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.related-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.related-content h4 a {
    color: var(--text-dark);
}

.related-content h4 a:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    background-color: var(--dark-green);
}

.newsletter-signup form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-signup input {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
}

.newsletter-signup button {
    padding: 10px;
}

/* Legal Document Styles */
.legal-content {
    padding: 80px 0;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.last-updated {
    background-color: var(--light-green);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.legal-document h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 10px;
}

.legal-document h3 {
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-document ul {
    margin-bottom: 20px;
}

.legal-document li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-controls,
.cookie-summary {
    background-color: var(--light-green);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 30px 0;
}

/* Sidebar Specific Styles */
.beginner-tip,
.problem-solver,
.design-tips,
.emergency-tip {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.diagnostic-list {
    list-style: none;
    padding: 0;
}

.diagnostic-list li {
    margin-bottom: 10px;
}

.diagnostic-list a {
    display: block;
    padding: 8px 12px;
    background-color: var(--light-green);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.diagnostic-list a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.tip-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    padding: 15px;
    background-color: var(--light-green);
    border-radius: var(--border-radius);
}

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

.tip-item p {
    margin: 0;
    font-size: 0.9rem;
}

.plant-calculator,
.emergency-tip {
    text-align: center;
}

.calculator {
    background-color: var(--light-green);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
}

.calculator strong {
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

.cta .btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px 20px;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Grids */
    .features-grid,
    .services-grid,
    .testimonials-grid,
    .stats-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card.featured {
        grid-column: span 1;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Article Content */
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-sidebar {
        position: static;
    }

    /* Featured Article */
    .article-card.featured {
        grid-template-columns: 1fr;
    }

    /* Steps and Actions */
    .steps-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }

    /* Tables */
    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .feature-card,
    .service-card,
    .testimonial-card {
        padding: 20px;
    }

    .article-intro {
        font-size: 1.1rem;
        padding: 15px;
    }

    .legal-document {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .cookie-banner,
    .navbar,
    .footer {
        display: none;
    }

    .hero,
    .cta {
        background: none !important;
        color: var(--text-dark) !important;
    }

    .hero h1,
    .cta h2 {
        color: var(--text-dark) !important;
    }

    .page-header {
        background: none !important;
        color: var(--text-dark) !important;
    }

    .page-header h1 {
        color: var(--text-dark) !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #006400;
        --secondary-color: #228B22;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }

    .btn {
        border: 2px solid;
    }

    .feature-card,
    .service-card,
    .testimonial-card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cookie-banner {
        transition: none;
    }

    .hamburger .bar {
        transition: none;
    }
}
