/* Base Styles & Variables */
:root {
    --primary-color: #3a6ea5;
    --secondary-color: #004e98;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --light-bg: #f7f9fc;
    --border-color: #eaeaea;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --border-radius: 6px;
    --container-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

.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;
    transform: translateY(-3px);
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo {
    flex-shrink: 0;
}

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

.navbar {
    display: flex;
    gap: 25px;
}

.navbar a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.navbar a:hover, .navbar a.active {
    color: var(--primary-color);
}

.navbar a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px 5px 0 0;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 80px 0;
    background-color: var(--light-bg);
    overflow: hidden;
    position: relative;
}

.hero-content {
    flex: 1;
    padding: 0 20px;
    max-width: 600px;
    z-index: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.hero-image img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Featured Posts Section */
.featured-posts {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: var(--container-max-width);
    padding: 0 20px;
}

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

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

.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: 25px;
}

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

.post-content p {
    color: var(--light-text);
    margin-bottom: 20px;
}

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

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

.center-btn {
    text-align: center;
    margin-top: 50px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: var(--container-max-width);
    padding: 0 20px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.stars {
    margin-bottom: 15px;
    display: flex;
    gap: 2px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

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

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    color: white;
    margin-bottom: 20px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.newsletter-form button:hover {
    background-color: #e55c5c;
}

/* Footer */
footer {
    background-color: #1c2e4a;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin: 0 auto;
    max-width: var(--container-max-width);
    padding: 0 20px 40px;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact svg {
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

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

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content {
    padding: 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

.cookie-btn.decline {
    background-color: transparent;
    color: var(--text-color);
}

.cookie-more {
    text-decoration: underline;
    color: var(--primary-color);
    margin-left: 10px;
}

/* Blog Page Styles */
.blog-header {
    background-color: var(--light-bg);
    padding: 80px 0 40px;
    text-align: center;
}

.blog-header h1 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.blog-filters {
    padding: 20px 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 0.9rem;
}

.search-group {
    display: flex;
    max-width: 300px;
}

.search-group input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.9rem;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    color: white;
}

.blog-posts {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

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

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--text-color);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
    gap: 5px;
}

/* About Page Styles */
.about-hero {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

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

.about-hero h1 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--light-text);
}

.about-mission {
    padding: 80px 0;
}

.about-mission .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.mission-content {
    flex: 1;
}

.mission-content h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.mission-image {
    flex: 1;
}

.mission-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.team-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.team-section h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--light-text);
}

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

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

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

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

.team-member h3 {
    margin-top: 20px;
    font-size: 1.3rem;
}

.team-member p {
    padding: 0 20px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 20px;
}

.member-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-color);
    transition: var(--transition);
}

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

.values-section {
    padding: 80px 0;
}

.values-section h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

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

.value-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

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

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(58, 110, 165, 0.1);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.methodology {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.methodology h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.methodology-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.methodology-text {
    flex: 1;
}

.methodology-text ol {
    padding-left: 20px;
    margin-top: 20px;
}

.methodology-text ol li {
    margin-bottom: 15px;
}

.methodology-image {
    flex: 1;
}

.methodology-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.cta-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

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

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

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

.cta-content .btn-primary:hover {
    background-color: #f0f0f0;
}

/* Contact Page Styles */
.contact-header {
    background-color: var(--light-bg);
    padding: 80px 0 40px;
    text-align: center;
}

.contact-header h1 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-content {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(58, 110, 165, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-content p {
    margin-bottom: 5px;
    color: var(--light-text);
}

.contact-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

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

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

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

.contact-form-container h2 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 5px;
}

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

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

.form-group input,
.form-group select,
.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 select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

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

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

.contact-form button {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.map-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

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

.faq-section {
    padding: 60px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--light-bg);
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

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

.modal.show {
    display: flex;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-text);
}

.modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #4CAF50;
}

.modal-content p {
    margin-bottom: 25px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-image {
        order: -1;
        margin-bottom: 40px;
    }

    .about-mission .container {
        flex-direction: column;
    }

    .mission-image {
        order: -1;
        margin-bottom: 30px;
    }

    .methodology-content {
        flex-direction: column;
    }

    .methodology-image {
        order: -1;
        margin-bottom: 30px;
    }

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

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .navbar.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1000;
    }

    .post-grid, .testimonial-grid, .team-grid, .values-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-group {
        max-width: 100%;
    }

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

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

    .newsletter-form input {
        margin-bottom: 10px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    h2 {
        font-size: 1.7rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Single Post Page Styles */
.post-header {
    background-color: var(--light-bg);
    padding: 80px 0 40px;
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-header h1 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: var(--light-text);
    margin-bottom: 30px;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

.post-content-section {
    margin-bottom: 40px;
}

.post-content-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.post-content-section p {
    margin-bottom: 20px;
}

.post-content-section ul, .post-content-section ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.post-content-section ul li, .post-content-section ol li {
    margin-bottom: 10px;
}

.post-image-section {
    margin: 40px 0;
}

.post-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.post-image-grid img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.post-table th {
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 12px 15px;
}

.post-table tr {
    border-bottom: 1px solid var(--border-color);
}

.post-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.post-table td {
    padding: 12px 15px;
}

.post-conclusion {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.post-conclusion h2 {
    margin-bottom: 20px;
}

.post-conclusion p:last-child {
    margin-bottom: 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.post-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.post-author-info h3 {
    margin-bottom: 10px;
}

.post-author-info p {
    color: var(--light-text);
}

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

.post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.post-navigation .prev-post {
    flex-direction: row-reverse;
}

.related-posts {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
