/* Base Styles */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #e6f0ff;
    --secondary-color: #ff9900;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #222222;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
    --radius: 6px;
    --container-max-width: 1200px;
    --header-height: 70px;
    --footer-bg: #1a1a1a;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #3a80e9;
    --primary-dark: #2a6ed1;
    --primary-light: #1c3b66;
    --secondary-color: #ffa726;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --text-lighter: #808080;
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --bg-dark: #000000;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Global Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
}

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

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(--primary-dark);
}

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

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

button, .btn {
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

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

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

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

/* Header Styles */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: var(--transition);
}

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

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

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

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--bg-light);
    border-radius: 15px;
    cursor: pointer;
    margin-left: 1rem;
    transition: var(--transition);
}

.light-icon, .dark-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.light-icon {
    left: 8px;
}

.dark-icon {
    right: 8px;
}

.toggle-ball {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

body.dark-mode .toggle-ball {
    left: 35px;
}

/* Hero Section */
.hero {
    background-color: var(--primary-light);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-color);
}

/* Page Header */
.page-header {
    background-color: var(--primary-light);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

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

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

/* Featured Posts Section */
.featured-posts {
    padding: 4rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.posts-grid.full {
    grid-template-columns: 1fr;
    gap: 3rem;
}

.post-card {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.post-image {
    height: 200px;
    overflow: hidden;
}

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

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.post-content p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

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

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

.post-card.small .post-image {
    height: 150px;
}

.post-card.small .post-content {
    padding: 1rem;
}

.post-card.small .post-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-light);
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

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

.newsletter-form button {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Blog Posts Page */
.blog-posts {
    padding: 2rem 0 4rem;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 1.5rem;
}

.post-meta .category {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Single Post Styles */
.blog-post {
    padding: 2rem 0 4rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-featured-image {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 500px;
}

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

.post-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

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

.post-content img {
    margin: 2rem 0;
    border-radius: var(--radius);
}

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

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.post-tags span {
    margin-right: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.post-tags a {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

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

.post-share span {
    margin-right: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.post-share a {
    color: var(--text-light);
    margin-left: 0.5rem;
    transition: var(--transition);
}

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

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.prev-post, .next-post {
    flex: 1;
}

.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
}

.rating {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.rating-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.stars {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

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

/* About Page */
.about-intro {
    padding: 2rem 0 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.team-section, .values-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.team-section h2, .values-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

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

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

.value-card {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

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

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

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

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

/* Timeline Page */
.timeline-intro {
    padding: 2rem 0;
    text-align: center;
}

.timeline-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.timeline-section {
    padding: 2rem 0 4rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-date {
    position: absolute;
    left: 0;
    width: 45%;
    text-align: right;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-right: 2rem;
}

.timeline-content {
    position: absolute;
    right: 0;
    width: 45%;
    padding-left: 2rem;
}

.timeline-content h3 {
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-light);
}

.cta-section {
    background-color: var(--primary-light);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

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

.contact-info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
}

.contact-info h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.info-icon {
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-text h3 {
    margin-bottom: 0.5rem;
}

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

.social-contact {
    margin-top: 2rem;
}

.social-contact h3 {
    margin-bottom: 1rem;
}

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

.social-icons a {
    color: var(--text-light);
    transition: var(--transition);
}

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

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

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

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

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
}

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

.checkbox-group input {
    width: auto;
    margin-right: 0.75rem;
}

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

.map-section {
    padding: 3rem 0;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Thank You Modal */
.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.thank-you-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px var(--shadow-color);
}

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

.modal-icon {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1rem;
}

.close-btn {
    margin-top: 1.5rem;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
}

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

.footer-logo p {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

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

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

.link-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-column ul li {
    margin-bottom: 0.75rem;
}

.link-column ul li a {
    color: #b0b0b0;
    transition: var(--transition);
}

.link-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 -5px 15px var(--shadow-color);
    z-index: 999;
    transition: bottom 0.5s ease;
}

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

.cookie-content {
    padding: 1.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.cookie-btn.customize {
    background-color: var(--warning-color);
    color: var(--text-color);
}

.cookie-btn.reject {
    background-color: var(--danger-color);
    color: white;
}

.cookie-policy-link {
    display: inline-block;
    margin-left: 1rem;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
    
    .social-links {
        grid-column: span 2;
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-dot {
        left: 0;
    }
    
    .timeline-date {
        width: 100%;
        text-align: left;
        left: 30px;
        top: -2rem;
        padding-right: 0;
    }
    
    .timeline-content {
        width: 100%;
        left: 30px;
        padding-left: 0;
        top: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: auto;
    }
    
    header .container {
        flex-direction: column;
        padding: 1rem 20px;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .theme-toggle {
        margin: 1rem 0 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--radius);
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        grid-column: auto;
        justify-content: flex-start;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-tags {
        margin-bottom: 1.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .prev-post, .next-post {
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .cookie-content {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-policy-link {
        margin: 0.75rem 0 0;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}
