/* ================================================================
   Universal Converter Pro - Main Stylesheet
   Version 1.0.2 - Fixed Visibility & Contrast Issues
   ================================================================ */

/* ================================================================
   CSS Variables
   ================================================================ */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #212529;
    --light: #f8f9fa;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.2s ease;
}

/* ================================================================
   Base / Reset
   ================================================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ================================================================
   Utility Classes
   ================================================================ */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg) !important;
}

.section-header {
    max-width: 600px;
    margin: 0 auto;
}

/* Subtle Background Colors */
.bg-primary-subtle { background-color: rgba(59, 130, 246, 0.1) !important; }
.bg-success-subtle { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-warning-subtle { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-danger-subtle  { background-color: rgba(239, 68, 68, 0.1) !important; }
.bg-info-subtle    { background-color: rgba(6, 182, 212, 0.1) !important; }

.text-primary-subtle { color: rgba(59, 130, 246, 0.7) !important; }
.text-warning-subtle { color: rgba(245, 158, 11, 0.7) !important; }

/* ================================================================
   Navbar — FIXED: Pure White Crisp Typography
   ================================================================ */
.navbar {
    padding: 12px 0;
}

.navbar-brand {
    font-size: 1.2rem;
    color: #ffffff !important;
}

.navbar-brand:hover {
    color: #ffffff !important;
}

/* FIX: Crisp white nav menu links */
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    opacity: 1 !important;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-weight: 600;
}

.navbar .dropdown-toggle::after {
    color: #ffffff !important;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 220px;
}

.dropdown-menu-lg {
    min-width: 280px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    color: #333 !important;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary) !important;
}

.dropdown-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
}

.avatar-circle {
    text-transform: uppercase;
}

/* ================================================================
   Hero Section
   ================================================================ */
.hero-section {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #2563EB 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-section p.lead {
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
    color: #ffffff !important;
}

.hero-search .form-control {
    height: 56px;
    font-size: 16px;
    padding: 14px 16px;
}

.hero-search .form-control:focus {
    box-shadow: none;
}

.hero-search .input-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search .input-group-text {
    height: 56px;
    padding-left: 1.25rem;
    background: white;
}

/* FIX: Brighter quick action chips */
.hero-quick-actions .btn {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    transition: var(--transition);
    font-weight: 500;
}

.hero-quick-actions .btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #ffffff !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.hero-quick-actions .btn i {
    color: #ffffff !important;
}

/* Hero Stat Cards */
.hero-stat-card,
.stat-card {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
}

.hero-stat-card:hover,
.stat-card:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-3px);
}

.hero-stat-card h2 {
    font-size: 2rem;
    line-height: 1;
    color: #ffffff !important;
}

.hero-stat-card p {
    color: #ffffff !important;
}

/* ================================================================
   Category Cards
   ================================================================ */
.category-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(59, 130, 246, 0.3);
}

.category-card h6 {
    font-size: 0.85rem;
    color: #1F2937;
    transition: color 0.2s ease;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.category-card:hover h6 {
    color: var(--primary);
}

.category-card .category-icon {
    transition: transform 0.25s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15);
}

/* ================================================================
   Tool Cards
   ================================================================ */
.tool-card {
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--radius-md) !important;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary) !important;
}

.tool-card h6 {
    color: #1F2937;
    transition: color 0.2s ease;
}

.tool-card:hover h6 {
    color: var(--primary);
}

.tool-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ================================================================
   Feature Cards (Why Choose Us)
   ================================================================ */
.feature-card {
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    transition: transform 0.3s ease;
}

.feature-icon-wrap:hover {
    transform: scale(1.05);
}

/* ================================================================
   CTA Section — FIX: Rendered onto its own darker layout space
   ================================================================ */
.cta-section {
    background: linear-gradient(135deg, #1E40AF 0%, #111827 100%) !important;
    color: #ffffff !important;
    padding: 4.5rem 0;
}

.cta-section h2,
.cta-section p,
.cta-section .lead {
    color: #ffffff !important;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.cta-section .btn-outline-light {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background: transparent;
}

.cta-section .btn-outline-light:hover {
    background: #ffffff !important;
    color: var(--primary) !important;
}

/* FIX: Secondary / Outlined lighter button text color inside CTA layers */
.cta-section .btn-outline-secondary,
.btn-outline-light.view-pricing-fix {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.cta-section .btn-outline-secondary:hover,
.btn-outline-light.view-pricing-fix:hover {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #ffffff !important;
}

/* ================================================================
   Converter / Calculator Pages (Step 6)
   ================================================================ */
.converter-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #e0e0e0;
}

.converter-result {
    background: #F0F7FF;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.swap-button:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

/* Tool Page Cards (Step 6) */
.card {
    border-radius: var(--radius-md);
}

.card.shadow-sm:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

/* Form Controls in Tool Pages */
.form-control-lg,
.form-select-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.form-control-lg:focus,
.form-select-lg:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Result Box Animation */
#resultBox,
#resultContainer {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Big Result Number */
#resultValue {
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1;
}

/* Conversion Table */
#conversionTable tbody tr {
    transition: background-color 0.15s ease;
}

#conversionTable tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

/* Swap Units Button (Tool Pages) */
#swapUnits {
    transition: transform 0.3s ease;
}

#swapUnits:hover {
    transform: rotate(180deg);
}

/* Breadcrumb Polish */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Favorite Button States */
.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: #000;
}

/* Code/Formula Display */
.bg-light code {
    color: #1F2937;
    font-family: 'Courier New', Consolas, monospace;
    background: transparent;
}

/* ================================================================
   Auth Pages
   ================================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 100%);
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #adb5bd;
    font-size: 13px;
}

.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* ================================================================
   Dashboard
   ================================================================ */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    width: 260px;
    background: var(--dark);
    padding: 1.5rem 1rem;
    flex-shrink: 0;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    background: #F8F8FA;
    overflow-x: hidden;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: var(--transition);
    font-size: 14px;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav .nav-link i {
    width: 20px;
}

.stat-widget {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.stat-widget:hover {
    box-shadow: var(--shadow-md);
}

.stat-widget .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* ================================================================
   Admin Panel
   ================================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #1e293b;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-topbar {
    background: white;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}

.admin-page {
    padding: 1.5rem;
}

.admin-sidebar .sidebar-logo {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar .nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    padding: 1rem 1rem 0.5rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.65);
    padding: 9px 1rem;
    border-radius: var(--radius-sm);
    margin: 0px 1rem;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.admin-sidebar .nav-link.active {
    background: var(--primary);
    color: white;
}

.admin-sidebar .nav-link i {
    width: 18px;
    font-size: 15px;
}

.data-table {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table table th {
    background: #F8F0FA;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border: none;
    padding: 12px 16px;
}

.data-table table tbody td {
    padding: 14px 16px;
    border-color: #f5f5f5;
    font-size: 14px;
    vertical-align: middle;
}

.data-table table tbody tr:hover {
    background: #F8F0FA;
}

/* ================================================================
   Footer — FIXED: Bright High-Contrast Visibility
   ================================================================ */
.footer {
    background: #111827 !important; /* Slightly darker for better layout division */
    color: #ffffff !important;
}

/* FIX: Low opacity contrast issue across nested paragraphs */
.footer p,
.footer .text-muted,
.footer small {
    color: #e5e7eb !important;
    opacity: 1 !important;
}

.footer h5,
.footer h6 {
    color: #ffffff !important;
}

.footer .text-warning {
    color: var(--warning) !important;
}

/* Footer Links - Crisp White */
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #f3f4f6 !important;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--warning) !important;
    padding-left: 4px;
}

.footer-brand h5 {
    color: #ffffff !important;
}

/* Social Links - Fixed Visibility */
.social-links .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: transparent;
}

.social-links .btn:hover {
    background-color: var(--warning) !important;
    border-color: var(--warning) !important;
    color: #000 !important;
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter h6 {
    color: #ffffff !important;
}

.newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.newsletter .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--warning) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.15);
}

/* Trust Badges */
.trust-badges .badge {
    font-weight: 500;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 11px;
}

/* Footer Bottom — FIX: Made with Heart Visibility */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 1.5rem 0;
}

.footer-bottom small,
.footer-bottom .text-muted,
.footer-bottom p {
    color: #ffffff !important;
}

.footer-bottom a {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--warning) !important;
}

.ad-footer {
    border-top: 1px solid #e5e7eb;
}

/* ================================================================
   Cookie Consent
   ================================================================ */
.cookie-consent {
    border-top: 3px solid var(--warning);
    animation: slideup 0.3s ease;
}

@keyframes slideup {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ================================================================
   Forms
   ================================================================ */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #dee2e6;
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Outline light button */
.btn-outline-light {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-outline-light:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--primary) !important;
}

/* ================================================================
   Badges
   ================================================================ */
.badge {
    font-weight: 500;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* ================================================================
   Ads Placeholder
   ================================================================ */
.ad-placeholder {
    border: 2px dashed #dee2e6;
    border-radius: var(--radius-sm);
}

/* ================================================================
   Print Styles
   ================================================================ */
@media print {
    .navbar, footer, .breadcrumb, 
    button, .btn, .col-lg-4,
    nav, .alert, .ad-slot {
        display: none !important;
    }
    .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 991px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        padding: 1rem;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-content {
        margin-left: 0;
    }

    .hero-section {
        padding: 3rem 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
        text-align: center;
    }

    .hero-quick-actions {
        justify-content: center;
    }

    .hero-search {
        max-width: 100%;
    }

    .category-card {
        min-height: 110px;
        padding: 1rem !important;
    }

    .category-card .category-icon i {
        font-size: 2rem !important;
    }

    .category-card h6 {
        font-size: 0.75rem;
    }

    .footer-top {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .footer-brand {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    h1 {
        font-size: 1.8rem;
    }

    .form-control-lg,
    .form-select-lg {
        font-size: 1rem;
        padding: 0.6rem 0.85rem;
    }

    #resultValue {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
    }

    .converter-box {
        padding: 1.25rem;
    }

    .dashboard-main {
        padding: 1rem;
    }

    .hero-stat-card {
        padding: 1rem !important;
    }
    
    .hero-stat-card h2 {
        font-size: 1.5rem;
    }
    
    .hero-stat-card p {
        font-size: 0.7rem !important;
    }
}
/* ============================================================
   CTA Section (homepage banner before footer)
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
}

.cta-section h2,
.cta-section .lead {
    color: #fff;
}

/* ============================================================
   Hero Section (homepage top banner)
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   Tool cards on homepage
   ============================================================ */
.tool-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.tool-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

/* ============================================================
   Category cards on homepage
   ============================================================ */
.category-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.category-icon i {
    transition: transform 0.2s ease;
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
}

/* ============================================================
   "View Pricing" outline button on dark/blue CTA bg
   ============================================================ */
.cta-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cta-section .btn-outline-light:hover {
    background: #fff;
    color: #0d6efd;
}
/* ============================================================
   ============================================================
   STEP 12.5 - Homepage + Navbar + Footer Updates
   Added: Dec 2026
   ============================================================
   ============================================================ */

/* ============================================================
   HERO SECTION (homepage top banner)
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Hero stat cards (right side: 35+ Tools, 15 Categories, etc.) */
.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.hero-stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

/* Hero search bar styling */
.hero-search .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.hero-search .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Hero quick action chips */
.hero-quick-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero-quick-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}


/* ============================================================
   CATEGORY CARDS (homepage: Browse by Category section)
   ============================================================ */
.category-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: #e7f1ff;
}

.category-icon {
    transition: transform 0.2s ease;
}

.category-card:hover .category-icon i {
    transform: scale(1.15);
}


/* ============================================================
   POPULAR TOOLS / SEARCH RESULTS - Tool Cards
   ============================================================ */
.tool-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid transparent;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: #e7f1ff;
}

.tool-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}


/* ============================================================
   FEATURE ICONS (Why Choose Us section)
   ============================================================ */
.feature-icon-wrap {
    transition: transform 0.2s ease;
}

.feature-icon-wrap:hover {
    transform: scale(1.1);
}


/* ============================================================
   CTA SECTION (Save Your Conversions banner)
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
}

.cta-section h2,
.cta-section .lead,
.cta-section p {
    color: #fff;
}

.cta-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-weight: 600;
}

.cta-section .btn-outline-light:hover {
    background: #fff;
    color: #0d6efd;
    border-color: #fff;
}


/* ============================================================
   NAVBAR DROPDOWN - Large dropdown for categories
   ============================================================ */
.navbar .dropdown-menu-lg {
    min-width: 280px;
    max-height: 75vh;
    overflow-y: auto;
}

.navbar .dropdown-menu {
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 4px;
}

.navbar .dropdown-header {
    color: #495057;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 8px 16px 4px;
    margin: 0;
}

.navbar .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    transition: background 0.1s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f0f7ff;
    color: #0d6efd;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background-color: #0d6efd;
    color: #fff;
}

.navbar .dropdown-divider {
    margin: 6px 0;
    border-top-color: #e9ecef;
}

/* Mobile: shorter dropdowns so they scroll within view */
@media (max-width: 991px) {
    .navbar .dropdown-menu-lg {
        max-height: 50vh;
    }

    .navbar .dropdown-menu {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}


/* ============================================================
   FOOTER (updated for Step 12.5)
   ============================================================ */
.footer {
    background: #1a1d21;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    font-size: 14px;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-links a:hover {
    color: #ffc107;
    padding-left: 4px;
}

.footer .social-links .btn {
    color: #adb5bd;
    border-color: #495057;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer .social-links .btn:hover {
    color: #ffc107;
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.footer .newsletter input.form-control {
    background: #2a2e33 !important;
    border-color: #495057 !important;
    color: #fff !important;
    font-size: 13px;
}

.footer .newsletter input.form-control::placeholder {
    color: #6c757d;
}

.footer .newsletter input.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.15);
    border-color: #ffc107 !important;
}

.footer .trust-badges .badge {
    font-weight: 500;
    padding: 6px 10px;
}

.footer-bottom {
    background: #15181b;
}

.footer-bottom a {
    color: #adb5bd;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffc107;
}


/* ============================================================
   SEARCH RESULTS PAGE (when ?q=... is present)
   ============================================================ */
.search-result-card {
    transition: transform 0.15s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
}


/* ============================================================
   QUALITY OPTION CARDS (document tools)
   ============================================================ */
.quality-option {
    cursor: pointer;
    transition: all 0.15s ease;
}

.quality-option:hover {
    border-color: #0d6efd !important;
    transform: translateY(-2px);
}

.quality-option.selected {
    border-color: #0d6efd !important;
    background: #e7f1ff;
}


/* ============================================================
   UPLOAD DROPZONE (document tools)
   ============================================================ */
.upload-dropzone {
    transition: all 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    background: #e7f1ff !important;
    border-color: #0d6efd !important;
}


/* ============================================================
   GENERAL UTILITY CLASSES
   ============================================================ */
.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

/* Bootstrap 5.3 subtle background fallbacks (in case older Bootstrap) */
.bg-primary-subtle  { background-color: #cfe2ff; }
.bg-success-subtle  { background-color: #d1e7dd; }
.bg-info-subtle     { background-color: #cff4fc; }
.bg-warning-subtle  { background-color: #fff3cd; }
.bg-danger-subtle   { background-color: #f8d7da; }
.bg-secondary-subtle{ background-color: #e2e3e5; }

.text-primary  { color: #0d6efd !important; }
.text-success  { color: #198754 !important; }
.text-info     { color: #0dcaf0 !important; }
.text-warning  { color: #ffc107 !important; }
.text-danger   { color: #dc3545 !important; }


/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-stat-card {
        padding: 1rem !important;
    }

    .hero-stat-card h2 {
        font-size: 1.5rem;
    }
}

/* ============================================================
   END Step 12.5 styles
   ============================================================ */
   
   
/* ============================================================
   ============================================================
   STEP 20 - AD SLOTS
   Added: Dec 2026
   ============================================================
   ============================================================ */

.ad-slot {
    margin: 1.5rem auto;
    max-width: 100%;
    overflow: hidden;
}

.ad-slot small {
    color: #adb5bd !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.ad-slot .ad-content {
    display: inline-block;
    max-width: 100%;
}

.ad-slot img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

/* Header ad */
.ad-header {
    background: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
}

/* Footer ad */
.ad-footer {
    background: #f8f9fa;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

/* Sidebar ad */
.ad-sidebar {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

/* In-article ad */
.ad-in_article,
.ad-between_content {
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

/* Floating ad */
.ad-floating {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1030;
    max-width: 320px;
}

/* Placeholder (dev mode only) */
.ad-placeholder {
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

/* AdSense responsive units */
.adsbygoogle {
    max-width: 100%;
}

/* Hide ads when printing */
@media print {
    .ad-slot,
    .ad-placeholder,
    .adsbygoogle {
        display: none !important;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ad-slot {
        margin: 1rem auto;
    }

    .ad-header,
    .ad-footer {
        padding: 6px 0;
    }

    .ad-floating {
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Ad-blocker friendly message (optional) */
.ad-blocker-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    margin: 1rem 0;
}

/* ============================================================
   END Step 20 styles
   ============================================================ */