/* Ubuntu Regular */
@font-face {
    font-family: 'Ubuntu';
    src: url('/user/fonts/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Ubuntu Bold */
@font-face {
    font-family: 'Ubuntu';
    src: url('/user/fonts/Ubuntu-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Ubuntu Bold Italic */
@font-face {
    font-family: 'Ubuntu';
    src: url('/user/fonts/Ubuntu-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Ubuntu Italic */
@font-face {
    font-family: 'Ubuntu';
    src: url('/user/fonts/Ubuntu-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Ubuntu Light */
@font-face {
    font-family: 'Ubuntu';
    src: url('/user/fonts/Ubuntu-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Ubuntu Light Italic */
@font-face {
    font-family: 'Ubuntu';
    src: url('/user/fonts/Ubuntu-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Ubuntu Medium */
@font-face {
    font-family: 'Ubuntu';
    src: url('/user/fonts/Ubuntu-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Ubuntu Medium Italic */
@font-face {
    font-family: 'Ubuntu';
    src: url('/user/fonts/Ubuntu-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* ============================================
   MODERN PREMIUM NAVBAR STYLES
   ============================================ */

/* Navbar Container */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(232, 20, 255, 0.08);
    border-bottom: 1px solid rgba(232, 20, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(232, 20, 255, 0.15);
    border-bottom-color: rgba(232, 20, 255, 0.15);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 2rem;
}

/* Logo Section with Premium Gradient */
.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #E814FF 0%, #FF1493 50%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: -0.5px;
}

.navbar-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #E814FF 0%, #FF1493 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar-logo:hover::after {
    width: 100%;
}

.navbar-logo:hover {
    filter: drop-shadow(0 0 12px rgba(232, 20, 255, 0.5));
    transform: scale(1.02);
}

/* Center Menu */
.navbar-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 20, 255, 0.1) 0%, rgba(255, 20, 147, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-link i {
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.navbar-link span {
    position: relative;
    z-index: 1;
}

.navbar-link:hover {
    background: rgba(232, 20, 255, 0.08);
    color: #E814FF;
    transform: translateY(-2px);
}

.navbar-link:hover::before {
    opacity: 1;
}

.navbar-link:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.navbar-link .dropdown-icon {
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-item.has-dropdown:hover .dropdown-icon,
.navbar-item.has-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Premium Dropdown with Glassmorphism */
.navbar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(232, 20, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-width: 240px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.navbar-dropdown::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: inherit;
    border: inherit;
    border-radius: 4px;
    transform-origin: center;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.navbar-item:hover .navbar-dropdown,
.navbar-item.active .navbar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    padding: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: rgba(232, 20, 255, 0.05);
    border-radius: 10px;
    margin: 4px 0;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #E814FF 0%, #FF1493 100%);
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF1493 0%, #E814FF 100%);
}

.dropdown-category {
    margin-bottom: 0.5rem;
}

.dropdown-category:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(232, 20, 255, 0.04);
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #E814FF 0%, #FF1493 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-title:hover::before {
    opacity: 1;
}

.category-title:hover {
    background: rgba(232, 20, 255, 0.12);
    color: #E814FF;
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(232, 20, 255, 0.15);
}

.category-title i {
    font-size: 16px;
    color: #E814FF;
}

.subcategory-list {
    padding-left: 1rem;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.subcategory-link {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    color: #666;
    font-size: 11.5px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-left: 2rem;
}

.subcategory-link::before {
    content: '→';
    position: absolute;
    left: 0.75rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #E814FF;
    font-weight: 700;
    transform: translateX(-5px);
}

.subcategory-link:hover {
    background: rgba(232, 20, 255, 0.08);
    color: #E814FF;
    transform: translateX(4px);
}

.subcategory-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Right Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #1a1a1a;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(232, 20, 255, 0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-icon-btn:hover::before {
    opacity: 1;
}

.navbar-icon-btn:hover {
    background: rgba(232, 20, 255, 0.1);
    color: #E814FF;
    transform: scale(1.08);
}

.navbar-icon-btn i {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

/* Profile Image Styles */
.navbar-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(232, 20, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-icon-btn:hover .navbar-profile-img {
    border-color: #E814FF;
    box-shadow: 0 0 0 4px rgba(232, 20, 255, 0.2);
    transform: scale(1.05);
}

.navbar-profile-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E814FF 0%, #FF1493 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(232, 20, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(232, 20, 255, 0.3);
}

.navbar-icon-btn:hover .navbar-profile-placeholder {
    border-color: white;
    box-shadow: 0 0 0 4px rgba(232, 20, 255, 0.25),
        0 6px 20px rgba(232, 20, 255, 0.4);
    transform: scale(1.08);
}

/* Premium Login Button */
.navbar-login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #E814FF 0%, #FF1493 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(232, 20, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.navbar-login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FF1493 0%, #E814FF 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-login-btn i,
.navbar-login-btn span {
    position: relative;
    z-index: 1;
}

.navbar-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 20, 255, 0.5);
}

.navbar-login-btn:hover::before {
    opacity: 1;
}

.navbar-login-btn:active {
    transform: translateY(-1px);
}

/* Mobile Toggle with Animation */
.navbar-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-mobile-toggle:hover {
    background: rgba(232, 20, 255, 0.1);
}

.navbar-mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: linear-gradient(135deg, #E814FF 0%, #FF1493 100%);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.navbar-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Overlay */
.navbar-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
}

.navbar-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 1.5rem;
    }

    .navbar-menu {
        gap: 0.25rem;
    }

    .navbar-link {
        padding: 0.7rem 1rem;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1.25rem;
    }

    .navbar-link {
        padding: 0.65rem 0.9rem;
        font-size: 12px;
    }

    .navbar-link i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 60px;
        padding: 0 1rem;
    }

    .navbar-logo {
        font-size: 18px;
    }

    .navbar-mobile-toggle {
        display: flex;
    }

    .navbar-center {
        position: fixed;
        top: 60px;
        right: -100%;
        height: calc(100vh - 60px);
        width: 85%;
        max-width: 350px;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        backdrop-filter: blur(30px) saturate(180%);
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        border-left: 1px solid rgba(232, 20, 255, 0.1);
    }

    .navbar-center.active {
        right: 0;
    }

    .navbar-menu {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 1.5rem;
        gap: 0.75rem;
        width: 100%;
    }

    .navbar-item {
        width: 100%;
    }

    .navbar-link {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 15px;
        justify-content: space-between;
        border-radius: 14px;
    }

    .navbar-link:hover {
        transform: translateY(0) translateX(4px);
    }

    .navbar-link i:first-child {
        font-size: 20px;
    }

    /* Mobile Dropdown */
    .navbar-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(232, 20, 255, 0.04);
        margin-top: 0.75rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 3px solid rgba(232, 20, 255, 0.3);
    }

    .navbar-dropdown::before {
        display: none;
    }

    .navbar-item.has-dropdown.active .navbar-dropdown {
        max-height: 600px;
    }

    .dropdown-content {
        padding: 0.75rem;
    }

    .category-title {
        font-size: 14px;
        padding: 0.9rem 1rem;
    }

    .subcategory-link {
        font-size: 13px;
        padding: 0.8rem 1rem;
    }

    /* Mobile Actions */
    .navbar-actions {
        gap: 0.5rem;
    }

    .navbar-icon-btn {
        width: 40px;
        height: 40px;
    }

    .navbar-profile-img,
    .navbar-profile-placeholder {
        width: 38px;
        height: 38px;
    }

    .navbar-login-btn {
        padding: 0.65rem 1.25rem;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 0.75rem;
    }

    .navbar-logo {
        font-size: 16px;
    }

    .navbar-center {
        width: 90%;
    }

    .navbar-actions {
        gap: 0.25rem;
    }

    .navbar-icon-btn {
        width: 38px;
        height: 38px;
    }

    .navbar-icon-btn i {
        font-size: 18px;
    }

    .navbar-profile-img,
    .navbar-profile-placeholder {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .navbar-login-btn {
        padding: 0.6rem 1rem;
    }

    .navbar-login-btn span {
        display: none;
    }
}

/* Dark Mode Support (Optional Enhancement) */
@media (prefers-color-scheme: dark) {
    .navbar-modern {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: rgba(232, 20, 255, 0.15);
    }

    .navbar-modern.scrolled {
        background: rgba(26, 26, 26, 0.98);
    }

    .navbar-link {
        color: #f5f5f5;
    }

    .navbar-dropdown {
        background: rgba(30, 30, 30, 0.98);
    }

    .category-title {
        color: #f5f5f5;
    }

    .subcategory-link {
        color: #b0b0b0;
    }

    @media (max-width: 768px) {
        .navbar-center {
            background: rgba(26, 26, 26, 0.98);
        }

        .navbar-dropdown {
            background: rgba(232, 20, 255, 0.08);
        }
    }
}


/* Adjust body padding for fixed navbar */
:root {
    --base-font-size: 15px;
    --h1-size: clamp(2rem, 5vw, 2.5rem);
    --h2-size: clamp(1.5rem, 4vw, 2rem);
    --h3-size: clamp(1.3rem, 3vw, 1.5rem);
    --h4-size: clamp(1rem, 2vw, 1.1rem);
    --h5-size: 0.9rem;
    --h6-size: 0.8rem;
    --body-size: 0.9375rem;
    --small-size: 0.8rem;
    --xsmall-size: 0.7rem;
}

html {
    font-size: var(--base-font-size);
}

body {
    font-family: 'Ubuntu', sans-serif !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: #333;
    background-color: #F9F9F9;
    font-size: var(--body-size);
    margin: 0;
    padding: 0;
    padding-top: 70px;
}

@media (max-width: 991px) {
    body {
        padding-top: 60px;
    }
}

p {
    font-weight: 400;
    color: #444;
    font-size: var(--body-size);
    line-height: 1.7;
    font-family: 'Ubuntu', sans-serif !important;
    margin-bottom: 1.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: #555;
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 800;
    line-height: 1.2;
}

/* Fluid heading sizes */
h1,
.h1 {
    font-size: var(--h1-size);
}

h2,
.h2 {
    font-size: var(--h2-size);
}

h3,
.h3 {
    font-size: var(--h3-size);
}

h4,
.h4 {
    font-size: var(--h4-size);
}

h5,
.h5 {
    font-size: var(--h5-size);
}

h6,
.h6 {
    font-size: var(--h6-size);
}

/* Mobile responsive adjustments for headings (covered by clamp usually, but fine-tuning here) */
@media (max-width: 991px) {

    h1,
    .h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    h2,
    .h2 {
        font-size: clamp(1.3rem, 6vw, 1.5rem);
    }
}

/* Icon style */
.view-mode-toggle {
    display: flex;
    gap: 8px;
}

.view-mode-link {
    color: #555;
    text-decoration: none;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.view-mode-link:hover {
    color: #E814FF;
    background: rgba(232, 20, 255, 0.05);
    transform: translateY(-1px);
}

.view-mode-link.active {
    color: #E814FF;
    background: rgba(232, 20, 255, 0.12) !important;
    font-weight: bold;
}

/* Author Card Premium Feel */
.author-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.author-card:hover {
    box-shadow: 0 15px 35px rgba(232, 20, 255, 0.15) !important;
}

.author-card .author-image {
    transition: transform 0.3s ease;
}

.author-card:hover .author-image {
    transform: scale(1.05);
}

/* Author Profile Image Responsive Sizes */
.author-profile-img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .author-profile-img {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 575px) {
    .author-profile-img {
        width: 50px !important;
        height: 50px !important;
    }
}


/* Button style */
.btn {
    font-size: 0.875rem;
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.btn:active,
.btn:focus {
    outline: 0;
    box-shadow: none !important;
}

.form-control-custom {
    height: 50px;
    padding: 0 1.25rem;
    border-radius: 12px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    font-size: var(--body-size);
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background-color: #fff !important;
    border-color: #E814FF !important;
    box-shadow: 0 0 0 4px rgba(232, 20, 255, 0.1) !important;
}

.hover-primary:hover {
    color: #E814FF !important;
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled),
button.btn-primary,
a.btn-primary {
    background: #E814FF !important;
    background-color: #E814FF !important;
    color: #fff !important;
    border: 2px solid #E814FF !important;
    border-color: #E814FF !important;
    padding: 0.2rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8125rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(232, 20, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active,
.btn-primary:hover,
.btn-primary.focus,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled):hover,
.btn-primary:not(:disabled):not(.disabled):focus,
button.btn-primary:hover,
a.btn-primary:hover {
    background: #d012e5 !important;
    background-color: #d012e5 !important;
    border-color: #d012e5 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 20, 255, 0.4);
}

.btn-primary:active {
    box-shadow: 0 2px 8px rgba(232, 20, 255, 0.3);
}

/* Large Button Variant */
.btn-lg.btn-primary {
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
}

/* Button style */



body {
    background-color: #F9F9F9 !important;
    overflow-x: hidden;
}

::-moz-selection {
    background: #C42E9A;
    color: #F9F9F9 !important;
}

::selection {
    background: #C42E9A;
    color: #F9F9F9 !important;
}

/* preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F9F9F9 !important;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

img {
    vertical-align: middle;
    border: 0;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

a,
button,
select {
    cursor: pointer;
    transition: 0.2s ease;
}

a:focus,
button:focus,
select:focus {
    outline: 0;
}

a:hover {
    color: #E814FF;
}

.slick-slide {
    outline: 0;
}

hr {
    margin: 30px 0;
    /* Reduced margin */
}

.shadow,
.promotion,
.logo-list li,
.widget,
.card,
.navbar .dropdown-menu {
    box-shadow: 0px 15px 50px rgba(0, 0, 0, 0.04) !important;
    /* Reduced shadow */
}

.mark,
mark {
    padding: 0;
    background-color: transparent;
    border-bottom: 2px solid #E814FF;
    color: #E814FF;
}

.section {
    padding-top: 80px;
    /* Reduced padding */
    padding-bottom: 80px;
    /* Reduced padding */
}

/* Widget Font Reduction */
.widget p,
.widget li,
.widget a,
.widget span {
    font-size: 0.9rem;
}

.widget-title {
    font-size: 0.9rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 12px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
    color: #000;
    letter-spacing: 1px;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #E814FF;
}

.widget-title span {
    background: transparent !important;
    padding-right: 0 !important;
    position: static !important;
}

@media (max-width: 991px) {

    .widget p,
    .widget li,
    .widget a,
    .widget span {
        font-size: 10px;
    }

    .widget-title {
        font-size: 12px;
    }
}

.section-sm {
    padding-top: 60px;
    /* Reduced padding */
    padding-bottom: 60px;
    /* Reduced padding */
}

.section-title {
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-cover {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.border-primary {
    border-color: #EBEBEB !important;
}

.border-brand {
    border-color: #E814FF !important;
}

.circle-list {
    list-style: none;
    padding-left: 0;
}

.circle-list li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
}

.circle-list li:last-child {
    margin-bottom: 0;
}

.circle-list li::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    border: 1px solid #E814FF;
    left: 0;
    top: 6px;
    border-radius: 50px;
}

/* badge ribbon */
.badge-ribbon {
    border-radius: 0;
    position: absolute;
    width: 130px;
    transform: rotate(45deg);
    right: -40px;
    top: 15px;
    text-transform: uppercase;
}

.badge-flat {
    position: static !important;
    transform: none !important;
    width: auto !important;
    right: auto !important;
    top: auto !important;
    border-radius: 30px !important;
    padding: 5px 15px !important;
    display: inline-block !important;
    text-transform: none !important;
    font-size: 11px !important;
}

.badge-primary {
    background-color: #E814FF;
}

/* overlay */
.overlay {
    position: relative;
}

.overlay::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: #000;
    opacity: 0.5;
}

.bg-primary {
    background: #E814FF !important;
}

.text-primary {
    color: #E814FF !important;
}

.text-default {
    color: #555 !important;
}

.border-default {
    border-color: #EBEBEB !important;
}

.form-control:focus {
    outline: 0;
    box-shadow: none;
    border-color: #E814FF !important;
}

.st0 {
    fill: #E814FF;
}

.sidebar-home {
    margin-top: 40px;
    /* Reduced margin */
}

@media (max-width: 991px) {
    .sidebar-home {
        margin-top: 0;
    }
}

.sidebar-inner {
    margin-top: 50px;
    /* Reduced margin */
}

@media (max-width: 991px) {
    .sidebar-inner {
        margin-top: 0;
    }
}


.banner {
    background-image: url(../images/backgrounds/banner-bg.svg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 80px 0 60px;
    /* Reduced padding */
}


.banner .container {
    position: relative;
    z-index: 1;
}


/* Animation Keyframes */
@keyframes moveShape1 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes moveShape2 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 15px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes moveShape3 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes moveShape4 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10px, -8px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes moveShape5 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(8px, -15px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Featured Books Styles (Moved from Blade) */
/* Ribbon Styles */
.ribbon-wrapper {
    width: 85px;
    height: 88px;
    overflow: hidden;
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 10;
    pointer-events: none;
}

.ribbon {
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    font-size: 0.65rem;
    text-align: center;
    transform: rotate(45deg);
    position: relative;
    padding: 5px 0;
    left: -5px;
    top: 15px;
    width: 120px;
    background-color: #E814FF;
    /* Primary Color */
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Auto Scroll Styles - Premium Horizontal Marquee */
.auto-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.auto-scroll-track {
    display: flex;
    width: max-content;
    animation: scroll-featured 40s linear infinite;
    will-change: transform;
}

.auto-scroll-wrapper:hover .auto-scroll-track {
    animation-play-state: paused;
}

@keyframes scroll-featured {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.auto-scroll-item.book-scroll-item {
    width: 140px;
    margin: 0 12px;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .auto-scroll-item.book-scroll-item {
        width: 160px;
        margin: 0 15px;
    }
}

@media (min-width: 992px) {
    .auto-scroll-item.book-scroll-item {
        width: 190px;
        margin: 0 20px;
    }
}

.book-scroll-item .card-img-wrapper {
    height: 210px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (min-width: 576px) {
    .book-scroll-item .card-img-wrapper {
        height: 240px;
    }
}

@media (min-width: 992px) {
    .book-scroll-item .card-img-wrapper {
        height: 280px;
    }
}

/* Author Hover Effect */
.author-image-wrapper {
    transition: transform 0.3s ease;
}

.auto-scroll-item:hover .author-image-wrapper {
    transform: scale(1.1);
}

@keyframes moveShape6 {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-15px, 10px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.banner-shape-1 {
    position: absolute;
    left: 20%;
    top: 30%;
    animation: moveShape1 8s infinite ease-in-out;
}

.banner-shape-1 .path {
    fill: #E814FF;
}

.banner-shape-2 {
    position: absolute;
    right: 20%;
    top: 40%;
    animation: moveShape2 7s infinite ease-in-out;
}

.banner-shape-2 .path {
    fill: #E814FF;
}

.banner-shape-3 {
    position: absolute;
    right: 30%;
    bottom: 20%;
    animation: moveShape3 9s infinite ease-in-out;
}

.banner-shape-3 .path {
    fill: #E814FF;
}


.banner-shape-4 {
    position: absolute;
    left: 15%;
    top: 5%;
    animation: moveShape4 6s infinite ease-in-out;
}

/* Hide browser default search cancel button */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.banner-shape-4 .path {
    fill: #E814FF;
}

.banner-shape-5 {
    position: absolute;
    right: 5%;
    top: 30%;
    animation: moveShape5 7.5s infinite ease-in-out;
}

.banner-shape-5 .path {
    fill: #E814FF;
}

.banner-shape-6 {
    position: absolute;
    right: 25%;
    bottom: 10%;
    animation: moveShape6 8.5s infinite ease-in-out;
}

.banner-shape-6 .path {
    fill: #E814FF;
}


.banner-shape-11 {
    position: absolute;
    right: 15%;
    bottom: 40%;
    animation: moveShape6 5s infinite ease-in-out;
}

.banner-shape-11 .path {
    fill: #E814FF;
}

.banner-shape-12 {
    position: absolute;
    right: 25%;
    top: 5%;
    animation: moveShape6 8.5s infinite ease-in-out;
}

.banner-shape-12 .path {
    fill: #E814FF;
}

.banner-shape-13 {
    position: absolute;
    left: 25%;
    top: 8%;
    animation: moveShape6 7.5s infinite ease-in-out;
}

.banner-shape-13 .path {
    fill: #E814FF;
}

.banner-shape-14 {
    position: absolute;
    left: 10%;
    bottom: 25%;
    animation: moveShape6 5.5s infinite ease-in-out;
}

.banner-shape-14 .path {
    fill: #E814FF;
}


.banner-border {
    position: absolute;
    bottom: -40px;
    /* Adjusted */
    left: 0;
    width: 100%;
    stroke: #E814FF;
}

.header {
    background: linear-gradient(135deg, #fdfcfd 0%, #fff0f9 50%, #fdfcfd 100%);
    background-image: url(../images/backgrounds/header-bg.svg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 100px 0 110px;
    overflow: hidden;
    transition: all 0.5s ease;
    border-bottom: 1px solid rgba(232, 20, 255, 0.05);
}

.header h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

/* Stunning Mark with Black Text */
.header mark {
    background: transparent;
    color: #000 !important;
    font-weight: 800;
    padding: 0 4px;
    position: relative;
    border-bottom: none; /* Removed underline as requested */
}

.header .container {
    position: relative;
    z-index: 5;
}

/* Premium Glassmorphism Breadcrumbs */
.breadcrumb-premium {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(232, 20, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-top: 1rem;
}

.breadcrumb-premium .list-inline-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.breadcrumb-premium a, 
.breadcrumb-premium .text-default {
    transition: all 0.3s ease;
    color: var(--accent-primary) !important; /* Default all breadcrumb links to primary */
}

/* Specifically target only the first link (Home) as black */
.breadcrumb-premium li:first-child a,
.breadcrumb-premium li:first-child .text-default {
    color: #000 !important;
}

/* Ensure subsequent text items are also primary */
.breadcrumb-premium .text-primary,
.breadcrumb-premium li:last-child:not(:first-child):not(:has(a)) {
    color: var(--accent-primary) !important;
}

.breadcrumb-premium a:hover {
    color: #E814FF;
    transform: translateY(-1px);
}

.header-shape-1 {
    position: absolute;
    left: 15%;
    top: 20%;
    animation: floating-shape 6s infinite ease-in-out;
}

.header-shape-1 .path {
    fill: rgba(232, 20, 255, 0.15);
}

.header-shape-2 {
    position: absolute;
    right: 15%;
    top: 25%;
    animation: floating-shape 8s infinite ease-in-out reverse;
}

.header-shape-2 .path {
    fill: rgba(232, 20, 255, 0.15);
}

.header-shape-3 {
    position: absolute;
    right: 25%;
    bottom: 15%;
    animation: floating-shape 7s infinite ease-in-out 1s;
}

.header-shape-3 .path {
    fill: rgba(232, 20, 255, 0.15);
}

@keyframes floating-shape {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -15px) rotate(2deg); }
    66% { transform: translate(-5px, 10px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Advanced Header 3.0: Decorative Icons */
.header-decorative-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.header-decorative-icons i {
    position: absolute;
    font-size: 2.2rem;
    color: var(--accent-primary);
    opacity: 0.04;
    filter: blur(0.5px);
    animation: drift-float var(--drift-duration, 20s) infinite linear;
}

[data-bs-theme="dark"] .header-decorative-icons i {
    color: #fff;
    opacity: 0.03;
}

@keyframes drift-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, -100px) rotate(240deg);
    }
    100% {
        transform: translate(0, -150px) rotate(360deg);
    }
}

.header-border {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    stroke: #E814FF;
    opacity: 0.3;
}

/* Dark Mode Overrides for Archive Headers */
[data-bs-theme="dark"] .header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    background-image: none;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .header h1 {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .header mark {
    color: #fff !important;
    border-bottom: none;
}

[data-bs-theme="dark"] .breadcrumb-premium {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .breadcrumb-premium a,
[data-bs-theme="dark"] .breadcrumb-premium .text-default {
    color: var(--accent-primary) !important; /* Default to primary/light-purple in dark mode */
    opacity: 0.9;
}

/* Home remains white in dark mode for visibility */
[data-bs-theme="dark"] .breadcrumb-premium li:first-child a,
[data-bs-theme="dark"] .breadcrumb-premium li:first-child .text-default {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .breadcrumb-premium a:hover,
[data-bs-theme="dark"] .breadcrumb-premium .text-default:hover {
    color: #E814FF !important;
}

[data-bs-theme="dark"] .header .text-default {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .header .text-primary, 
[data-bs-theme="dark"] .header .text-primary a {
    color: #E814FF !important;
}

[data-bs-theme="dark"] .header-shape-1 .path,
[data-bs-theme="dark"] .header-shape-2 .path,
[data-bs-theme="dark"] .header-shape-3 .path {
    fill: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

[data-bs-theme="dark"] .header-border {
    stroke: #E814FF;
    opacity: 0.2;
}

/* Dark Mode Sidebar Widget Refinement */
[data-bs-theme="dark"] .widget {
    background-color: #1e293b !important; /* slate-800 */
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .widget-title {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .widget-search input {
    background-color: #334155 !important; /* slate-700 */
    color: #f1f5f9 !important;
    border-color: rgba(232, 20, 255, 0.2);
}

[data-bs-theme="dark"] .widget-list li a {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .widget-list li a:hover {
    color: #E814FF !important;
}

[data-bs-theme="dark"] .widget-about p {
    color: #cbd5e1 !important;
}

.author {
    position: relative;
    padding: 80px 0 90px;
    /* Reduced padding */
}

.author-shape-1 {
    position: absolute;
    left: 15%;
    top: 25%;
}

.author-shape-1 .path {
    fill: #E814FF;
}

.author-shape-2 {
    position: absolute;
    right: 15%;
    top: 25%;
}

.author-shape-2 .path {
    fill: #E814FF;
}

.author-shape-3 {
    position: absolute;
    right: 20%;
    bottom: 15%;
}

.author-shape-3 .path {
    fill: #E814FF;
}

.author-border {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    stroke: #E814FF;
    z-index: -1;
}

.wave {
    position: relative;
}

.wave-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: -2;
}

@media (max-width: 991px) {
    .wave-bg {
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }
}

.wave-shape-1 {
    position: absolute;
    right: 10%;
    top: 25%;
    z-index: -1;
}

.wave-shape-1 .path {
    fill: #E814FF;
}

.wave-shape-2 {
    position: absolute;
    left: 10%;
    top: 15%;
    z-index: -1;
}

.wave-shape-2 .path {
    fill: #E814FF;
}

.wave-shape-3 {
    position: absolute;
    left: 5%;
    bottom: 20%;
    z-index: -1;
}

.wave-shape-3 .path {
    fill: #E814FF;
}

.wave-shape-4 {
    position: absolute;
    right: 10%;
    bottom: 15%;
    z-index: -1;
}

.wave-shape-4 .path {
    fill: #E814FF;
}

.author-card {
    padding: 20px;
    background-color: #fff;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .author-image {
        height: 80px !important;
        width: 80px !important;
    }
}

.author-image {
    height: 150px;
    /* Reduced size */
    width: 150px;
    /* Reduced size */
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 10px;
    border: 4px solid transparent;
    box-shadow: 0 0 0 2px #E814FF;
    background-color: #fff;
}

@media (max-width: 1200px) {
    .author-image {
        height: 120px;
        width: 120px;
    }
}

.post-count {
    color: #555;
    display: block;
    margin-bottom: 15px;
    /* Reduced margin */
}

.card {
    border: 0;
    background-color: #F9F9F9 !important;
    transition: 0.2s ease;
}

.card-body {
    padding: 20px;
    /* Reduced padding */
}

.card-img-sm {
    height: 75px;
    /* Reduced size */
    width: 75px;
    /* Reduced size */
    border-radius: 0.2rem;
    -o-object-fit: cover;
    object-fit: cover;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 11px;
    /* Reduced size */
    color: #555;
    margin-bottom: 0;
}

.card-meta li {
    margin-bottom: 8px;
}

.card-meta li:not(:last-child) {
    border-right: 1px solid #EBEBEB;
    padding-right: 6px;
}

.card-meta i {
    color: #dddddd;
    margin-right: 4px;
}

.card-meta-author {
    color: inherit;
    text-decoration: none;
}

.card-meta-author img {
    height: 18px;
    width: 18px;
    -o-object-fit: cover;
    object-fit: cover;
    margin-right: 4px;
    border-radius: 50%;
}

.card-meta-author:hover {
    color: #E814FF;
}

.card-meta-tag {
    margin-bottom: 0px;

}

.card-meta-tag li {
    border: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 3px !important;
}

.card-meta-tag li a {
    padding: 2px 12px;
    /* Reduced padding */
    border: 1px solid #555 !important;
    border-radius: 20px;
    display: inline-block;
    color: #555 !important;
    text-decoration: none;
    font-size: 0.9em;
}

.card-meta-tag li a:hover {
    background-color: #E814FF !important;
    border-color: #E814FF !important;
    color: #F9F9F9 !important;
    text-decoration: none;
}


.top-title {
    color: #000;
    font-weight: 1000;
    text-decoration: none;
}

.post-title {
    color: #000;
    font-weight: 600;
    font-size: 1.1em;
    /* Reduced size */
    text-decoration: none;
}

.post-title:hover {
    color: #E814FF !important;
}

.social-icons {
    margin-bottom: 0;
}

.social-icons li {
    color: #555 !important;
    font-size: 12px;
    /* Reduced size */
}

.social-icons li a {
    display: block;
    color: inherit;
    padding: 4px;
}

.social-icons li a:hover {
    color: #E814FF !important;
}

.post-slider {
    overflow: hidden;
}

.post-slider:hover .prevArrow {
    left: 8px;
}

.post-slider:hover .nextArrow {
    right: 8px;
}

.slider-sm .slick-arrow {
    height: 30px;
    width: 30px;
    line-height: 30px;
}

.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    height: 40px;
    /* Reduced size */
    width: 40px;
    /* Reduced size */
    line-height: 40px;
    /* Reduced size */
    border-radius: 50%;
    background: rgba(79, 214, 117, 0.5);
    color: #F9F9F9 !important;
    border: 0;
}

@media (max-width: 575px) {
    .slick-arrow {
        display: none;
    }
}

.slick-arrow:focus {
    outline: 0;
}

.slick-arrow:hover {
    background: #E814FF !important;
}

.prevArrow {
    left: -50px;
}

.nextArrow {
    right: -50px;
}

.pagination .page-item .page-link {
    display: inline-flex;
    /* Changed for better alignment */
    width: 32px;
    /* Reduced size */
    height: 32px;
    /* Reduced size */
    line-height: 1;
    /* Reset line height */
    border-radius: 50%;
    background: transparent;
    text-align: center;
    padding: 0;
    margin-right: 8px;
    border: 1px solid #E814FF;
    color: #E814FF;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
}

.pagination .page-item .page-link:hover {
    background: #E814FF;
    color: #F9F9F9 !important;
    border-color: #E814FF;
}

.pagination .page-item .page-link:focus {
    box-shadow: none;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 50%;
}

.pagination .page-item.active .page-link {
    background: #E814FF !important;
    color: #F9F9F9 !important;
    border-color: #E814FF !important;
}

.card-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Adds space between image and name */
    text-decoration: none;
    color: inherit;
}

.card-meta-author img {
    margin-right: 0 !important;
    /* Reset margin since we use gap */
}

.author-block {
    border-top: 1px solid #EBEBEB !important;
}

.author-block:nth-child(1) {
    border-top-color: transparent;
}

.author-block:nth-child(2) {
    border-top-color: transparent;
}

@media (max-width: 575px) {
    .author-block:nth-child(2) {
        border-top-color: #EBEBEB !important;
    }
}

.author-block:nth-child(3) {
    border-top-color: transparent;
}

@media (max-width: 991px) {
    .author-block:nth-child(3) {
        border-top-color: #EBEBEB !important;
    }
}

.author-block:nth-child(3n+3) .author-card {
    border-right-color: transparent;
}

@media (max-width: 991px) {
    .author-block:nth-child(3n+3) .author-card {
        border-right-color: #EBEBEB !important;
    }
}

@media (max-width: 991px) {
    .author-block:nth-child(2n+2) .author-card {
        border-right-color: transparent;
    }
}

.content * {
    word-break: break-word;
    overflow-wrap: break-word;
}

.content img {
    max-width: 100%;
}

.content a {
    color: #555 !important;
    text-decoration: underline;
}

.content a:hover {
    color: #E814FF !important;
}

.justify-content-around a {
    color: #555 !important;
    text-decoration: underline;
}

.justify-content-around a:hover {
    color: #E814FF !important;
}

.top-title a {
    color: #555 !important;
    text-decoration: underline;
}

.top-title a:hover {
    color: #E814FF !important;
}

.content ol,
.content ul {
    padding-left: 18px;
}

.content ol li,
.content ul li {
    margin-bottom: 8px;
}

.content ul {
    padding-left: 0;
    margin-bottom: 18px;
    list-style-type: none;
}

.content ul li {
    padding-left: 18px;
    position: relative;
}

.content ul li::before {
    position: absolute;
    content: "";
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: #E814FF !important;
    left: 3px;
    top: 7px;
}

.content table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #EBEBEB !important;
}

.content table td,
.content table th {
    padding: 0.6rem;
    vertical-align: top;
    margin-bottom: 0;
}

.content tr:not(:last-child) {
    border-bottom: 1px solid #EBEBEB !important;
}

.content th {
    font-weight: 500;
}

.content thead {
    background: #F9F9F9 !important;
    margin-bottom: 0;
}

.content thead tr {
    border-bottom: 1px solid #EBEBEB !important;
}

.content tbody {
    background: #F9F9F9 !important;
    margin-bottom: 0;
}

.content .notices {
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.content .notices p {
    padding: 8px;
    margin-bottom: 0;
    background-color: #F9F9F9 !important;
}

.content .notices p::before {
    position: absolute;
    top: 2px;
    color: #F9F9F9 !important;
    font-family: "themify";
    font-weight: 900;
    content: "\e717";
    left: 10px;
}

.content .notices.note p {
    border-top: 25px solid #6ab0de !important;
    background: #F9F9F9;
}

.content .notices.note p::after {
    content: "Note";
    position: absolute;
    top: 2px;
    color: #F9F9F9 !important;
    left: 2rem;
}

.content .notices.tip p {
    border-top: 25px solid #78C578;
    background: #F9F9F9;
}

.content .notices.tip p::after {
    content: "Tip";
    position: absolute;
    top: 2px;
    color: #F9F9F9 !important;
    left: 2rem;
}

.content .notices.info p {
    border-top: 25px solid #F0B37E;
    background: #F9F9F9;
}

.content .notices.info p::after {
    content: "Info";
    position: absolute;
    top: 2px;
    color: #F9F9F9 !important;
    left: 2rem;
}

.content .notices.warning p {
    border-top: 25px solid #E06F6C;
    background: #F9F9F9;
}

.content .notices.warning p::after {
    content: "Warning";
    position: absolute;
    top: 2px;
    color: #F9F9F9 !important;
    left: 2rem;
}

.content blockquote {
    font-size: 18px !important;
    color: #555;
    padding: 15px 30px;
    border-left: 2px solid #E814FF;
    margin: 30px 0;
    font-weight: bold;
    background: #F9F9F9;
}

.content blockquote p {
    margin-bottom: 0 !important;
}

.content pre {
    display: block;
    padding: 8px;
    margin: 8px 0px;
    white-space: pre-wrap;
}

.content code {
    margin-bottom: 0 !important;
    font-size: 95%;
}

.code-tabs {
    border: 1px solid #EBEBEB;
    overflow: hidden;
    margin-bottom: 18px;
    background-color: #F9F9F9 !important;
}

.code-tabs .nav-tabs {
    margin-bottom: 0;
}

.code-tabs .nav-tabs .nav-item {
    padding-left: 0;
    border-right: 1px solid #EBEBEB;
}

.code-tabs .nav-tabs .nav-item .nav-link {
    text-decoration: none;
    font-weight: 500;
    border: 0;
}

.code-tabs .nav-tabs .nav-item::before {
    display: none;
}

.code-tabs .nav-tabs .nav-item.active {
    background: #E814FF;
}

.code-tabs .nav-tabs .nav-item.active .nav-link {
    color: #F9F9F9 !important;
}

.code-tabs .tab-content {
    padding: 15px 12px;
}

.collapse-wrapper {
    background-color: #F9F9F9 !important;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

.form-group .form-control {
    border-color: #555 !important;
    border: 1px solid transparent;
    background-color: #F9F9F9 !important;
    height: 45px;
    /* Reduced height */
}

.form-group .form-control:focus {
    outline: 0;
    box-shadow: none;
    border-color: #E814FF;
}

.form-group textarea.form-control {
    height: 100px;
    /* Reduced height */
}

.widget {
    margin-bottom: 25px;
    padding: 12px;
    /* Reduced padding */
    border-radius: 4px;
    border-top: 4px solid #E814FF;
    /* Thinner top border */
    background-color: #F9F9F9 !important;
}

.widget-title {
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #000;
    text-align: center;
    font-size: 15px;
    /* Reduced size */
    letter-spacing: 0.05em;
    font-weight: 800;
}

.widget-title::before {
    position: absolute;
    left: 0;
    bottom: -6px;
    content: "";
    height: 2px;
    width: 50px;
    background-color: #E814FF;
}

/* search */
.widget-search {
    position: relative;
    display: inline-block;
    width: 100%;
}

.widget-search input {
    border: 1px solid transparent;
    width: 100%;
    height: 36px;
    /* Reduced height */
    border-radius: 30px;
    background-color: #F9F9F9 !important;
    padding-left: 12px;
    padding-right: 35px;
    transition: all 0.3s ease;
}

.widget-search input:focus {
    border-color: #E814FF;
    outline: 0;
}

.widget-search input::-moz-placeholder {
    font-size: 90%;
}

.widget-search input::placeholder {
    font-size: 90%;
}

@media (max-width: 991px) {
    .widget-search {
        width: auto;
    }

    .widget-search input {
        width: 40px;
        padding-left: 15px;
        transition: all 0.3s ease;
    }

    .widget-search input:focus {
        width: 180px;
        padding-left: 15px;
    }
}

.widget-about {
    text-align: center;
}

.widget-about img {
    height: 150px;
    width: 150px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 10px;
    border: 4px solid transparent;
    box-shadow: 0 0 0 2px #E814FF;
}

@media (max-width: 1200px) {
    .widget-about img {
        height: 130px;
        width: 130px;
    }
}

.widget-author .media {
    position: relative;
    padding: 12px 0;
}

.widget-author .media img {
    height: 60px;
    width: 60px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 50%;
}

.widget-author .media:not(:last-child) {
    border-bottom: 1px solid #EBEBEB;
}

.widget-categories a {
    position: relative;
    padding-left: 12px;
}

.widget-categories a::before {
    position: absolute;
    content: "#";
    color: #E814FF;
    left: 0;
    top: 0;
}

.widget-list li {
    padding: 6px 0;
}

.widget-list li:not(:last-child) {
    border-bottom: 1px solid #EBEBEB;
}

.widget-list li a {
    color: #555;
}

.widget-list li a:hover {
    color: #E814FF !important;
}

.widget-list-inline li {
    margin-bottom: 8px;
    text-decoration: none !important;
}

.widget-list-inline li a {
    padding: 2px 12px;
    border: 1px solid #555;
    border-radius: 20px;
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 11px;
}

.widget-list-inline li a:hover {
    border-color: #E814FF !important;
    background: #E814FF;
    color: #F9F9F9 !important;
    text-decoration: none !important;
}

.widget-card {
    position: relative;
    padding: 12px 0;
}

.widget-card:not(:last-child) {
    border-bottom: 1px solid #EBEBEB;
}

.widget-social {
    display: flex;
    justify-content: space-around;
}

.widget-social a {
    padding: 8px;
    font-size: 16px;
    color: #555;
}

.widget-social a:hover {
    color: #E814FF;
}

.quote {
    background-color: #F9F9F9 !important;
    border: 1px solid #EBEBEB;
    display: flex;
    padding: 15px;
    margin-bottom: 18px;
}

.quote i {
    font-size: 20px;
    color: #E814FF;
    margin-right: 8px;
}

.quote p {
    font-style: italic;
}

.quote-by {
    color: #E814FF;
}

.instagram-post img {
    height: 140px;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.error {
    padding: 100px 0;
    /* Reduced padding */
}

.error-shape-1 {
    position: absolute;
    right: 20%;
    top: 15%;
    z-index: -1;
}

.error-shape-1 .path {
    fill: #E814FF;
}

.error-shape-2 {
    position: absolute;
    right: 10%;
    top: 50%;
    z-index: -1;
}

.error-shape-2 .path {
    fill: #E814FF;
}

.error-shape-3 {
    position: absolute;
    right: 30%;
    bottom: 15%;
    z-index: -1;
}

.error-shape-3 .path {
    fill: #E814FF;
}

.footer {
    padding: 80px 0 40px;
    /* Reduced padding */
    background: transparent;
    position: relative;
}

.footer-list a {
    display: block;
    color: #555;
    padding: 4px;
    text-decoration: none !important;
    font-size: 0.95em;
}

.footer-list a:hover {
    color: #E814FF;
    text-decoration: none !important;
}

.footer-border {
    position: absolute;
    top: -60px;
    /* Adjusted */
    width: 100%;
    stroke: #E814FF;
}

.image-wrapper {
    position: relative;
    border-radius: 4px;
}

.image-wrapper img {
    border-radius: inherit;
}

.image-wrapper::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    background-color: #F9F9F9 !important;
    left: -12px;
    top: -12px;
    z-index: -1;
    border-radius: inherit;
}

.image-wrapper::after {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    border: 1px solid #E814FF;
    left: 12px;
    top: 12px;
    border-radius: inherit;
}

.logo-list li {
    color: #555 !important;
    background-color: transparent;
    align-items: center;
    height: 60px;
    padding: 0 25px;
    text-align: center;
    line-height: 60px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.logo-list a {
    color: #555 !important;
    background-color: transparent;
    align-items: center;
}

.logo-list a:hover i {
    color: #E814FF !important;
    transform: scale(1.1);
}

.logo-list li img {
    height: 22px;
    color: #555 !important;
}

@media (max-width: 992px) {
    .logo-list i {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .logo-list i {
        font-size: 1.15rem;
    }
}

@media (max-width: 576px) {
    .logo-list i {
        font-size: 1rem;
    }
}

.video-wrapper {
    position: relative;
}

.video-wrapper .play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.play-btn {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    line-height: 50px;
    font-size: 18px;
    color: #F9F9F9 !important;
    background-color: #E814FF;
    text-align: center;
    box-shadow: 0 0 0 4px rgba(79, 214, 117, 0.7);
    transition: 0.2s ease-out;
}

.play-btn:hover {
    color: #F9F9F9 !important;
    box-shadow: 0 0 0 8px rgba(79, 214, 117, 0.7);
}

.mission-name {
    height: 130px;
    width: 130px;
    color: #F9F9F9 !important;
    background-color: #E814FF;
    line-height: 130px;
    border-radius: 50%;
    text-align: center;
    margin: auto;
}

.promotion {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
}

.promotion-content {
    position: absolute;
    padding: 25px;
    height: 100%;
    width: 100%;
    background-color: rgba(24, 24, 24, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    left: 0;
    top: 0;
}

.promotion-content h5 {
    font-size: 24px;
}

.pricing-wrapper {
    padding: 25px 8px;
    padding-bottom: 0;
}

.pricing-item {
    margin-bottom: 18px;
}

.pricing-item .card {
    border-right: 1px solid #ddd;
    margin: 0 8px;
    padding: 18px 12px;
}

@media (max-width: 991px) {
    .pricing-item .card {
        border: 0;
    }
}

.pricing-item .card .price {
    margin-bottom: 25px;
}

.pricing-item .card .price h2 {
    margin-bottom: 0;
}

.pricing-item .card .price span {
    line-height: 1;
    margin-left: 8px;
}

.pricing-item:last-child .card {
    border: 0;
}

.nav-pills-icon .nav-link {
    padding-top: 18px;
    padding-bottom: 18px;
    color: #555;
    border: 2px solid transparent;
}

.nav-pills-icon .nav-link.active {
    color: #E814FF;
    background-color: transparent;
    border-color: #E814FF;
}

.book-cover {
    background-color: #F9F9F9 !important;
}

.book-cover img {
    max-width: 150px;
    margin: 30px 0;
}

.shadow-none {
    box-shadow: none !important;
}

.motto-text {
    font-size: 0.85em;
    color: #555;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 18px;
    font-weight: bold;
}



/* Adjust pagination icons for better centering */
.pagination .page-item .page-link i {
    vertical-align: middle;
    line-height: 1;
    display: inline-block;
}

@media (max-width: 575px) {
    .pagination .page-item .page-link {
        width: 30px;
        height: 30px;
        margin-right: 4px;
    }
}


/* Related Posts Section Styling */
.related-posts-container {
    margin: 0 -10px;
    overflow: hidden;
    position: relative;
}

.related-posts-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.related-post-slide {
    padding: 0 10px;
    width: 280px;
    /* Reduced width */
    flex-shrink: 0;
}

.post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-card .card-img-top {
    height: 160px;
    /* Reduced height */
    object-fit: cover;
    width: 100%;
}

.post-card .card-body {
    padding: 1rem;
    /* Reduced padding */
    flex-grow: 1;
}

.post-card .card-title {
    font-size: 0.95rem;
    /* Reduced size */
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.post-card .card-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: auto;
}

.post-card .card-meta li {
    display: inline-block;
    margin-right: 8px;
}

.post-card .card-meta i {
    margin-right: 3px;
}

/* Slick Carousel Navigation Arrows */
.slick-prev,
.slick-next {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-prev:before,
.slick-next:before {
    font-family: 'themify';
    font-size: 18px;
    line-height: 1;
    opacity: 1;
    color: white;
}

.slick-prev:before {
    content: "\e64a";
}

.slick-next:before {
    content: "\e649";
}



/* Ad Container Styles */
.ad-container {
    margin: 15px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.ad-container ins {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .ad-container {
        padding: 8px;
        margin: 10px 0;
    }
}


.new-badge {
    font-size: 0.65em;
    color: #E814FF !important;
    vertical-align: super;
    margin-left: 3px;
    font-weight: 700;
    text-transform: uppercase;
}


/* Hide sidebar on small devices */
@media (max-width: 991.98px) {
    aside.col-lg-4 {
        display: none;
    }

    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Vertical Auto Scroll for Mobile */
.vertical-scroll-wrapper {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.vertical-scroll-track {
    animation: vertical-scroll 20s linear infinite;
    display: flex;
    flex-direction: column;
}

.vertical-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes vertical-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* =========================================
   CSS Variables and Custom Theme
   Consolidated from user.css
   ========================================= */

:root {
    /* Color Palette */
    --color-black: #0a0a0a;
    --color-off-black: #1a1a1a;
    --color-dark-grey: #333333;
    --color-grey: #666666;
    --color-light-grey: #e0e0e0;
    --color-off-white: #f5f5f5;
    --color-white: #ffffff;
    --color-primary: #E814FF;

    /* Accents */
    --color-accent: #333;
    --color-accent-hover: #000;
    --color-border: #e0e0e0;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-primary: 'Ubuntu', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* =========================================
   Widget & Sidebar Styles
   ========================================= */
.widget {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.widget-title {
    position: relative;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-light-grey);
}

.widget-title span {
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
}

/* =========================================
   Bootstrap Component Overrides
   ========================================= */

/* Nav Pills - Profile Tabs */
.nav-pills .nav-link {
    color: var(--color-grey);
    background: transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.nav-pills .nav-link::after {
    display: none !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
}

.nav-pills .nav-link:hover {
    background: rgba(232, 20, 255, 0.1);
    color: var(--color-primary);
    text-decoration: none !important;
}

/* Badges */
.badge.bg-primary-subtle {
    background-color: rgba(232, 20, 255, 0.1) !important;
    color: var(--color-primary) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(232, 20, 255, 0.15) !important;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Camera Icon Button */
.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-primary:hover {
    background-color: #d012e5 !important;
}


/* =========================================
   Image Cropper Modal Styles
   ========================================= */
.img-container {
    max-height: 500px;
    min-height: 400px;
    overflow: hidden;
    width: 100%;
    background-color: #f7f7f7;
    position: relative;
}

.img-container img {
    display: block;
    max-width: 100%;
}

.preview {
    overflow: hidden;
    width: 150px;
    height: 150px;
    margin: 10px auto;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

#modal .modal-dialog {
    max-width: 800px;
}

#modal {
    z-index: 2060 !important;
}

.modal-backdrop {
    z-index: 1059 !important;
}

/* =========================================
   Navbar Background Fix
   ========================================= */
.navigation.fixed-top {
    background-color: #ffffff !important;
}

.navigation.fixed-top .navbar {
    background-color: #ffffff !important;
}

/* Ensure navbar stays white on scroll */
.navigation {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Slick Slider Arrow Overrides */
.prevArrow,
.nextArrow {
    background: #fff;
    border: none;
    color: var(--tblr-primary, #E814FF);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.prevArrow:hover,
.nextArrow:hover {
    background: var(--tblr-primary, #E814FF);
    color: #fff;
}

.prevArrow {
    left: 10px;
}

.nextArrow {
    right: 10px;
}

/* Secondary button with transparent background and primary outline */
.btn-secondary,
.btn-secondary:not(:disabled):not(.disabled) {
    background-color: transparent !important;
    background-image: none !important;
    border: 2px solid #E814FF !important;
    color: #E814FF !important;
    padding: 0.2rem 2rem;
    border-radius: 60px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 20, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):hover,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled):focus {
    background-color: #E814FF !important;
    background-image: none !important;
    border-color: #E814FF !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 20, 255, 0.4);
}

/* Custom Quiz Utilities */
.text-purple {
    color: #E814FF !important;
}

.border-purple {
    border-color: #E814FF !important;
}

.bg-purple-subtle {
    background-color: rgba(232, 20, 255, 0.1) !important;
}

.custom-radio-purple:checked {
    background-color: #E814FF;
    border-color: #E814FF;
}

.custom-radio-purple:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

/* Ensure disabled secondary button is visible but faded */
.btn-secondary:disabled,
.btn-secondary.disabled {
    opacity: 0.5 !important;
    background-color: transparent !important;
    border: 2px solid #E814FF !important;
    color: #E814FF !important;
    display: inline-block !important;
    /* Force display */
}

/* SweetAlert Loader Color Override */
.swal2-loader {
    border-color: #E814FF transparent #E814FF transparent !important;
}

/* Custom Form Control Styling to match Navbar Search */
.form-control-custom {
    border: 1px solid #ddd !important;
    border-radius: 25px !important;
    outline: none !important;
    font-size: 14px !important;
    background: #fff !important;
    padding: 0 15px !important;
    height: 38px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: none !important;
}

/* Hide Microsoft Edge and other browser-default password reveal buttons */
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

/* For other browsers that might show a password reveal icon inside the field */
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.form-control-custom:disabled,
.form-control-custom[readonly] {
    background-color: #fcf6ff !important;
    border-color: #f0c4ff !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    border-left: 4px solid #E814FF !important;
    /* Visual cue for special/locked field */
}


.form-control-custom:focus {
    border-color: #E814FF !important;
    box-shadow: 0 0 0 0.2rem rgba(232, 20, 255, 0.1) !important;
}

textarea.form-control-custom {
    height: auto !important;
    padding: 12px 15px !important;
    border-radius: 15px !important;
}

/* Fix for input-group with custom form control */
.input-group-custom-text {
    background-color: #f8f9fa !important;
    border: 1px solid #ddd !important;
    border-right: none !important;
    border-radius: 25px 0 0 25px !important;
    padding-left: 15px !important;
    font-size: 14px !important;
    color: #888 !important;
}

.form-control-custom.rounded-end-only {
    border-radius: 0 25px 25px 0 !important;
    border-left: none !important;
}

.hover-primary:hover {
    color: #E814FF !important;
}

.primary-color-text {
    color: #E814FF !important;
}

.transition-all {
    transition: all 0.3s ease !important;
}

/* Premium Quiz Card Styles */
.quiz-card-premium {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.25rem;
    width: 170px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.quiz-card-premium:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.quiz-card-icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.quiz-card-premium .quiz-title {
    color: white !important;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0;
}

.quiz-card-premium .quiz-badge {
    background: white;
    color: #E814FF;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Horizontal Auto Scroll Animation */
.horizontal-scroll-container {
    overflow: hidden;
    width: 100%;
}

.horizontal-scroll-content {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scroll-h 60s linear infinite;
}

.horizontal-scroll-container:hover .horizontal-scroll-content {
    animation-play-state: paused;
}

@keyframes scroll-h {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Variety for cards */
.quiz-card-premium:nth-child(even) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quiz-card-premium:nth-child(3n) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Profile Badge Fixes */
.badge.rounded-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-width: 1px !important;
    white-space: nowrap;
}

.badge.rounded-pill i {
    font-size: 1.1em;
    line-height: 1;
}

/* Author Pagination Styles */
.author-pagination .pagination {
    gap: 10px;
    border: none;
}

.author-pagination .page-item {
    margin: 0;
}

.author-pagination .page-link {
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #E814FF !important;
    color: #E814FF !important;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0;
    font-size: 1rem;
}

.author-pagination .page-item.active .page-link {
    background-color: #E814FF !important;
    border-color: #E814FF !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(232, 20, 255, 0.4);
}

.author-pagination .page-item:not(.active) .page-link:hover {
    background-color: rgba(232, 20, 255, 0.1);
    transform: translateY(-2px);
}

.author-pagination .page-item.disabled .page-link {
    border-color: #ddd !important;
    color: #ddd !important;
    opacity: 0.6;
}

/* Fix for mobile scrolling blockage */
html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.section {
    position: relative;
    overflow: visible;
}

/* Premium Footer Styles */
.footer {
    padding-top: 100px;
    padding-bottom: 50px;
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #333;
    white-space: nowrap;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .footer-links li a {
        font-size: 0.8rem;
    }

    .footer-title {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
}

.footer-links li a:hover {
    color: #E814FF;
    transform: translateX(5px);
}

.footer-links li a i {
    font-size: 0.8rem;
    color: #E814FF;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: #E814FF;
    color: #fff;
    border-color: #E814FF;
    transform: translateY(-3px);
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.gap-3 {
    gap: 1rem !important;
}

/* Quiz List Card Styles */
.quiz-card-list {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.quiz-card-list:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: #E814FF;
}

.quiz-list-icon {
    width: 60px;
    height: 60px;
    background: rgba(232, 20, 255, 0.1);
    color: #E814FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quiz-list-content {
    flex-grow: 1;
}

.quiz-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #333;
}

.quiz-list-title a {
    color: inherit;
    text-decoration: none;
}

.quiz-list-title a:hover {
    color: #E814FF;
}

.quiz-list-meta {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quiz-list-action {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .quiz-card-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .quiz-list-action {
        width: 100%;
    }

    .quiz-list-action .btn {
        width: 100%;
    }

    .quiz-list-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}


/* Mobile Auto Scroll Animations */
@media (max-width: 767px) {
    .mobile-auto-scroll-h-container {
        overflow: hidden;
        white-space: nowrap;
        width: 100%;
    }

    .mobile-auto-scroll-h {
        display: inline-flex;
        gap: 15px;
        animation: mobileScrollH 20s linear infinite;
    }

    .mobile-auto-scroll-v-container {
        height: 400px;
        /* Fixed height for vertical scroll area */
        overflow: hidden;
        position: relative;
    }

    .mobile-auto-scroll-v {
        animation: mobileScrollV 20s linear infinite;
    }

    /* Pause on interaction */
    .mobile-auto-scroll-h-container:active .mobile-auto-scroll-h,
    .mobile-auto-scroll-h-container:focus-within .mobile-auto-scroll-h,
    .mobile-auto-scroll-v-container:active .mobile-auto-scroll-v,
    .mobile-auto-scroll-v-container:focus-within .mobile-auto-scroll-v {
        animation-play-state: paused;
    }
}

@keyframes mobileScrollH {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes mobileScrollV {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}


/* Fixed Search Bar Layout */
.search-bar {
    display: flex;
    align-items: center;
    position: relative;
}

.search-bar input {
    border: none;
    background: transparent;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 5px 10px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #E814FF;
    box-shadow: none;
}

/* Ensure icons are properly spaced */
#search-icon,
#close-icon {
    font-size: 18px;
    padding: 5px;
    color: #555;
    transition: color 0.3s ease;
}

#search-icon:hover,
#close-icon:hover {
    color: #E814FF;
}

@media (max-width: 991px) {
    .search-bar input {
        width: 140px;
        /* Smaller width on mobile */
    }
}


/* =========================================
   Auto Scroll Sections (Horizontal & Vertical)
   ========================================= */

/* Horizontal Wrapper */
.horizontal-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}

.horizontal-scroll-track {
    display: inline-block;
    animation: scroll-horizontal 30s linear infinite;
}

.horizontal-scroll-item {
    display: inline-block;
    margin-right: 20px;
    vertical-align: top;
}

/* Hover Pause */
.horizontal-scroll-track:hover,
.vertical-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Vertical Wrapper Override/Enhancement */
.vertical-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.vertical-scroll-track {
    animation: scroll-vertical 40s linear infinite;
    display: flex;
    flex-direction: column;
}

@keyframes scroll-vertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .horizontal-scroll-track {
        animation-duration: 20s;
    }

    .vertical-scroll-track {
        animation-duration: 30s;
    }
}

.new-badge {
    font-size: 0.6em;
    vertical-align: super;
    color: #E814FF;
    font-weight: bold;
    margin-left: 2px;
}

.bismillah-text {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 2.5rem;
}

.author-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid #E814FF;
}

.paywall-blur {
    filter: blur(5px);
    opacity: 0.5;
    -webkit-user-select: none;
    user-select: none;
}

/* Quiz Animations & Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes floatReverse {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(-10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes troman {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.animate-slide-up {
    animation: slideUpFade 0.6s ease-out both;
}

.animate-pulse-warning {
    animation: pulse-warning 2s infinite;
}

.animate-troman {
    animation: troman 1s infinite;
}

.delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.floating-circle-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-circle-2 {
    animation: floatReverse 7s ease-in-out infinite;
}

.hover-pulse:hover {
    animation: pulse-soft 2s infinite;
}

.hover-lift {
    transition: transform 0.2s;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow-sm:hover {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
    transform: translateY(-1px);
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.selected-option-pop {
    animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.question-transition-enter .question-content-wrapper {
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.question-transition-exit .question-content-wrapper {
    animation: slideOutLeft 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

/* Custom Colors */
.custom-radio-purple:checked {
    background-color: #E814FF !important;
    border-color: #E814FF !important;
}

.custom-radio-purple:focus {
    box-shadow: 0 0 0 0.25rem rgba(232, 20, 255, 0.25) !important;
    border-color: #E814FF !important;
}

.text-purple {
    color: #E814FF !important;
}

.border-purple {
    border-color: #E814FF !important;
}

.bg-purple-subtle {
    background-color: rgba(232, 20, 255, 0.05) !important;
}

.download-btn-animate {
    transition: all 0.3s ease;
}

.download-btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Profile Page Styles */
:root {
    --custom-primary: #E814FF;
    --custom-primary-hover: #D012E6;
    --custom-secondary: #6610f2;
}

.text-custom-primary {
    color: var(--custom-primary) !important;
}

.border-custom-primary {
    border-color: var(--custom-primary) !important;
}

.btn-outline-custom-primary {
    color: var(--custom-primary);
    border-color: var(--custom-primary);
}

.btn-outline-custom-primary:hover {
    background-color: var(--custom-primary);
    color: white;
}

.btn-custom-primary {
    background-color: var(--custom-primary);
    border-color: var(--custom-primary);
    color: white;
}

.btn-custom-primary:hover {
    background-color: var(--custom-primary-hover);
    border-color: var(--custom-primary-hover);
    color: white;
}

/* Circular Social Share Buttons */
.share-btn-circle {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-size: 1.25rem;
    padding: 0;
    border: 1.5px solid #eceef2;
    text-decoration: none !important;
}

.share-btn-circle i {
    line-height: 1;
}

.share-btn-facebook { color: #1877F2; border-color: rgba(24, 119, 242, 0.2); }
.share-btn-twitter { color: #1DA1F2; border-color: rgba(29, 161, 242, 0.2); }
.share-btn-whatsapp { color: #25D366; border-color: rgba(37, 211, 102, 0.2); }

.share-btn-facebook:hover { background: #1877F2; color: white !important; border-color: #1877F2; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3); }
.share-btn-twitter:hover { background: #1DA1F2; color: white !important; border-color: #1DA1F2; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3); }
.share-btn-whatsapp:hover { background: #25D366; color: white !important; border-color: #25D366; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); }

@media (max-width: 576px) {
    .share-btn-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Nav Pills Override */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--custom-primary) !important;
    background: linear-gradient(-45deg, #E814FF, #C42E9A);
}

.nav-link {
    color: #555;
}

.nav-link:hover {
    color: var(--custom-primary);
    text-decoration: none !important;
    border-bottom: none !important;
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 1rem 3rem rgba(196, 46, 154, 0.15) !important;
    z-index: 10;
}

.hover-scale-small:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Animated Gradient Background */
.animated-gradient-header {
    background: linear-gradient(-45deg, #E814FF, #C42E9A, #6610f2, #E814FF);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
}

.animated-gradient-badge {
    background: linear-gradient(-45deg, #E814FF, #C42E9A);
    background-size: 200% 200%;
    animation: gradient-flow 5s ease infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Animation Keyframes for Auth Pages */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Auth Page Utility Classes */
.animate-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-up {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Mobile Navbar Sub-Category Styles */
.mobile-sub-link {
    background-color: transparent !important;
    transition: color 0.3s ease;
}

.mobile-sub-link:hover {
    color: #E814FF !important;
    /* Primary Brand Color */
    background-color: transparent !important;
}

/* Sidebar Author Scroll Animation (Restored) */
.sidebar-author-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.sidebar-author-scroll-track {
    display: flex;
    gap: 10px;
    animation: sidebarAuthorScroll 20s linear infinite;
    width: max-content;
}

.sidebar-author-scroll-item {
    flex-shrink: 0;
    min-width: 80px;
    margin: 0 5px;
}

.sidebar-author-scroll-wrapper:hover .sidebar-author-scroll-track {
    animation-play-state: paused;
}

@keyframes sidebarAuthorScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Strict Mobile Font Size Overrides */
@media (max-width: 991px) {

    p,
    .page-link,
    .btn,
    .btn-primary,
    .badge-flat,
    .form-control-custom,
    .widget-list-inline li a,
    .social-icons li,
    .card-meta-author,
    .card-meta span,
    .navbar .dropdown-item,
    .nav-item .nav-link {
        font-size: 10px !important;
    }

    .widget-title {
        font-size: 12px !important;
    }

    .promotion-content h5 {
        font-size: 18px !important;
        /* Proportional reduction from 24px */
    }
}

/* ============================================
   Responsive Font Sizes
   ============================================ */

/* Mobile First - Base (< 576px) */
.section-title {
    font-size: 1.125rem;
    /* 18px */
}

.post-title {
    font-size: 0.875rem;
    /* 14px */
}

.card-meta,
.small,
.job-location,
.quiz-time,
.mcq-category {
    font-size: 0.5625rem;
    /* 9px */
}

p,
.card-body p {
    font-size: 0.6875rem;
    /* 11px */
}

/* Tablet (≥ 576px) */
@media (min-width: 576px) {
    .section-title {
        font-size: 1.25rem;
        /* 20px */
    }

    .post-title {
        font-size: 1rem;
        /* 16px */
    }

    .card-meta,
    .small,
    .job-location,
    .quiz-time,
    .mcq-category {
        font-size: 0.6875rem;
        /* 11px */
    }

    p,
    .card-body p {
        font-size: 0.8125rem;
        /* 13px */
    }
}

/* Desktop (≥ 992px) */
@media (min-width: 992px) {
    .section-title {
        font-size: 1.5rem;
        /* 24px */
    }

    .post-title {
        font-size: 1.125rem;
        /* 18px */
    }

    .card-meta,
    .small,
    .job-location,
    .quiz-time,
    .mcq-category {
        font-size: 0.75rem;
        /* 12px */
    }

    p,
    .card-body p {
        font-size: 0.875rem;
        /* 14px */
    }
}

/* ============================================
   Responsive Image Sizes
   ============================================ */

/* Mobile */
.card-img-top,
.featured-book-image {
    height: 180px;
    object-fit: cover;
}

/* Tablet */
@media (min-width: 576px) {
    .card-img-top {
        height: 220px;
    }

    .featured-book-image {
        height: 250px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .card-img-top {
        height: 250px;
    }

    .featured-book-image {
        height: 300px;
    }
}

/* ============================================
   Responsive Icon Sizes
   ============================================ */

/* Mobile */
.ti {
    font-size: 1rem;
}

.job-card-header i,
.quiz-card-icon-wrapper i,
.mcq-card-icon-wrapper i {
    font-size: 2rem;
}

/* Tablet */
@media (min-width: 576px) {
    .ti {
        font-size: 1.125rem;
    }

    .job-card-header i,
    .quiz-card-icon-wrapper i,
    .mcq-card-icon-wrapper i {
        font-size: 2.5rem;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .ti {
        font-size: 1.25rem;
    }

    .job-card-header i,
    .quiz-card-icon-wrapper i,
    .mcq-card-icon-wrapper i {
        font-size: 3rem;
    }
}

/* ============================================
   Horizontal Auto-scrolling Sections
   ============================================ */

.horizontal-scroll-container {
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    padding: 20px 0;
}

.horizontal-scroll-content {
    display: flex;
    gap: 20px;
    animation: horizontal-scroll 150s linear infinite;
    width: max-content;
}

.horizontal-scroll-container:hover .horizontal-scroll-content {
    animation-play-state: paused;
}

@keyframes horizontal-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Job Card Premium Styling
   ============================================ */

.job-card-premium {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    min-width: 280px;
    max-width: 280px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.job-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.job-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
}

.job-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    min-height: 48px;
}

.job-location {
    margin-bottom: 10px;
}

.job-meta {
    margin-top: 12px;
}

.job-badge {
    background: #f0f3ff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.job-date {
    font-size: 0.7rem;
}

.job-type-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .job-card-premium {
        min-width: 240px;
        max-width: 240px;
        padding: 15px;
    }

    .job-title {
        font-size: 0.875rem;
        min-height: 42px;
    }

    .job-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* ============================================
   MCQ & Quiz Card Premium Styling
   ============================================ */

.mcq-card-premium,
.quiz-card-premium {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    min-width: 260px;
    max-width: 260px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.mcq-card-premium:hover,
.quiz-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.mcq-card-icon-wrapper {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
}

.quiz-card-icon-wrapper {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
}

.mcq-title,
.quiz-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    min-height: 48px;
}

.mcq-badge,
.quiz-badge {
    background: #fff3e0;
    color: #e65100;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 576px) {

    .mcq-card-premium,
    .quiz-card-premium {
        min-width: 220px;
        max-width: 220px;
        padding: 15px;
    }

    .mcq-title,
    .quiz-title {
        font-size: 0.875rem;
        min-height: 42px;
    }

    .mcq-badge,
    .quiz-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* ============================================
   Sidebar Jobs Widget
   ============================================ */

.job-icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-icon-wrapper i {
    font-size: 1.25rem;
}

/* ============================================
   Text Truncation Utilities
   ============================================ */

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Smooth Animations
   ============================================ */

.section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Additional Spacing & Layout Improvements
   ============================================ */

.section {
    padding: 2rem 0;
}

@media (min-width: 992px) {
    .section {
        padding: 3rem 0;
    }
}

/* Ensure consistent button sizing */
.btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

@media (max-width: 576px) {
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================
   PREMIUM MODERN FOOTER
   ============================================ */
.site-footer {
    background-color: #0f172a;
    /* Slate 900 */
    color: #94a3b8;
    /* Slate 400 */
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    font-family: 'Ubuntu', sans-serif;
}

/* Subtle background accent */
.site-footer::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 20, 255, 0.05) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    z-index: 0;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E814FF, #7000FF, #E814FF);
    background-size: 200% 100%;
    animation: gradientMove 5s linear infinite;
    z-index: 1;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.footer-brand-logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-brand-logo:hover {
    transform: translateY(-3px);
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 400px;
    color: #94a3b8;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: #E814FF;
    color: white;
    transform: translateY(-5px) rotate(8deg);
    border-color: #E814FF;
    box-shadow: 0 10px 20px rgba(232, 20, 255, 0.3);
}

/* Footer App Download Banner */
.footer-app-banner {
    margin-top: 50px;
    position: relative;
    z-index: 1;
    border-radius: 30px;
}

.app-banner-inner {
    position: relative;
    background: linear-gradient(135deg, rgba(232, 20, 255, 0.06) 0%, rgba(112, 0, 255, 0.06) 50%, rgba(232, 20, 255, 0.03) 100%);
    border: 1px solid rgba(232, 20, 255, 0.15);
    border-radius: 30px;
    padding: 35px 40px;
    overflow: hidden;
}

.app-banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E814FF, #7000FF, #E814FF, transparent);
    opacity: 0.8;
}

.app-banner-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 20, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: bannerGlowPulse 4s ease-in-out infinite;
}

@keyframes bannerGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.app-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.app-banner-text {
    display: flex;
    align-items: center;
    gap: 18px;
}

.app-banner-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #E814FF, #7000FF);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(232, 20, 255, 0.3);
}

.app-banner-icon-wrap.bg-white {
    background: #ffffff !important;
}

.app-banner-icon-wrap i {
    font-size: 26px;
    color: #fff;
}

.app-banner-title {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 4px 0;
    letter-spacing: 0.3px;
}

.app-banner-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 0.2px;
}

.app-store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Store Buttons — Real badge style */
.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 170px;
}

.store-btn-icon {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-btn-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.7;
}

.store-btn-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Per-platform accent colors */
.store-btn-play .store-btn-icon { color: #34D399; }
.store-btn-huawei .store-btn-icon { color: #FF4757; }
.store-btn-apple .store-btn-icon { color: #60A5FA; }

/* Hover states */
.store-btn:hover {
    transform: translateY(-4px);
    text-decoration: none;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.store-btn-play:hover {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(16, 185, 129, 0.08));
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 12px 28px rgba(52, 211, 153, 0.15);
}

.store-btn-huawei:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.12), rgba(232, 20, 255, 0.08));
    border-color: rgba(255, 71, 87, 0.35);
    box-shadow: 0 12px 28px rgba(255, 71, 87, 0.15);
}

.store-btn-apple:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(59, 130, 246, 0.08));
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 12px 28px rgba(96, 165, 250, 0.15);
}

.store-btn:hover .store-btn-icon {
    transform: scale(1.15);
}

/* Responsive */
@media (max-width: 991px) {
    .app-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .app-banner-text {
        flex-direction: column;
        gap: 12px;
    }

    .app-store-buttons {
        justify-content: center;
    }

    .app-banner-inner {
        padding: 28px 24px;
    }
}

@media (max-width: 576px) {
    .store-btn {
        min-width: 150px;
        padding: 10px 16px;
        gap: 10px;
    }

    .store-btn-icon {
        font-size: 22px;
    }

    .store-btn-name {
        font-size: 14px;
    }

    .store-btn-label {
        font-size: 8px;
    }

    .app-banner-icon-wrap {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .app-banner-icon-wrap i {
        font-size: 22px;
    }

    .app-banner-title {
        font-size: 17px;
    }
}

.footer-heading {
    color: #f8fafc;
    /* Slate 50 */
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background: #E814FF;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.footer-links a i {
    font-size: 16px;
    color: #E814FF;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #f8fafc;
    transform: translateX(8px);
}

.footer-links a:hover i {
    transform: scale(1.2);
    opacity: 1;
}

.footer-bottom {
    margin-top: 70px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    font-size: 13.5px;
}

.copyright-text strong {
    color: #E814FF;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    font-size: 13.5px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #E814FF;
}

@media (max-width: 991px) {
    .site-footer {
        padding: 60px 0 30px;
    }

    .footer-heading {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}
/* Premium UI Utilities */
.hover-lift-premium {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}
.hover-lift-premium:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(232, 20, 255, 0.15) !important;
}
/* Premium System Notifications */
.sys-notification-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    pointer-events: none;
    display: none;
}

.sys-notification-content {
    margin: 14px auto;
    max-width: 480px;
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-radius: 50px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: auto;
    animation: notificationSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.notification-success {
    background: linear-gradient(135deg, rgba(10, 50, 30, 0.92), rgba(25, 135, 84, 0.88));
    border: 1px solid rgba(25, 200, 100, 0.4);
    box-shadow: 0 10px 35px rgba(25, 135, 84, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.notification-error {
    background: linear-gradient(135deg, rgba(60, 10, 10, 0.92), rgba(220, 53, 69, 0.88));
    border: 1px solid rgba(220, 100, 100, 0.4);
    box-shadow: 0 10px 35px rgba(220, 53, 69, 0.45), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.notification-info {
    background: linear-gradient(135deg, rgba(30, 0, 40, 0.92), rgba(180, 0, 200, 0.85));
    border: 1px solid rgba(232, 20, 255, 0.35);
    box-shadow: 0 10px 35px rgba(232, 20, 255, 0.4), 0 2px 10px rgba(0, 0, 0, 0.4);
}

@keyframes notificationSlideIn {
    from { transform: translateY(-80px) scale(0.85); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.notification-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-text-box {
    text-align: left;
    line-height: 1.3;
}

.notification-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.87rem;
    letter-spacing: 0.01em;
}

.notification-message {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.73rem;
    font-weight: 400;
}

.notification-badge {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3px 10px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Global Dark Mode Static Content Refinements */
/* ==========================================================================
   GLOBAL PROFESSIONAL DARK MODE TYPOGRAPHY
   ========================================================================== */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] .h1,
[data-bs-theme="dark"] .h2,
[data-bs-theme="dark"] .h3,
[data-bs-theme="dark"] .h4 {
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] li,
[data-bs-theme="dark"] ol,
[data-bs-theme="dark"] span:not(.badge):not(.ti) {
    color: #e2e8f0 !important; /* Professional Slate 200 */
    font-size: var(--font-base) !important;
}

/* Premium Site-Wide Link Branding */
[data-bs-theme="dark"] .content a,
[data-bs-theme="dark"] .section-sm a:not(.btn),
[data-bs-theme="dark"] .about-us-section a {
    color: #E814FF !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .content a:hover,
[data-bs-theme="dark"] .section-sm a:hover:not(.btn) {
    color: #ff1493 !important;
}

/* Specific About Us Refinements */
[data-bs-theme="dark"] .mission-name {
    color: #ffffff !important;
    font-weight: 700;
}

[data-bs-theme="dark"] .form-label {
    color: #e2e8f0 !important;
    font-weight: 600;
}

[data-bs-theme="dark"] .text-purple {
    color: #e814ff !important;
    text-decoration: none !important;
}

/* Ensure Breadcrumb items are readable */
[data-bs-theme="dark"] .list-inline-item.text-primary {
    color: var(--accent-primary) !important;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary {
    color: #94a3b8 !important; /* Slate 400 */
}

[data-bs-theme="dark"] .text-default {
    color: #cbd5e1 !important; /* Slate 300 */
}
/* Footer Mobile Fix — Support 3-column layout (col-4) */
@media (max-width: 575px) {
    .footer-links a {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 6px !important; /* Smaller gap for narrow columns */
        width: 100% !important;
        padding: 5px 0 !important;
        font-size: 11px !important; /* Smaller font to fit in col-4 */
        word-break: break-word !important;
    }

    .footer-links a i {
        font-size: 14px !important; /* Compact icon size */
        flex-shrink: 0 !important;
        width: 16px !important;
        text-align: center !important;
    }

    .footer-heading {
        font-size: 14px !important;
        margin-bottom: 20px !important;
        margin-top: 15px !important;
    }

    .footer-links li {
        margin-bottom: 8px !important; /* Tighter spacing */
    }
}
