/* ========== GENERAL STYLES ========== */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --accent-color: #17a2b8;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --font-primary: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
    --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

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

ul, ol {
    margin: 0 0 1.5rem 1.25rem;
    padding: 0;
}

li {
    margin-bottom: 0.5rem;
}

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

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

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

.btn-secondary:hover {
    background-color: #003d7a;
}

.btn-tertiary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-tertiary:hover {
    background-color: #e9ecef;
    color: #333;
}

/* ========== HEADER STYLES ========== */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

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

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

nav li {
    margin: 0 0 0 20px;
}

nav a {
    font-weight: 600;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 4px;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

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

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

.hero-image {
    flex: 1;
}

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

/* ========== FEATURED POSTS SECTION ========== */
.featured-posts {
    padding: 80px 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.post-card {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

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

.post-content {
    padding: 20px;
}

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

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

.read-more {
    font-weight: 600;
    display: inline-block;
}

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

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

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

/* ========== QUOTE SECTION ========== */
.quote-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-icon {
    color: rgba(0, 123, 255, 0.1);
    margin-bottom: 20px;
}

blockquote {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

.quote-author {
    font-weight: 600;
    color: var(--light-text);
}

/* ========== GLOSSARY SECTION ========== */
.glossary {
    padding: 60px 0;
    background-color: var(--light-bg);
}

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

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

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

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

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

/* ========== FOOTER STYLES ========== */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    color: white;
    margin-bottom: 20px;
}

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

footer li {
    margin-bottom: 10px;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: white;
}

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

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

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

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

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

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #999;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.9);
    color: white;
    padding: 15px 0;
    z-index: 1001;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
}

.cookie-content p {
    margin-bottom: 15px;
}

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

.cookie-link {
    color: var(--accent-color);
    margin-left: 15px;
    display: flex;
    align-items: center;
}

/* ========== BLOG PAGE STYLES ========== */
.page-header {
    background-color: var(--light-bg);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.blog-content {
    padding: 60px 0;
}

.blog-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-image {
    height: 100%;
}

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

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

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget.categories ul {
    list-style: none;
    margin: 0;
}

.sidebar-widget.categories li {
    margin-bottom: 10px;
}

.widget-post {
    margin-bottom: 15px;
}

.widget-post:last-child {
    margin-bottom: 0;
}

.widget-post a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.widget-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.widget-post h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    transition: var(--transition);
}

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

.sidebar-widget.newsletter p {
    margin-bottom: 15px;
}

.newsletter input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.newsletter button {
    width: 100%;
}

/* ========== ABOUT PAGE STYLES ========== */
.about-intro {
    padding: 60px 0;
}

.about-intro .container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

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

.values-list {
    margin-top: 20px;
}

.values-list li {
    margin-bottom: 10px;
}

.team-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

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

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

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

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

.team-member p {
    margin: 0 20px 15px;
}

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

.team-member .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 0 20px;
}

.team-member .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #666;
    transition: var(--transition);
}

.team-member .social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.testimonials {
    padding: 60px 0;
}

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

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.quote-mark {
    color: rgba(0, 123, 255, 0.1);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    text-align: right;
}

/* ========== CONTACT PAGE STYLES ========== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    color: var(--primary-color);
    margin-top: 5px;
}

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

.contact-text p {
    margin-bottom: 0;
}

.social-links-contact {
    margin-top: 20px;
}

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

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

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

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

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

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

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

.form-group input, .form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.required {
    color: var(--error-color);
}

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

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

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

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

.thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.popup-content {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    position: relative;
    max-width: 500px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

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

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

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

/* ========== BLOG POST STYLES ========== */
.blog-post-header {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.blog-post-header .container {
    max-width: 900px;
}

.blog-post-header h1 {
    margin-bottom: 15px;
}

.blog-post-content {
    padding: 60px 0;
}

.blog-post-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
}

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

.post-share {
    margin: 40px 0;
}

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

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

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

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

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

.related-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

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

.related-post h4 {
    padding: 15px;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.about-author {
    text-align: center;
}

.author-info img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-content .container {
        grid-template-columns: 1fr;
    }
    
    .blog-content .container {
        grid-template-columns: 1fr;
    }
    
    .about-intro .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav li {
        margin: 0 10px;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    blockquote {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        margin-top: 10px;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}
