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

/* Custom Font Import */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Caveat:wght@400;500;600;700&display=swap');

/* CSS Variables for Hand-drawn Theme */
:root {
    --primary-color: #2c5530;
    --secondary-color: #8b4513;
    --accent-color: #d2691e;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f7f4;
    --bg-white: #ffffff;
    --border-color: #e0d5b7;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --hand-drawn-filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

/* Base Typography */
body {
    font-family: 'Kalam', cursive;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    font-size: 16px;
    font-weight: 400;
}

/* Hand-drawn Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

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

/* Header Styles */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    height: 60px;
    width: auto;
    filter: var(--hand-drawn-filter);
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23d2691e" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%232c5530" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.1;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: var(--hand-drawn-filter);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background-color: var(--bg-white);
}

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

.service-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent-color);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 80px;
    height: 80px;
    filter: var(--hand-drawn-filter);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    filter: var(--hand-drawn-filter);
}

/* Blog Section */
.blog {
    background-color: var(--bg-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent-color);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: var(--hand-drawn-filter);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-content h3 a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--accent-color);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.blog-meta .date,
.blog-meta .category {
    padding: 0.25rem 0.75rem;
    background-color: var(--border-color);
    border-radius: 15px;
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-light);
}

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

.testimonial-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent-color);
}

.testimonial-avatar {
    margin-bottom: 1.5rem;
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: var(--hand-drawn-filter);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.testimonial-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-content .title {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--bg-white);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    background-color: var(--bg-white);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--bg-white);
    text-decoration: underline;
}

.newsletter-form button {
    margin-top: 1rem;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-white);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Contact Section */
.contact {
    background-color: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.social-media h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    width: 40px;
    height: 40px;
    filter: var(--hand-drawn-filter);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--bg-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

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

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.page-header h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* About Page Styles */
.about-page {
    padding: 80px 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-values {
    margin-bottom: 4rem;
}

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

.value-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent-color);
}

.value-icon {
    margin-bottom: 1.5rem;
}

.value-icon img {
    width: 60px;
    height: 60px;
    filter: var(--hand-drawn-filter);
}

.about-services {
    margin-bottom: 4rem;
}

.services-overview {
    display: grid;
    gap: 2rem;
}

.service-item {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.service-item:hover {
    border-color: var(--accent-color);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.about-stats {
    margin-bottom: 4rem;
}

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

.stat-card {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.stat-card:nth-child(even) {
    transform: rotate(1deg);
}

.stat-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

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

.about-contact {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

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

/* Blog Page Styles */
.blog-page {
    padding: 80px 0;
}

.blog-page .blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-page .blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.blog-page .blog-card.featured .blog-image {
    height: 300px;
}

.blog-page .blog-card.featured .blog-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-page .blog-card.featured .blog-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.blog-sidebar {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.sidebar-section .newsletter-form {
    margin-top: 1rem;
}

.sidebar-section .newsletter-form input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-family: 'Kalam', cursive;
    margin-bottom: 1rem;
}

.sidebar-section .newsletter-form button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: var(--bg-white);
    border-radius: 20px;
    font-family: 'Kalam', cursive;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-section .newsletter-form button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Article Page Styles */
.article-page {
    padding: 120px 0 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-meta span {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 15px;
}

.article-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

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

.article-image {
    margin-bottom: 3rem;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    filter: var(--hand-drawn-filter);
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-text h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.article-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text ul,
.article-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

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

.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags span {
    font-weight: 500;
    color: var(--primary-color);
    margin-right: 1rem;
}

.article-tags a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    border-radius: 15px;
    margin-right: 0.5rem;
    transition: background-color 0.3s ease;
}

.article-tags a:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.prev-article,
.next-article {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.prev-article:hover,
.next-article:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* Legal Pages */
.legal-page {
    padding: 80px 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.legal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

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

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

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.thanks-icon {
    margin-bottom: 2rem;
}

.thanks-content h1 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.thanks-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.submission-details {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: left;
}

.submission-details h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.submission-details p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.thanks-actions {
    margin: 2rem 0;
    text-align: left;
}

.thanks-actions h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.thanks-actions ul {
    list-style: none;
    padding-left: 0;
}

.thanks-actions li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.thanks-actions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.thanks-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cookie Management */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 1rem;
    z-index: 10000;
    border-top: 3px solid var(--accent-color);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.cookie-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.cookie-category p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.cookie-settings-panel {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.cookie-settings-panel h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cookie-settings-panel p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 5px 15px var(--shadow-color);
        border-top: 2px solid var(--primary-color);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        transition: background-color 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: var(--bg-light);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content,
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-page .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-page .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-navigation {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .thanks-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .values-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-content,
    .thanks-content {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .mobile-menu-toggle,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .hero,
    .page-header {
        padding: 20px 0;
    }
    
    .hero-text h1,
    .page-header h1 {
        font-size: 24pt;
        color: black;
    }
    
    .section-header h2 {
        font-size: 18pt;
        color: black;
    }
    
    .article-text {
        font-size: 11pt;
    }
    
    .article-text h2 {
        font-size: 16pt;
    }
    
    .article-text h3 {
        font-size: 14pt;
    }
}

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

/* Focus States */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #333333;
        --text-color: #000000;
        --text-light: #333333;
        --bg-white: #ffffff;
        --border-color: #000000;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        border-width: 3px;
    }
}
