/* Base Styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #e74c3c;
    --secondary-dark: #c0392b;
    --tertiary-color: #27ae60;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --background-color: #ffffff;
    --background-light: #f5f5f5;
    --background-dark: #eeeeee;
    --border-color: #dddddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --warning-color: #f39c12;
    --info-color: #3498db;
    --success-color: #2ecc71;
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-headings: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-size-base: 16px;
    --container-width: 1200px;
    --border-radius: 5px;
    --transition-speed: 0.3s;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    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;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.2rem;
}

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

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

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    font-size: 1rem;
}

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

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

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.tertiary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.tertiary-btn:hover {
    background-color: var(--background-dark);
    border-color: var(--text-lighter);
}

/* Reading Progress Bar */
#progress-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
}

#progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* Header & Navigation */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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;
    padding: 0;
}

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

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: var(--background-light);
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

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

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
}

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

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

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

.post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

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

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

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

.post-content {
    padding: 1.5rem;
    background-color: var(--background-color);
}

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

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

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

.post-meta {
    font-size: 0.875rem;
    color: var(--text-lighter);
    margin-bottom: 1rem;
}

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

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

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

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

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding-bottom: 1rem;
}

.testimonial-slider::-webkit-scrollbar {
    height: 8px;
}

.testimonial-slider::-webkit-scrollbar-track {
    background: var(--background-dark);
    border-radius: 10px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.testimonial {
    flex: 0 0 calc(33.333% - 2rem);
    scroll-snap-align: start;
    margin: 0 1rem;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-light);
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    text-align: center;
}

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

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-light);
}

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

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

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

.privacy-note {
    font-size: 0.875rem;
    color: var(--text-lighter);
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-logo p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed) ease;
}

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

.footer-contact h3 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

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

.social-icons {
    display: flex;
    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: 50%;
    margin-right: 0.75rem;
    color: white;
    transition: background-color var(--transition-speed) ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

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

.cookie-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

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

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

.cookie-more-info a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Page Header */
.page-header {
    background-color: var(--background-light);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Content Styles */
.blog-content {
    padding-bottom: 4rem;
}

.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.25rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.category-filter select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: white;
    min-width: 200px;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.blog-image {
    flex: 0 0 300px;
    overflow: hidden;
}

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

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

.blog-details {
    flex: 1;
    padding: 1.5rem 2rem;
}

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

.blog-meta .category {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-details h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-details h2 a {
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
}

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

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

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background-color: white;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all var(--transition-speed) ease;
}

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

.pagination span.current {
    background-color: var(--primary-color);
    color: white;
}

.pagination .next {
    width: auto;
    padding: 0 1.25rem;
}

/* About Page Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-grid.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.about-grid.reverse .about-content {
    direction: ltr;
}

.about-grid.reverse .about-image {
    direction: ltr;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
}

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

.about-mission,
.about-story {
    padding: 2rem 0;
}

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

.team h2,
.values h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding-bottom: 1.5rem;
    text-align: center;
}

.member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.team-member h3 {
    margin: 1.5rem 0 0.25rem;
    font-size: 1.25rem;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member p {
    padding: 0 1.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.values {
    padding: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-speed) ease;
}

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

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
}

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

.cta {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

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

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta .secondary-btn {
    border-color: white;
    color: white;
}

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

/* FAQ Page Styles */
.faq-search {
    margin-bottom: 3rem;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.search-container button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.25rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.faq-category {
    padding: 0.5rem 1.25rem;
    background-color: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.faq-category:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.faq-category.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.faq-content {
    margin-bottom: 4rem;
}

.faq-group {
    margin-bottom: 3rem;
}

.faq-group h2 {
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

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

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    flex: 1;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

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

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

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

.faq-answer ul,
.faq-answer ol {
    margin-bottom: 1rem;
}

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

.faq-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.faq-preview-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.faq-preview-item h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-preview-item p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

/* Contact Page Styles */
.contact-section {
    margin-bottom: 4rem;
}

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

.contact-info {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

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

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

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

.info-icon {
    flex: 0 0 50px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

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

.info-content .note {
    font-size: 0.875rem;
    color: var(--text-lighter);
}

.social-connect {
    margin-top: 2.5rem;
}

.social-connect h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

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

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

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-group.checkbox label a {
    text-decoration: underline;
}

.contact-form button {
    margin-top: 1rem;
}

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

.modal.show {
    display: flex;
}

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

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

.thank-you-message {
    text-align: center;
}

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

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

.thank-you-message p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Blog Post Styles */
.blog-post {
    margin-bottom: 4rem;
}

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

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

.post-header .post-meta .category {
    color: var(--primary-color);
    font-weight: 600;
}

.post-header h1 {
    margin-bottom: 1.5rem;
}

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

.social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    transition: background-color var(--transition-speed) ease;
}

.social-share.facebook {
    background-color: #3b5998;
}

.social-share.twitter {
    background-color: #1da1f2;
}

.social-share.linkedin {
    background-color: #0077b5;
}

.social-share.email {
    background-color: #777;
}

.social-share:hover {
    opacity: 0.9;
    color: white;
}

.featured-image {
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.post-content {
    line-height: 1.7;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1.2rem;
}

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

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

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.table-of-contents {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.table-of-contents h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.3rem;
}

.table-of-contents ul {
    margin-bottom: 0;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.info-box,
.warning-box {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--info-color);
}

.warning-box {
    background-color: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning-color);
}

.info-box h4,
.warning-box h4 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.info-box p:last-child,
.warning-box p:last-child {
    margin-bottom: 0;
}

.state-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.state-table th,
.state-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.state-table th {
    background-color: var(--background-dark);
    font-weight: 600;
}

.disclaimer {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-light);
}

.disclaimer p {
    margin-bottom: 0;
}

.author-bio {
    display: flex;
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
}

.author-image {
    flex: 0 0 100px;
    margin-right: 1.5rem;
}

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

.author-info h3 {
    font-size: 1rem;
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-credentials {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.author-info p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.prev-post span,
.next-post span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
}

.prev-post a,
.next-post a {
    font-weight: 600;
    color: var(--text-color);
}

.prev-post a:hover,
.next-post a:hover {
    color: var(--primary-color);
}

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

.related-posts {
    margin-bottom: 3rem;
}

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

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

.related-post {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed) ease;
}

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

.related-image {
    height: 180px;
    overflow: hidden;
}

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

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

.related-post h4 {
    padding: 1.25rem;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.related-post a {
    color: var(--text-color);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial {
        flex: 0 0 calc(50% - 2rem);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        flex: 0 0 calc(100% - 2rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        flex-direction: column;
    }
    
    .blog-image {
        flex: 0 0 auto;
        height: 200px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: white;
        z-index: 1000;
        transition: right var(--transition-speed) ease;
        box-shadow: -5px 0 15px var(--shadow-color);
        padding: 5rem 2rem 2rem;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 1.5rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .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%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .faq-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-category {
        width: 100%;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .prev-post,
    .next-post {
        max-width: 100%;
        text-align: center;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .author-image img {
        margin: 0 auto;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .blog-filters {
        flex-direction: column;
    }
    
    .faq-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Base Layer ===== */

.layer {
    font-family: "Open Sans", Helvetica, sans-serif;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);

    position: fixed;
    inset: 0;
    z-index: 999;

    background: linear-gradient(135deg, #fa794f 0%, #d03939 100%);
}

.layer a {
    font-weight: 700;
    color: #ffffff;
}

.layer a:hover {
    text-decoration: none;
}

.layer ul,
.layer li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ===== Box Layout ===== */

.box-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}

.box {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* ===== Description Block ===== */

.box-description {
    padding-top: 180px;
    background: url("images/layer-logo.png") no-repeat center top;
    background-size: 360px auto;
}

.box-title {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.4;
}

/* ===== List ===== */

.box-list {
    font-size: 18px;
    display: inline-block;
    margin-top: 10px;
}

.box-list li {
    margin: 8px 0;
    padding-left: 32px;
    background: url("images/layer-list.png") no-repeat left center;
    line-height: 24px;
    text-align: left;
}

/* ===== Buttons ===== */

.box-buttons {
    margin-top: 24px;
}

.box-button {
    display: inline-block;
    padding: 0 28px;
    height: 52px;
    line-height: 52px;

    background-color: #ffffff !important;

    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);

    font-size: 18px;
    font-weight: 700;
    color: #222222 !important;
    text-shadow: none !important;

    box-shadow: none;

    cursor: pointer; /* ← добавлено */

    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.box-button:hover {
    background-color: #f2f2f2 !important;
    border-color: rgba(0,0,0,0.18);
    color: #d03939 !important;
}

/* ===== Modal ===== */

.box-modal {
    width: 400px;
    padding: 24px 0;
    background: #ffffff;
    text-align: center;
    border-radius: 8px;
}

.box-modal-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 30px;
}

.box-modal-coupon {
    margin-top: 12px;
    font-size: 42px;
    font-weight: 600;
    color: #393939;
}

.box-modal-button {
    width: 280px;
    height: 48px;
    margin: 24px auto 0;

    display: block;
    background-color: #ff0000;

    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 48px;
    text-align: center;
    text-decoration: none;

    border-radius: 6px;
    transition: background 0.2s ease;
}

.box-modal-button:hover {
    background-color: #cc0000;
}

.box-modal-button-no {
    background-color: #393939;
}

.box-text-dark {
    color: #393939;
}
