/* Base Styles and Reset */
:root {
    --primary-color: #2c4c8c;
    --secondary-color: #5d9bd5;
    --accent-color: #ffb74d;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #f9f9f9;
    --light-gray: #eeeeee;
    --dark-gray: #555555;
    --border-color: #dddddd;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --large-border-radius: 8px;
    --container-width: 1200px;
}

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

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

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

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

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

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

/* Header */
header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

nav ul {
    display: flex;
    margin: 0;
}

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

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

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

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

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

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.hero .btn {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.hero .btn:hover {
    background-color: #ffa726;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--large-border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Recent Posts Section */
.recent-posts {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background-color: #fff;
    border-radius: var(--large-border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 200px;
    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;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 1rem 0;
}

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

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

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

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

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

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

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.footer-links ul li a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

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

.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: var(--transition);
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

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

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.posts-grid .post-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.posts-grid .post-image {
    width: 40%;
    height: auto;
}

.posts-grid .post-content {
    width: 60%;
    padding: 2rem;
}

.posts-grid .post-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.subscribe-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background-color: #fff;
    border-radius: var(--large-border-radius);
    box-shadow: var(--box-shadow);
}

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

.subscribe-box p {
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Blog Post Page */
.blog-post {
    padding: 4rem 0;
}

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

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

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

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

.blog-post .post-content p,
.blog-post .post-content ul,
.blog-post .post-content ol {
    margin-bottom: 1.5rem;
}

.blog-post .post-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-color);
}

.blog-post .post-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

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

.back-to-blog {
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.post-nav-links {
    display: flex;
    gap: 1rem;
}

.prev-post::before {
    content: '←';
    margin-right: 5px;
}

.next-post::after {
    content: '→';
    margin-left: 5px;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.related-posts {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

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

.related-post {
    background-color: #fff;
    border-radius: var(--large-border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

.related-post h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.related-post p {
    padding: 0 1.5rem 1rem;
    font-size: 0.95rem;
}

.related-post .read-more {
    padding: 0 1.5rem 1.5rem;
    display: block;
}

/* About Page Styles */
.about-content {
    padding: 4rem 0;
}

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

.about-text h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.values-list {
    list-style-type: none;
    margin-left: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

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

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

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

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

.team-member {
    background-color: #fff;
    border-radius: var(--large-border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--primary-color);
}

.team-member p {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.stats-section {
    padding: 4rem 0;
}

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

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

.stat-item {
    padding: 2rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: var(--large-border-radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

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

.cta-content .btn {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.cta-content .btn:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* Contact Page Styles */
.contact-content {
    padding: 4rem 0;
}

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

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

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

.info-icon {
    margin-right: 1.5rem;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

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

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

.social-media h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

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

.social-icon:hover svg path {
    fill: var(--light-text);
}

.contact-form-container {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--large-border-radius);
    box-shadow: var(--box-shadow);
}

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

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

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

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

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

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 76, 140, 0.2);
}

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

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

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

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

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

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

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

.cookie-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 0.9rem;
}

/* 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: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .about-content .container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        grid-row: 1;
        margin-bottom: 2rem;
    }
    
    .posts-grid .post-card {
        flex-direction: column;
    }
    
    .posts-grid .post-image,
    .posts-grid .post-content {
        width: 100%;
    }
    
    .posts-grid .post-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 1rem 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .post-grid,
    .team-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-share {
        flex-wrap: wrap;
    }
    
    .blog-post h1 {
        font-size: 1.8rem;
    }
}
