/* ==============================================
   TradeEra Blog - Complete Stylesheet
   Business / E-commerce / Entrepreneurship
   ============================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #16a34a;
    --secondary-dark: #15803d;
    --secondary-light: #f0fdf4;
    --accent: #ea580c;
    --accent-light: #fff7ed;
    --dark: #0f172a;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --gray-lighter: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 10px 12px -6px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ HEADER ============ */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: 6px 0;
    font-size: 0.78rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #94a3b8;
    margin-left: 12px;
    transition: var(--transition);
    font-weight: 400;
}

.header-top a:hover {
    color: var(--white);
}

.header-top .fas {
    margin-right: 5px;
    font-size: 0.7rem;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-left span {
    display: flex;
    align-items: center;
    color: #cbd5e1;
}

.top-left span i {
    color: var(--primary);
    margin-right: 5px;
}

.top-right {
    display: flex;
    align-items: center;
}

.top-phone {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-main {
    padding: 10px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo .site-logo {
    height: 44px;
    width: auto;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.logo h1 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo small {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 1px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 3px;
    align-items: center;
}

.nav ul li a {
    padding: 8px 15px;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav ul li a i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.nav ul li a:hover,
.nav ul li a.active {
    background: var(--primary);
    color: var(--white);
}

.nav ul li a:hover i,
.nav ul li a.active i {
    opacity: 1;
}

.nav .dropdown-item {
    position: relative;
}

.nav .dropdown-caret {
    font-size: 0.65rem;
    transition: var(--transition);
    margin-left: 2px;
}

.dropdown-item:hover .dropdown-caret {
    transform: rotate(180deg);
}

.nav .dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 8px;
    list-style: none;
    min-width: 250px;
    z-index: 200;
    border: 1px solid var(--border);
}

.nav .dropdown-item:hover > .dropdown {
    display: block;
}

.nav .dropdown li a {
    display: flex;
    padding: 9px 14px;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
}

.nav .dropdown li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--border);
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark);
    padding: 8px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, var(--primary) 100%);
    color: var(--white);
    padding: 100px 0 90px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(22, 163, 74, 0.1) 0%, transparent 50%),
        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='%23ffffff' 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");
    pointer-events: none;
}

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

.hero h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.15;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.88;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.search-box {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.search-box .search-icon {
    display: flex;
    align-items: center;
    padding-left: 22px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box input {
    flex: 1;
    padding: 16px 12px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--dark);
    font-family: var(--font);
    min-width: 0;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box button {
    padding: 16px 30px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.search-box button:hover {
    background: var(--secondary-dark);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.84rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ============ STATS BAR ============ */
.stats-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0;
    margin-top: -1px;
    position: relative;
    z-index: 2;
}

.stats-bar .container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
}

.stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 40px;
    flex: 1;
    justify-content: center;
    transition: var(--transition);
    border-right: 1px solid var(--border);
    position: relative;
}

.stats-bar .stat-item:last-child {
    border-right: none;
}

.stats-bar .stat-item:hover {
    background: var(--primary-light);
}

.stats-bar .stat-item i {
    font-size: 1.6rem;
    color: var(--primary);
    opacity: 0.7;
    transition: var(--transition);
}

.stats-bar .stat-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.stats-bar .stat-item .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.stats-bar .stat-item .stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ SECTION STYLES ============ */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-lg);
    font-size: 1.3rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.section-header:hover .section-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.section-header h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 18px auto 0;
    border-radius: 2px;
}

/* ============ CATEGORY GRID ============ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card .icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.category-card:hover .icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.category-card .post-count {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 14px;
    background: var(--gray-lighter);
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.category-card:hover .post-count {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============ POST GRID ============ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.post-card .post-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-lighter);
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.post-card .post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
    pointer-events: none;
}

.category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    z-index: 1;
}

.featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow);
    z-index: 1;
}

.post-card .post-content {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta .fas {
    font-size: 0.72rem;
    opacity: 0.5;
}

.post-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--dark);
}

.post-card h3 a {
    color: var(--dark);
    transition: var(--transition);
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-card .excerpt {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.86rem;
    margin-top: auto;
    transition: var(--transition);
}

.post-card .read-more i {
    transition: var(--transition);
    font-size: 0.78rem;
}

.post-card .read-more:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.post-card .read-more:hover i {
    transform: translateX(2px);
}

/* Popular posts variant */
.post-card.popular {
    border-color: var(--accent);
    border-width: 2px;
}

.post-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #f59e0b);
    z-index: 2;
}

/* ============ POPULAR POSTS ============ */
.popular-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.popular-section .section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-lighter);
}

.popular-section .section-header::after {
    display: none;
}

.popular-post-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-lighter);
    transition: var(--transition);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item:first-of-type {
    padding-top: 0;
}

.popular-post-item:hover {
    padding-left: 6px;
}

.popular-post-item .thumb-placeholder {
    width: 90px;
    height: 72px;
    border-radius: var(--radius);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-light));
}

.popular-post-item .thumb-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-item .popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-item h4 a {
    color: var(--text);
    transition: var(--transition);
}

.popular-post-item h4 a:hover {
    color: var(--primary);
}

.popular-post-item .date {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.popular-post-item .date i {
    font-size: 0.65rem;
    opacity: 0.5;
}

.popular-post-rank {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* ============ NEWSLETTER CTA ============ */
.newsletter-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, var(--primary) 100%);
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.newsletter-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(22, 163, 74, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.newsletter-cta .cta-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.newsletter-cta .cta-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.newsletter-cta .cta-text p {
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 420px;
}

.newsletter-cta .cta-form {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    min-width: 380px;
}

.newsletter-cta .cta-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: var(--font);
    backdrop-filter: blur(4px);
    transition: var(--transition);
    min-width: 0;
}

.newsletter-cta .cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-cta .cta-form input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-cta .cta-form button {
    padding: 14px 28px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.newsletter-cta .cta-form button:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4);
}

/* ============ MAIN LAYOUT ============ */
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    padding: 40px 0;
    align-items: start;
}

/* ============ SIDEBAR ============ */
.sidebar {
    position: sticky;
    top: 85px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-lighter);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.sidebar-widget h3 .fas {
    color: var(--primary);
    font-size: 0.85rem;
}

.sidebar-post {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-lighter);
}

.sidebar-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-post img {
    width: 80px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.sidebar-post .thumb-placeholder {
    width: 80px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
}

.sidebar-post h4 {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-post h4 a {
    color: var(--text);
}

.sidebar-post h4 a:hover {
    color: var(--primary);
}

.sidebar-post .date {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: var(--gray-lighter);
    color: var(--text-muted);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tag-cloud a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 6px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    padding: 9px 14px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.88rem;
}

.category-list li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 18px;
}

.category-list li a .count {
    background: var(--gray-lighter);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
    transition: var(--transition);
}

.category-list li a:hover .count {
    background: var(--primary);
    color: var(--white);
}

/* ============ SINGLE POST ============ */
.single-post {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.single-post .post-header {
    position: relative;
}

.single-post .post-header img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.single-post .post-header .header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    padding: 100px 40px 32px;
}

.single-post .post-body {
    padding: 40px 44px;
}

.single-post .post-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
}

.single-post .post-category:hover {
    background: var(--primary);
    color: var(--white);
}

.single-post .post-body h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.25;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.post-author-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.post-author-bar .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.post-author-bar .author-info {
    flex: 1;
}

.post-author-bar .author-info .name {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}

.post-author-bar .author-info .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author-bar .post-stats {
    display: flex;
    gap: 18px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.post-author-bar .post-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-post .content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}

.single-post .content h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 32px 0 16px;
    font-weight: 700;
}

.single-post .content h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin: 28px 0 12px;
    font-weight: 700;
}

.single-post .content p {
    margin-bottom: 22px;
}

.single-post .content ul,
.single-post .content ol {
    margin-bottom: 22px;
    padding-left: 28px;
}

.single-post .content ul {
    list-style: disc;
}

.single-post .content ol {
    list-style: decimal;
}

.single-post .content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.single-post .content a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-post .content a:hover {
    text-decoration: none;
}

.single-post .content blockquote {
    border-left: 4px solid var(--primary);
    padding: 18px 24px;
    background: var(--primary-light);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: 24px 0;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text);
    position: relative;
}

.single-post .content blockquote::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -12px;
    left: 16px;
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.15;
}

.single-post .content img {
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.single-post .content strong {
    font-weight: 700;
    color: var(--dark);
}

.single-post .content code {
    background: var(--gray-lighter);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent);
}

/* ============ POST TAGS ============ */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-tags .tag-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}

.post-tags .tag-label i {
    color: var(--text-muted);
}

.post-tags a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: var(--gray-lighter);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.post-tags a:hover, .post-tags .tag-pill:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Post share buttons */
.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--gray-lighter);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.post-share .share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-share .share-label i {
    color: var(--primary);
}

.share-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #111; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

/* ============ COMMENTS ============ */
.comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-lighter);
}

.comments-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-section h3 .fas {
    color: var(--primary);
}

.comment {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-lighter);
}

.comment:last-of-type {
    border-bottom: none;
}

.comment .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    flex-shrink: 0;
}

.comment .comment-body {
    flex: 1;
}

.comment .comment-body .comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment .comment-body h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dark);
}

.comment .comment-body .date {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.comment .comment-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.comment-form {
    background: var(--gray-lighter);
    padding: 32px;
    border-radius: var(--radius-xl);
    margin-top: 32px;
}

.comment-form h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    border-bottom: none;
    padding-bottom: 0;
    color: var(--dark);
}

.comment-form .form-note {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 0.87rem;
    color: var(--dark);
}

.form-group label .required {
    color: var(--accent);
    margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.84rem;
}

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, var(--primary) 100%);
    color: var(--white);
    padding: 56px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(22, 163, 74, 0.08) 0%, transparent 50%),
        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='%23ffffff' 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");
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.page-header p {
    font-size: 1.05rem;
    opacity: 0.88;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.88rem;
    align-items: center;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============ ABOUT SECTION ============ */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.75;
    font-size: 1rem;
}

.about-features {
    list-style: none;
    margin: 22px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.about-features li i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary-light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.about-features li .fas {
    color: var(--secondary);
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
    letter-spacing: -0.03em;
    position: relative;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 28px;
    font-size: 1.05rem;
    position: relative;
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    padding: 50px 0;
}

.contact-form-section {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.contact-info-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    padding: 22px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-3px) translateX(3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.contact-info-card .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-card:hover .icon {
    background: var(--primary);
    color: var(--white);
}

.contact-info-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* ============ SEARCH RESULTS ============ */
.search-info {
    text-align: center;
    margin-bottom: 36px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-info strong {
    color: var(--dark);
}

/* ============ NO RESULTS ============ */
.no-results {
    text-align: center;
    padding: 64px 24px;
}

.no-results .icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--gray-lighter);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 22px;
}

.no-results h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.no-results p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 44px;
    margin-bottom: 48px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.02rem;
    margin-bottom: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.footer-col h3 .fas {
    color: var(--primary);
    font-size: 0.82rem;
}

.footer-about {
    margin-bottom: 10px;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-3px);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.social-links a[aria-label="Facebook"]:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35); }
.social-links a[aria-label="Twitter"]:hover { background: #000000; border-color: #000000; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.social-links a[aria-label="Instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35); }
.social-links a[aria-label="LinkedIn"]:hover { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35); }
.social-links a[aria-label="YouTube"]:hover { background: #ff0000; border-color: #ff0000; box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35); }

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links a:hover .fas {
    color: var(--secondary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    margin-top: 14px;
}

.footer-contact .fas {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    margin-top: 16px;
    border-radius: var(--radius);
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.86rem;
    font-family: var(--font);
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.86rem;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.84rem;
}

.footer-bottom-links {
    display: flex;
    gap: 22px;
}

.footer-bottom-links a {
    color: #94a3b8;
    font-size: 0.84rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    font-size: 0.88rem;
    border: 1px solid var(--border);
}

.page-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ============ FLASH MESSAGES ============ */
.flash {
    padding: 16px 22px;
    border-radius: var(--radius-lg);
    margin-bottom: 22px;
    font-weight: 500;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}

.flash .fas {
    flex-shrink: 0;
    font-size: 1rem;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.flash-success .fas {
    color: #16a34a;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.flash-error .fas {
    color: #dc2626;
}

.flash-info {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: #bfdbfe;
}

.flash-info .fas {
    color: var(--primary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .newsletter-cta {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
        gap: 32px;
    }

    .newsletter-cta .cta-form {
        min-width: 0;
        width: 100%;
        max-width: 460px;
    }

    .newsletter-cta .cta-text p {
        max-width: none;
        margin: 0 auto;
    }

    .stats-bar .stat-item {
        padding: 22px 24px;
    }
}

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 12px;
        border-top: 1px solid var(--border);
        z-index: 999;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
    }

    .nav ul li a {
        display: flex;
        padding: 12px 16px;
        width: 100%;
    }

    .nav .dropdown {
        position: static;
        box-shadow: none;
        padding-left: 16px;
        min-width: auto;
        border: none;
        border-radius: 0;
        display: none;
        background: var(--gray-lighter);
        margin-top: 4px;
    }

    .nav .dropdown-item:hover > .dropdown {
        display: none;
    }

    .nav .dropdown-item.active-dropdown .dropdown {
        display: block;
    }

    .hero {
        padding: 64px 0 56px;
    }

    .hero h2 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-badges {
        display: none;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .header-top .container {
        flex-direction: column;
        gap: 4px;
    }

    .top-phone {
        display: none;
    }

    .single-post .post-body {
        padding: 24px;
    }

    .single-post .post-body h1 {
        font-size: 1.65rem;
    }

    .single-post .post-header img {
        height: 240px;
    }

    .comment-form {
        padding: 22px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .stats-bar .container {
        flex-wrap: wrap;
    }

    .stats-bar .stat-item {
        flex: 1 1 50%;
        padding: 18px 16px;
    }

    .stats-bar .stat-item:nth-child(2) {
        border-right: none;
    }

    .stats-bar .stat-item {
        border-bottom: 1px solid var(--border);
    }

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

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

    .post-author-bar {
        flex-wrap: wrap;
    }

    .post-author-bar .post-stats {
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--gray-lighter);
        margin-top: 4px;
    }

    .post-tags {
        gap: 6px;
    }

    .contact-form-section {
        padding: 24px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .about-image img {
        height: 300px;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius-xl);
    }

    .search-box button {
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }

    .search-box .search-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .stats-bar .stat-item {
        flex: 1 1 100%;
        border-right: none;
    }

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

    .post-card .post-image {
        height: 180px;
    }

    .single-post .post-body {
        padding: 20px;
    }

    .single-post .post-body h1 {
        font-size: 1.4rem;
    }

    .single-post .content {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .pagination {
        gap: 4px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
        padding: 0 10px;
    }
}
