/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --background-color: #ffffff;
    --background-secondary: #f9fafb;
    --background-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --header-height: 80px;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    
    /* Dark Theme Variables */
    --dark-background: #1a1a2e;
    --dark-background-secondary: #16213e;
    --dark-background-tertiary: #0f3460;
    --dark-text-color: #e5e7eb;
    --dark-text-light: #9ca3af;
    --dark-border-color: #374151;
    --dark-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Dark Theme */
.dark-theme {
    --background-color: var(--dark-background);
    --background-secondary: var(--dark-background-secondary);
    --background-tertiary: var(--dark-background-tertiary);
    --text-color: var(--dark-text-color);
    --text-light: var(--dark-text-light);
    --border-color: var(--dark-border-color);
    --card-shadow: var(--dark-card-shadow);
}

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

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--background-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color var(--transition-speed);
}

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

.logo {
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-color);
    background-color: var(--background-tertiary);
    transition: all var(--transition-speed);
}

.theme-toggle:hover {
    background-color: var(--border-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.dark-theme .theme-toggle svg {
    stroke: var(--dark-text-color);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

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

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

.chart-container {
    max-width: 800px;
    margin: 2rem auto 0;
    height: 400px;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

/* Blog Grid */
.blog {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

.blog-card {
    background-color: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: var(--primary-color);
    color: white;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Page Header */
.page-header {
    padding: 4rem 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

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

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

.footer-info,
.footer-links,
.footer-contact,
.footer-social {
    padding: 0 1rem;
}

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

.footer-logo img {
    height: 100%;
    width: auto;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer a {
    color: var(--text-color);
    transition: color var(--transition-speed);
}

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

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

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

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

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

/* About Page */
.about-section {
    padding: 5rem 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.about-text ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

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

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

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

.team-card img {
    width: 100%;
    height: auto;
}

.team-card h3 {
    margin: 1rem 0 0.25rem;
}

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

.cta-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Contact Page */
.contact-section {
    padding: 5rem 0;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.contact-text h4 {
    margin: 0 0 0.5rem;
}

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

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

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

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

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

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

.map-container iframe {
    border: 0;
}

/* Post Styles */
.post {
    padding: 5rem 0;
}

.post-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
}

.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    max-height: 500px;
}

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

.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

.post-content ol {
    list-style: decimal;
}

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

.post-content strong {
    font-weight: 600;
}

.post-content em {
    font-style: italic;
}

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

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--background-tertiary);
    border-radius: 50px;
    font-size: 0.875rem;
    transition: background-color var(--transition-speed);
}

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

.post-share {
    margin: 4rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.post-navigation-prev,
.post-navigation-next {
    display: flex;
}

.post-navigation-prev a,
.post-navigation-next a {
    display: block;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: var(--background-secondary);
    transition: all var(--transition-speed);
    color: var(--text-color);
}

.post-navigation-prev a:hover,
.post-navigation-next a:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-navigation-prev span,
.post-navigation-next span {
    display: block;
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.post-navigation-prev h4,
.post-navigation-next h4 {
    margin: 0;
}

/* Code Block */
.code-block {
    margin: 2rem 0;
    background-color: var(--background-tertiary);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
}

.code-block pre {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 90%;
    width: 800px;
    margin: 0 auto;
    z-index: 9999;
    padding: 1.5rem;
    transform: translateY(150%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    text-align: center;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}

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

.btn-accept:hover {
    background-color: var(--success-color);
    opacity: 0.9;
}

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

.btn-settings:hover {
    background-color: var(--warning-color);
    opacity: 0.9;
}

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

.btn-reject:hover {
    background-color: var(--error-color);
    opacity: 0.9;
}

.cookie-policy {
    display: inline-block;
    font-size: 0.875rem;
    text-decoration: underline;
}

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

.modal.visible {
    display: flex;
}

.modal-content {
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    max-width: 90%;
    width: 500px;
    position: relative;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

.thank-you-message svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    stroke: var(--success-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding: 1rem 0;
    }

    .header {
        height: auto;
    }

    .nav-list {
        margin-top: 1rem;
    }

    .theme-toggle {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .cookie-banner {
        bottom: 0;
        border-radius: 10px 10px 0 0;
    }
}
