/* Base styles and variables */
:root {
    --primary-color: #3d5afe; /* Vibrant blue */
    --secondary-color: #00c853; /* Bright green */
    --accent-color: #ff3d00; /* Bright orange */
    --background-color: #fafafa; /* Light gray background */
    --dark-color: #263238; /* Very dark blue-gray */
    --light-color: #ffffff; /* White */
    --text-color: #37474f; /* Dark blue-gray */
    --light-text-color: #78909c; /* Medium blue-gray */
    --border-color: #eceff1; /* Very light blue-gray */
    --success-color: #00c853; /* Green for success messages */
    --error-color: #d50000; /* Red for error messages */
    --warning-color: #ff9100; /* Amber for warnings */
    --info-color: #2196f3; /* Blue for info */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
    --header-height: 80px;
    --footer-height: 320px;
}

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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

button:hover {
    background-color: var(--secondary-color);
}

input, textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    font-size: 16px;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(61, 90, 254, 0.2);
}

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

/* Header Styles */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

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

.logo {
    height: 50px;
    width: auto;
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

.navbar a:hover:after,
.navbar a.active:after {
    width: 100%;
}

.navbar a.active {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px;
    background-color: var(--light-color);
    margin-bottom: 60px;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Featured Posts */
.featured-posts {
    padding: 0 40px 60px;
}

.featured-posts h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--dark-color);
}

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

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

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

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

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.hover-effect {
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.hover-effect:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.hover-effect:hover:after {
    width: 100%;
}

.post-content p {
    font-size: 16px;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    padding-right: 20px;
}

.read-more:after {
    content: '→';
    position: absolute;
    right: 0;
    transition: var(--transition);
}

.read-more:hover:after {
    right: -5px;
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 60px 40px;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 0 40px 60px;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.newsletter-form input {
    flex: 1;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: none;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--accent-color);
}

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

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 40px 30px;
    min-height: var(--footer-height);
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    bottom: -10px;
    left: 0;
    background-color: var(--accent-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--light-color);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.cookie-accept {
    background-color: var(--success-color);
}

.cookie-customize {
    background-color: var(--info-color);
}

.cookie-reject {
    background-color: var(--light-text-color);
}

.cookie-more {
    font-size: 14px;
    text-decoration: underline;
    color: var(--light-color);
}

/* About Page Styles */
.about-hero {
    padding: 80px 40px;
    background-color: var(--light-color);
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

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

.about-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-hero-image img {
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-mission {
    padding: 0 40px 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.mission-content {
    flex: 1;
}

.mission-image {
    flex: 1;
}

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

.team-section {
    padding: 0 40px 60px;
}

.team-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

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

.team-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding-bottom: 20px;
}

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

.team-card h3 {
    margin: 15px 0 5px;
    font-size: 20px;
}

.team-card p {
    color: var(--light-text-color);
    padding: 0 15px;
    margin-bottom: 10px;
}

.values-section {
    padding: 0 40px 60px;
}

.values-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

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

.value-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.value-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Contact Page Styles */
.contact-hero {
    padding: 80px 40px;
    background-color: var(--light-color);
    margin-bottom: 60px;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-hero-content p {
    font-size: 18px;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    padding: 0 40px 60px;
}

.contact-info-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 250px;
}

.contact-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-form-section {
    padding: 0 40px 60px;
}

.contact-form-container {
    display: flex;
    gap: 40px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-form-content {
    flex: 1;
    padding: 40px;
}

.contact-form-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-form-content p {
    color: var(--light-text-color);
    margin-bottom: 30px;
}

.contact-image {
    flex: 1;
    display: none; /* Hide on mobile */
}

@media (min-width: 768px) {
    .contact-image {
        display: block;
    }
    
    .contact-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: auto;
}

.submit-button {
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 500;
    font-size: 16px;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

.map-section {
    padding: 0 40px 60px;
}

.map-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-icon {
    color: var(--success-color);
    margin-bottom: 20px;
}

.modal h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.modal p {
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.modal-button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .about-hero,
    .about-mission {
        flex-direction: column;
    }
    
    .about-mission {
        gap: 20px;
    }
    
    .about-hero-content,
    .mission-content {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .navbar {
        margin-top: 15px;
    }
    
    main {
        margin-top: 120px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .featured-posts,
    .about-hero,
    .about-mission,
    .team-section,
    .values-section,
    .contact-hero,
    .contact-info,
    .contact-form-section,
    .map-section {
        padding: 0 20px 40px;
    }
    
    .newsletter {
        margin: 0 20px 40px;
        padding: 40px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    
    footer {
        padding: 40px 20px 20px;
    }
    
    .contact-form-container {
        flex-direction: column;
    }
    
    .value-card,
    .contact-info-item {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .featured-posts h2,
    .about-hero h1,
    .team-section h2,
    .values-section h2,
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
