/* ============================================= */
/* GLOBAL STYLES & VARIABLES */
/* ============================================= */

:root {
    --color-cream: #FEFDFB;
    --color-sage: #728A7B;
    --color-dusty-rose: #EAD2AC;
    --color-dark-blue: #2C3E50;
    --color-gray: #6c757d;
    --color-light-gray: #f8f9fa;
    --color-accent: #D4A574;
    
    /* Optimized text colors for readability */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --text-heading: #1a202c;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-cream);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex-grow: 1;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-heading);
}

a {
    color: var(--color-sage);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

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

/* Focus Styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-sage);
    outline-offset: 3px;
    border-radius: 4px;
}


/* ============================================= */
/* HEADER STYLES */
/* ============================================= */

.blog-header, .hero-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background-color: rgba(254, 253, 251, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.3s ease, 
                box-shadow 0.3s ease;
    transform: translateY(0);
    will-change: transform;
}

.blog-header.hide, .hero-header.hide {
    transform: translateY(-100%);
}

.blog-header.scrolled, .hero-header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Header Content Layout */
.hero-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo-placeholder {
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Navigation */
.blog-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.blog-nav a {
    color: var(--color-dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.blog-nav a:hover {
    background-color: var(--color-sage);
    color: #fff;
    transform: translateY(-2px);
}

.blog-nav a.active {
    background-color: var(--color-sage);
    color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-blue);
    transition: 0.3s;
    border-radius: 2px;
}


/* ============================================= */
/* BLOG PAGE STYLES - MAIN PAGE */
/* ============================================= */

.blog-main {
    padding-top: 140px;
    padding-bottom: 80px;
}

.blog-main > .container > h1,
.blog-main > .container > p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Main page title */
.blog-main > .container > h1 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    color: var(--color-dark-blue);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 25px;
    line-height: 1.2;
}

.blog-main > .container > h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-sage), var(--color-dusty-rose));
    border-radius: 2px;
}

/* Subtitle paragraph */
.blog-main > .container > p {
    font-size: 1.3rem;
    color: var(--color-gray);
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 5rem;
    padding: 0 20px;
}

/* Alternative classes for old code compatibility */
.blog-page-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-dark-blue);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-sage), var(--color-dusty-rose));
    border-radius: 2px;
}

.blog-page-subtitle {
    font-size: 1.3rem;
    text-align: center;
    max-width: 750px;
    margin: 0 auto 5rem auto;
    color: var(--color-gray);
    line-height: 1.8;
    font-weight: 400;
}


/* ============================================= */
/* POSTS GRID */
/* ============================================= */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 3rem;
    position: relative;
}

/* Decorative divider before cards */
.posts-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-sage), transparent);
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-sage), var(--color-dusty-rose));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover::before {
    opacity: 1;
}

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

.post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Post Image */
.post-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: var(--color-light-gray); 
}

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

/* Post Content */
.post-content {
    padding: 2rem;
}

/* Post Meta - IMPORTANT STYLES */
.post-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.category-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    display: inline-block;
    line-height: 1.5;
}

.read-time {
    padding: 5px 12px;
    background: var(--color-light-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-gray);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.5;
}

/* Post Title */
.post-content h3,
.post-title {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark-blue);
    transition: color 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
}

.post-card:hover .post-content h3,
.post-card:hover .post-title {
    color: var(--color-sage);
}

/* Post Excerpt */
.post-excerpt {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-light-gray);
    margin-top: auto;
}

.post-date {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.read-more {
    color: var(--color-sage);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.post-card:hover .read-more {
    gap: 12px;
}

.read-more::after {
    content: '→';
}


/* ============================================= */
/* ARTICLE PAGE STYLES */
/* ============================================= */

.article-main {
    padding-top: 140px;
    padding-bottom: 80px;
}

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

/* Breadcrumbs in Header */
.breadcrumbs-inline {
    padding: 12px 0 0 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: transparent;
}

.breadcrumbs-inline ol {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    align-items: center;
}

.breadcrumbs-inline li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs-inline li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--color-gray);
    font-size: 1rem;
    display: inline-block;
}
.breadcrumbs-inline a {
    color: var(--color-sage);
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.breadcrumbs-inline a:hover {
    text-decoration: underline;
    color: var(--color-dark-blue);
}

.breadcrumbs-inline li:last-child span {
    color: var(--color-gray);
    font-size: 0.85rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block; 
}


.blog-header.scrolled .breadcrumbs-inline {
    display: none;
}
/* Article Header */
.article-header {
    text-align: center;
    border-bottom: 2px solid var(--color-light-gray);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-dark-blue);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-meta {
    font-size: 1rem;
    color: var(--color-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.article-meta::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-dusty-rose);
    margin: 0 10px;
}

.article-meta::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-dusty-rose);
    margin: 0 10px;
}

.author-link {
    color: var(--color-sage);
    font-weight: 600;
    transition: color 0.2s ease;
}

.author-link:hover {
    color: var(--color-dark-blue);
}

.reading-time {
    color: #999;
    font-style: italic;
}

/* Article Image */
.article-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ============================================= */
/* ARTICLE CONTENT - IMPROVED SPACING */
/* ============================================= */

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 100%;
}

/* SECTIONS - Main container for content blocks */
.section {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

/* DIVIDERS - Beautiful separators between sections */
.divider {
    margin: 4rem 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '✦ ✦ ✦';
    color: var(--color-sage);
    font-size: 1.2rem;
    letter-spacing: 1rem;
    opacity: 0.6;
}

/* STORY BLOCKS - Personal narratives with visual distinction */
.story {
    background: linear-gradient(135deg, rgba(234, 210, 172, 0.15), rgba(114, 138, 123, 0.08));
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--color-dusty-rose);
    font-style: italic;
    position: relative;
}

.story::before {
    content: '📖';
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 1.5rem;
    background: var(--color-cream);
    padding: 0 8px;
}

.story p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* KEY POINTS - Important information blocks */
.key-point {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--color-sage);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.key-point:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.key-point h3 {
    color: var(--color-sage);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.key-point p {
    margin-bottom: 1rem;
}

.key-point p:last-child {
    margin-bottom: 0;
}

/* TIPS - Actionable advice with icons */
.tip {
    background: linear-gradient(135deg, rgba(114, 138, 123, 0.1), rgba(234, 210, 172, 0.1));
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid rgba(114, 138, 123, 0.2);
}

.tip p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

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

.tip strong {
    color: var(--color-sage);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Legacy support for tips with icon structure */
.tip-icon {
    display: none;
}

.tip-content p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.tip-content p:last-child {
    margin-bottom: 0;
}

.tip-content p strong {
    color: var(--color-sage);
}

/* QUOTES - Highlighted text blocks */
.quote {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(234, 210, 172, 0.2), rgba(114, 138, 123, 0.1));
    border-left: 5px solid var(--color-dusty-rose);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: var(--color-dusty-rose);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quote p {
    margin: 0;
    font-style: italic;
    color: var(--text-secondary);
    padding-left: 2rem;
}

/* HIGHLIGHT - Inline text emphasis */
.highlight {
    background: linear-gradient(120deg, rgba(234, 210, 172, 0.3) 0%, rgba(234, 210, 172, 0.3) 100%);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

/* Regular paragraphs */
.article-content p {
    margin-bottom: 1.75rem;
}

/* Intro paragraph - special styling */
.article-content .intro-paragraph {
    font-size: 1.3rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(114, 138, 123, 0.05), transparent);
    border-left: 4px solid var(--color-sage);
    border-radius: 0 8px 8px 0;
}

/* Headings with spacing */
.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
    position: relative;
    padding-left: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80%;
    background: linear-gradient(to bottom, var(--color-sage), var(--color-dusty-rose));
    border-radius: 3px;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.4;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    color: var(--text-primary);
}

.article-content ul li::marker {
    color: var(--color-sage);
    font-size: 1.2em;
}

/* Strong text */
.article-content strong {
    color: var(--text-heading);
    font-weight: 600;
}

/* Blockquotes (different from .quote class) */
.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(234, 210, 172, 0.1), rgba(114, 138, 123, 0.05));
    border-left: 5px solid var(--color-dusty-rose);
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
    font-size: 1.1rem;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: var(--color-dusty-rose);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.article-content blockquote p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.article-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-style: normal;
}

/* Images */
.article-content img {
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Links in text */
.article-content a {
    color: var(--color-sage);
    text-decoration: underline;
    text-decoration-color: rgba(114, 138, 123, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: var(--color-dark-blue);
    text-decoration-color: var(--color-dark-blue);
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, rgba(114, 138, 123, 0.08), rgba(234, 210, 172, 0.08));
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 2px solid rgba(114, 138, 123, 0.15);
}

.toc h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
}

.toc h2::before {
    content: '📋';
    font-size: 1.2rem;
    display: inline;
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: none;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.toc li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-sage);
    font-weight: bold;
}

.toc a {
    color: var(--color-sage);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.toc a:hover {
    color: var(--color-dark-blue);
    padding-left: 5px;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-section > div {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-section > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-section h3 {
    color: var(--color-sage);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.faq-section p {
    color: var(--color-gray);
    line-height: 1.7;
}

/* Article Footer */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-light-gray);
}

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

.tag {
    background-color: var(--color-light-gray);
    color: var(--color-sage);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag:hover {
    background-color: var(--color-sage);
    color: #fff;
    border-color: var(--color-sage);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(114, 138, 123, 0.3);
}

/* Related Posts */
.related-posts {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--color-light-gray);
}

.related-posts h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.related-posts h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-sage), var(--color-dusty-rose));
}

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


/* ============================================= */
/* FLOATING ACTION BUTTONS (FAB) */
/* ============================================= */

.floating-actions {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s ease,
                top 0.3s ease,
                bottom 0.3s ease,
                transform 0.3s ease;
}

.floating-actions.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fab-button {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    background: var(--color-sage);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(114, 138, 123, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    padding: 0;
}

.fab-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(114, 138, 123, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.fab-button:active {
    transform: scale(0.98);
}

.fab-button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: currentColor;
    stroke: currentColor;
    color: white;
}

/* Special colors for social networks */
.fab-button.fab-pinterest {
    background: #E60023;
}

.fab-button.fab-pinterest:hover {
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(230, 0, 35, 0.4);
    transform: translateY(-3px);
}

.fab-button.fab-fbk {
    background: #1877F2;
}

.fab-button.fab-fbk:hover {
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
    transform: translateY(-3px);
}

.fab-button.fab-scroll-top {
    background: var(--color-dusty-rose);
}

.fab-button.fab-scroll-top:hover {
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
    transform: translateY(-3px);
}

/* Tooltip for FAB */
.fab-button[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-heading);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fab-button[data-tooltip]:hover::before {
    opacity: 1;
}

/* Tooltip arrow */
.fab-button[data-tooltip]::after {
    content: '';
    position: absolute;
    right: calc(100% + 7px);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--text-heading);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fab-button[data-tooltip]:hover::after {
    opacity: 1;
}
/* ============================================= /
/ NEWSLETTER, FOOTER, PROGRESS BAR, TOAST /
/ ============================================= */
.newsletter-section {
margin-top: 5rem;
padding: 4rem 0;
background: linear-gradient(135deg, rgba(114, 138, 123, 0.1), rgba(234, 210, 172, 0.1));
}
.newsletter-box {
max-width: 600px;
margin: 0 auto;
text-align: center;
padding: 3rem 2rem;
background: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.newsletter-box h2 {
font-size: 2rem;
margin-bottom: 1rem;
color: var(--color-dark-blue);
}
.newsletter-box > p {
color: var(--color-gray);
margin-bottom: 2rem;
font-size: 1.1rem;
}
.newsletter-form {
display: flex;
gap: 10px;
margin-bottom: 1rem;
}
.newsletter-form input {
flex: 1;
padding: 12px 20px;
border: 2px solid var(--color-light-gray);
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.3s ease;
}
.newsletter-form input:focus {
outline: none;
border-color: var(--color-sage);
}
.newsletter-form button {
padding: 12px 30px;
background: var(--color-sage);
color: white;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.newsletter-form button:hover {
background: var(--color-dark-blue);
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.newsletter-privacy {
font-size: 0.85rem;
color: var(--color-gray);
}
.main-footer {
background-color: var(--color-dark-blue);
color: #fff;
padding: 40px 0;
margin-top: auto;
}
.footer-content {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 30px;
}
.footer-left p {
font-size: 0.9rem;
color: #ccc;
}
.footer-center {
display: flex;
gap: 20px;
}
.footer-icon {
color: #ccc;
transition: all 0.3s ease;
}
.footer-icon:hover {
color: var(--color-dusty-rose);
transform: translateY(-3px);
}
.footer-right {
display: flex;
gap: 20px;
}
.footer-link {
color: #ccc;
text-decoration: none;
font-size: 0.9rem;
transition: color 0.3s ease;
}
.footer-link:hover {
color: var(--color-dusty-rose);
}
.reading-progress {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 4px;
background: linear-gradient(90deg, var(--color-sage), var(--color-dusty-rose));
z-index: 1001;
transition: width 0.1s ease;
box-shadow: 0 2px 4px rgba(114, 138, 123, 0.3);
}
.blog-header {
margin-top: 4px;
}
.toast {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%) translateY(100px);
background: var(--color-sage);
color: white;
padding: 16px 28px;
border-radius: 12px;
box-shadow: 0 6px 25px rgba(0,0,0,0.2);
opacity: 0;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1001;
font-weight: 500;
font-size: 0.95rem;
}
.toast.show {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
/* ============================================= /
/ INDEX PAGE SPECIFIC STYLES /
/ ============================================= */
.hero-header {
position: relative;
padding: 100px 0 40px;
text-align: left;
margin-top: 0;
}
.hero-header .container {
display: flex;
align-items: center;
gap: 30px;
max-width: 1100px;
}
.hero-header .logo-placeholder {
flex-shrink: 0;
margin-bottom: 0;
}
.hero-header .logo-img {
height: 100px;
width: auto;
}
.hero-header-text {
flex: 1;
display: flex;
flex-direction: column;
gap: 10px;
}
.hero-header h1 {
font-family: 'Cormorant Garamond', serif;
font-size: 2.8rem;
color: var(--color-dark-blue);
margin-bottom: 0.5rem;
line-height: 1.2;
}
.hero-header .subtitle {
font-size: 1.1rem;
color: var(--color-gray);
margin-bottom: 0;
line-height: 1.6;
}
.hero-header .category-filter {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.hero-header .search-box {
    margin-top: 0;
    margin-bottom: 2rem;
}

.category-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.category-btn {
padding: 12px 24px;
border: 2px solid var(--color-sage);
background: white;
color: var(--color-sage);
border-radius: 25px;
cursor: pointer;
font-weight: 600;
font-size: 0.95rem;
transition: all 0.3s ease;
font-family: 'Poppins', sans-serif;
}
.category-btn:hover {
background: var(--color-sage);
color: white;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(114, 138, 123, 0.3);
}
.category-btn.active {
background: var(--color-sage);
color: white;
}
.category-btn .count {
opacity: 0.7;
font-size: 0.85rem;
margin-left: 5px;
}
.search-box {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}
.search-input {
width: 100%;
padding: 15px 50px 15px 20px;
border: 2px solid var(--color-light-gray);
border-radius: 12px;
font-size: 1rem;
transition: border-color 0.3s;
font-family: 'Poppins', sans-serif;
}
.search-input:focus {
outline: none;
border-color: var(--color-sage);
}
.search-icon {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
color: var(--color-gray);
pointer-events: none;
}
.tags-section {
background: white;
padding: 2.5rem;
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
margin-bottom: 3rem;
}
.tags-section h2 {
font-family: 'Cormorant Garamond', serif;
font-size: 1.8rem;
margin-bottom: 1.5rem;
color: var(--color-dark-blue);
text-align: center;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.tags-cloud {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
}
.tag.size-1 { font-size: 0.8rem; opacity: 0.75; }
.tag.size-2 { font-size: 0.85rem; opacity: 0.85; }
.tag.size-3 { font-size: 0.9rem; opacity: 0.95; }
.tag.size-4 { font-size: 1rem; opacity: 1; }
.tag.size-5 { font-size: 1.1rem; opacity: 1; font-weight: 600; }
.tag-count {
background: rgba(255,255,255,0.25);
padding: 2px 7px;
border-radius: 10px;
font-size: 0.75rem;
font-weight: 600;
}
.posts-section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.posts-section-title {
font-family: 'Cormorant Garamond', serif;
font-size: 2.2rem;
color: var(--color-dark-blue);
}
.results-count {
color: var(--color-gray);
font-size: 0.95rem;
}
.loading {
text-align: center;
padding: 4rem 2rem;
font-size: 1.2rem;
color: var(--color-gray);
}
.no-results {
text-align: center;
padding: 4rem 2rem;
display: none;
}
.no-results.show {
display: block;
}
.no-results h3 {
font-size: 2rem;
margin-bottom: 1rem;
color: var(--color-dark-blue);
}
.no-results p {
color: var(--color-gray);
}
/* ============================================= /
/ RESPONSIVE DESIGN /
/ ============================================= */
@media (max-width: 768px) {
.logo-img {
height: 45px;
}
.menu-toggle {
    display: flex;
}

.breadcrumbs-inline {
    padding: 8px 0 0 0;
    font-size: 0.75rem;
    display: none;
}
    
.breadcrumbs-inline ol {
    gap: 6px;
}
    
.breadcrumbs-inline li:last-child span {
    max-width: 150px;
}

.breadcrumbs-inline {
    padding: 8px 0 0 0;
    font-size: 0.75rem;
}
    
.breadcrumbs-inline ol {
    gap: 6px;
}
    
.breadcrumbs-inline li:last-child span {
    max-width: 120px;
}
.tags-section {
    padding: 1.5rem 1rem;
}
    
.tags-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
    
.tags-cloud {
    gap: 6px;
    justify-content: flex-start;
}
    
.tag {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 15px;
}
    
   
.tag.size-1 { font-size: 0.7rem; }
.tag.size-2 { font-size: 0.72rem; }
.tag.size-3 { font-size: 0.75rem; }
.tag.size-4 { font-size: 0.78rem; }
.tag.size-5 { font-size: 0.8rem; font-weight: 600; }
    
.tag-count {
    padding: 1px 5px;
    font-size: 0.65rem;
}
.blog-nav {
    position: fixed;
    top: 85px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 85px);
    background-color: var(--color-cream);
    flex-direction: column;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    gap: 0;
    z-index: 99;
}

.blog-nav.active {
    right: 0;
}

.blog-nav a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.blog-main {
    padding-top: 120px;
}

.blog-main > .container > h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    padding: 0 10px;
}

.blog-main > .container > p {
    font-size: 1.1rem;
    margin-bottom: 4rem;
    padding: 0 10px;
}

.article-main {
    padding-top: 120px;
}

.article-container {
    padding: 0 20px;
}

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

.article-header h1 {
    font-size: 2rem;
}

.article-meta {
    font-size: 0.9rem;
}

.article-meta::before,
.article-meta::after {
    display: none;
}

.article-content {
    font-size: 1.0625rem;
}

.article-content .intro-paragraph {
    font-size: 1.2rem;
    padding: 1rem;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.375rem;
}

.section {
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.story, .key-point, .quote {
    padding: 1.5rem;
}

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

.toc {
    padding: 1.5rem;
}

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

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

.newsletter-form button {
    width: 100%;
}

.footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.floating-actions {
    right: 15px;
    top: auto;
    bottom: 20px;
    transform: none;
    gap: 12px;
    flex-direction: column-reverse;
}

.fab-button {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
}

.fab-button svg {
    width: 20px;
    height: 20px;
}

.fab-button[data-tooltip]::before,
.fab-button[data-tooltip]::after {
    display: none;
}

.toast {
    bottom: 20px;
    padding: 14px 20px;
    font-size: 0.9rem;
    max-width: 90%;
}

.hero-header .container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

.hero-header {
    padding: 10px 0 15px !important; 
    margin-top: 4px; 
}

.hero-header .logo-placeholder {
    flex: 0 0 auto;
    order: 1;
}

.hero-header-text {
    flex: 1; 
    order: 2;
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(114, 138, 123, 0.2);
}

.hero-header-text::after {
    content: '✦';
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    color: var(--color-sage);
    background-color: var(--color-cream);
    padding: 0 8px;
    line-height: 1;
}

.hero-header .logo-img {
    height: 45px; 
}

.hero-header h1 {
    font-size: 1.3rem;
    margin: 0; 
    line-height: 1.2;
}

.hero-header .subtitle {
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
}

/* Filters Wrapper - ensures vertical stacking */
.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.hero-header .category-filter {
    width: 100% !important;
    order: 3;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.hero-header .search-box {
    width: 100% !important;
    order: 4;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.category-filter {
    gap: 8px;
    padding: 12px;
}

.category-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
}

.tags-section {
    padding: 1.5rem;
}

.tags-cloud {
    gap: 8px;
}

.posts-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
}
@media (max-width: 480px) {
.container {
padding: 0 15px;
}
.post-content {
    padding: 1.5rem;
}

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

.article-header h1 {
    font-size: 1.6rem;
}

.article-content h2 {
    font-size: 1.5rem;
}

.newsletter-box {
    padding: 2rem 1.5rem;
}

.floating-actions {
    right: 10px;
    bottom: 15px;
    gap: 10px;
}

.fab-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
}

.fab-button svg {
    width: 18px;
    height: 18px;
}

.hero-header {
    padding: 8px 0 12px !important;
    margin-top: 4px;
}

.hero-header .logo-img {
    height: 40px; 
}

.hero-header h1 {
    font-size: 1.15rem;
    line-height: 1.1;
}

.hero-header .subtitle {
    font-size: 0.75rem;
}
    
.hero-header-text {
    padding-top: 3px;
}
    
.hero-header .category-filter {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
    
.hero-header .search-box {
    margin-top: 0;
    margin-bottom: 1rem;
}

.tags-section {
    padding: 1rem 0.75rem;
}
    
.tags-section h2 {
    font-size: 1.2rem;
}
    
.tags-cloud {
    gap: 5px;
}
    
.tag {
    padding: 3px 8px;
    font-size: 0.7rem;
}
    
.tag.size-1 { font-size: 0.65rem; }
.tag.size-2 { font-size: 0.67rem; }
.tag.size-3 { font-size: 0.7rem; }
.tag.size-4 { font-size: 0.72rem; }
.tag.size-5 { font-size: 0.75rem; }
    
.tag-count {
    padding: 1px 4px;
    font-size: 0.6rem;
}
.breadcrumbs-inline {
    font-size: 0.7rem;
}
    
.breadcrumbs-inline li:last-child span {
    max-width: 90px;
}
.article-main {
    padding-top: 130px;
}
}
