@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary: #11BDF7;
    --secondary: #52DEFA;
    --dark: #1e293b;
    --light: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: #f1f5f9;
    transition: all 0.3s ease;
}
a {
    color:#11BDF7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.title-font {
    font-family: 'Playfair Display', serif;
}
.author-header-gradient {
            background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
        }
.gradient-text {
    background: linear-gradient(90deg,rgba(82, 222, 250, 1) 14%, rgba(17, 189, 247, 1) 76%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.btn-primary {
    background: linear-gradient(90deg,rgba(82, 222, 250, 1) 14%, rgba(17, 189, 247, 1) 76%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

/* Article Card */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
}
.search-box input {
    padding-left: 3rem;
    padding-right: 3rem;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    height: 2.5rem;
    transition: all 0.3s ease;
}
.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-btn:hover {
    background: #4338ca;
    transform: translateY(-50%) scale(1.05);
}

/* Categories */

 
        .category-header {
            background: linear-gradient(90deg,rgba(82, 222, 250, 1) 14%, rgba(17, 189, 247, 1) 76%);
        }
        
      
        .tag-indicator {
            position: relative;
            padding-left: 1.25rem;
        }
        
        .tag-indicator:before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0.75rem;
            height: 0.75rem;
            border-radius: 50%;
            background-color: var(--primary);
        }
        
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.category-item:last-child {
    border-bottom: none;
}
.category-item:hover {
    background: #f8fafc;
    padding-left: 0.5rem;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.category-count {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

.category-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Recent Searches */
.recent-searches {
    margin-top: 1rem;
}
.recent-search-item {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    margin: 0.25rem;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}
.recent-search-item:hover {
    background: #e0e7ff;
    color: var(--primary);
    border-color: var(--primary);
}
.recent-search-item i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* Category Progress Bars */
.category-progress {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 0.5rem;
}
.progress-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}



        .code-font {
            font-family: 'Fira Code', monospace;
        }
        
        .component-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .component-item {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            background: #fafafa;
        }
        
        .code-box {
            background: #1e293b;
            color: #e2e8f0;
            padding: 1rem;
            border-radius: 8px;
            font-family: 'Fira Code', monospace;
            font-size: 0.875rem;
            overflow-x: auto;
            margin: 1rem 0;
        }
        
        .code-box code {
            color: #f8fafc;
        }
        
        .alert-box {
            border-radius: 8px;
            padding: 1rem 1.5rem;
            margin: 1rem 0;
            border-left: 4px solid;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
            border: none;
            outline: none;
        }
        
        .btn:hover {
            transform: translateY(-1px);
        }
        
        .btn-sm {
            padding: 0.375rem 0.75rem;
            font-size: 0.875rem;
        }
        
        .btn-lg {
            padding: 0.75rem 1.5rem;
            font-size: 1.125rem;
        }
        
        .note-box {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 1px solid #bae6fd;
            border-radius: 8px;
            padding: 1rem 1.5rem;
            margin: 1rem 0;
            position: relative;
        }
        
        .note-box:before {
            content: '💡';
            position: absolute;
            left: -0.5rem;
            top: -0.5rem;
            background: white;
            border-radius: 50%;
            width: 2rem;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        blockquote {
            border-left: 4px solid var(--primary);
            padding-left: 1.5rem;
            margin: 2rem 0;
            font-style: italic;
            color: #64748b;
            background: #f8fafc;
            padding: 1.5rem;
            border-radius: 0 8px 8px 0;
        }
        
        blockquote footer {
            margin-top: 1rem;
            font-style: normal;
            color: #475569;
            font-size: 0.875rem;
        }
        
        
    /* General heading styles */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: 'Inter', sans-serif; /* Clean, modern font */
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: 1.3;
    color: #1e293b; /* slate-800 */
}

/* Specific sizes with responsive design */
.article-content h1 {
    font-size: 1.875rem; /* 30px */
}
@media (min-width: 768px) { /* md */
    .article-content h1 {
        font-size: 2.25rem; /* 36px */
    }
}

.article-content h2 {
    font-size: 1.5rem; /* 24px */
}
@media (min-width: 768px) {
    .article-content h2 {
        font-size: 1.875rem; /* 30px */
    }
}

.article-content h3 {
    font-size: 1.25rem; /* 20px */
}
@media (min-width: 768px) {
    .article-content h3 {
        font-size: 1.5rem; /* 24px */
    }
}

.article-content h4 {
    font-size: 1.125rem; /* 18px */
}
@media (min-width: 768px) {
    .article-content h4 {
        font-size: 1.25rem; /* 20px */
    }
}

.article-content h5 {
    font-size: 1rem; /* 16px */
}
@media (min-width: 768px) {
    .article-content h5 {
        font-size: 1.125rem; /* 18px */
    }
}

.article-content h6 {
    font-size: 0.875rem; /* 14px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569; /* slate-600 */
}
@media (min-width: 768px) {
    .article-content h6 {
        font-size: 1rem; /* 16px */
    }
}

/* Optional: Add subtle underline for H2/H3 */
.article-content h2, 
.article-content h3 {
    position: relative;
    padding-bottom: 0.25rem;
}
.article-content h2::after, 
.article-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 3px;
    background-color: #6366f1; /* indigo-500 */
    border-radius: 2px;
}



        .note-box {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 1px solid #bae6fd;
            border-radius: 8px;
            padding: 1rem 1.5rem 1rem 3.5rem;
            margin: 1rem 0;
            position: relative;
        }
        
        .note-box:before {
            content: '💡';
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.2rem;
        }
        
        .note-box.warning {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-color: #f59e0b;
        }
        
        .note-box.warning:before {
            content: '⚠️';
        }
        
        .note-box.danger {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            border-color: #ef4444;
        }
        
        .note-box.danger:before {
            content: '🚫';
        }
        
        .note-box.success {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            border-color: #10b981;
        }
        
        .note-box.success:before {
            content: '✅';
        }
        
        .accordion-item {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            margin-bottom: 1rem;
            overflow: hidden;
        }
        
        .accordion-header {
            padding: 1rem 1.5rem;
            background: #f8fafc;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .accordion-content {
            padding: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        
        .accordion-content.active {
            padding: 1rem 1.5rem;
            max-height: 1000px;
        }
        
        .highlight {
            background: linear-gradient(120deg, rgba(255, 242, 153, 0.5), rgba(255, 242, 153, 0.5));
            padding: 0.1rem 0.3rem;
            border-radius: 0.2rem;
        }
        
        .youtube-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            border-radius: 8px;
        }
        
        .youtube-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
        
        .lazy-youtube {
            position: relative;
            cursor: pointer;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .lazy-youtube img {
            width: 100%;
            height: auto;
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }
        
        .lazy-youtube:hover img {
            opacity: 0.5;
        }
        
        .lazy-youtube:before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 68px;
            height: 48px;
            background: #ff0000;
            border-radius: 12px;
            transition: all 0.3s ease;
        }
        
        .lazy-youtube:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-35%, -50%);
            border-style: solid;
            border-width: 12px 0 12px 20px;
            border-color: transparent transparent transparent #fff;
        }
        
        .lazy-youtube:hover:before {
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .image-grid {
            display: grid;
            gap: 1rem;
            margin: 1rem 0;
        }
        
        .image-grid-2 {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .image-grid-3 {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .image-grid-item {
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }
        
        .image-grid-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .image-grid-item:hover img {
            transform: scale(1.05);
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        th, td {
            padding: 0.75rem 1rem;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }
        
        th {
            background: #f8fafc;
            font-weight: 600;
        }
        
        tr:hover {
            background: #f1f5f9;
        }
        
        .sidebar-widget {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .category-list {
            list-style: none;
            padding: 0;
        }
        
        .category-list li {
            padding: 0.5rem 0;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .category-list li:last-child {
            border-bottom: none;
        }
        
        .category-list a {
            display: flex;
            justify-content: space-between;
            text-decoration: none;
            color: #64748b;
            transition: color 0.2s ease;
        }
        
        .category-list a:hover {
            color: var(--primary);
        }
        
        .category-count {
            background: #f1f5f9;
            padding: 0.2rem 0.5rem;
            border-radius: 12px;
            font-size: 0.75rem;
            color: #64748b;
        }
        
        
        /* Advanced Note Blocks */
        .note-block {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border-left: 4px solid #0ea5e9;
            border-radius: 8px;
            padding: 1.5rem 1.5rem 1.5rem 3.5rem;
            margin: 1.5rem 0;
            position: relative;
            box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
        }
        
        .note-block:before {
            content: '💡';
            position: absolute;
            left: 1.2rem;
            top: 1.5rem;
            font-size: 1.4rem;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        }
        
        .note-block.warning {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-left-color: #f59e0b;
        }
        
        .note-block.warning:before {
            content: '⚠️';
        }
        
        .note-block.danger {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            border-left-color: #ef4444;
        }
        
        .note-block.danger:before {
            content: '🚫';
        }
        
        .note-block.success {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            border-left-color: #10b981;
        }
        
        .note-block.success:before {
            content: '✅';
        }
        
        .note-block.premium {
            background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
            border-left-color: #a855f7;
        }
        
        .note-block.premium:before {
            content: '⭐';
        }
        
        /* Advanced Accordion */
        .accordion-v2 {
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            margin-bottom: 1rem;
            overflow: hidden;
            background: white;
            transition: all 0.3s ease;
        }
        
        .accordion-v2:hover {
            border-color: var(--primary);
        }
        
        .accordion-header-v2 {
            padding: 1.5rem;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            cursor: pointer;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .accordion-header-v2:hover {
            background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        }
        
        .accordion-content-v2 {
            padding: 0;
            max-height: 0;
            overflow: hidden;
            transition: all 0.4s ease;
        }
        
        .accordion-content-v2.active {
            padding: 1.5rem;
            max-height: 500px;
        }
        
        /* Progress Bars */
        .progress-container {
            background: #e2e8f0;
            border-radius: 20px;
            height: 8px;
            overflow: hidden;
            margin: 1rem 0;
        }
        
        .progress-bar {
            height: 100%;
            border-radius: 20px;
            transition: width 0.6s ease;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }
        
        /* Stats Cards */
        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            border: 1px solid #f1f5f9;
            transition: all 0.3s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 0.5rem;
        }
        
        /* Timeline */
        .timeline {
            position: relative;
            padding-left: 3rem;
        }
        
        .timeline:before {
            content: '';
            position: absolute;
            left: 1rem;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, var(--primary), var(--secondary));
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 2rem;
        }
        
        .timeline-item:before {
            content: '';
            position: absolute;
            left: -2rem;
            top: 0.5rem;
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
            background: var(--primary);
            border: 3px solid white;
            box-shadow: 0 0 0 3px var(--primary);
        }
        
        /* Testimonials */
        .testimonial {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            position: relative;
            border: 1px solid #f1f5f9;
        }
        
        .testimonial:before {
            content: '"';
            position: absolute;
            top: 1rem;
            right: 2rem;
            font-size: 4rem;
            color: #e2e8f0;
            font-family: 'Playfair Display', serif;
        }
        
        /* Pricing Cards */
        .pricing-card {
            background: white;
            border-radius: 16px;
            padding: 2.5rem;
            text-align: center;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            border: 1px solid #f1f5f9;
            transition: all 0.3s ease;
        }
        
        .pricing-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
        }
        
        .pricing-card.featured {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            color: white;
            transform: scale(1.05);
        }
        
        .pricing-card.featured:hover {
            transform: scale(1.05) translateY(-8px);
        }
        
        /* Code Blocks */
        .code-block {
            background: #1e293b;
            color: #e2e8f0;
            padding: 1.5rem;
            border-radius: 12px;
            font-family: 'Fira Code', monospace;
            font-size: 0.9rem;
            overflow-x: auto;
            margin: 1.5rem 0;
            border: 1px solid #334155;
        }
        
        .code-block code {
            color: #f8fafc;
        }
        
        /* Social Share */
        .social-share {
            display: flex;
            gap: 0.5rem;
            margin: 1.5rem 0;
        }
        
        .social-btn {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            transition: all 0.3s ease;
        }
        
        .social-btn:hover {
            transform: translateY(-2px) scale(1.1);
        }
        
        .twitter { background: #1da1f2; }
        .facebook { background: #1877f2; }
        .linkedin { background: #0a66c2; }
        .pinterest { background: #e60023; }
        
        /* Advanced Tables */
        .table-advanced {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin: 1.5rem 0;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        
        .table-advanced th {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            color: white;
            padding: 1rem 1.5rem;
            text-align: left;
            font-weight: 600;
        }
        
        .table-advanced td {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .table-advanced tr:last-child td {
            border-bottom: none;
        }
        
        .table-advanced tr:hover {
            background: #f8fafc;
        }
        
        /* Image Comparison Slider */
        .comparison-slider {
            position: relative;
            width: 100%;
            height: 400px;
            border-radius: 12px;
            overflow: hidden;
            margin: 2rem 0;
        }
        
        .comparison-slider img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .comparison-slider .before {
            width: 50%;
            overflow: hidden;
        }
        
        .comparison-slider .slider-handle {
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 4px;
            background: white;
            cursor: ew-resize;
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
        }
        
        .comparison-slider .slider-handle:after {
            content: '';
            position: absolute;
            left: -12px;
            top: 50%;
            width: 28px;
            height: 28px;
            background: white;
            border-radius: 50%;
            transform: translateY(-50%);
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }