/*
 * DevOpsManual - Premium Core Stylesheet
 * Dark engineering aesthetic inspired by Vercel, Linear, and GitBook
 */

@font-face {
    font-family: 'Twemoji Country Flags';
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2') format('woff2');
}

:root {
    --bg-dark: #ffffff;
    --bg-card: #f8fafc;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --cyan: #16a34a;
    --blue: #84cc16;
    --purple: #eab308;
    --red: #ef4444;
    --green: #15803d;
    --yellow: #ca8a04;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global resets & scrollbars */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

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

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

.text-cyan {
    color: #a5f3fc !important; /* Lite premium cyan */
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Background Glowing Accents */
.bg-glow-top {
    position: absolute;
    top: 0;
    left: 20%;
    width: 60vw;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(3, 7, 18, 0) 70%);
    z-index: -2;
    pointer-events: none;
}

.bg-glow-bottom {
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 50vw;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, rgba(3, 7, 18, 0) 70%);
    z-index: -2;
    pointer-events: none;
}

.bg-grid-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--blue);
}

/* Navigation */
.main-navbar {
    background-color: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    z-index: 1030;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary) !important;
}

.logo:hover {
    color: var(--text-primary) !important;
    opacity: 0.9;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 6px;
    color: white !important;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.logo-text {
    color: var(--text-primary);
}

.logo-text .highlight {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-left: 1px;
}

.main-navbar .navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.925rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition);
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Custom UI Elements & Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    transition: var(--transition);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    border: none;
}
.btn-primary-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    filter: brightness(1.05);
    color: white;
}

.btn-cyan-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--bg-dark);
    border: none;
}
.btn-cyan-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
    filter: brightness(1.05);
    color: var(--bg-dark);
}

.btn-login {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.btn-signup {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    font-size: 0.9rem;
}
.btn-signup:hover {
    background-color: white;
    transform: translateY(-1px);
}

/* Global Search Trigger Bar */
.btn-search-trigger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    text-align: left;
    min-width: 220px;
    transition: var(--transition);
}

.btn-search-trigger:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.btn-search-trigger kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Dropdowns */
.btn-user-dropdown {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.btn-user-dropdown:hover {
    border-color: var(--border-hover);
}

.currency-select-custom {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    padding: 0.45rem 2.2rem 0.45rem 0.9rem !important;
    border-radius: 6px !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    background-repeat: no-repeat !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    font-family: "Twemoji Country Flags", "Outfit", "Segoe UI", -apple-system, sans-serif !important;
}
.currency-select-custom:focus {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 229, 255, 0.15) !important;
    outline: 0 !important;
}

.currency-dropdown-menu {
    background-color: #0c0f1d !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    padding: 0.5rem !important;
    font-family: "Twemoji Country Flags", "Outfit", "Segoe UI", -apple-system, sans-serif !important;
    z-index: 1050 !important;
}
.currency-dropdown-menu .dropdown-item {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
    padding: 0.4rem 1rem !important;
    transition: var(--transition) !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
}
.currency-dropdown-menu .dropdown-item:hover,
.currency-dropdown-menu .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-primary) !important;
}

.user-dropdown-menu {
    background-color: #0c0f1d;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 0.5rem;
}
.user-dropdown-menu .dropdown-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}
.user-dropdown-menu .dropdown-item:hover {
    background-color: rgba(255,255,255,0.04);
    color: var(--text-primary);
}

/* Category Badges & Cards */
.card-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    overflow: hidden;
}
.card-custom:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-custom h2,
.card-custom h3,
.card-custom h4,
.card-custom h5 {
    color: var(--text-primary) !important;
}

.card-custom p {
    color: var(--text-secondary) !important;
}

.badge-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--cyan);
}

/* Homepage Hero Section */
.hero-section {
    padding: 7rem 0 5rem;
    text-align: center;
    position: relative;
}

.hero-subtitle-badge {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
}

.gradient-h1 {
    background: linear-gradient(135deg, var(--cyan) 10%, var(--blue) 50%, var(--purple) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 750px;
    margin: 1.5rem auto 3rem;
}

/* Feature & Preview Sections */
.section-header {
    margin-bottom: 3rem;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
}

/* Article / Guides List styles */
.article-thumbnail-wrapper {
    height: 180px;
    background: linear-gradient(135deg, #111827, #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.article-thumbnail-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.07);
}

.article-card-meta {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Incident Scenario Cards */
.incident-card {
    border-left: 4px solid var(--border-color);
}
.incident-card.critical {
    border-left-color: var(--red);
}
.incident-card.high {
    border-left-color: var(--yellow);
}
.incident-card.medium {
    border-left-color: var(--blue);
}
.incident-card.low {
    border-left-color: var(--green);
}

.severity-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.severity-badge.critical { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }
.severity-badge.high { background: rgba(245, 158, 11, 0.15); color: var(--yellow); border: 1px solid rgba(245, 158, 11, 0.3); }
.severity-badge.medium { background: rgba(59, 130, 246, 0.15); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.severity-badge.low { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }

/* Markdown & Documentation Reading Pages */
.doc-layout {
    padding-top: 3rem;
}
.doc-sidebar {
    position: sticky;
    top: 6rem;
}

.sidebar-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.sidebar-menu-list a {
    display: block;
    color: var(--text-secondary);
    padding: 0.45rem 0;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}
.sidebar-menu-list a:hover,
.sidebar-menu-list a.active {
    color: var(--cyan);
    border-left-color: var(--cyan);
}

.doc-content {
    background-color: rgba(17, 24, 39, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
}

/* Markdown Specific Elements Styling */
.markdown-content h1 {
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}
.markdown-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.markdown-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.markdown-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.markdown-content ul, .markdown-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}
.markdown-content li {
    margin-bottom: 0.5rem;
}

/* Syntax Highlighting overrides */
pre[class*="language-"] {
    background: #090d16 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    margin: 1.5rem 0 !important;
    padding: 1rem !important;
}
code[class*="language-"] {
    font-family: var(--font-code) !important;
    font-size: 0.875rem !important;
    text-shadow: none !important;
}
:not(pre) > code[class*="language-"],
:not(pre) > code {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cyan);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: 0.85rem;
}

/* Roadmap Flowchart timeline */
.roadmap-flow {
    position: relative;
    padding-left: 2.5rem;
    border-left: 2px solid var(--border-color);
    margin-left: 1rem;
}

.roadmap-step-card {
    position: relative;
    margin-bottom: 3rem;
}

.roadmap-step-card::before {
    content: '';
    position: absolute;
    left: -2.9rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    z-index: 2;
}

/* Global Search Modal Styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-modal-container {
    width: 100%;
    max-width: 650px;
    background-color: #0c0f1d;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-modal-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-right: 1rem;
}

.search-modal-header input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.btn-close-search {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-close-search:hover {
    color: var(--text-primary);
}

.search-modal-body {
    max-height: 450px;
    overflow-y: auto;
    padding: 1rem 0;
}

.search-empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.search-result-item {
    display: block;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.search-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-snippet {
    font-size: 0.825rem;
}

/* Footer layout */
.main-footer {
    border-top: 1px solid var(--border-color);
    background-color: #050811;
}

.footer-desc {
    font-size: 0.9rem;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-right: 1.25rem;
}
.footer-socials a:hover {
    color: var(--cyan);
}

.footer-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.footer-links a:hover {
    color: var(--cyan);
}

/* Forms & Authentication */
.form-control-custom {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}
.form-control-custom:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-label-custom {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.auth-card {
    background-color: #0c0f1d;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
}

/* Admin Styles */
.admin-table {
    border: 1px solid var(--border-color);
}
.admin-table th {
    background-color: #f1f5f9 !important;
    border-bottom: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}
.admin-table td {
    background-color: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Responsive Navigation Bar Stacking & Swiping */
@media (max-width: 767.98px) {
    .main-menu {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    .main-menu::-webkit-scrollbar {
        display: none;
    }
    .main-menu .nav-item {
        flex: 0 0 auto;
    }
    
    .btn-search-trigger {
        min-width: 0 !important;
        width: 38px;
        height: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn-search-trigger span,
    .btn-search-trigger kbd {
        display: none !important;
    }

    .btn-user-dropdown.dropdown-toggle::after {
        display: none !important;
    }
    .btn-user-dropdown {
        min-width: 0 !important;
        width: 38px;
        height: 38px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50% !important;
    }
}

/* 3D Book Mockup & Pulsing animations for Landing Page */
.book-container {
    perspective: 1000px;
    display: inline-block;
}

.book-cover {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.book-container:hover .book-cover {
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg) scale(1.02) !important;
}

.animate-pulse {
    animation: pulseIcon 1.5s infinite alternate ease-in-out;
}

@keyframes pulseIcon {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Custom Accordion for SRE Landing Page */
.accordion-custom .accordion-item {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.accordion-custom .accordion-button {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
    border: none !important;
}
.accordion-custom .accordion-button:not(.collapsed) {
    background-color: rgba(0, 242, 254, 0.05) !important;
    color: var(--cyan) !important;
}
.accordion-custom .accordion-button::after {
    filter: invert(1) !important;
}
.accordion-custom .accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(0, 242, 254, 0.25) !important;
}

/* Testimonials Slider Styles */
.testimonial-slider-container {
    background: rgba(12, 15, 29, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem 3.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.testimonial-slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0077b5, #00e5ff, #7928ca);
}

.testimonial-slide-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 120px;
}

.testimonial-profile {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 2rem;
}

.testimonial-avatar-container {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 0.75rem;
}

.testimonial-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cyan);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

.testimonial-avatar-fallback {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

.testimonial-linkedin {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background-color: #0077b5;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #0c0f1d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.testimonial-linkedin:hover {
    transform: scale(1.15);
}

.testimonial-info {
    text-align: center;
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.testimonial-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.testimonial-quote-col {
    flex: 1;
    position: relative;
    padding-left: 1rem;
}

.testimonial-quote-icon {
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 3rem;
    color: var(--cyan);
    opacity: 0.08;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Custom Controls for Testimonials Carousel */
.testimonial-carousel-control {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
}

.testimonial-carousel-control:hover {
    background: rgba(0, 229, 255, 0.1) !important;
    border-color: rgba(0, 229, 255, 0.3) !important;
}

.testimonial-carousel-control-prev {
    left: 1rem !important;
}

.testimonial-carousel-control-next {
    right: 1rem !important;
}

.testimonial-carousel-indicators {
    bottom: -35px !important;
    margin-bottom: 0 !important;
}

.testimonial-carousel-indicators [data-bs-target] {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: var(--text-muted) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.testimonial-carousel-indicators .active {
    background-color: var(--cyan) !important;
    width: 20px !important;
    border-radius: 4px !important;
}

/* Responsive adjustment for Testimonials */
@media (max-width: 768px) {
    .testimonial-slider-container {
        padding: 2rem 1.5rem 4rem 1.5rem;
    }
    
    .testimonial-slide-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .testimonial-profile {
        flex: 1 1 auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 1.25rem;
        width: 100%;
    }
    
    .testimonial-quote-col {
        padding-left: 0;
    }
    
    .testimonial-quote-icon {
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-carousel-control {
        top: auto !important;
        bottom: -45px !important;
        transform: none !important;
    }
    .testimonial-carousel-control-prev {
        left: 30% !important;
    }
    .testimonial-carousel-control-next {
        right: 30% !important;
    }
}

/* Bright Theme overrides */
body {
    background-color: #ffffff;
    color: #0f172a;
}

.bg-glow-top {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, rgba(255, 255, 255, 0) 70%) !important;
}

.bg-glow-bottom {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.10) 0%, rgba(255, 255, 255, 0) 70%) !important;
}

.bg-grid-mesh {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px) !important;
}

.main-navbar {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.logo-text {
    color: #0f172a !important;
}

.navbar-nav .nav-link {
    color: #334155 !important;
}

.navbar-nav .nav-link:hover {
    color: #16a34a !important;
}

.btn-search-trigger {
    background-color: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.btn-search-trigger:hover {
    background-color: #e2e8f0 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.btn-search-trigger kbd {
    background-color: #cbd5e1 !important;
    color: #334155 !important;
}

.btn-login {
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #334155 !important;
}

.btn-login:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.btn-signup {
    background: #16a34a !important;
    color: #ffffff !important;
}

.btn-signup:hover {
    background: #15803d !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3) !important;
}

.hero-subtitle-badge {
    background-color: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
    color: #15803d !important;
}

.pulse-dot {
    background-color: #16a34a !important;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7) !important;
}

.gradient-h1 {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: #16a34a !important;
}

.card-custom, .preview-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.card-custom:hover, .preview-card:hover {
    border-color: rgba(22, 163, 74, 0.25) !important;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.08) !important;
}

.text-cyan {
    color: #15803d !important;
}

/* Modals & Popups */
.modal-content {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
}

.modal-header h3 {
    color: #0f172a !important;
}

.btn-close-white {
    filter: invert(1) !important;
}

.form-control-custom {
    background-color: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}

.form-control-custom:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1) !important;
}

.form-label-custom {
    color: #334155 !important;
}

.btn-cyan-gradient {
    background: #16a34a !important;
    color: #ffffff !important;
    font-weight: 600;
    border: none !important;
}

.btn-cyan-gradient:hover {
    background: #15803d !important;
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.3) !important;
}

.btn-primary-gradient {
    background: #eab308 !important;
    color: #0f172a !important;
    font-weight: 600;
    border: none !important;
}

.btn-primary-gradient:hover {
    background: #ca8a04 !important;
    color: #0f172a !important;
    box-shadow: 0 5px 20px rgba(234, 179, 8, 0.3) !important;
}

.btn-outline-cyan {
    border-color: #16a34a !important;
    color: #16a34a !important;
}

.btn-outline-cyan:hover {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

.main-footer {
    background-color: #f1f5f9 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.footer-socials a {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    color: #475569 !important;
}

.footer-socials a:hover {
    color: #16a34a !important;
    border-color: #16a34a !important;
}

.footer-title {
    color: #0f172a !important;
}

.footer-links a {
    color: #475569 !important;
}

.footer-links a:hover {
    color: #16a34a !important;
}

.copyright {
    color: #64748b !important;
}

.footer-legal a {
    color: #64748b !important;
}

.footer-legal a:hover {
    color: #16a34a !important;
}

/* Search Overlay */
.search-overlay {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
}

.search-modal-container {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.search-modal-header input {
    color: #0f172a !important;
}

.search-modal-header input::placeholder {
    color: #94a3b8 !important;
}

.search-result-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.search-result-item:hover {
    background-color: #f8fafc !important;
}

.search-result-title {
    color: #0f172a !important;
}

.search-result-snippet {
    color: #475569 !important;
}

/* Other eBook Showcase items */
.card-body h3 {
    color: #0f172a !important;
}

/* Auth Cards bright theme overrides */
.auth-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
}

.auth-card h1.text-white {
    color: #0f172a !important;
}

.auth-card .logo-icon i {
    color: #16a34a !important;
}

.auth-card .text-secondary {
    color: #475569 !important;
}

/* ==========================================
   Admin Dashboard Light Mode Overrides
   ========================================== */
.col-lg-9 h1.text-white,
.col-lg-9 h2.text-white,
.col-lg-9 h3.text-white,
.col-lg-9 h4.text-white,
.col-lg-9 h5.text-white,
.col-lg-9 h6.text-white,
.col-lg-9 .text-white:not(.badge):not(.btn),
.col-lg-9 strong.text-white,
.col-lg-9 td.text-white,
.col-lg-9 .accordion-button {
    color: var(--text-primary) !important;
}

.col-lg-9 .text-white-50 {
    color: var(--text-secondary) !important;
}

.col-lg-9 .bg-dark,
.col-lg-9 .bg-black {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.col-lg-9 .card.bg-dark.bg-opacity-30 {
    background-color: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.col-lg-9 .input-group-text.bg-black {
    background-color: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-secondary) !important;
}

.col-lg-9 input.bg-black,
.col-lg-9 textarea.bg-black,
.col-lg-9 select.bg-dark {
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.col-lg-9 input.bg-black::placeholder,
.col-lg-9 textarea.bg-black::placeholder {
    color: var(--text-muted) !important;
}

/* Accordion body light container */
.col-lg-9 .accordion-body.bg-dark {
    background-color: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.col-lg-9 .accordion-body .rounded-circle.bg-dark {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.col-lg-9 .accordion-body .bg-black {
    background-color: #f1f5f9 !important;
    color: var(--text-secondary) !important;
}

.col-lg-9 .accordion-item.border-bottom.border-dark {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* Tables style mapping */
.col-lg-9 .table-dark {
    --bs-table-bg: #ffffff !important;
    --bs-table-color: var(--text-primary) !important;
    --bs-table-border-color: rgba(0, 0, 0, 0.06) !important;
    --bs-table-hover-bg: #f8fafc !important;
    --bs-table-hover-color: var(--text-primary) !important;
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}
.col-lg-9 .table-dark th {
    background-color: #f1f5f9 !important;
    color: var(--text-secondary) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08) !important;
}
.col-lg-9 .table-dark td {
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Pagination styles */
.col-lg-9 .pagination .page-link {
    background-color: #ffffff !important;
    color: var(--text-secondary) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.col-lg-9 .pagination .page-item.active .page-link {
    background-color: var(--cyan) !important;
    color: #ffffff !important;
    border-color: var(--cyan) !important;
}

.col-lg-9 .pagination .page-item.disabled .page-link {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

/* Badges overrides */
.col-lg-9 .badge.bg-dark {
    background-color: #f1f5f9 !important;
    color: var(--text-secondary) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.col-lg-9 .badge.bg-dark.text-success {
    background-color: rgba(22, 163, 74, 0.08) !important;
    color: #16a34a !important;
    border-color: rgba(22, 163, 74, 0.25) !important;
}

.col-lg-9 .badge.bg-dark.text-secondary {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: var(--text-secondary) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.col-lg-9 .badge.bg-dark.text-info {
    background-color: rgba(22, 163, 74, 0.08) !important;
    color: #16a34a !important;
    border-color: rgba(22, 163, 74, 0.25) !important;
}

.col-lg-9 .badge.bg-dark.text-cyan {
    background-color: rgba(22, 163, 74, 0.08) !important;
    color: #16a34a !important;
    border-color: rgba(22, 163, 74, 0.25) !important;
}

/* Progress track */
.col-lg-9 .progress.bg-dark {
    background-color: #e2e8f0 !important;
}

/* Modal light-mode overrides */
.modal-content h1.text-white,
.modal-content h2.text-white,
.modal-content h3.text-white,
.modal-content h4.text-white,
.modal-content h5.text-white,
.modal-content h6.text-white,
.modal-content .text-white:not(.badge):not(.btn),
.modal-content strong.text-white,
.modal-content td.text-white,
.modal-content .list-group-item.text-white {
    color: var(--text-primary) !important;
}

.modal-content .bg-dark,
.modal-content .bg-black,
.modal-content .list-group-item.bg-dark {
    background-color: #f8fafc !important;
    color: var(--text-primary) !important;
}

.modal-content .border-secondary {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* User & Currency Dropdowns light theme overrides */
.user-dropdown-menu,
.currency-dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.user-dropdown-menu .dropdown-item,
.currency-dropdown-menu .dropdown-item {
    color: var(--text-secondary) !important;
}

.user-dropdown-menu .dropdown-item:hover,
.currency-dropdown-menu .dropdown-item:hover {
    background-color: #f8fafc !important;
    color: #16a34a !important; /* solid green hover state */
}

.user-dropdown-menu .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.btn-user-dropdown {
    background-color: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-secondary) !important;
}

.btn-user-dropdown:hover {
    background-color: #e2e8f0 !important;
    color: var(--text-primary) !important;
}




