/* Base Styles */
:root {
    --primary-color: #ff5722; /* Vibrant orange as primary color */
    --secondary-color: #3d4db7; /* Deep blue as secondary color */
    --tertiary-color: #8e44ad; /* Purple accent */
    --background-color: #121212; /* Dark background */
    --background-light: #1e1e1e; /* Slightly lighter background */
    --text-color: #f5f5f5; /* Light text for dark background */
    --text-secondary: #b3b3b3; /* Secondary text color */
    --accent-color: #28a745; /* Green accent */
    --danger-color: #dc3545; /* Red for warnings/errors */
    --card-background: #232323; /* Dark card background */
    --border-color: #333; /* Border color */
    --shadow-color: rgba(0, 0, 0, 0.5); /* Shadow color */
    --container-width: 1200px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

a:hover {
    color: #ff8a65; /* Lighter orange */
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    border: none;
}

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

.primary-btn:hover {
    background-color: #e64a19; /* Darker orange */
    color: white;
}

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

.secondary-btn:hover {
    background-color: #303f9f; /* Darker blue */
    color: white;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* Header */
header {
    background-color: rgba(18, 18, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    backdrop-filter: blur(10px);
}

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

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

nav ul {
    display: flex;
    list-style: none;
}

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

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-speed) ease;
}

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

/* Hero Sections */
.hero, .blog-hero, .about-hero, .contact-hero {
    background: linear-gradient(to right, #121212, #232323);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero::before, .blog-hero::before, .about-hero::before, .contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/bg-pattern.jpg') repeat;
    opacity: 0.05;
    z-index: 1;
}

.hero .container, .blog-hero .container, .about-hero .container, .contact-hero .container {
    position: relative;
    z-index: 2;
}

.hero h1, .blog-hero h1, .about-hero h1, .contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p, .blog-hero p, .about-hero p, .contact-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

/* Featured Posts Section */
.featured-posts {
    padding: 4rem 0;
}

.featured-posts h2, .about-mission h2, .team-section h2, .values-section h2, .contact-info h2, .map-section h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

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

.post-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

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

/* Footer */
footer {
    background-color: var(--background-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo img {
    width: 150px;
    margin-bottom: 1rem;
}

.footer-logo p, .footer-contact address p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

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

.footer-links ul li a, .footer-legal ul li a {
    color: var(--text-secondary);
    transition: color var(--transition-speed) ease;
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-background);
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Blog Page Styles */
.blog-posts {
    padding: 4rem 0;
}

.blog-post {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.post-image {
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.blog-post .post-content {
    padding: 2rem;
}

.blog-post h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.current-page {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* About Page Styles */
.about-mission {
    padding: 4rem 0;
}

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

.mission-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.mission-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.team-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

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

.team-member {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: transform var(--transition-speed) ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--primary-color);
}

.team-member p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.team-member p:first-of-type {
    color: var(--tertiary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.values-section {
    padding: 4rem 0;
}

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

.value-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed) ease;
}

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

.value-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.value-card p {
    color: var(--text-secondary);
}

/* Contact Page Styles */
.contact-info {
    padding: 4rem 0;
}

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

.contact-details {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.contact-icon {
    color: var(--primary-color);
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-text p, .contact-text a {
    color: var(--text-secondary);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
}

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

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

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

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

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

.modal-content {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

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

.modal p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-background);
    padding: 1rem;
    box-shadow: 0 -5px 15px var(--shadow-color);
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cookie-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.cookie-policy-link {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .mission-content, .blog-post {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 1rem 0.5rem;
    }
    
    .hero h1, .blog-hero h1, .about-hero h1, .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .post-grid, .team-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 1rem;
    }
    
    .social-icons {
        justify-content: center;
    }
}
