:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --primary-subtle: rgba(124, 58, 237, 0.08);
    --accent: #22C55E;
    --accent-dark: #16A34A;
    --accent-subtle: rgba(34, 197, 94, 0.1);
    --bg-primary: #FAF5FF;
    --bg-secondary: #F3E8FF;
    --bg-white: #FFFFFF;
    --text-primary: #4C1D95;
    --text-secondary: #6B21A8;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --card-bg: #FFFFFF;
    --dark-bg: #1E1B4B;
    --shadow-sm: 0 1px 3px rgba(124,58,237,0.08);
    --shadow-md: 0 4px 16px rgba(124,58,237,0.12);
    --shadow-lg: 0 8px 32px rgba(124,58,237,0.16);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-heading: 'Libre Bodoni', serif;
    --font-body: 'Public Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--primary); transition: color 0.2s ease; }
a:hover { color: var(--primary-dark); }

::selection { background: var(--primary); color: #fff; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }

/* ─── Navbar ─── */
.navbar {
    backdrop-filter: blur(16px);
    background: rgba(255,255,255,0.92) !important;
    border-bottom: 1px solid rgba(124,58,237,0.08);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(124,58,237,0.12); }
.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.navbar-brand span:last-child { color: var(--primary); }
.nav-link {
    font-weight: 500;
    padding: 0.5rem 1.1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-subtle);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.notify-badge {
    font-size: 0.55rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ─── Hero Section ─── */
.hero-section {
    background: linear-gradient(160deg, #FAF5FF 0%, #F3E8FF 40%, #EDE9FE 70%, #E0E7FF 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237C3AED' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124,58,237,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: fadeInUp 0.6s ease;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.15;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-search {
    max-width: 520px;
    animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-search .input-group {
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(124,58,237,0.15);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.hero-search .input-group:focus-within {
    border-color: var(--primary);
}
.hero-search .form-control {
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
}
.hero-search .btn {
    padding: 14px 28px;
    border-radius: 0 60px 60px 0;
}
.hero-stats {
    animation: fadeInUp 0.6s ease 0.4s both;
}
.hero-stats .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.hero-image-wrapper {
    position: relative;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-image-card {
    position: relative;
    z-index: 1;
}
.hero-image-card img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero-floating-card {
    position: absolute;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}
.hero-floating-card.top-right {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}
.hero-floating-card.bottom-left {
    bottom: 30px;
    left: -20px;
    animation-delay: 1.5s;
}
.hero-floating-card .fc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.hero-floating-card .fc-text { font-size: 0.8rem; line-height: 1.3; }
.hero-floating-card .fc-text strong { font-size: 0.9rem; display: block; color: var(--text-primary); }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── Section Titles ─── */
.section-header {
    margin-bottom: 2.5rem;
}
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
}

/* ─── Category Pills ─── */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 60px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}
.cat-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.3);
    text-decoration: none;
}
.cat-pill .cat-count {
    background: var(--primary-subtle);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    transition: background 0.2s;
}
.cat-pill:hover .cat-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.cat-pill-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Blog Cards ─── */
.blog-card {
    border: none;
    border-radius: var(--radius-md);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.blog-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .card-img-top {
    transform: scale(1.06);
}
.blog-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.blog-card .category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.blog-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.blog-card .card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card .card-title a:hover { color: var(--primary); }
.blog-card .card-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.blog-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.blog-card .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
}
.blog-card .post-stats {
    display: flex;
    gap: 12px;
}
.blog-card .post-stats i {
    margin-right: 3px;
}

/* ─── Featured Card (Hero/Swiper) ─── */
.featured-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 450px;
}
.featured-card .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.8s ease;
}
.featured-card:hover .featured-image { transform: scale(1.04); }
.featured-card .featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,27,75,0.92) 0%, rgba(30,27,75,0.3) 50%, transparent 100%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.featured-card .featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}
.featured-card .featured-category {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 12px;
}
.featured-card .featured-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}
.featured-card .featured-excerpt {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    max-width: 500px;
    margin-bottom: 12px;
}
.featured-card .featured-meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 16px;
}
.featured-card .featured-meta img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ─── Swiper Custom ─── */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background: rgba(255,255,255,0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(255,255,255,0.3); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1.2rem; }

/* ─── Writer Cards ─── */
.writer-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}
.writer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.writer-card .writer-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    padding: 2px;
    margin-bottom: 12px;
}
.writer-card .writer-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}
.writer-card .writer-role {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.writer-card .writer-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.writer-card .writer-stats i {
    margin-right: 4px;
    color: var(--primary-light);
}

/* ─── Trending List ─── */
.trending-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { padding-left: 6px; }
.trending-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    min-width: 36px;
    text-align: center;
}
.trending-item .trending-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.trending-item .trending-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── Newsletter CTA ─── */
.newsletter-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #6D28D9 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}
.newsletter-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.newsletter-cta h3 {
    color: #fff;
    font-size: 1.8rem;
}
.newsletter-cta p {
    color: rgba(255,255,255,0.8);
}
.newsletter-cta .input-group {
    border-radius: 60px;
    overflow: hidden;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.newsletter-cta .form-control {
    border: none;
    padding: 14px 20px;
}
.newsletter-cta .form-control:focus {
    box-shadow: none;
}

/* ─── Buttons ─── */
.btn {
    padding: 10px 24px;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
}
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34,197,94,0.35);
}
.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}
.btn-ghost:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}
.btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ─── Sidebar ─── */
.sidebar-widget {
    border-radius: var(--radius-md);
    border: none;
}
.sidebar-widget .list-group-item {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
.sidebar-widget .list-group-item:last-child { border-bottom: none; }
.sidebar-widget .list-group-item:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}
.tag-badge {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    display: inline-block;
    margin: 3px;
}
.tag-badge:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}
.tag-count {
    background: rgba(0,0,0,0.08);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 4px;
}
.tag-badge:hover .tag-count { background: rgba(255,255,255,0.2); }

/* ─── Footer ─── */
.site-footer {
    background: var(--dark-bg) !important;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}
.footer-links a {
    transition: all 0.2s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary-light) !important;
    padding-left: 5px;
}
.hover-primary:hover { color: var(--primary-light) !important; }
.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ─── Blog Detail ─── */
.blog-detail-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 50px 0;
    position: relative;
}
.blog-detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237C3AED' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.blog-detail-header .post-category {
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #374151;
}
.blog-content h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.blog-content h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.8rem; color: var(--text-primary); }
.blog-content p { margin-bottom: 1.3rem; }
.blog-content img { max-width: 100%; border-radius: var(--radius-md); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.blog-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.8rem;
    margin: 1.8rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--primary-subtle);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-content pre {
    background: #1E1B4B;
    color: #E5E7EB;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1.5rem 0;
}
.blog-content code {
    background: var(--primary-subtle);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}
.blog-content pre code { background: none; padding: 0; }
.blog-content ul, .blog-content ol { margin-bottom: 1.3rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; }

/* ─── Author Bio ─── */
.author-bio-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border-color);
}
.author-bio-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
}

/* ─── Comments ─── */
.comment-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.comment-item:last-child { border-bottom: none; margin-bottom: 0; }
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-reply {
    margin-left: 3rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
}
.comment-form textarea {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    transition: border-color 0.2s;
    resize: vertical;
}
.comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* ─── Pagination ─── */
.pagination .page-link {
    border: none;
    padding: 10px 18px;
    margin: 0 3px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}
.pagination .page-link:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(124,58,237,0.3);
}
.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background: transparent;
}

/* ─── Auth Pages ─── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}
.auth-page .card {
    animation: fadeInUp 0.5s ease;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.auth-page .auth-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.auth-page .auth-brand span:last-child { color: var(--primary); }

/* ─── Profile ─── */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, #6D28D9 100%);
    padding: 60px 0;
    position: relative;
}
.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}
.profile-stats .stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.profile-stats .stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}

/* ─── Stat Cards ─── */
.stat-card {
    border: none;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ─── Page Header ─── */
.page-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 50px 0;
    position: relative;
}
.page-header h1 { font-size: 2.2rem; font-weight: 700; }
.page-header .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.page-header .breadcrumb-item.active { color: var(--text-secondary); }

/* ─── Card Glass ─── */
.card-glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-md);
}

/* ─── Skeleton Loading ─── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-image { height: 220px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.skeleton-text { height: 14px; margin-bottom: 10px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }

/* ─── Toast ─── */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
}

/* ─── Scroll to Top ─── */
#scrollToTop {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}
#scrollToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

/* ─── Modal ─── */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
}
.modal-header { border-bottom: 1px solid var(--border-color); padding: 1.2rem 1.5rem; }
.modal-footer { border-top: 1px solid var(--border-color); padding: 1rem 1.5rem; }

/* ─── Dropdown ─── */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
}
.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
.dropdown-item:hover { background: var(--primary-subtle); color: var(--primary); }
.dropdown-item i { width: 18px; text-align: center; margin-right: 8px; }

/* ─── Form Controls ─── */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}
.form-label { font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }

/* ─── Alert ─── */
.alert {
    border: none;
    border-radius: var(--radius-sm);
}
.alert-success { background: var(--accent-subtle); color: #166534; }
.alert-danger { background: #FEE2E2; color: #991B1B; }
.alert-info { background: #DBEAFE; color: #1E40AF; }
.alert-warning { background: #FEF9C3; color: #854D0E; }

/* ─── Utilities ─── */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), #6D28D9);
}
.shadow-hover {
    transition: box-shadow 0.3s ease;
}
.shadow-hover:hover {
    box-shadow: var(--shadow-md);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ─── Responsive ─── */
@media (max-width: 1199.98px) {
    .hero-title { font-size: 2.8rem; }
}
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.4rem; }
    .hero-section { padding: 70px 0 60px; }
    .featured-card { min-height: 350px; }
    .featured-card .featured-title { font-size: 1.5rem; }
    .section-title { font-size: 1.6rem; }
    .newsletter-cta { padding: 2.5rem; }
    .hero-image-wrapper { margin-top: 40px; }
    .hero-floating-card.top-right { right: 0; }
    .hero-floating-card.bottom-left { left: 0; }
}
@media (max-width: 767.98px) {
    .hero-title { font-size: 1.9rem; }
    .hero-section { padding: 50px 0 40px; }
    .hero-stats .stat-number { font-size: 1.5rem; }
    .blog-card .card-img-top { height: 180px; }
    .comment-reply { margin-left: 1.5rem; }
    .featured-card { min-height: 280px; }
    .featured-card .featured-title { font-size: 1.2rem; }
    .newsletter-cta { padding: 2rem; }
    .newsletter-cta h3 { font-size: 1.4rem; }
    .blog-detail-header { padding: 30px 0; }
    .page-header { padding: 30px 0; }
    .page-header h1 { font-size: 1.6rem; }
    .profile-header { padding: 40px 0; }
}
@media (max-width: 575.98px) {
    body { font-size: 0.95rem; }
    .container { padding-left: 16px; padding-right: 16px; }
    .hero-title { font-size: 1.6rem; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
