/* Lines of Life - Enhanced Colorful Mature Design */

:root {
    /* Brand Colors */
    --bg-primary: #F9F9F6;
    --accent-primary: #D8A7B1;
    --accent-secondary: #A8B5A0;
    --accent-teal: #A1C2B6;
    
    /* Complementing Colors */
    --accent-lavender: #C9A9D6;
    --accent-rose: #E8B4C2;
    --accent-peach: #F4C2A1;
    --accent-sage: #B8C5A8;
    --accent-mauve: #D4A5B8;
    --accent-lilac: #D8B8D8;
    --accent-cream: #F5E6D3;
    --accent-powder: #E8D5E8;
    
    /* Text Colors */
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-light: #718096;
    
    /* UI Colors */
    --link-hover: #BBA0D3;
    --link-gold: #D6B37E;
    --white: #FFFFFF;
    --shadow-soft: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #F9F9F6 0%, #F5F5F0 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', 'Georgia', serif;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-mauve);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(249, 249, 246, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(216, 167, 177, 0.2);
    padding: 1.25rem 0;
    box-shadow: 0 2px 20px rgba(216, 167, 177, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .nav-logo {
    font-family: 'Crimson Text', serif;
    font-size: 1.75rem;
    font-weight: 400;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-mauve) 50%, var(--accent-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-lavender));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-primary) !important;
}

/* Hamburger Icon - Override Bootstrap */
/* Hide by default on desktop, show only on mobile */
#mobile-menu-toggle,
.navbar-toggler.d-lg-none {
    border: none !important;
    padding: 0.5rem !important;
    background: transparent !important;
    cursor: pointer !important;
    z-index: 1001;
    position: relative;
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Show hamburger only on mobile/tablet */
@media (max-width: 991.98px) {
    #mobile-menu-toggle,
    .navbar-toggler.d-lg-none {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Hide on desktop - extra specificity */
@media (min-width: 992px) {
    #mobile-menu-toggle,
    .navbar-toggler.d-lg-none,
    button.navbar-toggler.d-lg-none,
    button#mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Hide Bootstrap's default icon */
.navbar-toggler .navbar-toggler-icon {
    display: none !important;
    background-image: none !important;
}

/* Custom hamburger icon */
.hamburger-icon {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.hamburger-icon span {
    display: block !important;
    height: 3px;
    width: 100%;
    background: var(--accent-primary) !important;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-mauve)) !important;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 0 0 0 rgba(216, 167, 177, 0);
}

/* Focus and hover states */
#mobile-menu-toggle:hover .hamburger-icon span,
#mobile-menu-toggle:focus .hamburger-icon span {
    background: var(--accent-mauve) !important;
    background: linear-gradient(90deg, var(--accent-mauve), var(--accent-lavender)) !important;
}

#mobile-menu-toggle:focus {
    outline: 2px solid rgba(216, 167, 177, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}

.navbar-toggler.active .hamburger-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-toggler.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Ensure button is clickable */
#mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(249, 249, 246, 0.98) 0%, 
        rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 4px 0 30px rgba(216, 167, 177, 0.3);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(216, 167, 177, 0.2);
}

.mobile-menu-header .nav-logo {
    font-size: 1.5rem;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-close:hover {
    background: rgba(216, 167, 177, 0.1);
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
    background: rgba(216, 167, 177, 0.2);
}

.mobile-menu-close:focus {
    outline: 2px solid rgba(216, 167, 177, 0.5);
    outline-offset: 2px;
}

.mobile-menu-close svg {
    pointer-events: none;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.mobile-menu-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    margin: 0;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border-left: 3px solid transparent;
    background: linear-gradient(90deg, transparent 0%, transparent 100%);
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, 
        rgba(216, 167, 177, 0.1) 0%, 
        transparent 100%);
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::before,
.mobile-menu-link.active::before {
    width: 100%;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    padding-left: 2rem;
}

.mobile-menu-search {
    padding: 1.5rem;
    border-top: 1px solid rgba(216, 167, 177, 0.2);
}

.mobile-search-bar {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(216, 167, 177, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition);
}

.mobile-search-bar:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(216, 167, 177, 0.15);
    background: var(--white);
}

.mobile-search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.mobile-search-results .search-result-item {
    margin-bottom: 0.75rem;
    padding: 1rem;
}

/* Mobile menu scrollbar */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-lavender) 100%);
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-mauve) 0%, var(--accent-lavender) 100%);
}

/* Search Bar */
.nav-search-desktop {
    position: relative;
}

.search-bar {
    width: 250px;
    border-radius: 25px;
    border: 1.5px solid rgba(216, 167, 177, 0.3);
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.search-bar:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(216, 167, 177, 0.15);
    width: 300px;
    background: var(--white);
}

.search-results-inline {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-medium);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid rgba(216, 167, 177, 0.2);
}

.search-results-inline:not(:empty) {
    display: block;
}

.search-result-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    transition: var(--transition);
    cursor: pointer;
    background: linear-gradient(90deg, rgba(216, 167, 177, 0.05) 0%, transparent 100%);
}

.search-result-bookmark {
    margin-left: 1rem;
    flex-shrink: 0;
}

.search-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow-medium);
    border-left-color: var(--accent-lavender);
}

.search-result-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.search-result-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section - Advanced Colorful Design */
.hero-section {
    position: relative;
    text-align: center;
    padding: 6rem 0 5rem;
    margin-bottom: 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(248, 232, 242, 0.6) 0%, 
        rgba(232, 245, 240, 0.5) 25%,
        rgba(245, 240, 248, 0.6) 50%,
        rgba(232, 240, 245, 0.5) 75%,
        rgba(248, 240, 232, 0.6) 100%);
    border-bottom: 2px solid rgba(216, 167, 177, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(216, 167, 177, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 214, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 181, 160, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(244, 194, 161, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.hero-word {
    display: inline-block;
    background: linear-gradient(135deg, 
        var(--accent-primary) 0%, 
        var(--accent-mauve) 20%,
        var(--accent-lavender) 40%,
        var(--accent-secondary) 60%,
        var(--accent-teal) 80%,
        var(--accent-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wordSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               gradientShift 5s ease infinite 0.8s,
               wordFloat 3s ease-in-out infinite 1.6s;
    opacity: 0;
    transform: translateY(30px) rotateX(90deg);
    filter: drop-shadow(0 2px 10px rgba(216, 167, 177, 0.3));
}

.hero-word[data-word="1"] {
    animation-delay: 0s, 0.8s, 1.6s;
}

.hero-word[data-word="2"] {
    animation-delay: 0.3s, 1.1s, 1.9s;
}

.hero-word[data-word="3"] {
    animation-delay: 0.6s, 1.4s, 2.2s;
}

@keyframes wordSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(90deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

@keyframes wordFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.02em;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(216, 167, 177, 0.15);
    display: inline-block;
}

/* Hero Mobile Search */
.hero-search-mobile {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.hero-search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.hero-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(216, 167, 177, 0.3);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(216, 167, 177, 0.15);
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-search-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(216, 167, 177, 0.1), transparent);
    transition: left 0.5s ease;
}

.hero-search-wrapper:focus-within::before {
    left: 100%;
}

.hero-search-wrapper:hover {
    border-color: rgba(216, 167, 177, 0.5);
    box-shadow: 0 6px 25px rgba(216, 167, 177, 0.2);
    transform: translateY(-1px);
}

.hero-search-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(216, 167, 177, 0.15), 0 8px 30px rgba(216, 167, 177, 0.3);
    background: var(--white);
    transform: translateY(-2px);
    border-width: 2px;
}

.hero-search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--accent-primary);
    pointer-events: none;
    z-index: 1;
    transition: var(--transition);
    opacity: 0.7;
}

.hero-search-wrapper:hover .hero-search-icon {
    opacity: 0.9;
    transform: scale(1.05);
}

.hero-search-wrapper:focus-within .hero-search-icon {
    color: var(--accent-mauve);
    opacity: 1;
    transform: scale(1.1);
}

.hero-search-bar {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.25rem;
    border: none;
    border-radius: 30px;
    background: transparent;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-primary);
}

.hero-search-bar::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.hero-search-bar:focus {
    outline: none;
    background: transparent;
}

.hero-search-bar:focus::placeholder {
    opacity: 0.5;
}

.hero-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.75rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-medium);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid rgba(216, 167, 177, 0.2);
}

.hero-search-results:not(:empty) {
    display: block;
}

.hero-search-results .search-result-item {
    padding: 1.25rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, rgba(216, 167, 177, 0.05) 0%, transparent 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    transition: var(--transition);
    cursor: pointer;
}

.hero-search-results .search-result-item:last-child {
    margin-bottom: 0;
}

.hero-search-results .search-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow-medium);
    border-left-color: var(--accent-lavender);
}

.hero-search-results .search-result-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.hero-search-results .search-result-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Post Cards */
.post-card {
    border: 1.5px solid rgba(216, 167, 177, 0.2);
    border-radius: 16px;
    transition: var(--transition);
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-primary) 0%, 
        var(--accent-lavender) 50%, 
        var(--accent-secondary) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(216, 167, 177, 0.2);
    border-color: var(--accent-primary);
}

.post-card-header {
    margin-bottom: 1.5rem;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 500;
}

.post-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.post-title a {
    color: var(--text-primary);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-primary) 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.post-title a:hover {
    color: var(--accent-primary);
    background-size: 100% 2px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.post-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.badge {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-sage) 100%) !important;
    color: var(--white) !important;
    border: none;
    padding: 0.4rem 0.9rem;
    font-weight: 500;
    border-radius: 20px;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Read More Button - Brand Colors */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-mauve) 100%);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(216, 167, 177, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-read-more:hover::before {
    left: 100%;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 167, 177, 0.4);
    background: linear-gradient(135deg, var(--accent-mauve) 0%, var(--accent-lavender) 100%);
}

.btn-read-more:active {
    transform: translateY(0);
}

/* Blog Post Page */
.blog-post {
    background: linear-gradient(135deg, var(--white) 0%, rgba(248, 232, 242, 0.1) 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin: 2rem auto 4rem;
    box-shadow: 0 4px 30px rgba(216, 167, 177, 0.15);
    max-width: 900px;
    border: 1px solid rgba(216, 167, 177, 0.2);
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(216, 167, 177, 0.2);
    background: linear-gradient(135deg, transparent 0%, rgba(216, 167, 177, 0.05) 100%);
    margin: -3rem -2.5rem 3rem -2.5rem;
    padding: 3rem 2.5rem 2rem;
    border-radius: 20px 20px 0 0;
}

.blog-post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(216, 167, 177, 0.4);
}

.blog-post-content a:hover {
    color: var(--accent-mauve);
    text-decoration-color: var(--accent-mauve);
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(216, 167, 177, 0.2);
    border: 2px solid rgba(216, 167, 177, 0.1);
}

.blog-post-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: linear-gradient(90deg, rgba(216, 167, 177, 0.08) 0%, transparent 100%);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
}

.blog-post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.75rem;
}

/* Recent Posts */
.recent-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(216, 167, 177, 0.2);
}

.recent-posts h3 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recent-posts-list {
    display: grid;
    gap: 1.5rem;
}

.recent-post-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(248, 232, 242, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent-secondary);
    transition: var(--transition);
    border: 1px solid rgba(216, 167, 177, 0.2);
}

.recent-post-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(216, 167, 177, 0.2);
    border-left-color: var(--accent-primary);
}

.recent-post-item h4 {
    margin-bottom: 0.5rem;
}

.recent-post-item h4 a {
    color: var(--text-primary);
}

.recent-post-item h4 a:hover {
    color: var(--accent-primary);
}

.recent-post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    margin-top: 5rem;
    background: linear-gradient(135deg, #201b2c 0%, #35224a 45%, #4a2f63 100%);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    filter: blur(0.5px);
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -15%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(216, 167, 177, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(216, 167, 177, 0.9));
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: var(--transition);
}

.footer-link:hover .footer-icon {
    background: rgba(216, 167, 177, 0.25);
    transform: scale(1.08);
}

.footer-subscribe-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-input {
    flex: 1 1 220px;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-input:focus {
    outline: 2px solid rgba(216, 167, 177, 0.5);
    background: rgba(255, 255, 255, 0.18);
}

.footer-button {
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, rgba(216, 167, 177, 0.95) 0%, rgba(171, 149, 202, 0.95) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(216, 167, 177, 0.35);
}

.footer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(171, 149, 202, 0.4);
}

.footer-button:active {
    transform: translateY(0);
}

.footer-subscription-message {
    min-height: 1.5rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-subscription-message.is-success {
    color: #d1f7c4;
}

.footer-subscription-message.is-error {
    color: #ffd1d1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 3rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 2rem;
    }

    .footer-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-input,
    .footer-button {
        width: 100%;
    }
}

/* About Page */
.about-page {
    background: linear-gradient(135deg, var(--white) 0%, rgba(248, 232, 242, 0.1) 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin: 2rem auto 4rem;
    box-shadow: 0 4px 30px rgba(216, 167, 177, 0.15);
    max-width: 900px;
    border: 1px solid rgba(216, 167, 177, 0.2);
}

.about-content {
    font-size: 1.125rem;
    line-height: 1.9;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.load-more {
    text-align: center;
    margin: 3rem 0;
}

.btn-load-more {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-mauve) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(216, 167, 177, 0.3);
}

.btn-load-more:hover {
    background: linear-gradient(135deg, var(--accent-mauve) 0%, var(--accent-lavender) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 167, 177, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-bar {
        width: 200px !important;
    }
    
    .search-bar:focus {
        width: 220px !important;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
        gap: 0.4rem;
    }
    
    .hero-word {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .hero-search-mobile {
        margin-top: 2.5rem;
        margin-bottom: 1.5rem;
        padding: 0 0.75rem;
    }
    
    .hero-search-container {
        max-width: 100%;
    }
    
    .hero-search-wrapper {
        border-radius: 28px;
    }
    
    .hero-search-icon {
        left: 1rem;
        width: 18px;
        height: 18px;
    }
    
    .hero-search-bar {
        font-size: 0.95rem;
        padding: 0.875rem 1rem 0.875rem 2.75rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-search {
        margin-left: 0.5rem;
    }
    
    .search-bar {
        width: 150px;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .search-bar:focus {
        width: 180px;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .post-card,
    .blog-post,
    .about-page {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        gap: 0.3rem;
    }
    
    .hero-word {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .hero-subtitle {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-search-mobile {
        margin-top: 2rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .hero-search-container {
        max-width: 100%;
    }
    
    .hero-search-wrapper {
        border-radius: 25px;
    }
    
    .hero-search-icon {
        left: 0.875rem;
        width: 16px;
        height: 16px;
    }
    
    .hero-search-bar {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem 0.75rem 2.5rem;
    }
    
    .hero-search-results {
        max-height: 300px;
        margin-top: 0.5rem;
    }
    
    .hero-search-results .search-result-item {
        padding: 1rem;
    }
    
    .hero-search-results .search-result-item h3 {
        font-size: 0.95rem;
    }
    
    .hero-search-results .search-result-item p {
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card,
.blog-post {
    animation: fadeIn 0.6s ease-out;
}

/* Bookmark Button */
.btn-bookmark {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.btn-bookmark:hover {
    background: rgba(216, 167, 177, 0.1);
    color: var(--accent-primary);
    transform: scale(1.1);
}

.btn-bookmark.bookmarked {
    color: var(--accent-primary);
}

.btn-bookmark.bookmarked svg {
    fill: currentColor;
}

.btn-bookmark-large {
    padding: 0.75rem 1.25rem;
    border: 1.5px solid rgba(216, 167, 177, 0.3);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    gap: 0.5rem;
}

.btn-bookmark-large:hover {
    background: rgba(216, 167, 177, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 167, 177, 0.2);
}

.btn-bookmark-large.bookmarked {
    background: linear-gradient(135deg, rgba(216, 167, 177, 0.1) 0%, rgba(212, 165, 184, 0.1) 100%);
    border-color: var(--accent-primary);
}

.bookmark-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: inherit;
}

.bookmark-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.5rem;
    background: var(--accent-primary);
    color: var(--white);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.nav-link .bookmark-count-badge,
.mobile-menu-link .bookmark-count-badge {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
}

/* Bookmark Notification */
.bookmark-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-mauve) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(216, 167, 177, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    max-width: 300px;
    pointer-events: none;
}

.bookmark-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .bookmark-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-bookmark-large {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-bookmark-large .bookmark-text {
        font-size: 0.85rem;
    }
}

/* Clear All Bookmarks Button */
.btn-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-all:hover {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-lavender) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-mauve) 0%, var(--accent-lavender) 100%);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-mauve) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(216, 167, 177, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent-mauve) 0%, var(--accent-lavender) 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 30px rgba(216, 167, 177, 0.5);
}

.back-to-top:active {
    transform: translateY(-3px) scale(0.95);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top:focus {
    outline: 2px solid rgba(216, 167, 177, 0.5);
    outline-offset: 3px;
}

/* Responsive adjustments for back-to-top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Blog Hero */
.blog-hero {
    padding: 5.5rem 0 4.5rem;
}

.blog-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.blog-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-hero-title {
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.blog-hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.hero-search-blog {
    margin-top: 2.5rem;
}

.hero-search-blog .hero-search-container {
    max-width: 580px;
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 4rem 0 3rem;
    }

    .blog-hero-inner {
        padding: 0 0.5rem;
    }

    .hero-search-blog {
        margin-top: 2rem;
    }
}