/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #004494;
    --accent-color: #ff6b00;
    --text-color: #333;
    --light-text: #666;
    --lightest-text: #999;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --border-color: #e1e4e8;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 6px;
    --max-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

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

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: var(--radius);
    color: var(--text-color);
}

nav a:hover {
    color: var(--primary-color);
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}

nav svg {
    transition: var(--transition);
}

nav a:hover svg {
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 5%;
    background-color: var(--light-bg);
    margin-bottom: 3rem;
}

.hero-content {
    width: 50%;
    padding-right: 2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.hero-image {
    width: 50%;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Featured Posts Section */
.featured-posts {
    padding: 2rem 5%;
    margin-bottom: 3rem;
}

.featured-posts h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

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

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.post-card:hover .post-content h3 {
    color: var(--primary-color);
}

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

.read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
}

.read-more:after {
    content: "→";
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 5%;
    margin-bottom: 3rem;
    border-radius: var(--radius);
    margin-left: 5%;
    margin-right: 5%;
}

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

.newsletter-content h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
}

.newsletter form {
    display: flex;
    gap: 1rem;
}

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

.newsletter .btn {
    background-color: var(--accent-color);
}

.newsletter .btn:hover {
    background-color: #e55f00;
}

/* Footer Styles */
footer {
    background-color: #1e2336;
    color: white;
    padding: 3rem 5% 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    color: #b0b8c8;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-section a {
    color: #b0b8c8;
}

.footer-section a:hover {
    color: white;
}

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

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

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

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b8c8;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1000;
    transition: bottom 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 1.5rem;
}

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

.btn-cookie {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

#customize-cookies {
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

#reject-cookies {
    background-color: white;
    color: var(--light-text);
    border: 1px solid var(--border-color);
}

#accept-cookies:hover {
    background-color: var(--secondary-color);
}

#customize-cookies:hover, #reject-cookies:hover {
    background-color: #e8e8e8;
}

/* Blog Page Styles */
.blog-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 5%;
}

.blog-container h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

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

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

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

.blog-content {
    padding: 1.5rem;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.blog-card:hover .blog-content h2 {
    color: var(--primary-color);
}

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

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

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

/* About Page Styles */
.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 5%;
}

.about-intro {
    margin-bottom: 3rem;
}

.about-intro h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

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

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
}

.team-section {
    margin-bottom: 3rem;
}

.team-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.team-member {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding-bottom: 1.5rem;
    transition: var(--transition);
}

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

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

.team-member h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.team-member p {
    color: var(--light-text);
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
}

.team-member .social-icons {
    justify-content: center;
}

.values-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

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

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

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

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* Contact Page Styles */
.contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 5%;
}

.contact-container h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

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

.info-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--light-text);
}

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

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-container input {
    width: auto;
    margin-top: 0.3rem;
}

.map-container {
    margin-bottom: 3rem;
}

.map-container h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.map-frame {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* 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.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--lightest-text);
    transition: var(--transition);
}

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

.thank-you-message {
    text-align: center;
    padding: 1rem 0;
}

.thank-you-message svg {
    color: #4caf50;
    margin-bottom: 1rem;
}

.thank-you-message h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.thank-you-message p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

/* Single Post Page Styles */
.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.post {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    overflow: hidden;
}

.post-header {
    padding: 2rem 2rem 0;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
}

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

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

.post-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

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

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

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

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--light-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content blockquote p {
    margin-bottom: 0.5rem;
    font-style: italic;
}

.post-content blockquote cite {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

.post-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--light-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--light-text);
    transition: var(--transition);
}

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

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-share span {
    color: var(--light-text);
}

.post-share a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-bg);
    color: var(--light-text);
    border-radius: 50%;
    transition: var(--transition);
}

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

.related-posts {
    margin-bottom: 3rem;
}

.related-posts h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

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

.related-content {
    padding: 1rem;
}

.related-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.related-card:hover .related-content h3 {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .posts-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-content,
    .hero-image {
        width: 100%;
        padding-right: 0;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .posts-grid,
    .blog-grid,
    .team-grid,
    .values-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* CSS for headings with hover effect */
h1, h2, h3 {
    transition: var(--transition);
}

h1:hover, h2:hover, h3:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

h1 svg, h2 svg, h3 svg {
    transition: var(--transition);
}

h1:hover svg, h2:hover svg, h3:hover svg {
    transform: rotate(15deg);
}
