/* 
* Финансовый фундамент - Стили сайта
* Тема: Финансы и личное развитие
* Версия: 1.0
*/

/* ================ БАЗОВЫЕ НАСТРОЙКИ ================ */
:root {
    /* Основная цветовая палитра */
    --primary-color: #3a7bd5;
    --primary-dark: #2a5ea0;
    --primary-light: #82a9e5;
    --secondary-color: #f9c356;
    --secondary-dark: #e6a726;
    --secondary-light: #ffd583;
    
    /* Нейтральные цвета */
    --dark: #1f2937;
    --gray-dark: #4b5563;
    --gray: #6b7280;
    --gray-light: #d1d5db;
    --light: #f9fafb;
    
    /* Дополнительные цвета */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Размеры шрифтов */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Шрифты */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Закругления */
    --border-radius-sm: 0.125rem;
    --border-radius: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-2xl: 1rem;
    --border-radius-full: 9999px;
    
    /* Transition */
    --transition: all 0.3s ease;
    
    /* Контейнер */
    --container-width: 1200px;
    --container-padding: 1.5rem;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: 1rem;
}

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

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

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

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(58, 123, 213, 0.05);
    font-style: italic;
    position: relative;
}

blockquote p {
    margin-bottom: 0;
    font-size: var(--font-size-lg);
    color: var(--gray-dark);
}

blockquote::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: 0.5rem;
    color: var(--primary-light);
    opacity: 0.2;
}

figure {
    margin: 2rem 0;
}

figcaption {
    font-size: var(--font-size-sm);
    color: var(--gray);
    text-align: center;
    margin-top: 0.5rem;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ================ HEADER И НАВИГАЦИЯ ================ */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark);
    font-weight: 700;
    font-size: var(--font-size-xl);
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: var(--border-radius);
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin-left: 1.5rem;
}

.main-menu a {
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.main-menu a:hover, 
.main-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: var(--font-size-xl);
    color: var(--dark);
    cursor: pointer;
}

/* ================ КНОПКИ ================ */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

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

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

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

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

.btn-tertiary {
    background-color: var(--light);
    border-color: var(--gray-light);
    color: var(--gray-dark);
}

.btn-tertiary:hover {
    background-color: var(--gray-light);
    color: var(--dark);
}

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

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

/* ================ HERO СЕКЦИЯ ================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png');
    opacity: 0.1;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: var(--font-size-5xl);
    margin-bottom: 0.5rem;
    color: white;
}

.hero h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 400;
}

.hero p {
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
    max-width: 550px;
}

/* ================ СЕКЦИЯ FEATURED POSTS ================ */
.featured-posts {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

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

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

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

.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: 1.5rem;
}

.post-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.75rem;
}

.post-content h3 a {
    color: var(--dark);
    transition: var(--transition);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--gray);
    margin-bottom: 1rem;
}

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

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

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

/* ================ СЕКЦИЯ NEWSLETTER ================ */
.newsletter {
    background-color: var(--primary-dark);
    color: white;
    padding: 4rem 0;
}

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

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

.newsletter p {
    margin-bottom: 2rem;
    font-size: var(--font-size-lg);
}

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

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

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 1.5rem;
}

/* ================ СЕКЦИЯ ABOUT PREVIEW ================ */
.about-preview {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

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

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

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

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

/* ================ FOOTER ================ */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.footer-logo p {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.footer-logo .tagline {
    font-size: var(--font-size-sm);
    color: var(--gray-light);
    font-weight: normal;
}

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

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

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

.footer-links a {
    color: var(--gray-light);
    transition: var(--transition);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--gray-light);
}

.footer-contact i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-size-sm);
    color: var(--gray-light);
}

/* ================ PAGE HEADER ================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png');
    opacity: 0.1;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
}

.page-header p {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ================ BLOG PAGE ================ */
.blog-section {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.blog-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    height: 100%;
    min-height: 300px;
}

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

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.blog-meta .date,
.blog-meta .category {
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-right: 0.5rem;
}

.blog-card h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
}

.blog-card h2 a {
    color: var(--dark);
    transition: var(--transition);
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.blog-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ================ ABOUT PAGE ================ */
.about-section {
    padding: 5rem 0;
}

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    align-items: center;
}

.about-story .about-image {
    order: -1;
}

.mission-values {
    margin-bottom: 5rem;
}

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

.mission-values h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.mission-values-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.mission-box {
    background-color: var(--primary-color);
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.mission-box .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.mission-box h3 {
    color: white;
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
}

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

.value-box {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.value-box .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-box h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.75rem;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

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

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

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

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

.member-photo {
    height: 280px;
    overflow: hidden;
}

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

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.team-member h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0 1.5rem;
}

.member-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.member-bio {
    color: var(--gray);
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

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

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius-full);
    color: var(--primary-color);
    transition: var(--transition);
}

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

/* ================ CONTACT PAGE ================ */
.contact-section {
    padding: 5rem 0;
}

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

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

.contact-info > p {
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

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

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(58, 123, 213, 0.1);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-lg);
}

.contact-text p {
    color: var(--gray);
    margin-bottom: 0.25rem;
}

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

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 0.75rem;
}

.map-section {
    padding: 3rem 0 5rem;
}

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

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

.faq-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    margin: 0;
    font-size: var(--font-size-lg);
}

.faq-question i {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    transition: var(--transition);
}

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

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

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 300px;
}

/* ================ POST PAGE ================ */
.post-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png');
    opacity: 0.1;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.post-category {
    background-color: var(--secondary-color);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
}

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

.post-header h1 {
    color: white;
    max-width: 900px;
    position: relative;
}

.post-content {
    padding: 5rem 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

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

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

.post-text {
    font-size: var(--font-size-lg);
    color: var(--gray-dark);
}

.post-text h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-2xl);
}

.post-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: var(--font-size-xl);
}

.post-text ul,
.post-text ol {
    margin-bottom: 1.5rem;
}

.post-text li {
    margin-bottom: 0.5rem;
}

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

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.post-tags span {
    font-weight: 500;
    color: var(--gray-dark);
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(58, 123, 213, 0.1);
    color: var(--primary-color);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

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

.post-share {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.post-share span {
    margin-right: 1rem;
    font-weight: 500;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 0.75rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius-full);
    color: var(--gray-dark);
    transition: var(--transition);
}

.post-share a:hover {
    transform: translateY(-3px);
}

.post-share a:nth-child(2):hover {
    background-color: #1877f2;
    color: white;
}

.post-share a:nth-child(3):hover {
    background-color: #1da1f2;
    color: white;
}

.post-share a:nth-child(4):hover {
    background-color: #0088cc;
    color: white;
}

.post-share a:nth-child(5):hover {
    background-color: #25d366;
    color: white;
}

.post-author-box {
    display: flex;
    gap: 2rem;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
}

.author-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 0.5rem;
}

.author-bio {
    color: var(--gray);
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 0.75rem;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: var(--border-radius-full);
    color: var(--primary-color);
    transition: var(--transition);
}

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

.related-posts h3 {
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.related-post h4 {
    padding: 1rem;
    font-size: var(--font-size-base);
    color: var(--dark);
    transition: var(--transition);
}

.related-post:hover h4 {
    color: var(--primary-color);
}

.post-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    font-size: var(--font-size-lg);
    position: relative;
    padding-bottom: 0.75rem;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.author-widget .author-card {
    text-align: center;
}

.author-widget img {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-full);
    margin: 0 auto 1rem;
}

.author-widget h4 {
    margin-bottom: 0.25rem;
}

.author-widget p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.popular-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts li {
    margin-bottom: 1.5rem;
}

.popular-posts li:last-child {
    margin-bottom: 0;
}

.popular-posts a {
    display: flex;
    gap: 1rem;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.post-info h4 {
    font-size: var(--font-size-sm);
    margin-bottom: 0.5rem;
    color: var(--dark);
    transition: var(--transition);
}

.post-info .post-date {
    font-size: var(--font-size-xs);
    color: var(--gray);
}

.popular-posts a:hover h4 {
    color: var(--primary-color);
}

.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    margin-bottom: 0.75rem;
}

.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-dark);
    transition: var(--transition);
}

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

.categories span {
    font-size: var(--font-size-xs);
    background-color: rgba(58, 123, 213, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-full);
}

.subscribe p {
    margin-bottom: 1.5rem;
}

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

.subscribe input {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
}

.subscribe input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ================ POLICY PAGES ================ */
.policy-content {
    padding: 5rem 0;
}

.policy-introduction {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.policy-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-light);
}

.policy-section h3 {
    color: var(--dark);
    margin: 2rem 0 1rem;
    font-size: var(--font-size-lg);
}

.contact-details {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

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

.contact-details p:last-child {
    margin-bottom: 0;
}

.refund-steps {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.refund-steps h3 {
    margin-top: 0;
}

.refund-steps ol {
    margin-bottom: 0;
}

.refund-steps li {
    margin-bottom: 1rem;
}

.refund-steps li:last-child {
    margin-bottom: 0;
}

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

.modal.show {
    display: flex;
}

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.thank-you-message {
    text-align: center;
    padding: 3rem 2rem;
}

.thank-you-message i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.thank-you-message h2 {
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 2rem;
}

/* ================ COOKIE BANNER ================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 1.5rem 0;
    display: none;
}

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

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

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

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

/* ================ RESPONSIVE STYLES ================ */
@media (max-width: 1200px) {
    :root {
        --container-width: 1000px;
    }
}

@media (max-width: 991px) {
    :root {
        --container-width: 100%;
    }
    
    .hero h1 {
        font-size: var(--font-size-4xl);
    }
    
    .about-content,
    .contact-content,
    .about-story,
    .mission-values-content {
        grid-template-columns: 1fr;
    }
    
    .about-story .about-image {
        order: 0;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.5rem;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .main-menu.show {
        display: flex;
    }
    
    .main-menu li {
        margin: 0;
    }
    
    .main-menu a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .blog-card {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        min-height: 200px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .post-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .cookie-buttons button {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    :root {
        --container-padding: 1rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
    }
    
    .post-meta {
        gap: 1rem;
    }
    
    .post-text {
        font-size: var(--font-size-base);
    }
}
