
:root {
    --accent: #ff6b6b;
    --dark: #2d3436;
    --gray: #636e72;
    --light-gray: #b2bec3;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--dark);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── FILTER BAR ── */
.filter-bar {
    padding: 3rem 2rem 2rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--bg);
}

.tag-btn {
    background: var(--bg);
    border: none;
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-right: 20px;
}

.tag-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background:linear-gradient(90deg, #51A5D1 0%, #82399C 47%, #F04E80 100%);
    transition: width 0.3s ease;
}

.tag-btn:hover {
    color: var(--dark);
}

.tag-btn:hover::after {
    width: 100%;
}

.tag-btn.active {
    color: linear-gradient(90deg, #51A5D1 0%, #82399C 47%, #F04E80 100%);
}

.tag-btn.active::after {
    width: 100%;
}

.tag-btn span {
    position: relative;
}

/* ── FEATURED SECTION - MAGAZINE STYLE ── */
.featured-section {
    padding: 2rem 2rem 2rem;
    background: var(--bg);
    position: relative;
}

.section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
        color: #191e3e;
    margin-bottom: 2.5rem;
    display: block;
}

.featured-card {
    background: transparent;
    overflow: visible;
    cursor: pointer;
    position: relative;
}

.featured-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
}

.featured-image {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: var(--bg-alt);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-content {
    background-color: #fff !important;
    border: double 1px transparent !important;
    border-radius: 12px !important;
    background-image: linear-gradient(white, white), linear-gradient(127.45deg, #B7D7F9 3.46%, #E6ACCB 99.42%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    background: var(--bg);
    padding: 3rem;
    position: absolute;
    bottom: -100px;
    left: 110px;
    right: 110px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 10;
        border-radius: 5px;
}

.post-tag {
   display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 0;
    margin-bottom: 1rem;
    align-self: flex-start;
   color: #d671ac;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #d671ac;
    border-radius: 50px;
    padding: 3px 10px;
}

.post-tag.green {
    border: 1px solid #00b894;
    color: #00b894;
    background: #00b89400;
}

.post-tag.amber {

     border: 1px solid #fdcb6e;
    color: #fdcb6e;
    background: #fdcb6e00;

}

.post-tag.purple {
    color: #a29bfe;
     border: 1px solid #a29bfe;
         background: #a29bfe00;
}

.featured-content h2 {
       color: #191e3e;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-family: Montserrat-Bold;
}

.featured-content > div > p {
    font-family: Montserrat-Medium;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #486b97;
   
    letter-spacing: 0.05em;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 15px;
     color: #3e425c;
}

.read-more::after {
    content: '→';
    font-size: 18px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bg-alt);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.avatar.b {
    background: var(--accent);
}

.avatar.g {
    background: #00b894;
}

.avatar.o {
    background: #fdcb6e;
    color: var(--dark);
}

.avatar.r {
    background: #d63031;
}

.meta-text .author {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.meta-text .date {
    font-size: 13px;
    color: var(--light-gray);
}


.grid-section {
    padding: 13rem 2rem 5rem;
   
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 3rem 2rem;
}

.post-card {
    background-color: #fff !important;
    border: double 1px transparent !important;
    border-radius: 12px !important;
    background-image: linear-gradient(white, white), linear-gradient(127.45deg, #B7D7F9 3.46%, #E6ACCB 99.42%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    background: var(--bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}



.post-card:hover::before {
    height: 100%;
}

.card-thumb {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--bg-alt);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}



.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--bg);
}

.card-body h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color:  #191e3e;;
}

.card-body > p {
    font-family: Montserrat-Medium;
    font-weight: 400;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.reading-time {
    font-size: 12px;
    color: var(--light-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .filter-bar {
    padding: 2rem 0px;
    }
    .featured-section {
    padding: 2rem 0px;
    }
    .featured-content {
        /* position: static; */
        margin-top: -80px;
        left: 20px;
        right: 20px;
        padding: 2.5rem 2rem;
    }

    .featured-image {
        height: 400px;
    }


    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .filter-bar {
        padding: 2rem 1rem 1.5rem;
    }

    .featured-section {
        padding:25px 0px;
    }

    .featured-content {
        left: 10px;
        right: 10px;
        padding: 2rem 1.5rem;
        margin-top: -60px;
    }

    .featured-content h2 {
        font-size: 1.75rem;
    }

    .featured-image {
        height: 300px;
    }

    .grid-section {
        padding: 2rem 0rem 3rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-thumb {
        height: 220px;
    }
}


/* blog details */
.menu-bard{
	display:none;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

/* ========================================
   BLOG DETAIL PAGE - CREATIVE STRUCTURE
   ======================================== */

/* Base Layout */
.blog-detail-wrapper {
    background: linear-gradient(to bottom, #faf5ff 0%, #ffffff 50%);
    min-height: 100vh;
    padding: 0;
}

/* Hero Section with Breadcrumb */
.blog-hero-section {
   background: linear-gradient(180deg, #bcd0efa8 0%, rgb(144 71 161 / 19%) 48.07%, rgb(215 86 149 / 23%) 90.2%);
    padding: 30px 0 40px;
    position: relative;
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #ffffff);
}

/* Animated Floating Icons for Freelancing Theme */
.hero-floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 40px;
    animation: float 20s infinite ease-in-out;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.floating-icon:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.floating-icon:nth-child(4) {
    top: 70%;
    right: 8%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.floating-icon:nth-child(5) {
    top: 40%;
    left: 8%;
    animation-delay: 3s;
    animation-duration: 22s;
}

.floating-icon:nth-child(6) {
    top: 50%;
    right: 15%;
    animation-delay: 5s;
    animation-duration: 19s;
}

.floating-icon:nth-child(7) {
    top: 30%;
    left: 25%;
    animation-delay: 2.5s;
    animation-duration: 17s;
}

.floating-icon:nth-child(8) {
    top: 80%;
    right: 25%;
    animation-delay: 4.5s;
    animation-duration: 21s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-60px) rotate(-5deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
        opacity: 0.2;
    }
}

/* Animated Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 19s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 11s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; animation-duration: 20s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Animated Wave Effect */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 2;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    animation: waveAnimation 8s ease-in-out infinite;
}

@keyframes waveAnimation {
    0%, 100% {
        d: path("M0,50 Q250,30 500,50 T1000,50 T1500,50 T2000,50 V100 H0 Z");
    }
    50% {
        d: path("M0,50 Q250,70 500,50 T1000,50 T1500,50 T2000,50 V100 H0 Z");
    }
}


/* Hero Content */
.blog-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-category-tag {
   display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #6283d2;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    border: 1px solid rgb(194 196 219);
}

.blog-category-tag i {
    font-size: 12px;
}

.blog-hero-title {
    font-size: 30px;
    font-weight: 600;
       color: #191e3e;
    line-height: 1.2;
    margin-bottom: 45px;
    margin-top:0px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}



.blog-publish-date {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.blog-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 600;
}

.blog-stat-item i {
    font-size: 16px;
}


.blog-main-container {
    max-width: 1400px;
    margin:0px auto;
    padding: 0 20px 80px;
    position: relative;
    z-index: 10;
}

.blog-content-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 15px;
    align-items: start;
    margin-top:50px;
}

/* Social Share Sidebar */
.blog-social-sidebar {
    position: sticky;
    top: 120px;
}


/* Featured Image Card */
.blog-featured-card {
    background-color: #fff !important;
    border: double 1px transparent !important;
    border-radius: 12px !important;
    background-image: linear-gradient(white, white), linear-gradient(127.45deg, #B7D7F9 3.46%, #E6ACCB 99.42%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    border-radius: 5px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 48px;
}

.blog-featured-image {
    width: 100%;
    border-radius:5px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}



/* Article Content */
.blog-article-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.blog-article-content {
    max-width: 100%;
    color: var(--text-body);
    margin-top:25px;
}

.blog-article-content > p:first-of-type {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 32px;
}

.blog-article-content p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 5px;
    color: var(--text-body);
}

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    color: var(--text-dark);
    font-weight: 600;
     margin-top: 20px;
    margin-bottom: 15px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.blog-article-content h2 {
font-family: Montserrat-Bold;
    font-weight: 500;
    color: rgb(25, 30, 62);
    font-size: 24px;
    position: relative;
    
}



.blog-article-content h3 {
       font-size: 15px;
    color: #191e3e;
    font-weight:600;
}

.blog-article-content h4 {
    font-size: 20px;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 40px 0;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 28px;
    padding-left: 32px;
}

.blog-article-content li {
      margin-bottom: 8px;
    /* line-height: 1.8; */
    color: var(--text-body);
    font-size: 13px;
    font-weight: 500;
}

.blog-article-content li::marker {
    color: #0f172a;
    font-weight: 700;
}

.blog-article-content blockquote {
    position: relative;
    border-left: none;
    padding: 32px 32px 32px 72px;
    margin: 40px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: var(--radius-lg);
    font-style: italic;
    color: var(--text-dark);
    font-size: 20px;
    line-height: 1.7;
}

.blog-article-content blockquote::before {
    content: '"';
    position: absolute;
    left: 24px;
    top: 24px;
    font-size: 64px;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    font-family: Georgia, serif;
}

.blog-article-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.blog-article-content a:hover {
    border-bottom-color: var(--primary);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
     background-color: #fff !important;
    border: double 1px transparent !important;
    border-radius: 12px !important;
    background-image: linear-gradient(white, white), linear-gradient(127.45deg, #B7D7F9 3.46%, #E6ACCB 99.42%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    border-radius: 5px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

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

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #191e3e;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--bg-light);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget-title i {
    color: var(--primary);
    font-size: 18px;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
    animation: slideRight 0.8s ease-out;
}

@keyframes slideRight {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* Related Posts with Stagger Animation */
.related-post-item {
        border: 1px solid #e9e9e9;
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInSlide 0.5s ease-out forwards;
    position: relative;
    overflow: hidden;
     background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.related-post-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.related-post-item:hover::before {
    transform: scaleY(1);
}

/* Stagger animation delays */
.related-post-item:nth-child(1) { animation-delay: 0.1s; }
.related-post-item:nth-child(2) { animation-delay: 0.2s; }
.related-post-item:nth-child(3) { animation-delay: 0.3s; }
.related-post-item:nth-child(4) { animation-delay: 0.4s; }
.related-post-item:nth-child(5) { animation-delay: 0.5s; }
.related-post-item:nth-child(6) { animation-delay: 0.6s; }

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

.related-post-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.related-post-thumb {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.related-post-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* .related-post-item:hover .related-post-thumb {
    transform: scale(1.1) rotate(2deg);
    box-shadow: var(--shadow-md);
} */

.related-post-item:hover .related-post-thumb::after {
    opacity: 1;
}

.related-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-post-title {
    font-size: 14px;
    font-weight: 600;
   color: #191e3e;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-item:hover .related-post-title {
       color: #191e3e;  
}

/* Loading skeleton for related posts */
.related-post-skeleton {
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.skeleton-thumb {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    flex: 1;
}

.skeleton-title {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-date {
    height: 12px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

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

/* Empty state */
.related-posts-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.related-posts-empty i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 16px;
    display: block;
}

.related-posts-empty p {
    margin: 0;
    font-size: 14px;
}

/* Author Box */
.author-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-top: 60px;
    text-align: center;
}

.author-box-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
    margin: 0 auto 20px;
    object-fit: cover;
}

.author-box-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.author-box-bio {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.author-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.author-social-link:hover {
    background: var(--primary);
    color: var(--bg-white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   RELATED ARTICLES SECTION
   ======================================== */

.related-articles-section {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(236, 72, 153, 0.02) 100%);
    border-radius: var(--radius-xl);
}

.related-articles-header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.6s ease-out;
}

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

.related-articles-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.related-articles-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* Related Article Card */
.related-article-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
    position: relative;
}

/* Stagger animation for cards */
.related-article-card:nth-child(1) { animation-delay: 0.1s; }
.related-article-card:nth-child(2) { animation-delay: 0.2s; }
.related-article-card:nth-child(3) { animation-delay: 0.3s; }
.related-article-card:nth-child(4) { animation-delay: 0.4s; }
.related-article-card:nth-child(5) { animation-delay: 0.5s; }
.related-article-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.related-article-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.related-article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.related-article-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.related-article-card:hover .related-article-image::before {
    opacity: 1;
}

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

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

.related-article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.related-post-date{
    font-size:13px;
}

.related-article-content {
    padding: 24px;
}

.related-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.related-article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-article-meta-item i {
    color: var(--primary);
    font-size: 12px;
}

.related-article-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-article-card:hover .related-article-title {
    color: var(--primary);
}

.related-article-excerpt {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.related-article-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-article-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.related-article-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.related-article-read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.related-article-card:hover .related-article-read-more {
    gap: 10px;
}

.related-article-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-read-more i {
    transform: translateX(4px);
}

/* Empty State */
.related-articles-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.related-articles-empty i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
    display: block;
}

.related-articles-empty h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.related-articles-empty p {
    margin: 0;
    font-size: 15px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-content-layout {
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }
    
    .blog-social-sidebar {
        display: none;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .blog-content-layout {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    
    .blog-sidebar {
        position: static;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .blog-hero-title {
        font-size: 20px;
    }
    
    .blog-article-wrapper {
        padding: 40px 32px;
    }
    
    .related-articles-title {
        font-size: 30px;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 767px) {
   .featured-section{
display:none;
    }
    .blog-hero-section {
               padding: 40px 0 50px;
    }
    
    .blog-hero-title {
        font-size: 32px;
    }
    
 
    .blog-main-container {
        margin-top: -60px;
    }
    
    .blog-featured-card {
        padding: 16px;
    }
    
    .blog-article-wrapper {
        padding: 32px 24px;
    }
    
    .blog-article-content > p:first-of-type {
        font-size: 19px;
    }
    
    .blog-article-content p {
        font-size: 16px;
    }
    
    .blog-article-content h2 {
        font-size: 28px;
    }
    
    .blog-article-content h3 {
        font-size: 24px;
    }
    
    .sidebar-widget {
        padding: 24px;
    }
    
    .related-post-thumb {
        width: 80px;
        height: 80px;
    }
    
    .related-articles-section {
        margin-top: 60px;
        padding: 40px 20px;
    }
    
    .related-articles-title {
        font-size: 26px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .blog-hero-section {
               padding: 40px 0 50px;
    }
    
    .blog-hero-title {
        font-size: 26px;
    }
    
    .blog-category-tag {
        font-size: 11px;
        padding: 8px 16px;
    }
    
    .blog-author-avatar {
        width: 48px;
        height: 48px;
    }
    
    .blog-article-wrapper {
        padding: 24px 20px;
    }
    
    .blog-article-content blockquote {
        padding: 24px 24px 24px 56px;
        font-size: 17px;
    }
    
    .blog-article-content blockquote::before {
        font-size: 48px;
        left: 16px;
    }
    
    .author-box {
        padding: 32px 24px;
    }
    
    .related-articles-title {
        font-size: 22px;
    }
    
    .related-article-content {
        padding: 20px;
    }
}
