/* ==========================
   IRANSansX Variable Font
========================== */
@font-face {
    font-family: 'IRANSansX';
    src:
        url('/assets/font/IRANSansXV.woff2') format('woff2'),
        url('/assets/font/IRANSansXV.woff') format('woff');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

/* اعمال روی کل سایت (بدون before و after) */
html,
body,
* {
    font-family: 'IRANSansX', sans-serif !important;
}

/* بازگرداندن فونت آیکون‌ها */
.fa,
.fas,
.far,
.fal,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
.fa-light,
.fa-thin,
.fa-duotone,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 6 Free" !important;
}

:root {
    --primary: #00838F;
    --primary-dark: #006064;
    --primary-light: #4FB3BF;
    --accent: #FFB74D;
    --accent-dark: #FFA726;
    --accent-light: #FFE0B2;
    --bg: #F8FAFB;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--gray-800);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right a {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.top-bar-right a:hover {
    color: var(--accent);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.top-bar-left span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
    line-height: 1.3;
}

.logo-text .sub {
    font-size: 0.7rem;
    color: var(--gray-500);
    line-height: 1.3;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links li a {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: var(--gray-100);
    color: var(--primary);
}

.nav-links li a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    padding: 8px 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.nav-btn-teal {
    background: var(--primary);
}

.nav-btn-teal:hover {
    background: var(--primary-dark);
}

.search-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--gray-900) 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

:root :where(.is-layout-flow) > :last-child {
    padding-top: 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,183,77,0.1);
    border-radius: 50%;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
        display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.2);
}

.blog-hero h1 {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 12px;
}

.blog-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    max-width: 450px;
    line-height: 1.9;
}

.blog-hero-search {
    margin-top: 28px;
    max-width: 550px;
    min-width: 450px;
}
:root :where(.is-layout-flow) > * {
    margin-block-start: 0;
}

.blog-hero-search .search-box {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.blog-hero-search input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
}

.blog-hero-search button {
    padding: 14px 28px;
    background: var(--accent);
    border: none;
    color: var(--white);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-hero-search button:hover {
    background: var(--accent-dark);
}

/* Stats bar */
.blog-stats {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 0;
}

.blog-stats .container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.stat-item i {
    color: var(--primary);
}

.stat-item strong {
    color: var(--gray-900);
    font-weight: 700;
}

/* Categories Filter */
.categories-section {
    padding: 30px 0 10px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,131,143,0.08);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.6;
}

.section-desc {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.category-tab {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0,131,143,0.04);
}

.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.category-tab .count {
    background: rgba(255,255,255,0.2);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.category-tab:not(.active) .count {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Featured Article */
.featured-section {
    padding: 30px 0;
}

.featured-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.featured-card > * {
    flex: 0 0 50%;
    min-width: 0;
}

.featured-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.featured-img {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-img img {
    transform: scale(1.05);
}

.featured-img .badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-content {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.featured-content .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-content .meta .cat-tag {
    background: rgba(0,131,143,0.08);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.featured-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.7;
    margin-bottom: 12px;
}

.featured-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.featured-content .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.featured-content .read-more:hover {
    gap: 10px;
}

/* Blog Grid */
.blog-grid-section {
    padding: 20px 0 60px;
}

.blog-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sort-options {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 4px;
}

.sort-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.sort-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.blog-grid > * {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--gray-100);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: transparent;
}

.blog-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.08);
}

.blog-card-img .card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--white);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.blog-card-img .card-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-body .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.blog-card-body .card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s;
}

.blog-card-body h3:hover {
    color: var(--primary);
}

.blog-card-body p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
}

.blog-card-footer .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-footer .author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--accent-dark);
    font-weight: 700;
}

.blog-card-footer .author-name {
    font-size: 0.78rem;
    color: var(--gray-600);
    font-weight: 500;
}

.blog-card-footer .card-link {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-footer .card-link:hover {
    gap: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-btn.nav-arrow {
    width: auto;
    padding: 0 14px;
    gap: 4px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.newsletter-card > * {
    flex: 0 0 calc(50% - 20px);
    min-width: 0;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.newsletter-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255,183,77,0.1);
    border-radius: 50%;
}

.newsletter-info {
    position: relative;
    z-index: 2;
}

.newsletter-info .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.newsletter-info h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.6;
}

.newsletter-info p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.8;
}

.newsletter-form {
    position: relative;
    z-index: 2;
}

.newsletter-form .input-group {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 12px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--accent);
    border: none;
    color: var(--white);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.newsletter-form button:hover {
    background: var(--accent-dark);
}

.newsletter-form .note {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

/* Related Topics */
.topics-section {
    padding: 0 0 60px;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.topics-grid > * {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
}

.topic-card {
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.topic-card .topic-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.topic-card:nth-child(1) .topic-icon { background: rgba(0,131,143,0.1); color: var(--primary); }
.topic-card:nth-child(2) .topic-icon { background: rgba(255,183,77,0.15); color: var(--accent-dark); }
.topic-card:nth-child(3) .topic-icon { background: rgba(76,175,80,0.1); color: #4CAF50; }
.topic-card:nth-child(4) .topic-icon { background: rgba(156,39,176,0.1); color: #9C27B0; }
.topic-card:nth-child(5) .topic-icon { background: rgba(33,150,243,0.1); color: #2196F3; }
.topic-card:nth-child(6) .topic-icon { background: rgba(244,67,54,0.1); color: #F44336; }
.topic-card:nth-child(7) .topic-icon { background: rgba(255,152,0,0.1); color: #FF9800; }
.topic-card:nth-child(8) .topic-icon { background: rgba(0,150,136,0.1); color: #009688; }

.topic-card:hover .topic-icon {
    transform: scale(1.15);
}

.topic-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.topic-card span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding-top: 60px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-top > :first-child {
    flex: 2 1 360px;
}

.footer-top > :not(:first-child) {
    flex: 1 1 160px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background: var(--accent);
}

.footer-brand .logo-text .main {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--gray-500);
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-right: 4px;
}

.footer-col ul li a i {
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-col ul li a:hover i {
    opacity: 1;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 200;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.mobile-nav-overlay.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.mobile-nav-links {
    list-style: none;
    padding: 16px 20px;
}

.mobile-nav-links li a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.3s;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    background: rgba(0,131,143,0.08);
    color: var(--primary);
}

.mobile-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay-bg.open {
    opacity: 1;
    visibility: visible;
}

/* Loading skeleton */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-search { display: none; }
    .mobile-toggle { display: flex; }
    .blog-grid > * { flex-basis: calc(50% - 12px); }
    .featured-card > * { flex-basis: 100%; }
    .featured-img { min-height: 260px; }
    .newsletter-card { padding: 36px; }
    .newsletter-card > * { flex-basis: 100%; }
    .footer-top > :first-child,
    .footer-top > :not(:first-child) { flex-basis: calc(50% - 20px); }
    .topics-grid > * { flex-basis: calc(33.333% - 11px); }
}

@media (max-width: 768px) {
    .blog-hero h1 { font-size: 1.6rem; }
    .blog-hero { padding: 40px 0 36px; }
    .blog-grid > * { flex-basis: 100%; }
    .featured-content { padding: 24px; }
    .blog-stats .container { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .blog-grid-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .newsletter-card { padding: 28px 20px; }
    .footer-top > :first-child,
    .footer-top > :not(:first-child) { flex-basis: 100%; }
    .topics-grid > * { flex-basis: calc(50% - 8px); }
    .section-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .category-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .category-tab { white-space: nowrap; flex-shrink: 0; }
    .blog-hero-search .search-box { flex-direction: column; border-radius: var(--radius-lg); }
    .blog-hero-search button { justify-content: center; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
    .pagination { flex-wrap: wrap; }
}