/* 
   Global Economic News - Main Stylesheet
   A modern, clean design for an economic news blog
*/

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --background-color: #fff;
    --background-alt: #f9f9f9;
    --border-color: #eaeaea;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

html {
    font-size: 62.5%; /* 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

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

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

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

blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--secondary-color);
    background-color: var(--background-alt);
    font-style: italic;
}

blockquote p:last-child {
    margin-bottom: 0;
}

cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--text-light);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1.5rem;
}

section {
    padding: 8rem 0;
}

.page-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8rem 0;
    text-align: center;
    margin-bottom: 6rem;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 2rem;
    opacity: 0.9;
    max-width: 60rem;
    margin: 0 auto;
}

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

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

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

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

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

nav li {
    margin-left: 3rem;
}

nav a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 5.2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 2.2rem;
    opacity: 0.9;
    max-width: 70rem;
    margin: 0 auto 3rem;
}

/* What You'll Learn Section */
.what-you-learn {
    background-color: var(--background-alt);
    text-align: center;
}

.what-you-learn h2 {
    margin-bottom: 5rem;
}

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

.learn-item {
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

.learn-item:hover {
    transform: translateY(-5px);
}

.learn-item svg {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    width: 48px;
    height: 48px;
}

.learn-item h3 {
    margin-bottom: 1.5rem;
}

.learn-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
}

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

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

.btn-reject {
    background-color: #6c757d;
}

/* Featured Posts Section */
.featured-posts {
    padding: 8rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 5rem;
}

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

.post-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

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

.post-card:hover {
    transform: translateY(-5px);
}

.post-card-large {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
    background-color: var(--background-color);
}

@media (min-width: 768px) {
    .post-card-large {
        grid-template-columns: 30rem 1fr;
    }
}

.post-card-large:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 25rem;
    overflow: hidden;
}

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

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

.post-content {
    padding: 2.5rem;
}

.post-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.post-category {
    color: var(--secondary-color);
    font-weight: 600;
}

.post-card .post-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-card-large .post-content h2 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

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

.read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform var(--transition-speed);
}

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

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

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8rem 0;
    text-align: center;
}

.newsletter h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.newsletter p {
    opacity: 0.9;
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

.newsletter-form {
    display: flex;
    max-width: 60rem;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1.6rem;
    outline: none;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 1.5rem 3rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

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

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

.footer-links h3, .footer-contact h3, .footer-social h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-main);
}

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

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

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

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    opacity: 0.8;
}

.footer-contact svg {
    margin-right: 1rem;
}

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

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

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

.social-icons svg {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 1.4rem;
    opacity: 0.7;
}

/* Blog Page Styles */
.blog-filter {
    margin-bottom: 5rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 40rem;
}

.search-box input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px 0 0 50px;
    font-size: 1.5rem;
    outline: none;
}

.search-box button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0 2rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.search-box button:hover {
    background-color: var(--primary-color);
}

.category-filter select {
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1.5rem;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    cursor: pointer;
}

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

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.pagination a {
    background-color: var(--background-alt);
    color: var(--text-color);
}

.pagination a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.pagination span.current {
    background-color: var(--secondary-color);
    color: #fff;
}

.pagination a.next, .pagination a.prev {
    width: auto;
    padding: 0 2rem;
    border-radius: 50px;
}

/* Single Post Styles */
.single-post {
    margin-bottom: 8rem;
}

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

.post-header .post-meta {
    justify-content: center;
}

.post-header h1 {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

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

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

.post-intro {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.5;
}

.post-content h2 {
    margin-top: 4rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 3rem;
}

.post-content li {
    margin-bottom: 1rem;
}

.post-image-secondary {
    margin: 3rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.post-image-secondary img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 1.5rem;
    background-color: var(--background-alt);
    text-align: center;
    font-size: 1.4rem;
    color: var(--text-light);
    font-style: italic;
}

.post-quote {
    margin: 4rem 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.post-tags span {
    font-weight: 600;
    color: var(--text-light);
}

.post-tags a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--background-alt);
    border-radius: 50px;
    font-size: 1.4rem;
    color: var(--text-color);
    transition: all var(--transition-speed);
}

.post-tags a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 5rem 0;
    padding: 3rem;
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
}

.author-image {
    flex-shrink: 0;
}

.author-image img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}

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

.author-info p {
    margin-bottom: 0;
    color: var(--text-light);
}

.post-navigation {
    margin: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
}

.post-nav-prev, .post-nav-next {
    max-width: 48%;
}

.post-nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
    font-size: 1.8rem;
}

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

.related-posts h2 {
    margin-bottom: 4rem;
    text-align: center;
}

/* About Page Styles */
.about-mission {
    padding-bottom: 8rem;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr 1fr;
    }
}

.mission-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.mission-text h2 {
    margin-bottom: 3rem;
}

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

.about-values {
    background-color: var(--background-alt);
    text-align: center;
}

.about-values h2 {
    margin-bottom: 5rem;
}

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

.value-item {
    background-color: var(--background-color);
    padding: 4rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.value-item svg {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

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

.value-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

.team-section {
    padding: 8rem 0;
    text-align: center;
}

.team-intro {
    max-width: 70rem;
    margin: 0 auto 5rem;
    font-size: 1.8rem;
    color: var(--text-light);
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

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

.team-member p:last-of-type {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    background-color: var(--background-alt);
    border-radius: 50%;
    transition: all var(--transition-speed);
}

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

.member-social a:hover svg {
    color: #fff;
}

.member-social svg {
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

.about-stats {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.about-stats h2 {
    color: #fff;
    margin-bottom: 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 4rem;
}

.stat-number {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1.8rem;
    opacity: 0.9;
}

.cta-section {
    background-color: var(--background-alt);
    text-align: center;
}

/* Contact Page Styles */
.contact-section {
    padding-bottom: 8rem;
}

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

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h2 {
    margin-bottom: 3rem;
}

.contact-info > p {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 4rem;
}

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

.info-item svg {
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.info-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}

.info-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

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

.social-media h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-main);
}

.contact-form-container h2 {
    margin-bottom: 3rem;
}

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

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

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

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-container input {
    width: auto;
    margin-top: 0.3rem;
}

.form-submit {
    grid-column: span 2;
    margin-top: 2rem;
}

.map-section {
    background-color: var(--background-alt);
    padding-bottom: 8rem;
    text-align: center;
}

.map-section h2 {
    margin-bottom: 4rem;
}

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

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.faq-section {
    padding-bottom: 8rem;
}

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

.faq-container {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    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: 2rem;
    background-color: var(--background-alt);
    cursor: pointer;
}

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

.faq-icon {
    transition: transform var(--transition-speed);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.faq-item.active .faq-answer {
    padding: 2rem;
    max-height: 500px;
}

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

.cookie-content {
    padding: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

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

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

.cookie-more {
    font-size: 1.4rem;
    margin-bottom: 0;
}

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

/* 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: var(--background-color);
    border-radius: var(--border-radius);
    padding: 4rem;
    max-width: 50rem;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--card-shadow);
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.8rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-lighter);
    transition: color var(--transition-speed);
}

.close-modal:hover {
    color: var(--accent-color);
}

.success-icon {
    margin-bottom: 2rem;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

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

.close-btn {
    min-width: 15rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    html {
        font-size: 58%;
    }

    .post-grid {
        grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    }
}

@media (max-width: 767px) {
    html {
        font-size: 55%;
    }

    section {
        padding: 6rem 0;
    }

    header {
        height: auto;
        padding: 2rem 0;
    }

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

    nav ul {
        justify-content: center;
    }

    nav li {
        margin: 0 1.5rem;
    }

    .hero {
        padding: 8rem 0;
    }

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

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

    .newsletter-form input,
    .newsletter-form button {
        border-radius: 50px;
    }

    .newsletter-form input {
        margin-bottom: 1.5rem;
    }

    .post-card-large {
        grid-template-columns: 1fr;
    }

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

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

    .form-submit {
        grid-column: 1;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

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

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

    .filter-options {
        flex-direction: column;
    }

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

    .post-nav-links {
        flex-direction: column;
        gap: 3rem;
    }

    .post-nav-prev, .post-nav-next {
        max-width: 100%;
        text-align: center;
    }

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

    .cookie-buttons button {
        width: 100%;
    }
}
