/* Base Styles & Variables */
:root {
    --primary-color: #3a6ea5;
    --primary-dark: #2c5282;
    --secondary-color: #ff7e5f;
    --secondary-dark: #e07058;
    --accent-color: #6b46c1;
    --light-color: #f8fafc;
    --dark-color: #1a202c;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --success-color: #48bb78;
    --warning-color: #ecc94b;
    --error-color: #f56565;
    --info-color: #4299e1;
    
    --font-family-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-family-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', Times, serif;
    --font-family-mono: 'Fira Code', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    --container-max-width: 1200px;
    --header-height: 70px;
}

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

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

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light-color);
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

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

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

ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-xs);
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* Components */

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

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

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

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

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

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

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

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

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

.btn-decline {
    background-color: transparent;
    border: 1px solid var(--gray-400);
    color: var(--gray-700);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    background-color: var(--light-color);
    transition: border-color var(--transition-fast);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: var(--spacing-sm);
    margin-top: 0.25rem;
}

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

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

/* Layout Components */

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

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

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

.logo img {
    height: 50px;
    width: auto;
    margin-right: var(--spacing-md);
}

.logo h1 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

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

nav ul li {
    margin-bottom: 0;
    margin-left: var(--spacing-lg);
}

nav ul li a {
    font-weight: 600;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    padding: var(--spacing-2xl) 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Posts Grid */
.posts {
    padding: var(--spacing-2xl) 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: var(--spacing-xl);
}

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

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

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

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

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

.post-content {
    padding: var(--spacing-lg);
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.read-more {
    display: inline-block;
    font-weight: 600;
    margin-top: var(--spacing-sm);
    position: relative;
}

.read-more::after {
    content: "→";
    display: inline-block;
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-fast);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Single Post */
.post-single {
    padding: var(--spacing-2xl) 0;
}

.post-header {
    margin-bottom: var(--spacing-xl);
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.post-author, .post-date, .post-category {
    display: flex;
    align-items: center;
}

.post-meta svg {
    width: 20px;
    height: 20px;
    margin-right: var(--spacing-xs);
    color: var(--gray-500);
}

.post-featured-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 500px;
}

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

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

.post-content h2 {
    font-size: 1.75rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.post-content h3 {
    font-size: 1.35rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.post-content ul, .post-content ol {
    margin-bottom: var(--spacing-lg);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: var(--spacing-md) 0;
}

.post-quote {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    border-left: 5px solid var(--primary-color);
    background-color: var(--gray-100);
    border-radius: var(--border-radius-md);
}

.post-quote p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.post-quote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--gray-700);
}

.post-tags {
    margin: var(--spacing-xl) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tags-title {
    font-weight: 600;
    margin-right: var(--spacing-sm);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--gray-200);
    border-radius: var(--border-radius-full);
    margin-right: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

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

.post-share {
    margin: var(--spacing-xl) 0;
    display: flex;
    align-items: center;
}

.post-share span {
    font-weight: 600;
    margin-right: var(--spacing-md);
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: var(--spacing-sm);
    background-color: var(--gray-200);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

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

.post-share svg {
    width: 20px;
    height: 20px;
}

.post-author-bio {
    display: flex;
    align-items: center;
    padding: var(--spacing-xl);
    background-color: var(--gray-100);
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-xl) 0;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: var(--spacing-lg);
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: var(--spacing-xs);
}

.author-social {
    display: flex;
    margin-top: var(--spacing-sm);
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: var(--spacing-xs);
    background-color: var(--gray-300);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

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

.author-social svg {
    width: 15px;
    height: 15px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: var(--spacing-xl) 0;
}

.post-navigation-prev, .post-navigation-next {
    max-width: 45%;
}

.post-navigation span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xs);
}

.post-navigation a {
    font-weight: 600;
}

.related-posts {
    padding: var(--spacing-2xl) 0;
    background-color: var(--gray-100);
}

.related-posts h2 {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: var(--spacing-xl);
}

/* Newsletter Section */
.newsletter {
    padding: var(--spacing-2xl) 0;
    background-color: var(--gray-100);
}

.newsletter .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: var(--spacing-xl);
}

.letter-to-user {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.letter-to-user h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.letter-section {
    padding: var(--spacing-2xl) 0;
}

.subscription-form {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.subscription-form h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

/* About Page */
.about-hero {
    padding: var(--spacing-2xl) 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.about-hero h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.about-mission {
    padding: var(--spacing-2xl) 0;
}

.about-mission .container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-gap: var(--spacing-xl);
    align-items: center;
}

.mission-image {
    text-align: center;
}

.mission-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

.team {
    padding: var(--spacing-2xl) 0;
    background-color: var(--gray-100);
}

.team h3 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

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

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

.team-member:hover {
    transform: translateY(-10px);
}

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

.team-member h3 {
    margin: var(--spacing-md) 0 var(--spacing-xs) 0;
    font-size: 1.25rem;
}

.team-member p {
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.team-member .social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.achievements {
    padding: var(--spacing-2xl) 0;
}

.achievements h3 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: var(--spacing-xl);
}

.achievement-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.achievement-icon {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.achievement-card h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

/* Contact Page */
.contact-hero {
    padding: var(--spacing-2xl) 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.contact-hero h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.contact-info {
    padding: var(--spacing-2xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: var(--spacing-xl);
}

.contact-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-icon {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.contact-card h3 {
    margin-bottom: var(--spacing-md);
}

.contact-form-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--gray-100);
}

.contact-form-section h3 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contact-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: var(--spacing-xl);
}

.contact-form {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: var(--spacing-md);
}

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

.contact-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

.map-section {
    padding: var(--spacing-2xl) 0;
}

.map-section h3 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.map-container {
    height: 400px;
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-200);
}

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

/* Footer */
footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 80px;
    height: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-logo p {
    font-weight: 600;
    color: white;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4,
.footer-social h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

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

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-links ul li a,
.footer-legal ul li a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.footer-contact i {
    margin-right: var(--spacing-sm);
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: var(--spacing-sm);
    background-color: var(--gray-800);
    color: white;
    transition: all var(--transition-fast);
}

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

.social-icons svg {
    width: 20px;
    height: 20px;
}

.copyright {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--gray-800);
    color: white;
    padding: var(--spacing-md);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.cookie-content p {
    margin-bottom: var(--spacing-md);
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.cookie-policy {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cookie-policy a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-policy a:hover {
    color: white;
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

.thank-you-message {
    padding: var(--spacing-xl);
    text-align: center;
}

.thank-you-message svg {
    margin: 0 auto var(--spacing-md);
}

.thank-you-message h3 {
    margin-bottom: var(--spacing-md);
}

.thank-you-message p {
    margin-bottom: var(--spacing-lg);
}

/* Summary Box */
.summary-box {
    background-color: var(--gray-100);
    border-left: 5px solid var(--primary-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    margin: var(--spacing-xl) 0;
}

.summary-box h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.summary-box p {
    margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 1024px) {
    :root {
        --header-height: 60px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .post-header h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .contact-form-container {
        grid-template-columns: 1fr;
    }
    
    .about-mission .container {
        grid-template-columns: 1fr;
    }
    
    .mission-image {
        grid-row: 1;
        margin-bottom: var(--spacing-xl);
    }
    
    .newsletter .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    nav ul li {
        margin-left: var(--spacing-md);
    }
    
    .post-featured-image {
        height: 300px;
    }
    
    .post-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .author-social {
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .post-navigation-prev, .post-navigation-next {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 120px;
    }
    
    header .container {
        flex-direction: column;
        padding-top: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }
    
    .logo {
        margin-bottom: var(--spacing-sm);
    }
    
    .post-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* Icon Styles for Footer */
.icon-location, .icon-phone, .icon-email {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    position: relative;
}

.icon-location::before {
    content: "📍";
}

.icon-phone::before {
    content: "📞";
}

.icon-email::before {
    content: "✉️";
}

/* Animation for Hero Section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2, .hero p {
    animation: fadeInUp 1s ease-out forwards;
}

.hero p {
    animation-delay: 0.3s;
}

/* Animation for Post Cards */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.post-card {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-500);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* Print Styles */
@media print {
    header, footer, .related-posts, .post-navigation, .cookie-banner {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .post-content {
        max-width: 100%;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
}
