@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Lato:wght@400;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* Base styles */
:root {
    /* Primary colors */
    --primary-color: #2a2a2a;
    --primary-color-hover: #4a4a4a;
    
    /* Text colors */
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    
    /* Background colors */
    --background-color: #ffffff;
    --light-bg: #f5f0e5;
    --cream-color: #fff187;
    
    /* Accent colors */
    --secondary-accent: #e8d4fa;
    --secondary-accent-dark: #d0b8f0;
    --secondary-accent-light: #f2e8ff;
    
    /* New color palette */
    --yellow: #fff187;
    --yellow-dark: #f0e070;
    --yellow-light: #fff9c0;
    --pink: #fcd7e4;
    --pink-dark: #f0b8c8;
    --pink-light: #ffe8f0;
    --lilac: #e8d4fa;
    --lilac-dark: #d0b8f0;
    --lilac-light: #f2e8ff;
    
    /* Feedback colors */
    --success-bg: #f5f0e5;
    --success-color: #2a2a2a;
    --success-border: #e5e0d5;
    --error-bg: #fcd7e4;
    --error-color: #2a2a2a;
    --error-border: #f0b8c8;
    
    /* Trivia feedback colors */
    --feedback-success-bg: #f5f0e5;
    --feedback-success-color: #2a2a2a;
    --feedback-success-border: #e5e0d5;
    --feedback-error-bg: #fcd7e4;
    --feedback-error-color: #2a2a2a;
    --feedback-error-border: #f0b8c8;
    
    /* UI colors */
    --border-color: #e8d4fa;
    --box-shadow: 0 2px 10px rgba(232, 212, 250, 0.2);
    --white: #fff;
    --chocolate-light: #f0e0d0;
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --script-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
    
    /* Layout */
    --card-radius: 2px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--background-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Reset default link styles */
a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Apply dark blue only to links within post content */
.post-content-full a {
    color: #1a3b8c; /* Dark blue shade */
}

.post-content-full a:hover {
    color: #0f2252; /* Darker shade on hover */
    text-decoration: underline;
}

/* Preserve original styling for other links */
header a, 
footer a,
.hero-content a.btn,
.post-card a,
.related-posts a,
.table-of-contents a,
.category-buttons a,
.post-category a {
    color: inherit;
}

header a:hover, 
footer a:hover,
.post-card a:hover,
.related-posts a:hover {
    color: inherit;
    text-decoration: none;
}

/* Keep post category links with their inherited color */
.post-category a {
    color: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-color);
}

p {
    margin-bottom: 24px;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Header */
header {
    background-color: var(--background-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

/* Hero section */
.hero {
    padding: 160px 0;
    background-image: url('../images/site/heroes/hero-chocolate.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    /* Add progressive loading with a CSS-only solution */
    background-repeat: no-repeat;
    background-color: #64462d; /* Use a color that matches your image */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(225, 207, 249, 0.3) 0%, rgba(255, 241, 135, 0.3) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero .btn {
    background-color: var(--lilac);
    color: var(--primary-color);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: none;
    animation: fadeInUp 1.2s ease-out;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero .btn:hover {
    background-color: transparent;
    border-color: white;
    color: white;
    transform: translateY(-3px);
    box-shadow: none;
}

/* Add responsive images for different screen sizes */
@media (max-width: 768px) {
    .hero {
        background-image: url('../images/site/heroes/hero-chocolate.jpg'); /* Using same image for now */
    }
}

@media (max-width: 480px) {
    .hero {
        background-image: url('../images/site/heroes/hero-chocolate.jpg'); /* Using same image for now */
    }
}

/* Category hero section */
.category-hero {
    background-color: var(--lilac-light);
    text-align: center;
    padding: 120px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.category-hero .container {
    position: relative;
    z-index: 2;
}

.category-hero h1 {
    font-family: var(--heading-font);
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.category-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .category-hero {
        padding: 80px 0;
    }
    
    .category-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .category-hero h1 {
        font-size: 2.2rem;
    }
}

/* Featured posts section */
.featured-posts {
    padding: 40px 0;
    background-color: var(--white);
}

.featured-posts h2 {
    font-family: var(--heading-font);
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.4rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.category-section {
    margin-bottom: 100px;
    position: relative;
}

.category-section h3 {
    font-family: var(--script-font);
    font-size: 1.9rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Slider styles */
.posts-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
    margin: 0 -40px;
}

.posts-grid {
    display: flex;
    transition: transform 0.4s ease;
    gap: 30px;
}

/* Homepage centered posts grid */
.featured-posts .posts-grid {
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 992px) {
    .featured-posts .posts-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .featured-posts .posts-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-posts .post-card {
        width: 100%;
        max-width: 400px;
    }
}

.post-card {
    background-color: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    min-width: 340px;
    max-width: 340px;
    flex: 1;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.05);
}

.post-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--lilac-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(217, 247, 255, 0.3);
    font-size: 1.2rem;
    border: none;
}

.slider-arrow:hover {
    background-color: var(--lilac);
}

.slider-arrow-left {
    left: 0;
}

.slider-arrow-right {
    right: 0;
}

.post-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.post-content {
    padding: 30px;
}

.post-content h4 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.post-content p {
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    cursor: pointer;
    font-family: var(--body-font);
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    transition: var(--transition);
}

.read-more::after {
    content: '→';
    margin-left: 6px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--lilac-dark);
    transform: none;
    box-shadow: none;
    background: none;
    border: none;
}

.read-more:hover::after {
    margin-left: 10px;
}

.view-all {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    border: 1px solid var(--lilac);
    background-color: var(--lilac);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: var(--card-radius);
    transition: var(--transition);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--body-font);
}

.view-all:hover {
    background-color: var(--lilac-dark);
    border-color: var(--lilac-dark);
    color: var(--primary-color);
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* Blog post */
.blog-post {
    padding: 40px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 60px;
}

.post-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

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

.post-image-full {
    margin-bottom: 50px;
}

.post-image-full img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--card-radius);
}

.post-content-full {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.post-content-full h2 {
    font-size: 1.9rem;
    margin: 50px 0 24px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.post-content-full p {
    margin-bottom: 24px;
    color: var(--text-color);
}

.post-content-full ul, .post-content-full ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content-full li {
    margin-bottom: 12px;
}

/* Related posts */
.related-posts {
    padding: 50px 0;
    background-color: var(--lilac);
    margin-top: 60px;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.9rem;
    color: var(--primary-color);
}

.related-posts .posts-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.related-posts .post-card {
    min-width: initial;
    max-width: initial;
    width: calc(50% - 15px);
}

/* Footer */
footer {
    background-color: var(--yellow);
    color: var(--primary-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    width: 40%;
}

.footer-logo h3 {
    font-family: var(--script-font);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0;
}

.footer-logo p {
    max-width: 350px;
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-links {
    width: 60%;
    text-align: right;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0 0 15px 0;
    text-align: right;
}

.footer-links a {
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color-hover);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-links {
        width: 100%;
        text-align: left;
    }
    
    .footer-links ul {
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .footer-links li {
        margin: 0 0 15px 0;
        text-align: left;
    }
    
    .posts-slider-container {
        padding: 0 30px;
        margin: 0 -30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 15px;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .post-card {
        min-width: 280px;
    }
    
    .posts-slider-container {
        padding: 0 20px;
        margin: 0 -20px;
    }
    
    .post-header h1 {
        font-size: 2.5rem;
    }
    
    .post-image-full img {
        height: 350px;
    }
    
    .related-posts .posts-grid {
        flex-direction: column;
    }
    
    .related-posts .post-card {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .nav-links li {
        margin: 0 10px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .category-hero h1 {
        font-size: 2.2rem;
    }
    
    .post-card {
        min-width: 100%;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-image-full img {
        height: 250px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
    }
}

/* Category pages grid layout */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.category-grid .post-card {
    min-width: initial;
    max-width: initial;
    width: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 70px;
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--lilac);
}

.pagination li a:hover {
    background-color: var(--pink-light);
    border-color: var(--pink);
}

.pagination li.active span {
    background-color: var(--pink);
    color: var(--primary-color);
    border-color: var(--pink);
}

.pagination-prev a,
.pagination-next a {
    width: auto !important;
    padding: 0 15px;
    border-radius: 20px !important;
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Trivia Section */
.trivia-section {
    padding: 70px 0;
    background-color: var(--yellow-light);
    text-align: center;
}

.trivia-section h2 {
    font-family: var(--heading-font);
    margin-bottom: 20px;
    font-size: 2.4rem;
    color: var(--primary-color);
}

.trivia-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.trivia-game {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    position: relative;
    border: 2px solid var(--lilac);
}

.trivia-score {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--pink);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.trivia-progress {
    width: 100%;
    height: 8px;
    background-color: var(--pink-light);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.trivia-progress-bar {
    height: 100%;
    background-color: var(--pink);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.trivia-question-counter {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.trivia-question {
    margin-bottom: 30px;
}

.trivia-question h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.trivia-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trivia-option {
    padding: 15px 20px;
    background-color: var(--lilac-light);
    border: 2px solid transparent;
    border-radius: var(--card-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-weight: 500;
    cursor: pointer;
}

.trivia-option:hover {
    background-color: var(--lilac);
}

.trivia-option.selected {
    border-color: var(--lilac);
}

.trivia-option.correct {
    background-color: var(--yellow-light);
    border-color: var(--yellow);
}

.trivia-option.incorrect {
    background-color: var(--pink);
    border-color: var(--pink-dark);
}

.trivia-feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--card-radius);
    font-weight: normal;
    line-height: 1.5;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.trivia-feedback p {
    margin-bottom: 15px;
}

.trivia-feedback p:last-child {
    margin-bottom: 0;
}

.trivia-feedback strong {
    font-weight: 600;
    font-size: 0.95rem;
}

.trivia-feedback.correct {
    background-color: var(--feedback-success-bg);
    color: var(--feedback-success-color);
    border-color: var(--feedback-success-border);
}

.trivia-feedback.incorrect {
    background-color: var(--feedback-error-bg);
    color: var(--feedback-error-color);
    border-color: var(--feedback-error-border);
}

.trivia-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.trivia-start-screen {
    text-align: center;
    padding: 20px 0;
}

.trivia-start-screen p {
    margin-bottom: 30px;
    font-size: 1rem;
}

#trivia-result {
    text-align: center;
}

#trivia-result h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#result-message {
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.hidden {
    display: none;
}

.view-all, .read-more, .slider-arrow, .pagination a, .trivia-option {
    cursor: pointer;
}

/* Chocolate Timeline */
.timeline-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
    border-top: 1px solid var(--lilac);
}

.timeline-section h2 {
    font-family: var(--heading-font);
    margin-bottom: 20px;
    font-size: 2.4rem;
    color: var(--primary-color);
}

.timeline-section p.intro {
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-color);
    font-size: 0.95rem;
}

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

.timeline-track {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: var(--pink-light);
    margin: 30px 0 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-track:hover {
    background-color: var(--pink);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--secondary-accent), var(--secondary-accent-dark));
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.timeline-milestone-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--pink);
    border: 2px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.timeline-milestone-dot:hover, .timeline-milestone-dot.active {
    background-color: var(--lilac);
    transform: translateY(-50%) scale(1.3);
}

.timeline-milestone-dot.active {
    box-shadow: 0 0 0 4px rgba(225, 197, 237, 0.4);
}

.timeline-milestone-dot:hover::after {
    content: attr(data-year);
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 1;
}

.timeline-milestone {
    min-width: 300px;
    max-width: 300px;
    margin-right: 30px;
    background-color: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border-top: 4px solid var(--yellow);
    text-align: left;
    opacity: 0.7;
    transform: scale(0.95) translateY(10px);
    cursor: pointer;
}

.timeline-milestone.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-milestone:last-child {
    margin-right: 0;
}

.timeline-date {
    display: inline-block;
    color: var(--white);
    background-color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-15px);
    margin-top: 15px;
    font-family: var(--body-font);
}

.timeline-title {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-family: var(--heading-font);
}

.timeline-content {
    color: var(--light-text);
    line-height: 1.5;
    font-size: 0.85rem;
}

.timeline-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.timeline-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--pink-light);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.timeline-indicator:hover {
    background-color: var(--pink);
    transform: scale(1.2);
}

.timeline-indicator.active {
    background-color: var(--lilac);
    transform: scale(1.5);
    box-shadow: 0 0 0 3px rgba(232, 212, 250, 0.4);
}

.timeline-button {
    background: linear-gradient(to right, var(--lilac), var(--lilac-dark));
    color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    border-radius: var(--card-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.timeline-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.timeline-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(225, 197, 237, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(225, 197, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 197, 237, 0); }
}

.timeline-milestone.active .timeline-date {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .timeline-milestone {
        min-width: 260px;
        max-width: 260px;
    }
    
    .timeline-date {
        font-size: 1.2rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
}

.timeline-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.timeline-button:disabled {
    background: var(--lighter-text);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.timeline-milestones {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.timeline-milestones::-webkit-scrollbar {
    display: none;
}

@keyframes flash-highlight {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 10px 30px rgba(225, 197, 237, 0.5); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
}

.timeline-milestone.flash-animation {
    animation: flash-highlight 1s ease;
}

@keyframes float {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1) translateY(0); }
}

.timeline-milestone.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Category Filter Section */
.category-filter {
    padding: 40px 0 20px;
    background-color: var(--background-color);
}

.search-container {
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    padding: 14px 24px;
    border: 2px solid var(--lilac-light);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.search-input:focus {
    outline: none;
    border-color: var(--lilac);
    box-shadow: 0 0 0 3px rgba(232, 212, 250, 0.2);
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.category-btn {
    padding: 10px 20px;
    background-color: var(--white);
    border: 2px solid var(--lilac-light);
    border-radius: 30px;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.category-btn:hover {
    background-color: var(--lilac-light);
    transform: translateY(-2px);
    border-color: var(--lilac-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.category-btn.active {
    background-color: var(--lilac);
    border-color: var(--lilac-dark);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(208, 184, 240, 0.3);
}

.post-category-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--lilac-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post-image {
    position: relative;
}

@media (max-width: 768px) {
    .category-buttons {
        justify-content: center;
    }
    
    .category-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .category-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-btn {
        width: auto;
        text-align: center;
    }
}

/* CTA Buttons - Unified Style */
.btn, .view-all, .read-more {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--lilac);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--body-font);
    box-shadow: none;
    text-transform: none;
}

.btn:hover, .view-all:hover, .read-more:hover {
    background-color: transparent;
    border-color: var(--lilac);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: none;
}

/* Read More specific adjustments */
.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    cursor: pointer;
    font-family: var(--body-font);
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    transition: var(--transition);
}

.read-more::after {
    content: '→';
    margin-left: 6px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--lilac-dark);
    transform: none;
    box-shadow: none;
    background: none;
    border: none;
}

.read-more:hover::after {
    margin-left: 10px;
}

/* View All specific adjustments */
.view-all {
    margin-top: 10px;
    padding: 12px 28px;
    font-size: 0.9rem;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* Explore Topics section */
.explore-topics {
    padding: 80px 0;
    background-color: var(--lilac-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.explore-topics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(252, 215, 228, 0.15) 0%, transparent 40%), 
                       radial-gradient(circle at 80% 70%, rgba(232, 212, 250, 0.15) 0%, transparent 30%);
    z-index: 1;
}

.explore-topics .container {
    position: relative;
    z-index: 2;
}

.explore-topics h2 {
    font-family: var(--heading-font);
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.4rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.topic-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
    border: none;
}

.topic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.topic-icon {
    margin-bottom: 25px;
    transition: transform 0.4s ease;
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.topic-card:hover .topic-icon {
    transform: translateY(-8px);
}

.topic-card:hover .topic-icon svg {
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15));
}

.topic-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.topic-card p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.6;
}

.topic-card[data-category="etymology"] .topic-icon {
    background-color: var(--yellow-light);
    color: var(--yellow-dark);
}

.topic-card[data-category="phonetics"] .topic-icon {
    background-color: var(--yellow-light);
    color: var(--yellow-dark);
}

.topic-card[data-category="semantics"] .topic-icon {
    background-color: var(--yellow-light);
    color: var(--yellow-dark);
}

.topic-card[data-category="syntax"] .topic-icon {
    background-color: var(--yellow-light);
    color: var(--yellow-dark);
}

@media (max-width: 992px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-card {
        padding: 30px 20px;
    }
}

/* Social Links Spacing */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.social-links img, .social-links svg {
    width: 24px;
    height: 24px;
    border-radius: 4px;
} 