/* ============================================= */
/*              Modern Professional CSS           */
/* ============================================= */

/**
 * Table of Contents:
 * 1. Variables & Theme
 * 2. Base Styles
 * 3. Typography
 * 4. Layout Components
 *   4.1 Header & Navigation
 *   4.2 Hero Section
 *   4.3 Cards
 *   4.4 Buttons & Badges
 *   4.5 Forms
 *   4.6 Footer
 * 5. Utility Classes
 * 6. Animations & Transitions
 * 7. Responsive Adjustments
 */

/* ============================================= */
/* 1. Variables & Theme                          */
/* ============================================= */
:root {
    /* Color Palette */
    /* --primary-color: #3b82f6; */
    /* --primary-color: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    --primary-color: #667eea;
    /* Modern blue */
    --primary-hover: #2563eb;
    --primary-light: #93c5fd;
    --secondary-color: #64748b;
    /* Cool gray */
    --accent-color: #f59e0b;
    /* Amber */
    --success-color: #10b981;
    /* Emerald */
    --danger-color: #ef4444;
    /* Red */
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;

    /* Neutral Colors */
    --dark-color: #1e293b;
    /* Dark slate */
    --light-color: #f8fafc;
    /* Lightest slate */
    --border-color: #e2e8f0;

    /* Surface Colors */
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --header-bg: #ffffff;
    --footer-bg: #0f172a;

    /* Text Colors */
    --text-color: #334155;
    /* --text-muted: #64748b; */
    --text-muted: #8194b1;
    --footer-text: #94a3b8;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

[data-bs-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --secondary-color: #94a3b8;
    --dark-color: #f8fafc;
    --light-color: #1e293b;
    --border-color: #334155;
    --card-bg: #1e293b;
    --body-bg: #0f172a;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --header-bg: #1e293b;
    --footer-bg: #020617;
}

/* ============================================= */
/* 2. Base Styles                                */
/* ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg);
    margin: 0;
    padding: 0;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

/* Preload critical resources */
.preload-hero {
    background-image: url('../../images/hero.png');
    display: none;
}

/* Image optimization */
.img-lcp-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: #f5f5f5;
}

/* Layout stability */
.card-img-top-container {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
}

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

/* Smooth interactions */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Testimonial slider fixes */
.testimonial-slide {
    padding: 0 15px;
}

/* Critical CSS for above-the-fold content */
.hero-section {
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
}

/* Font loading optimization */
body {
    font-display: swap;
}

/* ============================================= */
/* 3. Typography                                */
/* ============================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    /* font-family: 'Playfair Display', serif; */
    font-family: 'Poppins',
        sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ============================================= */
/* 4. Layout Components                          */
/* ============================================= */

/* 4.1 Header & Navigation */
.top-bar {
    font-size: 0.875rem;
    background-color: var(--dark-color);
    color: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    background-color: var(--header-bg) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all var(--transition-normal);
}

.navbar-brand img {
    transition: transform var(--transition-normal);
    height: 40px;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-color), 0.1);
    color: var(--primary-color);
}

/* 4.2 Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-section.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-container img {
    transition: transform var(--transition-slow);
}

.hero-image-container:hover img {
    transform: scale(1.03);
}

/* 4.3 Cards */
.card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg) !important;
}

.card-img-top-container {
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.scale-on-hover {
    transition: transform var(--transition-slow);
}

.hover-lift:hover .scale-on-hover {
    transform: scale(1.05);
}

/* 4.4 Buttons & Badges */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

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

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

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-full);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: var(--radius-full);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* 4.5 Forms */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color), 0.25);
}

/* Top Bar Styles */
.top-bar {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    transition: opacity 0.2s ease;
}

.top-bar a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Search Form in Top Bar */
.search-form .form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 20px;
    padding: 0.375rem 1rem;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none;
}

.search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form .btn {
    color: rgba(255, 255, 255, 0.8);
    margin-left: -40px;
}

/* Main Navigation */
.navbar {
    padding: 0.75rem 0;
}

.nav-link {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    .nav-link:after {
        display: none;
    }
}

/* 4.6 Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0;
}

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

footer a:hover {
    color: white;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 2px;
    background-color: var(--primary-color);
}

/* ============================================= */
/* 5. Utility Classes                            */
/* ============================================= */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    background-color: rgba(var(--primary-color), 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

/* Back to Top Button */
#btn-back-to-top {
    position: fixed;
    bottom: 1rem;
    right: 2rem;
    display: none;
    width: 3rem;
    height: 3rem;
    z-index: 99;
    opacity: 0.9;
    border-radius: var(--radius-full);
}

#btn-back-to-top:hover {
    opacity: 1;
    transform: translateY(-0.25rem);
}


/* ============================================= */
/* Module Specific Styles                        */
/* ============================================= */

/* AdSense Manager */
.range-slider {
    padding: 0 0.5rem;
}

/* Affiliate Builder */
.star-rating {
    font-size: 1.25rem;
    letter-spacing: 0.25rem;
}

/* Guest Posts */
.table-hover tbody tr {
    transition: all var(--transition-fast);
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-color), 0.03);
}

/* Ad Block Detector */
.adblock-preview {
    max-width: 500px;
    margin: 0 auto;
    border: 1px dashed var(--border-color);
}

/* Module Cards */
.module-card {
    border-left: 3px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Status Badges */
.badge-status {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Form Controls */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.5em;
}

/* Ad Containers */
.ad-placeholder {
    border: 2px dashed rgba(var(--primary-color), 0.3);
    transition: all 0.3s ease;
}

.in-content-ad .ad-placeholder {
    width: 300px;
    height: 250px;
    margin: 0 auto;
}

.sidebar-ad .ad-placeholder {
    width: 300px;
    height: 600px;
    margin: 0 auto;
}

/* Works for Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* Works for Firefox */
* {
    scrollbar-width: none;
    /* hide scrollbar */
    -ms-overflow-style: none;
    /* hide scrollbar for IE & Edge */
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {

    .in-content-ad .ad-placeholder,
    .sidebar-ad .ad-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    .sidebar-ad {
        position: static !important;
    }
}

/* Responsive Tables */
@media (max-width: 767.98px) {
    .table-responsive {
        border: 0;
    }

    .table-responsive thead {
        display: none;
    }

    .table-responsive tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    .table-responsive td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid var(--border-color);
    }

    .table-responsive td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: calc(50% - 1rem);
        padding-right: 1rem;
        text-align: left;
        font-weight: 600;
        color: var(--dark-color);
    }

    .table-responsive td:last-child {
        border-bottom: 0;
    }
}


/* ============================================= */
/* 6. Animations & Transitions                   */
/* ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal) forwards;
}

/* ============================================= */
/* 7. Responsive Adjustments                     */
/* ============================================= */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section .col-lg-6 {
        order: 2;
        margin-bottom: 2rem;
    }

    .card-img-top {
        height: 180px;
    }

    footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}


/* Ad Containers */
.ad-container {
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.ad-placeholder {
    min-height: 90px;
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius-md);
}

.leaderboard-ad .ad-placeholder {
    width: 728px;
    height: 90px;
}

.rectangle-ad .ad-placeholder {
    width: 300px;
    height: 250px;
}

.sidebar-ad .ad-placeholder {
    width: 300px;
    height: 600px;
}

/* Mobile Ad Adjustments */
@media (max-width: 767.98px) {
    .ad-container {
        max-width: 100%;
    }

    .rectangle-ad .ad-placeholder,
    .sidebar-ad .ad-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}

/* Guest Post Form */
.guest-post-submission .form-control {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.guest-post-submission .form-control-lg {
    padding: 1rem 1.25rem;
}

#sponsoredFields {
    transition: all 0.3s ease;
}

/* Toggle sponsored fields */
#isSponsored:checked~#sponsoredFields {
    display: block !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .guest-post-submission .card-body {
        padding: 1.5rem;
    }
}

/* Ad Block Notice */
#adblockNotice {
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease forwards;
    border-top: 3px solid var(--warning-color);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #adblockNotice {
        padding: 1rem !important;
    }

    #adblockNotice .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Adblock Notice Styles */
.adblock-notice {
    /* display: none; */
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--warning-color);
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .adblock-notice {
        padding: 1rem !important;
    }

    .adblock-notice .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .adblock-notice .flex-shrink-0 {
        display: none;
    }
}

/* Testimonial Card Equal Height */
.testimonial-slider .slick-track {
    display: flex !important;
}

.testimonial-slider .slick-slide {
    height: auto;
}

.testimonial-slider .slick-slide>div {
    height: 100%;
}

.testimonial-slider .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-slider .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-slider .card-text {
    flex-grow: 1;
}

.testimonial-slider .slick-list {
    padding: 20px 0;
    margin: 0 -15px;
}

.testimonial-slider .slick-slide {
    padding: 0 15px;
    transition: all 0.3s ease;
}

.testimonial-slider .slick-slide.slick-active {
    transform: scale(1.02);
}

.testimonial-slider .slick-dots {
    bottom: -40px;
}

.testimonial-slider .slick-dots li button:before {
    font-size: 10px;
    color: #adb5bd;
}

.testimonial-slider .slick-dots li.slick-active button:before {
    color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-slider .slick-slide {
        padding: 0 10px;
    }

    .testimonial-slider .slick-list {
        margin: 0 -10px;
    }
}

/* Affiliate Comparison Table */
.affiliate-comparison-table {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.affiliate-comparison-table:hover {
    box-shadow: var(--shadow-md);
}

.affiliate-comparison-table table {
    margin-bottom: 0;
}

.affiliate-comparison-table th {
    font-weight: 600;
    background-color: rgba(var(--primary-color), 0.05);
    border-bottom-width: 2px;
}

.affiliate-comparison-table td img {
    object-fit: cover;
}

.star-rating {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.affiliate-disclosure {
    background-color: rgba(var(--primary-color), 0.03);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .affiliate-comparison-table {
        padding: 1rem;
    }

    .affiliate-comparison-table table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .affiliate-comparison-table th,
    .affiliate-comparison-table td {
        white-space: nowrap;
    }
}

/* Quiz Cards */
.quiz-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quiz-card .card-img-top-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.quiz-card .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.quiz-card:hover .card-img-top {
    transform: scale(1.05);
}

.quiz-card .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Quiz Show Page */
.quiz-show-page .breadcrumb {
    background-color: transparent;
    padding-left: 0;
}

.quiz-show-page .sample-questions .form-check {
    transition: all 0.2s ease;
}

.quiz-show-page .sample-questions .form-check:hover {
    background-color: rgba(var(--primary-color), 0.05);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .quiz-card .card-img-top-container {
        height: 150px;
    }

    .quiz-show-page .quiz-hero {
        text-align: center;
    }

    .quiz-show-page .author-info {
        justify-content: center;
    }
}

/* Prevent screenshots and screen recording */
@media all {
    #quizContainer {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* For some browsers */
    body {
        -webkit-touch-callout: none;
    }

    /* Disable right-click */
    #quizContainer {
        pointer-events: none;
    }

    /* Allow interaction with child elements */
    #quizContainer * {
        pointer-events: auto;
    }
}

/* Modern Dot Loader Styles */
#dots-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* or match your site's background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.dot {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: #4a6fa5;
    /* Change to match your brand color */
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Hide loader when loaded */
body.loaded #dots-loader {
    opacity: 0;
    pointer-events: none;
}

.blog-page {
    background-color: #f8f9fa;
}

.blog-card {
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.categories-page {
    background-color: #f8f9fa;
}

.category-card {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.article-card {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-subtle {
    background-color: #e3f2fd;
}

.bg-success-subtle {
    background-color: #e8f5e9;
}

.bg-warning-subtle {
    background-color: #fff8e1;
}

.bg-info-subtle {
    background-color: #e0f7fa;
}

.bg-danger-subtle {
    background-color: #ffebee;
}

.bg-secondary-subtle {
    background-color: #e0e0e0;
}

.bg-dark-subtle {
    background-color: #e0e0e0;
}

/* Details page editor manage start */
.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.code-block {
    background-color: #1e1e1e;
    border-left: 4px solid #3a7bd5;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

.object-fit-cover {
    object-fit: cover;
}

.form-floating textarea {
    height: 100px;
}

.list-group-item.active {
    background-color: #f8f9fa;
    color: #3a7bd5;
    border-left: 3px solid #3a7bd5;
}

.breadcrumb {
    background-color: transparent;
    padding-left: 0;
}

.breadcrumb-item a {
    text-decoration: none;
}

/* Modern Blog Content Container */
.ql-container-blog {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 780px;
    margin: 0 auto;
    color: #1a202c;
    line-height: 1.75;
    padding: 0 20px;
}

.ql-editor_content {
    margin-top: 1px;
}

/* Ultra-Modern Headings */
.ql-editor_content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 3rem 0 1.75rem;
    color: transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

.ql-editor_content h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.2);
}

.ql-editor_content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 2.5rem 0 0.7rem;
    color: #2d3748;
    position: relative;
    padding-left: 1.5rem;
}

.ql-editor_content h3:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em;
    height: 1em;
    width: 8px;
    background: linear-gradient(to bottom, #4fd1c5, #319795);
    border-radius: 4px;
}

.ql-editor_content h4 {
    font-size: 1.4rem;
    font-weight: 650;
    line-height: 1.3;
    margin: 2rem 0 1.25rem;
    color: #2d3748;
    display: inline-flex;
    align-items: center;
}

.ql-editor_content h4:after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #f6ad55, #f687b3);
    margin-left: 12px;
    border-radius: 3px;
}

/* Premium Paragraph Styling */
.ql-editor_content p {
    margin-bottom: 0rem !important;
    /* margin-top: 1rem; */
    /* line-height: 1.5rem; */
    font-size: 1.125rem;
    color: #4a5568;
    /* line-height: 0.3; */
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
}

/* Enhanced Strong/Bold Text */
.ql-editor_content strong {
    font-weight: 700;
    color: #2d3748;
    position: relative;
    padding: 0 2px;
}

.ql-editor_content strong:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: rgba(102, 126, 234, 0.15);
    z-index: -1;
    border-radius: 2px;
    transform: skewX(-15deg);
}

/* Luxury List Styling */
.ql-editor_content ul,
.ql-editor_content ol {
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.ql-editor_content ul li {
    position: relative;
    margin-bottom: 0.9rem;
    list-style-type: none;
    padding-left: 2rem;
}

.ql-editor_content ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #f6e05e, #f6ad55);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(246, 173, 85, 0.3);
}

.ql-editor_content ol {
    counter-reset: custom-counter;
}

.ql-editor_content ol li {
    counter-increment: custom-counter;
    margin-bottom: 0.9rem;
    padding-left: 2.5rem;
    position: relative;
}

.ql-editor_content ol li:before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #68d391, #38b2ac);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 3px 6px rgba(56, 178, 172, 0.2);
}

/* Designer Horizontal Rule */
.ql-editor_content hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(102, 126, 234, 0.5) 50%,
            transparent 100%);
    margin: 1.5rem 0;
    position: relative;
}

.ql-editor_content hr:after {
    content: "✧";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 12px;
    color: #667eea;
    font-size: 1.2rem;
}

/* Premium Code Block Design */
.ql-code-block-container {
    position: relative;
    background: #1a1c24;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    /* margin: 2.5rem 0; */
    overflow-x: auto;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
}

/* .ql-code-block {
    color: #e0e0e0;
    line-height: 1.7;
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.95rem;
    tab-size: 4;
} */
.ql-code-block {
    color: #f8f8f2;
    /* Soft off-white for better readability */
    line-height: 1.7;
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.95rem;
    tab-size: 4;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    /* Adds depth to text */
}

/* Elegant Copy Button */
.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a0aec0;
    /* padding: 0.5rem 1rem; */
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Enhanced Syntax Highlighting */
.ql-token.hljs-keyword {
    color: #ff79c6;
}

.ql-token.hljs-string {
    color: #f1fa8c;
}

.ql-token.hljs-title {
    color: #8be9fd;
    font-weight: 600;
}

.ql-token.hljs-type {
    color: #66d9ef;
}

.ql-token.hljs-built_in {
    color: #50fa7b;
}

.ql-token.hljs-number {
    color: #bd93f9;
}

.ql-token.hljs-comment {
    color: #6272a4;
    font-style: italic;
}

.ql-token.hljs-params {
    color: #f8f8f2;
}

/* Default for parameters */
.ql-token.hljs-function {
    color: #8be9fd;
}

/* Cyan for functions */
.ql-token.hljs-tag {
    color: #ff79c6;
}

/* Pink for HTML tags */
.ql-token.hljs-attr {
    color: #50fa7b;
}

/* Green for attributes */
.ql-token.hljs-selector {
    color: #f1fa8c;
}

.ql-token.hljs-class {
    color: #82aaff;
}

/* Yellow for CSS selectors */

/* Target ONLY paragraphs containing nothing but a strong tag */
.ql-editor_content p:has(> strong:only-child) {
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
}

/* Target the strong tag inside these special paragraphs */
.ql-editor_content p:has(> strong:only-child) strong {
    line-height: normal !important;
    display: inline-block;
    /* Ensures proper spacing */
}

/* Floating Animation for Code Blocks */
@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ql-code-block-container {
    animation: floatIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ql-container-blog {
        padding: 0 15px;
    }

    .ql-editor_content h2 {
        font-size: 1.5rem;
        margin: 2.5rem 0 1.5rem;
    }

    .ql-editor_content h3 {
        font-size: 1rem;
        margin: 2rem 0 0.7rem;
    }

    .ql-editor_content h4 {
        font-size: 1.25rem;
        margin: 1.75rem 0 1rem;
    }

    .ql-editor_content p {
        font-size: 1.05rem;
    }

    .ql-code-block-container {
        padding: 1.25rem;
        border-radius: 10px;
    }
}

/* Micro-interactions */
.ql-editor_content a {
    color: #667eea;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.ql-editor_content a:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.ql-editor_content a:hover {
    color: #764ba2;
}

.ql-editor_content a:hover:after {
    width: 100%;
}

/* Emoji Enhancement */
.ql-editor_content .emoji {
    font-size: 1.1em;
    vertical-align: middle;
    margin-right: 0.4em;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* Modern Sticky CTA Container */
.sticky-cta-container {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

/* Main Exclusive Deals CTA */
.sticky-deals-cta {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    opacity: 1;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.sticky-deals-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.sticky-deals-cta:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.4);
}

.sticky-deals-cta:hover::before {
    right: 100%;
}

.sticky-deals-cta i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* WhatsApp CTA */
.whatsapp-cta {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-cta:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.whatsapp-cta i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sticky-cta-container {
        bottom: 80px;
        right: 10px;
    }

    .sticky-deals-cta,
    .whatsapp-cta {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.refer-img {
    height: 450px;
    width: 100%;
    object-fit: fill;
}

/* Table of Contents Styles */
.toc-container {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.toc-container::-webkit-scrollbar {
    width: 5px;
}

.toc-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.toc-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.toc-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.toc-h2 {
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.toc-h2.active {
    border-left-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.toc-h3 {
    font-size: 0.9rem;
    color: #6c757d;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.toc-h3.active {
    border-left-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-dark);
}

.toc-h3-group {
    display: none;
}

.toc-h2.active+.toc-h3-group {
    display: block;
}

.toc-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .toc-container {
        max-height: 60vh;
        overflow-y: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .toc-container a {
        scroll-margin-top: 20px;
        /* Add some spacing when scrolling to links */
    }

    .toc-h3-group {
        display: block !important;
    }
}

/* Modern Support Container */
.support-container {
    position: fixed;
    right: 20px;
    top: 45%;
    transform: translateY(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Main Support Button */
.support-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF5F6D 0%, #FFC371 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 95, 109, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.support-main-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 28px rgba(255, 95, 109, 0.4);
}

.support-main-btn i {
    font-size: 1.4rem;
}

/* Support Options */
.support-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 56px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.support-option {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.support-option:hover {
    transform: translateX(-8px) scale(1.1);
}

.support-option i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Specific Option Styles */
.support-option.paypal {
    color: #00457C;
}

.support-option.github {
    color: #171515;
}

.support-option.kofi {
    color: #FF5E5B;
}

.support-option.upi {
    color: #6C63FF;
}

/* Tooltip Labels */
.support-option::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: #1e293b;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.support-option:hover::after {
    opacity: 1;
    right: 60px;
}

/* Expanded State */
.support-container.expanded .support-options {
    transform: translateX(0);
}

/* Collapsed State by Default */
.support-container:not(.expanded) .support-options {
    transform: translateX(80px);
    opacity: 0;
    pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .support-container {
        right: 10px;
        bottom: 200px;
        top: auto;
        transform: none;
        flex-direction: column-reverse;
    }

    .support-container.expanded .support-options {
        transform: translateY(-60px);
    }

    .support-container:not(.expanded) .support-options {
        transform: translateY(80px);
    }

    .support-option:hover {
        transform: translateY(-8px) scale(1.1);
    }

    .support-option::after {
        right: auto;
        bottom: 70px;
    }

    .support-option:hover::after {
        right: auto;
        bottom: 60px;
    }
}

/* QR Code Modal */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.qr-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 300px;
    position: relative;
    animation: modalFadeIn 0.4s ease;
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New section styles */
.tool-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.coupon-card {
    border: 2px dashed #e9ecef;
    position: relative;
    overflow: hidden;
}

.coupon-code {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.resource-card {
    border-left: 4px solid var(--bs-primary);
}

.freebie-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

/* Enhanced Testimonials Styles */
.testimonials-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

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

.hover-scale:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Rating Input Styles */
.rating-input {
    direction: rtl;
    unicode-bidi: bidi-override;
}

.rating-input input {
    display: none;
}

.rating-input label {
    color: #ddd;
    font-size: 2rem;
    padding: 0 5px;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input input:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
    color: #ffc107;
}

.rating-input input:checked+label:hover,
.rating-input input:checked~label:hover,
.rating-input label:hover~input:checked~label {
    color: #ffc107;
}

/* Testimonial Slider */
.testimonial-slider {
    padding: 10px 0;
}

.slick-prev:before,
.slick-next:before {
    color: var(--bs-primary);
}


/* Modern Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination a {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.pagination a:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pagination .active span {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(106, 17, 203, 0.3);
}

.pagination .disabled span {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Animation Effects */
.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: 0;
}

.pagination a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.pagination .active span::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    z-index: -1;
    border-radius: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 640px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .pagination a,
    .pagination span {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* Add chevron to nav links that have dropdown */
.navbar-nav .dropdown-toggle::after {
    content: "\25BC";
    /* ▼ */
    font-size: 0.6rem;
    margin-left: 0.4rem;
    border: none;
    /* remove Bootstrap default arrow */
    display: inline-block;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

/* Rotate arrow when dropdown is open */
.navbar-nav .dropdown.show>.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Optional: nicer icon using a right-pointing caret for mobile sidebar */
@media (max-width: 991px) {
    .navbar-nav .dropdown-toggle::after {
        content: "\25B6";
        /* ▶ */
        font-size: 0.7rem;
        margin-left: 0.5rem;
    }

    .navbar-nav .dropdown.show>.dropdown-toggle::after {
        content: "\25BC";
        /* ▼ when open */
    }
}

@media (max-width: 991px) {

    /* Make collapse a fixed sidebar */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        /* hidden by default */
        width: 80%;
        /* adjust width (e.g. 70–80%) */
        height: 100%;
        background: #fff;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
        padding: 2rem 1.5rem;
        transition: left 0.35s ease;
        z-index: 1050;
        overflow-y: auto;
    }

    /* When navbar is opened (Bootstrap adds .show) */
    .navbar-collapse.show {
        left: 0;
    }

    /* Nav items */
    .navbar-nav {
        text-align: left;
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin: 0.8rem 0;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        font-weight: 600;
        border-radius: 0.5rem;
        transition: background 0.2s ease;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: #f8f9fa;
        color: #007bff;
    }

    /* Divider line */
    .navbar-nav .nav-item+.nav-item {
        border-top: 1px solid #eee;
    }

    /* Dropdown inside sidebar */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        border: 1px solid #f0f0f0;
        background: #fafafa;
    }

    .dropdown-menu .dropdown-item {
        padding: 0.75rem 1rem;
    }

    /* Auth buttons full width */
    .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        width: 100%;
        margin-top: 2rem;
    }

    .d-flex.align-items-center.gap-3 a.btn {
        width: 100%;
        padding: 0.9rem;
    }

    /* Optional: dark overlay behind sidebar */
    body.offcanvas-backdrop::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
}
