:root {
    --primary-color: #4a6fa5;
    --primary-dark: #345382;
    --primary-light: #7694c2;
    --secondary-color: #8bbd8b;
    --secondary-dark: #6a9c6a;
    --secondary-light: #a8d2a8;
    --accent-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --container-width: 1200px;
    --default-font-size: 16px;
    --header-height: 80px;
    --footer-height: auto;
}

/* Dark Theme Variables */
.dark-theme {
    --primary-color: #7694c2;
    --primary-dark: #4a6fa5;
    --primary-light: #a8c1e6;
    --secondary-color: #6a9c6a;
    --secondary-dark: #4d7a4d;
    --secondary-light: #8bbd8b;
    --light-color: #1a1e23;
    --dark-color: #f8f9fa;
    --gray-color: #adb5bd;
    --light-gray: #343a40;
}

/* Base Styles */
*, 
*::before, 
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--default-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    transition: var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

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

button, 
.btn {
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: var(--primary-color);
    color: white;
    border: none;
    outline: none;
    text-align: center;
    display: inline-block;
}

button:hover, 
.btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.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;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: var(--header-height);
}

.dark-theme header {
    background-color: rgba(26, 30, 35, 0.95);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 0.5rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

.dark-theme nav ul li a {
    color: var(--light-color);
}

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

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

nav ul li a:hover::after {
    width: 100%;
}

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

nav ul li a.active::after {
    width: 100%;
}

.theme-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-controls button {
    background: none;
    border: none;
    color: var(--dark-color);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-theme .theme-controls button {
    color: var(--light-color);
}

/* Main Content Styles */
main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--footer-height));
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    text-align: center;
    padding: 8rem 0 6rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Featured Posts Section */
.featured-posts {
    background-color: var(--light-color);
    padding: 6rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.dark-theme .post-card {
    background-color: var(--light-gray);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.post-date {
    margin-right: 1rem;
}

.post-category {
    background-color: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.dark-theme .post-category {
    background-color: var(--primary-dark);
    color: var(--light-color);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

/* Testimonials Section */
.testimonials {
    background-color: var(--light-gray);
    padding: 6rem 0;
}

.dark-theme .testimonials {
    background-color: var(--dark-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-slider {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 500px;
}

.dark-theme .testimonial {
    background-color: var(--light-gray);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    color: var(--gray-color);
    font-style: normal;
    font-size: 0.875rem;
}

/* Call to Action Section */
.cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background-color: white;
    color: var(--secondary-dark);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
}

.cta .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Blog Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    text-align: center;
    padding: 6rem 0 4rem;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.blog-posts {
    padding: 5rem 0;
}

.subscribe {
    background-color: var(--light-gray);
    text-align: center;
    padding: 5rem 0;
}

.dark-theme .subscribe {
    background-color: var(--dark-color);
}

.subscribe h2 {
    margin-bottom: 1rem;
}

.subscribe p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.dark-theme .subscribe-form input[type="email"] {
    background-color: var(--light-gray);
    color: var(--light-color);
    border-color: var(--primary-dark);
}

/* About Page Styles */
.about-intro {
    padding: 6rem 0;
}

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

.about-content h2 {
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.our-approach {
    background-color: var(--light-gray);
    padding: 6rem 0;
}

.dark-theme .our-approach {
    background-color: var(--dark-color);
}

.our-approach h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.approach-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.dark-theme .approach-card {
    background-color: var(--light-gray);
}

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

.approach-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.approach-card h3 {
    margin-bottom: 1rem;
}

.team {
    padding: 6rem 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.dark-theme .team-card {
    background-color: var(--light-gray);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-card h3, .team-card p {
    padding: 0 1.5rem;
}

.team-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-card p {
    margin-bottom: 1.5rem;
}

.team-card p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.social-links a {
    color: var(--gray-color);
    transition: var(--transition);
}

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

.values {
    background-color: var(--light-gray);
    padding: 6rem 0;
}

.dark-theme .values {
    background-color: var(--dark-color);
}

.values h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.value-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.dark-theme .value-card {
    background-color: var(--light-gray);
}

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

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

/* Contact Page Styles */
.contact-section {
    padding: 6rem 0;
}

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

.contact-info h2, .contact-form-container h2 {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-icon {
    color: var(--primary-color);
    margin-right: 1.5rem;
}

.info-content h3 {
    margin-bottom: 0.5rem;
}

.info-content p, .info-content address {
    color: var(--gray-color);
    line-height: 1.8;
}

.social-connect {
    margin-top: 3rem;
}

.social-connect h3 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.25rem;
}

.social-icons a {
    color: var(--gray-color);
    transition: var(--transition);
}

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

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

.dark-theme .contact-form {
    background-color: var(--light-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    background-color: var(--dark-color);
    color: var(--light-color);
    border-color: var(--primary-dark);
}

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

.map-section {
    background-color: var(--light-gray);
    padding: 5rem 0;
}

.dark-theme .map-section {
    background-color: var(--dark-color);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq {
    padding: 6rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.faq-item {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.dark-theme .faq-item {
    background-color: var(--light-gray);
}

.faq-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Footer Styles */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding-top: 4rem;
    position: relative;
}

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

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

.footer-logo p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-links h3, .footer-social h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-social .social-icons a {
    color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-bottom address {
    font-style: normal;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: white;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

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

.cookie-content {
    padding: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cookie-buttons .btn-outline:hover {
    background-color: white;
    color: var(--dark-color);
}

.cookie-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.cookie-link:hover {
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    transition: var(--transition);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2.5rem;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
}

.dark-theme .modal-content {
    background-color: var(--light-gray);
    color: var(--light-color);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal h2 {
    margin-bottom: 1.5rem;
}

.modal p {
    margin-bottom: 2rem;
}

.modal-btn {
    display: inline-block;
}

/* Dark Theme Feature */
body.dark-theme {
    background-color: var(--dark-color);
    color: var(--light-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    section {
        padding: 4rem 0;
    }

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

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --default-font-size: 15px;
    }

    header {
        padding: 0.5rem 0;
    }

    .logo img {
        height: 40px;
    }

    nav ul li {
        margin-left: 1rem;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero .btn {
        padding: 0.75rem 1.5rem;
    }

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

    .testimonial-slider {
        flex-direction: column;
    }

    .testimonial {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 0 2.5rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1.1rem;
    }

    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}
