/* Global Styles */
:root {
    --primary-color: #2c6eb5;
    --secondary-color: #3d8bcd;
    --accent-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --link-color: #3498db;
    --gray-color: #95a5a6;
    --success-color: #4CAF50;
    --error-color: #E53935;
    --background-color: #ffffff;
    --border-radius: 6px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
    --footer-bg: #1a2a3a;
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

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

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 20px;
}

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

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

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

.btn-secondary {
    background-color: #7f8c8d;
}

.btn-secondary:hover {
    background-color: #95a5a6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--dark-color);
    background: rgba(44, 110, 181, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
}

blockquote cite {
    display: block;
    font-size: 0.9em;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
}

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

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

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

.logo img {
    max-height: 50px;
    border-radius: 8px;
}

nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav ul li {
    margin: 0 5px;
}

nav ul li a {
    display: block;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(44, 110, 181, 0.1);
}

.font-size button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.font-size button:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 160px 0 100px;
    margin-bottom: 60px;
}

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

.hero h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 30px;
}

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

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

.featured h2, .related-posts h3 {
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

.featured h2:after, .related-posts h3:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

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

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

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

.post-image {
    position: relative;
    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, .post-content h4 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

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

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

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

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

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 20px;
}

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

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

.newsletter input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
}

.newsletter button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 25px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.newsletter button:hover {
    background-color: #e67e22;
}

/* Glossary */
.glossary {
    background-color: #f9f9f9;
    padding: 60px 0;
}

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

.glossary-content {
    max-width: 900px;
    margin: 0 auto;
}

.glossary dt {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.glossary dd {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding-top: 60px;
}

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

.footer-logo img {
    max-width: 160px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.footer-logo p {
    font-size: 0.9rem;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

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

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

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

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

/* Blog Page */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 160px 0 80px;
}

.page-header h1 {
    color: white;
}

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

.blog {
    padding: 60px 0;
}

/* Single Post */
.single-post {
    margin-top: var(--header-height);
}

.post-header {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 150px 0 80px;
    margin-bottom: 50px;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
}

.post-header .container {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.post-header h1 {
    color: white;
    margin-bottom: 20px;
}

.post-body {
    max-width: 800px;
    margin: 0 auto 60px;
}

.post-body p, .post-body ul, .post-body ol {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.post-body h2 {
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.post-body h3 {
    margin-top: 30px;
}

.post-body figure {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-body figcaption {
    background: #f5f5f5;
    padding: 15px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--gray-color);
}

.post-footer {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.post-tags span, .share-post span {
    font-weight: 600;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--dark-color);
}

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

.share-post a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f1f1;
    margin-left: 10px;
}

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

.related-posts {
    margin-bottom: 60px;
}

/* About Page */
.about {
    padding: 60px 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.team-title {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.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: 20px;
}

.about-values {
    margin-top: 60px;
}

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

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

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

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

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

/* Contact Page */
.contact-section {
    padding: 60px 0;
}

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

.contact-form h2, .contact-info h2 {
    margin-bottom: 30px;
}

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 110, 181, 0.2);
}

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

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

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

.info-icon {
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 24px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.social-connect {
    margin-top: 40px;
}

.social-connect h3 {
    margin-bottom: 20px;
}

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

.social-icons a {
    color: var(--dark-color);
    background: #f1f1f1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

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

.map-section {
    padding-bottom: 60px;
}

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

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

/* Cookie Banner */
.cookie-banner {
    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: 9999;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-content p {
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
}

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

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

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    margin-bottom: 20px;
}

.thank-you-message h2 {
    margin-bottom: 15px;
}

.thank-you-message p {
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --container-width: 90%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        height: auto;
    }
    
    header {
        position: relative;
        height: auto;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input[type="email"] {
        border-radius: var(--border-radius);
        margin-bottom: 15px;
    }
    
    .newsletter button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .single-post {
        margin-top: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}
