/* Global Styles */
:root {
    --primary-color: #006699;
    --secondary-color: #ff9900;
    --accent-color: #e63946;
    --text-color: #333333;
    --light-text: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --border-color: #dee2e6;
    --footer-bg: #1e3a5f;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    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: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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, .button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

button:hover, .button:hover {
    background-color: #005580;
    color: var(--light-text);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    position: relative;
}

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

nav ul li a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -8px;
    left: 0;
}

.lang-alt {
    font-size: 12px;
    color: var(--dark-gray);
    display: block;
    margin-top: 2px;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 102, 153, 0.8), rgba(0, 102, 153, 0.9)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 102, 153, 0.8), rgba(0, 102, 153, 0.9)), url('images/page-header.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

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

/* Blog Posts Grid */
.blog-posts {
    padding: 60px 0;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px 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: 20px;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-content h3 a {
    color: var(--text-color);
}

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

.post-meta {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
    position: relative;
}

.read-more::after {
    content: '\2192';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 10px;
}

/* Newsletter */
.newsletter {
    background-color: var(--light-gray);
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 8px;
}

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

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

.newsletter p {
    margin-bottom: 25px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: 12px 20px;
}

/* Single Blog Post */
.blog-post {
    max-width: 800px;
    margin: 60px auto;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--dark-gray);
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-content {
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content h4 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content ul li, .post-content ol li {
    margin-bottom: 10px;
}

.post-content ul {
    list-style-type: disc;
}

.post-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    background-color: var(--light-gray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.post-share {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-share span {
    font-weight: 600;
}

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

.post-share a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 30px;
}

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

.related-post {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.related-post h4 {
    padding: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.related-post:hover h4 {
    color: var(--primary-color);
}

/* About Page */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 60px 0;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.team-section {
    padding: 60px 0;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.team-section h2, .team-intro {
    text-align: center;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 40px;
}

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

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

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

.team-member h3 {
    margin: 20px 0 5px;
}

.team-member p {
    padding: 0 20px;
    margin-bottom: 10px;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--text-color);
}

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

.values-section {
    margin: 60px 0;
}

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

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

.value-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--light-gray);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.value-item h3 {
    margin-bottom: 15px;
}

.cta-section {
    background: linear-gradient(rgba(0, 102, 153, 0.9), rgba(0, 102, 153, 0.8)), url('images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
    border-radius: 8px;
    margin: 60px 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
}

.cta-content .button {
    background-color: var(--secondary-color);
}

.cta-content .button:hover {
    background-color: #e68a00;
}

/* Contact Page */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 60px 0;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--light-gray);
    border-radius: 50%;
    margin-right: 20px;
    color: var(--primary-color);
}

.contact-text h3 {
    margin-bottom: 5px;
}

.contact-form-container h2 {
    margin-bottom: 20px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 5px;
}

.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: #005580;
}

.map-section {
    margin: 60px 0;
}

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

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

.faq-section {
    margin: 60px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.success-message.show {
    display: flex;
}

.success-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    box-shadow: var(--box-shadow);
}

.success-content svg {
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-content h2 {
    margin-bottom: 15px;
}

.success-content p {
    margin-bottom: 25px;
}

.close-button {
    background-color: var(--primary-color);
}

/* Glossary Section */
.glossary {
    background-color: var(--light-gray);
    padding: 50px 20px;
    margin: 60px auto;
    border-radius: 8px;
}

.glossary h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.glossary-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.glossary-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.glossary-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

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

.footer-about {
    grid-column: span 2;
}

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

.footer-links h3, .footer-contact h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--light-text);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p i {
    margin-right: 10px;
}

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

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

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

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

.cookie-buttons button {
    padding: 8px 16px;
    font-size: 14px;
}

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

.cookie-buttons .accept-all:hover {
    background-color: #218838;
}

.cookie-buttons .customize {
    background-color: var(--dark-gray);
}

.cookie-buttons .customize:hover {
    background-color: #5a6268;
}

.cookie-buttons .decline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.cookie-buttons .decline:hover {
    background-color: var(--light-gray);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .team-grid, .values-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .footer-about {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 15px;
    }
    
    .hero, .page-header {
        padding: 40px 0;
    }
    
    .post-grid, .team-grid, .values-grid, .glossary-items {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .cookie-buttons button {
        flex: 1;
        min-width: 120px;
    }
}

/* Icons for Contact and Footer */
.icon-location::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 14c2.206 0 4-1.794 4-4s-1.794-4-4-4-4 1.794-4 4 1.794 4 4 4zm0-6c1.103 0 2 .897 2 2s-.897 2-2 2-2-.897-2-2 .897-2 2-2z'%3E%3C/path%3E%3Cpath d='M11.42 21.814a.998.998 0 0 0 1.16 0C12.884 21.599 20.029 16.44 20 10c0-4.411-3.589-8-8-8S4 5.589 4 9.995c-.029 6.445 7.116 11.604 7.42 11.819zM12 4c3.309 0 6 2.691 6 6.005.021 4.438-4.388 8.423-6 9.73-1.611-1.308-6.021-5.294-6-9.735 0-3.309 2.691-6 6-6z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.icon-phone::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M17.707 12.293a.999.999 0 0 0-1.414 0l-1.594 1.594c-.739-.22-2.118-.72-2.992-1.594s-1.374-2.253-1.594-2.992l1.594-1.594a.999.999 0 0 0 0-1.414l-4-4a.999.999 0 0 0-1.414 0L3.581 5.005c-.38.38-.594.902-.586 1.435.023 1.424.4 6.37 4.298 10.268s8.844 4.274 10.269 4.298h.028c.528 0 1.027-.208 1.405-.586l2.712-2.712a.999.999 0 0 0 0-1.414l-4-4.001zm-.127 6.712c-1.248-.021-5.518-.356-8.873-3.712-3.366-3.366-3.692-7.651-3.712-8.874L7 4.414 9.586 7 8.293 8.293a1 1 0 0 0-.272.912c.024.115.611 2.842 2.271 4.502s4.387 2.247 4.502 2.271a.991.991 0 0 0 .912-.271L17 14.414 19.586 17l-2.006 2.005z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.icon-email::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4.7-8 5.334L4 8.7V6.297l8 5.333 8-5.333V8.7z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}
