/* 
==============================================
FitLife Blog - Main Stylesheet
==============================================
*/

/* Table of Contents
1. Base Styles
2. Typography
3. Layout
4. Header & Navigation
5. Hero Section
6. Features
7. Latest Posts
8. Timeline
9. Testimonials
10. Newsletter
11. Footer
12. Blog List
13. Blog Post
14. About Page
15. Contact Page
16. Forms
17. Buttons
18. Cookie Consent
19. Modal
20. Utility Classes
21. Media Queries
*/

/* ==============================================
   1. Base Styles
   ============================================== */
:root {
    --primary-color: #4e67eb;
    --secondary-color: #2cd4d9;
    --tertiary-color: #ff6b6b;
    --dark-color: #303342;
    --light-color: #f7f9fc;
    --text-color: #4a4a4a;
    --muted-color: #888;
    --border-color: #e1e5ee;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--tertiary-color), var(--primary-color));
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --container-max-width: 1200px;
    --container-padding: 0 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* ==============================================
   2. Typography
   ============================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* ==============================================
   3. Layout
   ============================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: 5rem 0;
}

.page-banner {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.page-banner h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-banner p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

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

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

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

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

nav ul {
    display: flex;
}

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

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

nav ul li a i {
    margin-right: 5px;
    color: var(--primary-color);
}

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

/* ==============================================
   5. Hero Section
   ============================================== */
.hero {
    background-color: white;
    padding: 5rem 0;
}

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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.hero-image {
    position: relative;
}

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

.hero-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    top: -20px;
    right: -20px;
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.3;
}

/* ==============================================
   6. Features
   ============================================== */
.features {
    background-color: var(--light-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

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

.feature-card p {
    color: var(--muted-color);
    margin-bottom: 0;
}

/* ==============================================
   7. Latest Posts
   ============================================== */
.latest-posts {
    background-color: white;
}

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

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

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

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.post-content p {
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
}

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

.center {
    text-align: center;
}

/* ==============================================
   8. Timeline
   ============================================== */
.timeline {
    background-color: var(--light-color);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 40px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    left: 50%;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    right: -8px;
    top: 10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -8px;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 350px;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--muted-color);
}

/* ==============================================
   9. Testimonials
   ============================================== */
.testimonials {
    background-color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.testimonial-image {
    flex: 0 0 120px;
    margin-right: 2rem;
}

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

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-content h4 {
    margin-bottom: 0.25rem;
}

.testimonial-content span {
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* ==============================================
   10. Newsletter
   ============================================== */
.newsletter {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
}

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

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

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

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

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

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

.footer-logo img {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

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

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

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==============================================
   12. Blog List
   ============================================== */
.blog-content {
    padding: 5rem 0;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-right: none;
    border-top-left-radius: var(--border-radius-sm);
    border-bottom-left-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

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

.filter-categories {
    display: flex;
    align-items: center;
}

.filter-categories span {
    margin-right: 1rem;
    font-weight: 600;
}

.filter-categories ul {
    display: flex;
    flex-wrap: wrap;
}

.filter-categories ul li {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.filter-categories ul li a {
    color: var(--muted-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.filter-categories ul li a:hover,
.filter-categories ul li a.active {
    color: var(--primary-color);
    background-color: rgba(78, 103, 235, 0.1);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

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

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

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

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

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

.blog-details {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

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

.blog-details .date {
    color: var(--muted-color);
}

.blog-text {
    padding: 1.5rem;
}

.blog-text h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-text p {
    color: var(--muted-color);
    margin-bottom: 1.5rem;
}

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

.pagination a,
.pagination span {
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--text-color);
    font-weight: 500;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

/* ==============================================
   13. Blog Post
   ============================================== */
.blog-post {
    padding: 5rem 0;
    background-color: var(--light-color);
}

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

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

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta span i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

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

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

.post-content {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.75rem;
}

.post-content h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

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

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.info-box,
.warning-box,
.tip-box,
.quote-box,
.example-box,
.practice-box,
.science-box {
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin: 2rem 0;
}

.info-box {
    background-color: rgba(78, 103, 235, 0.1);
    border-left: 4px solid var(--primary-color);
}

.warning-box {
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--tertiary-color);
}

.tip-box {
    background-color: rgba(44, 212, 217, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.quote-box {
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--dark-color);
    font-style: italic;
}

.example-box {
    background-color: rgba(255, 165, 0, 0.1);
    border-left: 4px solid orange;
}

.practice-box {
    background-color: rgba(50, 205, 50, 0.1);
    border-left: 4px solid limegreen;
}

.science-box {
    background-color: rgba(138, 43, 226, 0.1);
    border-left: 4px solid blueviolet;
}

.info-box h3,
.warning-box h3,
.tip-box h3,
.quote-box h3,
.example-box h3,
.practice-box h3,
.science-box h3 {
    margin-top: 0;
    color: var(--dark-color);
}

.quote-box cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    text-align: right;
    margin-top: 1rem;
}

.post-conclusion {
    background-color: rgba(78, 103, 235, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius-sm);
    margin-top: 3rem;
}

.post-conclusion h2 {
    margin-top: 0;
}

.author-bio {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-top: 3rem;
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 1.5rem;
}

.author-bio h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.author-bio p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.post-tags span {
    font-weight: 600;
    margin-right: 1rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: rgba(78, 103, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.post-navigation a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow);
    font-weight: 500;
    transition: var(--transition);
}

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

.post-navigation a.prev i {
    margin-right: 0.5rem;
}

.post-navigation a.next i {
    margin-left: 0.5rem;
}

.related-posts {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.related-card h4 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1rem;
}

.related-card a {
    display: block;
    padding: 0 1rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==============================================
   14. About Page
   ============================================== */
.about-intro {
    background-color: white;
}

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

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

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

.value-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

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

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

.value-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-story {
    background-color: var(--light-color);
}

.about-timeline {
    margin-top: 3rem;
}

.team-section {
    background-color: white;
}

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

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

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

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

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    margin: 1.5rem 0 0.25rem;
    padding: 0 1.5rem;
}

.team-member p {
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--muted-color);
}

.team-member p:first-of-type {
    font-weight: 600;
    color: var(--primary-color);
}

.team-member .social-icons {
    padding: 0 1.5rem 1.5rem;
    justify-content: center;
}

.team-member .social-icons a {
    background-color: var(--dark-color);
}

.certifications {
    background-color: var(--light-color);
}

.cert-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.cert-logo {
    text-align: center;
}

.cert-logo img {
    height: 80px;
    width: auto;
    margin: 0 auto 1rem;
}

.cert-logo span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.about-testimonials {
    background-color: white;
}

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

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

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

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==============================================
   15. Contact Page
   ============================================== */
.contact-section {
    background-color: white;
}

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

.contact-info {
    padding-right: 2rem;
}

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

.contact-info > p {
    margin-bottom: 2rem;
    color: var(--muted-color);
}

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

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    margin-top: 0.25rem;
}

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

.info-item p {
    margin-bottom: 0.25rem;
}

.info-note {
    font-size: 0.85rem;
    color: var(--muted-color);
}

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

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

.social-connect .social-icons {
    justify-content: flex-start;
}

.social-connect .social-icons a {
    background-color: var(--light-color);
    color: var(--dark-color);
}

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

.map-section {
    background-color: var(--light-color);
}

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

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

.faq-section {
    background-color: white;
}

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

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

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

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

.faq-question i {
    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: 1.5rem;
    max-height: 500px;
}

/* ==============================================
   16. Forms
   ============================================== */
.form-group {
    margin-bottom: 1.5rem;
}

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

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(78, 103, 235, 0.2);
}

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

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

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
}

/* ==============================================
   17. Buttons
   ============================================== */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

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

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

.btn-tertiary {
    background-color: var(--light-color);
    color: var(--text-color);
}

.btn-tertiary:hover {
    background-color: var(--muted-color);
}

/* ==============================================
   18. Cookie Consent
   ============================================== */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.cookie-content {
    text-align: center;
}

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

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

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

.cookie-more a {
    text-decoration: underline;
}

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

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

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

.modal-icon {
    font-size: 3rem;
    color: green;
    margin-bottom: 1rem;
}

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

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

/* ==============================================
   20. Utility Classes
   ============================================== */
.hidden {
    display: none;
}

.show {
    display: block;
}

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

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* ==============================================
   21. Media Queries
   ============================================== */

/* Tablet */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-image::before {
        top: -10px;
        right: -10px;
    }

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

    .about-image {
        margin-bottom: 2rem;
    }

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

    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .timeline-container::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 60px;
    }

    .timeline-dot {
        left: 22px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 22px;
    }

    .timeline-content {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    section {
        padding: 3rem 0;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .blog-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

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

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

    .testimonial-image {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

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

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

    .post-content {
        padding: 1.5rem;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-meta {
        gap: 1rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .post-navigation a {
        width: 100%;
        justify-content: center;
    }

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

    .author-bio img {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .cookie-consent {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
    }

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

/* Small Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .mission-values {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .posts-grid,
    .team-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }
}
