/* Base Styles and Variables */
:root {
    --primary-color: #4285F4;
    --primary-dark: #3367D6;
    --secondary-color: #00A67E;
    --accent-color: #7540EE;
    --light-color: #F5F7FA;
    --dark-color: #333333;
    --text-color: #444444;
    --gray-light: #E1E4E8;
    --gray-medium: #9CA3AF;
    --white: #FFFFFF;
    --black: #000000;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --font-family: 'Roboto', 'Arial', sans-serif;
    --transition-speed: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

button {
    cursor: pointer;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.2rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    padding: 3rem 0;
}

section {
    margin-bottom: 4rem;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo img {
    height: 50px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-content {
    flex: 1;
    padding: 2rem;
}

.hero-content h2 {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.hero-image {
    flex: 1;
    max-height: 500px;
    overflow: hidden;
}

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

/* Countdown Timer */
.countdown {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-md);
    color: var(--white);
}

.countdown h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

#countdown-timer {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

#countdown-timer div {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    min-width: 80px;
}

#countdown-timer span {
    display: block;
}

#countdown-timer span:first-child {
    font-size: 2rem;
    font-weight: 700;
}

#countdown-timer span:last-child {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Blog Posts Grid */
.blog-posts {
    margin-top: 4rem;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.blog-posts h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

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

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 3px;
}

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

.read-more:hover:after {
    width: 100%;
}

/* Newsletter Section */
.newsletter {
    background: var(--primary-dark);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    color: var(--white);
    margin-top: 4rem;
    text-align: center;
}

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

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

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

.newsletter-form button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0 2rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

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

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

.footer-info h3,
.footer-links h3,
.footer-social h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-info p {
    margin-bottom: 1.5rem;
    color: var(--gray-medium);
}

.contacts {
    margin-bottom: 1.5rem;
}

.contacts p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.contacts p svg {
    margin-right: 0.8rem;
    min-width: 16px;
}

.reg-info p {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

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

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--gray-medium);
    transition: color var(--transition-speed);
}

.footer-links ul li a:hover {
    color: var(--white);
}

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

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

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

.social-icons a svg {
    fill: var(--white);
}

.copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.current-page {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

/* About Page Styles */
.about-hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-hero-content {
    flex: 1;
}

.about-hero-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.team-section {
    text-align: center;
    margin-top: 4rem;
}

.team-section h2 {
    margin-bottom: 3rem;
    position: relative;
}

.team-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.team-member {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

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

.team-member p {
    padding: 0 1rem 1.5rem;
    color: var(--text-color);
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mission-section {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-top: 4rem;
    box-shadow: var(--shadow-md);
}

.mission-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.mission-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.value-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-md);
    background-color: var(--light-color);
    transition: transform var(--transition-speed);
}

.value-item:hover {
    transform: translateY(-10px);
}

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

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

.achievements-section {
    margin-top: 4rem;
    text-align: center;
}

.achievements-section h2 {
    margin-bottom: 3rem;
    position: relative;
}

.achievements-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.achievement-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed);
}

.achievement-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

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

.achievement-item p {
    color: var(--text-color);
}

.cta-section {
    margin-top: 4rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: var(--white);
}

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

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
}

/* Contact Page Styles */
.contact-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-hero h2 {
    margin-bottom: 1rem;
}

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

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

.contact-card {
    display: flex;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    margin-right: 1.5rem;
    color: var(--primary-color);
}

.contact-details h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

.contact-details a:hover {
    color: var(--accent-color);
}

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

.contact-form-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

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

.submit-button {
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-speed);
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: var(--primary-dark);
}

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

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

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

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

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-button {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.modal-button:hover {
    background-color: var(--primary-dark);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

.btn-primary {
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

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

.btn-secondary {
    padding: 0.7rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

.cookie-more {
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Blog Post Page Styles */
.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

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

.post-meta {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.post-meta span {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
}

.post-meta svg {
    margin-right: 0.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.post-share {
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.post-share span {
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

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

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

.share-buttons a svg {
    fill: var(--text-color);
    transition: fill var(--transition-speed);
}

.share-buttons a:hover svg {
    fill: var(--white);
}

.related-posts {
    margin-top: 4rem;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.related-posts h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content,
    .hero-image {
        width: 100%;
    }

    .about-hero {
        flex-direction: column;
    }

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

    .contact-info {
        order: 2;
    }

    .contact-form-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        justify-content: center;
    }

    nav ul li {
        margin-left: 0;
    }

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

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

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: var(--border-radius-sm);
        margin-bottom: 1rem;
    }

    .newsletter-form button {
        border-radius: var(--border-radius-sm);
        padding: 0.8rem 1rem;
    }

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

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .posts-grid,
    .team-grid,
    .values-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    #countdown-timer {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    #countdown-timer div {
        min-width: 70px;
    }
}
