/* Base Styles */
:root {
    --primary-color: #4E6BFF;
    --primary-dark: #3A50CC;
    --primary-light: #7E94FF;
    --secondary-color: #FF9F45;
    --secondary-dark: #E68A3E;
    --secondary-light: #FFB873;
    --dark-color: #333333;
    --medium-color: #666666;
    --light-color: #f5f5f5;
    --text-color: #222222;
    --background-color: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --header-height: 80px;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

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

/* Container */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

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

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0 0 0 2rem;
}

.main-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 0;
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-menu a:hover::after, .main-menu a.active::after {
    width: 100%;
}

.main-menu a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    padding: 8rem 0 5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-header h1 {
    color: white;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
    text-decoration: none;
}

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

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

.btn-text {
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 16px;
}

.btn-text:hover {
    background-color: rgba(78, 107, 255, 0.1);
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Widgets */
.widgets-container {
    margin-top: calc(var(--header-height) + 20px);
    margin-bottom: 2rem;
}

.widget-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.widget {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.clock-widget h3, .quote-widget h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#clock {
    font-size: 2rem;
    font-family: monospace;
    text-align: center;
    color: var(--dark-color);
}

#future-quote {
    font-style: italic;
    color: var(--medium-color);
    margin: 0;
    padding: 0;
    position: relative;
}

#future-quote::before {
    content: '\201C';
    font-size: 3rem;
    position: absolute;
    left: -1.5rem;
    top: -1rem;
    color: var(--primary-light);
    opacity: 0.3;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.posts h2 {
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.posts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.post-card {
    background-color: 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 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 220px;
    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: 1.5rem;
}

.post-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

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

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

.post-meta {
    font-size: 0.9rem;
    color: var(--medium-color);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
}

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

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    position: relative;
}

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

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

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

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

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

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

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

.info-box, .quote-box {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h3, .quote-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.quote-box {
    border-left: 4px solid var(--primary-color);
}

.quote-box blockquote {
    margin: 0;
    font-style: italic;
}

.post-cta {
    background-color: var(--primary-light);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.post-cta h3 {
    color: white;
    margin-top: 0;
}

.post-tags {
    margin: 2rem 0;
}

.post-tags a {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 5px 12px;
    background-color: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--medium-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.post-share {
    margin: 2rem 0;
}

.post-share h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-share {
    display: flex;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--medium-color);
    margin-right: 1rem;
    transition: var(--transition);
}

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

.related-posts {
    margin: 3rem 0;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.related-post {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

.related-post h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

.related-post a {
    color: var(--dark-color);
    text-decoration: none;
}

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

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.about-text h2 {
    margin-top: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-family: var(--font-heading);
    color: var(--medium-color);
}

.team-title {
    text-align: center;
    margin-bottom: 2rem;
}

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

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

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

.team-card h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.team-card p {
    margin: 0.5rem 1rem;
    color: var(--medium-color);
    font-size: 0.9rem;
}

.team-card p:first-of-type {
    font-weight: 600;
    color: var(--primary-color);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--medium-color);
    margin: 0 0.25rem;
    transition: var(--transition);
}

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

.testimonials {
    background-color: var(--light-color);
    padding: 4rem 0;
    margin: 4rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.testimonial-content {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 3rem;
    position: absolute;
    left: 0;
    top: -1rem;
    color: var(--primary-light);
}

.testimonial-content p {
    margin: 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--medium-color);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2, .contact-form-container h2 {
    margin-top: 0;
}

.info-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

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

.info-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-content p {
    margin: 0;
    color: var(--medium-color);
}

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

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

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--medium-color);
    margin-right: 1rem;
    transition: var(--transition);
}

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

.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 107, 255, 0.1);
}

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

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

.form-checkbox label {
    margin: 0;
}

.map-section {
    margin: 4rem 0;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.faq-section {
    background-color: var(--light-color);
    padding: 4rem 0;
}

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

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

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.faq-item h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.faq-item p {
    margin-bottom: 0;
}

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

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    position: relative;
}

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

.modal-icon {
    margin-bottom: 1rem;
}

.modal h2 {
    margin-top: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin: 4rem 0;
}

.cta-section h2 {
    color: white;
    margin-top: 0;
}

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

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

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

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

.footer-logo p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-nav h4, .footer-legal h4, .footer-contact h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-nav ul, .footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li, .footer-legal li {
    margin-bottom: 0.75rem;
}

.footer-nav a, .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover, .footer-legal a:hover {
    color: white;
    text-decoration: none;
}

.footer-contact address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-contact a:hover {
    color: white;
}

.footer-contact .social-icons {
    margin-top: 1.5rem;
}

.footer-contact .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

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

/* Cookie Notice */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: white;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-link {
    color: var(--primary-light);
    text-decoration: underline;
    margin-left: 1rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .posts-grid, .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats, .testimonial-grid, .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .widget-row, .about-content, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content, .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .posts-grid, .related-posts-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .post-meta {
        flex-direction: column;
    }
    
    .post-meta span {
        margin-bottom: 0.5rem;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        margin-top: 1rem;
        flex-wrap: wrap;
    }
}
