/* ========================================
   TalkWithMasters - Custom CSS
   Modern Blog Design with Animations
======================================== */

/* Root Variables */
:root {
    --primary-color: #6B1E94;
    --primary-dark: #4a1466;
    --secondary-color: #E91E63;
    --accent-color: #00BCD4;
    --dark-color: #1a1a2e;
    --light-bg: #f8f9fa;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 15px 40px rgba(107, 30, 148, 0.2);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Full Width Container */
.container {
    max-width: 1600px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-fast);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-dropdown-toggle::after {
    display: none !important;
}

.nav-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.nav-dropdown-toggle.show i {
    transform: rotate(180deg);
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(107, 30, 148, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 450px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(107, 30, 148, 0.8)),
        url('/uploads/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    opacity: 0.95;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Floating shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

.hero-shapes .shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shapes .shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation-delay: 2s;
}

.hero-shapes .shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 4s;
}

/* Hero Featured Card */
.hero-featured-card {
    background: #fff;
    border-radius: 20px 20px 20px 80px;
    overflow: visible;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: slideInRight 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
    position: relative;
    z-index: 10;
    margin: 2rem 0;
}

.hero-featured-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(107, 30, 148, 0.15) 0%, rgba(233, 30, 99, 0.1) 100%);
    border-radius: 30px 30px 30px 90px;
    z-index: -1;
    opacity: 0;
    animation: glowPulse 2s ease-in-out 1s both;
}

.hero-featured-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
    animation: floatingDot 3s ease-in-out infinite;
}

.hero-featured-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.hero-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-featured-card:hover .hero-featured-image img {
    transform: scale(1.08);
}

.hero-featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.6rem 1.4rem 0.6rem 1rem;
    border-radius: 20px 0 30px 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.hero-featured-body {
    padding: 1.75rem;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-radius: 0 0 20px 80px;
}

.hero-featured-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-featured-date i {
    font-size: 0.9rem;
}

.hero-featured-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.hero-featured-title:hover {
    color: var(--primary-color);
}

.hero-featured-excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.hero-featured-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(107, 30, 148, 0.1);
}

.hero-featured-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(107, 30, 148, 0.2);
}

/* Slide In Right Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatingDot {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition-fast);
    height: 100%;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(107, 30, 148, 0.15);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    border-radius: 20px 20px 0 0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    border-radius: 20px 20px 0 0;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

/* Category Badge - Curved Stylish Design */
.category-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5rem 1.25rem 0.5rem 0.85rem;
    border-radius: 0 0 30px 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    transition: var(--transition-fast);
    z-index: 10;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2);
}

.blog-card:hover .category-badge {
    opacity: 0;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-fast);
}

.blog-card-title:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0;
}

.author-position {
    font-size: 0.75rem;
    color: #888;
}

/* Featured Blog Card */
.featured-card {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.featured-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
}

.featured-card .category-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
}

.featured-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-pill {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.category-pill i {
    margin-right: 0.5rem;
}

/* View All Button */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-view-all:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateX(5px);
}

.btn-view-all i {
    transition: var(--transition-fast);
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* Read Article Link */
.read-article {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.read-article:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Blog Detail Page */
.blog-detail-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-detail-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-detail-author .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.blog-detail-author .author-info {
    display: flex;
    flex-direction: column;
}

.blog-detail-author .author-name-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.blog-detail-author .author-name-link:hover {
    text-decoration: underline;
}

.blog-detail-author .author-position {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-detail-stats {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.blog-detail-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-detail-stats .stat-item i {
    font-size: 0.85rem;
}

.blog-detail-content {
    padding: 3rem 0;
}

.blog-detail-content h2,
.blog-detail-content h3 {
    /* color: var(--primary-color); */
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Author Card */
.author-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition-fast);
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.author-card-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.author-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.author-card-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-card-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.author-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    color: #666;
    transition: var(--transition-fast);
}

.author-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Sticky Sidebar for Blog Detail */
.blog-sidebar-sticky {
    position: sticky;
    top: 20px;
}

@media (max-width: 991px) {
    .blog-sidebar-sticky {
        position: relative;
        top: 0;
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--secondary-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-cta-primary {
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-cta-primary:hover {
    background: #c2185b;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

.btn-cta-secondary {
    padding: 0.8rem 2rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-cta-secondary:hover {
    background: #fff;
    color: var(--dark-color);
    border-color: #fff;
}

/* Responsive */
@media (max-width: 768px) {

    /* Container */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero Featured Card Mobile */
    .hero-featured-card {
        border-radius: 16px;
        margin: 1.5rem 0.5rem;
    }

    .hero-featured-card::before {
        display: none;
    }

    .hero-featured-card::after {
        width: 20px;
        height: 20px;
        top: 5px;
        right: -8px;
    }

    .hero-featured-image {
        height: 160px;
        border-radius: 16px 16px 0 0;
    }

    .hero-featured-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem 0.4rem 0.8rem;
    }

    .hero-featured-body {
        padding: 1rem;
        border-radius: 0 0 16px 16px;
    }

    .hero-featured-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .hero-featured-excerpt {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-featured-author {
        margin-top: 0.75rem;
    }

    .hero-featured-avatar {
        width: 32px;
        height: 32px;
    }

    .hero-featured-author p {
        font-size: 0.8rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Blog Cards Mobile */
    .blog-card {
        margin-bottom: 1.5rem;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-body {
        padding: 1rem;
    }

    .blog-card-title {
        font-size: 1rem;
    }

    /* Blog Detail Mobile */
    .blog-detail-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .blog-detail-header {
        padding: 2rem 0 1.5rem;
    }

    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .blog-detail-author {
        width: 100%;
    }

    .blog-detail-author .author-avatar {
        width: 45px;
        height: 45px;
    }

    .blog-detail-author .author-name-link {
        font-size: 0.95rem;
    }

    .blog-detail-author .author-position {
        font-size: 0.8rem;
    }

    .blog-detail-stats {
        width: 100%;
        gap: 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .blog-detail-stats .stat-item {
        font-size: 0.85rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.8rem;
    }

    /* Category Pills */
    .category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .category-pill {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    /* Navbar Mobile */
    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .btn-contact {
        margin-top: 1rem;
        display: block;
        text-align: center;
    }

    /* Featured Section */
    .featured-section .row {
        margin: 0 -0.5rem;
    }

    .featured-section .col-lg-4 {
        padding: 0 0.5rem;
    }

    /* Sidebar Mobile */
    .sidebar {
        margin-top: 2rem;
    }

    /* Author Page Mobile */
    .author-header {
        padding: 2rem 0;
    }

    .author-avatar-large {
        width: 100px;
        height: 100px;
    }

    .author-name {
        font-size: 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-featured-image {
        height: 140px;
    }

    .hero-featured-title {
        font-size: 0.95rem;
    }

    .blog-card-image {
        height: 150px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Explore blogs section */
.explore-section {
    background: var(--light-bg);
    padding: 4rem 0;
}

/* Image placeholder */
.img-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

/* ========================================
   #TalkWithMasters Knowledge Series Section
======================================== */
.knowledge-series-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 50%, #f0f8ff 100%);
    position: relative;
    overflow: hidden;
}

.knowledge-series-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 30, 148, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.knowledge-series-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.knowledge-series-image-wrapper {
    position: relative;
    display: inline-block;
}

.knowledge-series-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 15px 40px rgba(107, 30, 148, 0.2);
    transition: var(--transition-slow);
    filter: grayscale(100%);
}

.knowledge-series-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(107, 30, 148, 0.3);
    filter: grayscale(0%);
}

.knowledge-series-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(107, 30, 148, 0.3);
    white-space: nowrap;
}

.knowledge-series-badge i {
    margin-right: 0.5rem;
}

/* Expert Carousel Specific Styles */
.expert-bio-snippet h5,
.expert-full-bio h5 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.expert-full-bio .knowledge-series-intro {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #d1d1d1 !important;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 4px !important;
    opacity: 1 !important;
}

.carousel-indicators button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    width: 28px;
    border-radius: 10px;
}

.carousel-controls .btn-outline-primary {
    border-color: rgba(107, 30, 148, 0.2);
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Mobile Responsive Navigation Fix */
@media (max-width: 991.98px) {
    .carousel-item {
        position: relative;
    }

    .carousel-controls {
        position: absolute;
        top: 0;
        right: 0;
        margin-top: 5px !important;
        z-index: 1050;
    }

    .knowledge-series-content {
        padding-top: 40px;
    }
}

.knowledge-series-content {
    position: relative;
    z-index: 1;
}

.knowledge-series-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.knowledge-series-tag i {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.knowledge-series-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.knowledge-series-intro {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.knowledge-series-intro strong {
    color: var(--primary-color);
}

.knowledge-series-quote {
    background: linear-gradient(135deg, rgba(107, 30, 148, 0.08), rgba(233, 30, 99, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1.5rem;
    position: relative;
}

.knowledge-series-quote i {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.15;
}

.knowledge-series-quote p {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary-dark);
}

.knowledge-series-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 1199.98px) {
    .knowledge-series-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .knowledge-series-features {
        grid-template-columns: 1fr;
    }
}

.knowledge-series-features-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.knowledge-series-features .feature-item,
.knowledge-series-features-2 .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.knowledge-series-features .feature-item:hover,
.knowledge-series-features-2 .feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(107, 30, 148, 0.1);
}

.knowledge-series-features .feature-item i,
.knowledge-series-features-2 .feature-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.knowledge-series-features .feature-item span,
.knowledge-series-features-2 .feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
}

.knowledge-series-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Why Cards */
.why-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(107, 30, 148, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.why-card-icon i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive for Knowledge Series */
@media (max-width: 991px) {
    .knowledge-series-image {
        width: 200px;
        height: 200px;
    }

    .knowledge-series-title {
        font-size: 1.75rem;
    }

    .knowledge-series-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .knowledge-series-section {
        padding: 3rem 0;
    }

    .knowledge-series-image {
        width: 180px;
        height: 180px;
        margin-bottom: 1rem;
    }

    .knowledge-series-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        display: inline-block;
        margin-top: 1rem;
    }

    .knowledge-series-title {
        font-size: 1.5rem;
    }

    .knowledge-series-intro {
        font-size: 1rem;
    }

    .knowledge-series-cta {
        flex-direction: column;
    }

    .why-card {
        padding: 1.5rem;
    }
}

/* Sidebar Connect Box & Stats */
.knowledge-series-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-connect-box {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: left;
}

.sidebar-connect-box h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.sidebar-connect-box h5 i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

.btn-connect {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.btn-connect:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(107, 30, 148, 0.3);
}

.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-stats .stat-item {
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.sidebar-stats .stat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(107, 30, 148, 0.1);
}

.sidebar-stats .stat-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.sidebar-stats .stat-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

@media (max-width: 991px) {
    .knowledge-series-sidebar {
        position: relative;
        top: 0;
    }

    .sidebar-connect-box,
    .sidebar-stats {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Newsletter Footer Section */
.newsletter-section {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Honeypot anti-spam (hidden from humans) */
.newsletter-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.newsletter-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px 0 0 10px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 30, 148, 0.2);
    color: #fff;
}

.btn-newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0 10px 10px 0;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-newsletter:hover {
    color: #fff;
    box-shadow: 0 5px 20px rgba(107, 30, 148, 0.4);
    transform: translateY(-2px);
}

.newsletter-message .alert {
    font-size: 0.85rem;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .newsletter-section .row {
        text-align: center;
    }

    .newsletter-title {
        justify-content: center;
    }

    .newsletter-text {
        margin-bottom: 1rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form .form-control {
        width: 100% !important;
        border-radius: 10px !important;
        flex: none;
    }

    .btn-newsletter {
        border-radius: 10px !important;
        width: 100%;
    }
}

/* Author Images Carousel */
#authorImagesCarousel {
    position: relative;
    width: 100%;
    height: 100%;
}

#authorImagesCarousel .carousel-inner {
    border-radius: 20px;
    overflow: hidden;
}

#authorImagesCarousel .carousel-item {
    position: relative;
}

#authorImagesCarousel .carousel-item a {
    display: block;
}

.author-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Knowledge Series Image Wrapper */
.knowledge-series-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 220px;
}

.knowledge-series-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.knowledge-series-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(107, 30, 148, 0.4);
}

/* Breadcrumb Navigation */
.breadcrumb-light {
    background: transparent;
    padding: 0;
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-light .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.breadcrumb-light .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}