/**
 * Ukrainian Minimalist Design
 * Inspired by Goodface Agency & Halo Lab
 * Clean, elegant, with subtle animations
 */

/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Colors - Qar Media Brand */
    --primary: #1a1a2e;
    --primary-light: #2d2d44;
    --accent: #3D9DAA;
    --accent-hover: #358a96;
    --accent-soft: rgba(61, 157, 170, 0.12);
    --accent-secondary: #E63946;
    --accent-secondary-soft: rgba(230, 57, 70, 0.12);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #7a7a8a;

    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #eef0f2;

    --border-color: #e2e4e8;
    --border-light: #f0f2f4;

    /* Typography - Premium */
    --font-family: 'Poppins', sans-serif;
    --font-family-display: 'Poppins', sans-serif;
    --font-size-xs: 0.875rem;     /* 14px */
    --font-size-sm: 1rem;         /* 16px */
    --font-size-base: 1.0625rem;  /* 17px */
    --font-size-lg: 1.1875rem;    /* 19px */
    --font-size-xl: 1.375rem;     /* 22px */
    --font-size-2xl: 1.75rem;     /* 28px */
    --font-size-3xl: 2.25rem;     /* 36px */
    --font-size-4xl: 3rem;        /* 48px */
    --font-size-5xl: 3.5rem;      /* 56px */
    --font-size-6xl: 4rem;        /* 64px */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;

    /* Spacing - Compact */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 3rem;
    --spacing-4xl: 4rem;

    /* Border Radius - Modern */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Subtle */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.1);

    /* Transitions - Smooth */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
    --container-narrow: 960px;

    /* Header */
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

/* ===================================
   Container
   =================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* ===================================
   Header - Two Line (techtalk style)
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}

/* Header Top Bar */
.header-top {
    border-bottom: 1px solid var(--border-light);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 500px;
    display: none;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (min-width: 768px) {
    .header-search {
        display: flex;
    }
}

.header-search input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.header-search button:hover {
    color: var(--text-primary);
}

/* Header Top Right */
.header-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-current:hover {
    border-color: var(--border-color);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 80px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    transition: all 0.2s;
}

.lang-item:hover,
.lang-item.active {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Header Navigation Bar */
.header-nav {
    display: none;
    padding: 8px 0;
}

@media (min-width: 992px) {
    .header-nav {
        display: block;
    }
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    display: block;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    transition: color 0.2s;
}

.nav-link:first-child {
    padding-left: 0;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-link:first-child::after {
    left: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Search Form (old - keeping for compatibility) */
.search-form {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.search-form input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
    transition: all var(--transition-fast);
}

.search-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.search-form button:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: var(--spacing-2xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-base);
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.mobile-nav-link {
    display: block;
    padding: var(--spacing-lg) var(--spacing-md);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    letter-spacing: -0.02em;
}

.mobile-nav-link:hover {
    background: var(--accent-soft);
    padding-left: var(--spacing-lg);
}

.mobile-nav-link.sub {
    padding-left: var(--spacing-2xl);
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-secondary);
}

.mobile-lang {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.mobile-lang-item {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.mobile-lang-item.active {
    background: var(--accent);
    color: var(--primary);
}

/* ===================================
   Main Content
   =================================== */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

@media (min-width: 992px) {
    main {
        margin-top: 138px;
        min-height: calc(100vh - 138px);
    }
}

/* ===================================
   Hero Slider (techtalk.az style)
   =================================== */
.hero-section {
    padding: 32px 0 48px;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 40px 0 48px;
    }
}

.hero-swiper {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-swiper {
        height: 450px;
    }
}

.hero-slide {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0.5) 50%, rgba(10,10,15,0.1) 100%);
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}

.hero-slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    padding: 40px;
}

.hero-slide-date {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.hero-slide-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: white;
    margin-bottom: 28px;
    max-width: 650px;
}

@media (min-width: 768px) {
    .hero-slide-title {
        font-size: 42px;
    }
}

@media (min-width: 1024px) {
    .hero-slide-title {
        font-size: 52px;
    }
}

.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slide:hover .hero-slide-btn {
    background: white;
    color: #0a0a0f;
    border-color: white;
}

.hero-slide-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-slide:hover .hero-slide-btn svg {
    transform: translateX(4px);
}

.hero-swiper-pagination {
    position: absolute;
    bottom: 24px !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ===================================
   Category Section (techtalk style)
   =================================== */
.category-section {
    padding: 48px 0;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.category-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: #1a1a1a;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-more-btn:hover {
    background: #2a2a2a;
}

/* ===================================
   Blog Card V2 (techtalk style)
   =================================== */
.blog-card-v2 {
    height: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card-v2:hover {
    border-color: var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.blog-card-v2-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card-v2-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #1a1a2e;
    flex-shrink: 0;
}

.blog-card-v2-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card-v2:hover .blog-card-v2-image img {
    transform: scale(1.05);
}

.blog-card-v2-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}

.blog-card-v2-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 70px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.blog-card-v2-overlay-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

.blog-card-v2-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.blog-card-v2-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text-muted);
}

.blog-card-v2-date {
    color: var(--text-muted);
}

.blog-card-v2-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.blog-card-v2-views svg {
    opacity: 0.6;
}

.blog-card-v2-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    color: var(--text-primary);
    margin-bottom: 0;
    height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.blog-card-v2:hover .blog-card-v2-title {
    color: var(--accent);
}

.blog-card-v2-excerpt {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text-secondary);
    margin-top: 12px;
    margin-bottom: 18px;
    height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-v2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.blog-card-v2-category {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.blog-card-v2:hover .blog-card-v2-category {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-soft);
}

.blog-card-v2-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.blog-card-v2:hover .blog-card-v2-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* Blog Swiper Pagination */
.blog-swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.blog-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--border-color);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.blog-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--text-primary);
    width: 20px;
    border-radius: 4px;
}

/* ===================================
   Blog Grid V2 (techtalk style)
   =================================== */
.blog-grid-v2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 28px;
}

@media (min-width: 640px) {
    .blog-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   Hero Section - Bold & Clean
   =================================== */
.hero {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-6xl);
    }
}

.hero-title span {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, #9acd32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
}

/* ===================================
   Blog Cards - Modern & Elegant
   =================================== */
.blog-section {
    padding: var(--spacing-2xl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.blog-card-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    background: var(--accent);
    border-radius: 6px;
}

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

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--accent);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-tags {
    display: none;
}

.blog-card-tag {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.blog-card-tag-more {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: auto;
}

.blog-card-date,
.blog-card-views {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card-date svg,
.blog-card-views svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* Featured Blog Card */
.blog-card-featured {
    grid-column: 1 / -1;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
}

.blog-card-featured:hover {
    border-color: var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .blog-card-featured {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        border-radius: 16px;
    }

    .blog-card-featured .blog-card-image {
        aspect-ratio: auto;
        min-height: 320px;
        border-radius: 16px 0 0 16px;
    }

    .blog-card-featured .blog-card-content {
        padding: 32px;
        justify-content: center;
    }

    .blog-card-featured .blog-card-title {
        font-size: 24px;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
    }

    .blog-card-featured .blog-card-excerpt {
        font-size: 15px;
        -webkit-line-clamp: 3;
        color: var(--text-secondary);
    }

    .blog-card-featured .blog-card-category {
        bottom: auto;
        top: 16px;
        left: 16px;
    }
}

/* ===================================
   Blog Detail - Focused Reading
   =================================== */
.blog-detail {
    padding: var(--spacing-lg) 0 var(--spacing-3xl);
}

.blog-detail-header {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.blog-detail-category {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    background: var(--accent);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
}

.blog-detail-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .blog-detail-title {
        font-size: var(--font-size-4xl);
    }
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.blog-detail-image {
    max-width: 1000px;
    margin: 0 auto var(--spacing-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.blog-detail-image img {
    width: 100%;
}

.blog-detail-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: var(--font-size-lg);
    line-height: 1.9;
}

.blog-detail-content h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: var(--spacing-3xl) 0 var(--spacing-lg);
    letter-spacing: -0.02em;
}

.blog-detail-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: var(--spacing-2xl) 0 var(--spacing-md);
}

.blog-detail-content p {
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
}

.blog-detail-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    transition: all var(--transition-fast);
}

.blog-detail-content a:hover {
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 4px;
}

.blog-detail-content img {
    border-radius: var(--radius-xl);
    margin: var(--spacing-2xl) 0;
}

.blog-detail-content blockquote {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-left: 4px solid var(--accent);
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    font-size: var(--font-size-xl);
    font-style: italic;
    color: var(--text-secondary);
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: var(--spacing-xl) 0;
    padding-left: var(--spacing-xl);
}

.blog-detail-content li {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.blog-detail-content ul li {
    list-style: disc;
}

.blog-detail-content ol li {
    list-style: decimal;
}

/* YouTube Embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    margin: var(--spacing-3xl) 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--bg-secondary);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.blog-tag {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.blog-tag:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    letter-spacing: -0.03em;
}

/* ===================================
   Blog Listing
   =================================== */
.blog-listing {
    padding: var(--spacing-xl) 0 var(--spacing-3xl);
}

.blog-listing-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.blog-listing-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.filter-tab {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border-radius: 6px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.filter-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--text-primary);
    color: white;
}

.filter-tab.filter-tag {
    color: var(--accent);
}

.filter-tab.filter-tag:hover {
    background: var(--accent-soft);
}

.filter-tab.filter-tag.active {
    background: var(--accent);
    color: white;
}

.filter-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto var(--spacing-lg);
}

.search-box input {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-2xl);
    padding-right: 60px;
    font-size: var(--font-size-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.search-box button:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-2xl);
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.pagination-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.pagination-item.active {
    background: var(--primary);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    color: var(--text-muted);
}

.no-results h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* ===================================
   Contact Page
   =================================== */
.contact-section {
    padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.contact-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
}

.contact-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--spacing-4xl);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-info-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.contact-info-desc {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.contact-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
}

.contact-item:hover {
    background: var(--accent-soft);
    transform: translateX(8px);
}

.contact-item-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.contact-item:hover .contact-item-icon {
    background: var(--accent);
}

.contact-item-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.contact-item-content p,
.contact-item-content a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
}

.form-group {
    margin-bottom: var(--spacing-xl);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.form-control {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-control.error {
    border-color: #ff4444;
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

/* ===================================
   Buttons - Clean & Bold
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-accent:hover {
    background: #d32f3d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn-lg {
    padding: var(--spacing-xl) var(--spacing-3xl);
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
}

/* ===================================
   Footer - techtalk style
   =================================== */
.footer {
    background: #1a1a1f;
    color: white;
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.footer-nav a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: white;
}

.footer-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.footer-lang-item {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    transition: all 0.2s;
}

.footer-lang-item:hover {
    color: white;
}

.footer-lang-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Social Links */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 32px 0;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.footer-social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Back to Top */
.back-to-top {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Breadcrumb
   =================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    font-size: var(--font-size-sm);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===================================
   Alerts
   =================================== */
.alert {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
}

.alert-success {
    background: rgba(200, 255, 0, 0.2);
    color: #2d5016;
    border: 1px solid rgba(200, 255, 0, 0.4);
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-lg); }
.mt-3 { margin-top: var(--spacing-xl); }
.mt-4 { margin-top: var(--spacing-2xl); }

.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-xl); }
.mb-4 { margin-bottom: var(--spacing-2xl); }

.py-1 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-2 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-3 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.py-4 { padding-top: var(--spacing-2xl); padding-bottom: var(--spacing-2xl); }

/* Accent text */
.text-accent {
    color: var(--accent);
}

/* Background accent */
.bg-accent {
    background: var(--accent);
    color: var(--primary);
}

/* ===================================
   Category Sections & Blog Slider
   =================================== */
.category-section {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--border-color);
}

.category-section:nth-child(even) {
    background: var(--bg-secondary);
}

.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.category-section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.category-section-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.category-section-link:hover {
    background: var(--accent);
    color: white;
    transform: translateX(4px);
}

.category-section-link svg {
    transition: transform 0.2s ease;
}

.category-section-link:hover svg {
    transform: translateX(3px);
}

/* Blog Slider - CSS Only Horizontal Scroll */
.blog-slider {
    position: relative;
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0 var(--container-padding);
}

.blog-slider-track {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--spacing-md);
    cursor: grab;
}

.blog-slider-track:active {
    cursor: grabbing;
}

/* Custom Scrollbar */
.blog-slider-track::-webkit-scrollbar {
    height: 6px;
}

.blog-slider-track::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.blog-slider-track::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.blog-slider-track::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.blog-slider-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-slider-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-slider-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.blog-slider-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-slider-card:hover .blog-slider-card-image img {
    transform: scale(1.03);
}

.blog-slider-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.blog-slider-card-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.blog-slider-card-video svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.blog-slider-card:hover .blog-slider-card-video {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.blog-slider-card-content {
    padding: 16px;
}

.blog-slider-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.blog-slider-card:hover .blog-slider-card-title {
    color: var(--accent);
}

.blog-slider-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-slider-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Text muted utility */
.text-muted {
    color: var(--text-muted);
}

/* ===================================
   Blog Filters & Tags
   =================================== */
.blog-filters {
    margin-bottom: var(--spacing-xl);
}

.filter-section {
    margin-bottom: var(--spacing-md);
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 4px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.tag-chip:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.tag-chip.active {
    background: var(--accent);
    color: white;
}

/* Active Filters - Compact Inline */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-xl);
}

.active-filters-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background: var(--accent);
    border-radius: 4px;
}

.active-filter-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 12px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.active-filter-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.clear-all-filters {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.5rem;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.clear-all-filters:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Blog Card Tags */
.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.blog-card-tag {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-muted);
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.blog-card:hover .blog-card-tag {
    background: var(--accent-soft);
    color: var(--text-secondary);
}

.blog-card-tag-more {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-muted);
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

/* Blog Card Video Badge */
/* Video Play Button - Center Overlay */
.blog-card-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.blog-card-video-badge svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.blog-card:hover .blog-card-video-badge {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Blog Card Placeholder */
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* ===================================
   Swiper Slider
   =================================== */
.blog-swiper {
    overflow: hidden;
    padding: 0 0 10px;
}

.blog-swiper .swiper-slide {
    height: auto;
}

.blog-swiper .swiper-button-prev,
.blog-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.blog-swiper .swiper-button-prev:hover,
.blog-swiper .swiper-button-next:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.blog-swiper .swiper-button-prev::after,
.blog-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

.blog-swiper .swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Play Button */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.blog-slider-card:hover .play-btn,
.blog-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 1);
}

/* ===================================
   Article Page (techtalk.az style)
   =================================== */
.article {
    padding: 24px 0 48px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.article-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.article-breadcrumb .separator {
    color: var(--border-color);
}

.article-header {
    margin-bottom: 24px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 38px;
    }
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-date::after {
    content: "·";
    margin-left: 16px;
}

.article-media {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.article-media img {
    width: 100%;
    height: auto;
    display: block;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-container img,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.video-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-style: italic;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-telegram {
    background: #0088cc;
    color: white;
}

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-copy {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.article-tags .tag {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.article-tags .tag:hover {
    background: var(--accent);
    color: white;
}

/* Related Posts Section */
.related-posts {
    padding: 48px 0;
    background: var(--bg-secondary);
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.related-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.03);
}

.related-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.related-card-content {
    padding: 16px;
}

.related-card-content h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover .related-card-content h3 {
    color: var(--accent);
}

.related-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Old Blog Single Styles (keeping for backwards compatibility) */
.blog-single {
    padding: var(--spacing-2xl) 0 var(--spacing-4xl);
}

.blog-single .breadcrumb {
    margin-bottom: var(--spacing-xl);
}

.blog-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-3xl);
    align-items: start;
}

/* Main Content */
.blog-single-main {
    min-width: 0;
}

.blog-single-header {
    margin-bottom: var(--spacing-xl);
}

.blog-single-category {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-fast);
}

.blog-single-category:hover {
    background: var(--accent);
    color: white;
}

.blog-single-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.blog-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
}

.blog-single-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.blog-single-meta-item svg {
    color: var(--accent);
}

.blog-single-meta-tags {
    display: flex;
    gap: var(--spacing-sm);
}

.blog-single-meta-tags a {
    color: var(--accent);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-single-meta-tags a:hover {
    text-decoration: underline;
}

/* Featured Video */
.blog-single-video {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: var(--bg-tertiary);
    cursor: pointer;
}

.video-wrapper img,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    transition: var(--transition-base);
}

.video-wrapper:hover .video-thumbnail {
    transform: scale(1.02);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 56px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.video-play-btn svg {
    width: 68px;
    height: 48px;
}

.video-wrapper:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Featured Image */
.blog-single-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.blog-single-content {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-single-content.prose h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--spacing-2xl) 0 var(--spacing-lg);
}

.blog-single-content.prose h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.blog-single-content.prose p {
    margin-bottom: var(--spacing-lg);
}

.blog-single-content.prose a {
    color: var(--accent);
    text-decoration: underline;
}

.blog-single-content.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.blog-single-content.prose ul,
.blog-single-content.prose ol {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-xl);
}

.blog-single-content.prose li {
    margin-bottom: var(--spacing-sm);
}

.blog-single-content.prose blockquote {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    font-style: italic;
}

.blog-single-content.prose code {
    background: var(--bg-tertiary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-single-content.prose pre {
    background: var(--text-primary);
    color: #f8f8f2;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
}

.blog-single-content.prose pre code {
    background: transparent;
    padding: 0;
}

/* Footer - Tags & Share */
.blog-single-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.blog-single-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
}

.blog-single-tags .label,
.blog-single-share .label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    margin-right: var(--spacing-xs);
}

.blog-single-tags a {
    padding: 0.3rem 0.7rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-single-tags a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.blog-single-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition-fast);
}

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

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Blog Single Sidebar
   =================================== */
.blog-single-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-xl));
}

.sidebar-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.author-avatar span {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
}

.author-widget h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.author-widget p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

/* Sidebar Title */
.sidebar-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Sidebar Posts */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sidebar-post {
    display: flex;
    gap: var(--spacing-md);
    text-decoration: none;
    padding: var(--spacing-sm);
    margin: calc(var(--spacing-sm) * -1);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.sidebar-post:hover {
    background: var(--bg-tertiary);
}

.sidebar-post-image {
    width: 70px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-image .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--border-color));
}

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

.sidebar-post-content h4 {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-content span {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Sidebar Categories */
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.sidebar-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.sidebar-category:hover,
.sidebar-category.active {
    background: var(--accent);
    color: white;
}

.sidebar-category span {
    background: var(--bg-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.sidebar-category:hover span,
.sidebar-category.active span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Sidebar Tags */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.sidebar-tags a {
    padding: 0.3rem 0.65rem;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-fast);
}

.sidebar-tags a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-single-layout {
        grid-template-columns: 1fr;
    }

    .blog-single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .sidebar-widget {
        margin-bottom: 0;
    }

    .author-widget {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .blog-single-title {
        font-size: var(--font-size-2xl);
    }

    .blog-single-sidebar {
        grid-template-columns: 1fr;
    }

    .author-widget {
        grid-column: span 1;
    }

    .blog-single-footer {
        flex-direction: column;
    }

    .video-play-btn {
        width: 60px;
        height: 42px;
    }

    .video-play-btn svg {
        width: 51px;
        height: 36px;
    }
}

/* ===================================
   Article Page - Two Column Layout (techtalk style)
   =================================== */
.article-page {
    padding: 24px 0 0;
}

.article-page .article-breadcrumb {
    margin-bottom: 24px;
}

.article-page .article-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Two Column Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

/* Category Badge */
.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.article-category:hover {
    background: var(--accent-dark, #4338ca);
    color: white;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.article-sidebar .sidebar-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
}

.article-sidebar .sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.sidebar-post:hover .sidebar-post-content h4 {
    color: var(--accent);
}

.sidebar-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sidebar-post:hover .sidebar-post-image img {
    transform: scale(1.05);
}

.sidebar-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

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

.sidebar-post-date {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sidebar-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

/* Related Section at Bottom */
.related-section {
    padding: 48px 0;
    background: var(--bg-secondary);
    margin-top: 48px;
}

.related-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Responsive Article Layout */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .article-sidebar {
        position: static;
    }

    .article-sidebar .sidebar-widget {
        max-width: 100%;
    }

    .sidebar-posts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .sidebar-post {
        flex-direction: column;
    }

    .sidebar-post-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .article-page {
        padding: 16px 0 0;
    }

    .sidebar-posts {
        grid-template-columns: 1fr;
    }

    .sidebar-post {
        flex-direction: row;
    }

    .sidebar-post-image {
        width: 80px;
        height: 60px;
    }

    .related-section {
        padding: 32px 0;
        margin-top: 32px;
    }
}

/* ===================================
   Blog Page - Clean Layout (techtalk style)
   =================================== */
.blog-page {
    padding: 32px 0 64px;
    min-height: 60vh;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.page-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.page-breadcrumb span {
    color: var(--text-muted);
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 40px;
    }
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.category-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tab:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

/* Search Badge */
.search-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--accent-soft);
    border-radius: 25px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}

.search-badge a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-badge a:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 18px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.pagination-btn.disabled {
    color: var(--text-muted);
    background: var(--bg-secondary);
    pointer-events: none;
    opacity: 0.5;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.pagination-page.active {
    background: var(--text-primary);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}

.no-results svg {
    margin-bottom: 24px;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-results p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: var(--text-primary);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Blog Page Responsive */
@media (max-width: 768px) {
    .blog-page {
        padding: 24px 0 48px;
    }

    .page-header {
        margin-bottom: 24px;
    }

    .page-title {
        font-size: 26px;
    }

    .category-tabs {
        gap: 8px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pagination-wrapper {
        gap: 12px;
        margin-top: 32px;
        padding-top: 24px;
    }

    .pagination-btn {
        width: 40px;
        height: 40px;
    }

    .pagination-pages {
        gap: 4px;
    }

    .pagination-page {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* ===================================
   Animations & Effects
   =================================== */

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Page Load Animation */
main {
    animation: fadeIn 0.5s ease-out;
}

/* Header Scroll Effect */
.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header.scrolled .header-top {
    border-bottom-color: transparent;
}

/* Navigation Link Animations */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Blog Card Hover Effects */
.blog-card-v2 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-card-v2-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-v2:hover .blog-card-v2-image img {
    transform: scale(1.08);
}

/* Category Tab Animations */
.category-tab {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover {
    transform: translateY(-2px);
}

/* Button Hover Effects */
.btn, .btn-back, .hero-slide-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before, .btn-back::before, .hero-slide-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before, .btn-back:hover::before, .hero-slide-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Hero Slider Animations */
.hero-slide-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-slide-title {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-slide-btn {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Swiper Slide Transitions */
.swiper-slide-active .hero-slide-content {
    animation: fadeInUp 0.8s ease-out;
}

.swiper-slide-active .hero-slide-title {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.swiper-slide-active .hero-slide-btn {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Social Link Hover */
.footer-social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link:hover {
    transform: translateY(-4px) scale(1.1);
}

/* Share Button Animations */
.share-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Sidebar Post Hover */
.sidebar-post {
    transition: all 0.3s ease;
}

.sidebar-post:hover {
    transform: translateX(8px);
}

.sidebar-post:hover .sidebar-post-image img {
    transform: scale(1.05);
}

.sidebar-post-image {
    overflow: hidden;
}

.sidebar-post-image img {
    transition: transform 0.4s ease;
}

/* Language Switcher Animation */
.lang-dropdown {
    transform-origin: top center;
    animation: scaleIn 0.2s ease-out;
}

/* Mobile Menu Animation */
.mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    animation: fadeIn 0.3s ease-out;
}

.mobile-nav-link {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }

/* Pagination Animation */
.pagination-page, .pagination-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-page:hover, .pagination-btn:hover {
    transform: translateY(-3px);
}

/* Image Loading Placeholder */
.blog-card-v2-placeholder,
.sidebar-post-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Breadcrumb Link Hover */
.page-breadcrumb a,
.article-breadcrumb a {
    position: relative;
}

.page-breadcrumb a::after,
.article-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.page-breadcrumb a:hover::after,
.article-breadcrumb a:hover::after {
    width: 100%;
}

/* Section Title Animation */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 100%;
}

/* Form Focus Animations */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Article Content Images */
.article-content img {
    transition: all 0.4s ease;
    border-radius: 12px;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Video Play Button Pulse */
.video-play {
    animation: pulse 2s infinite;
}

.video-play:hover {
    animation: none;
    transform: scale(1.1);
}

/* Footer Link Hover */
.footer-nav a {
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* Scroll Indicator */
@keyframes scrollIndicator {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Staggered Animation for Grid Items */
.blog-grid-v2 .blog-card-v2:nth-child(1) { animation-delay: 0s; }
.blog-grid-v2 .blog-card-v2:nth-child(2) { animation-delay: 0.1s; }
.blog-grid-v2 .blog-card-v2:nth-child(3) { animation-delay: 0.2s; }
.blog-grid-v2 .blog-card-v2:nth-child(4) { animation-delay: 0.3s; }
.blog-grid-v2 .blog-card-v2:nth-child(5) { animation-delay: 0.4s; }
.blog-grid-v2 .blog-card-v2:nth-child(6) { animation-delay: 0.5s; }

/* Ripple Effect */
.category-tab, .pagination-page, .pagination-btn {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Custom Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    opacity: 0;
    mix-blend-mode: difference;
}

.cursor-follower.cursor-hover {
    width: 50px;
    height: 50px;
    border-color: var(--accent);
    background: rgba(61, 157, 170, 0.1);
}

/* Hide cursor on mobile */
@media (max-width: 1024px) {
    .cursor-follower {
        display: none;
    }
}

/* Page Transition */
body.page-transition {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Revealed Animation Class */
.revealed {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Header Hidden State */
.header.hidden {
    transform: translateY(-100%);
}

.header {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Parallax */
.hero-slide-bg {
    overflow: hidden;
}

.hero-slide-bg img {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Card Tilt Effect */
.blog-card-v2 {
    transition: transform 0.2s ease, box-shadow 0.4s ease;
    will-change: transform;
}

/* Search Input Focus Animation */

/* Smooth Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0;
}

img.loaded {
    animation: fadeIn 0.5s ease;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

#backToTop svg {
    width: 24px;
    height: 24px;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection Color */
::selection {
    background: var(--accent);
    color: white;
}

/* Print Styles */
@media print {
    .header, .footer, #backToTop, .cursor-follower {
        display: none !important;
    }

    main {
        margin-top: 0 !important;
    }
}

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

    .cursor-follower {
        display: none;
    }
}
