/* ============================================
   INPOINT CAR DEALER PLATFORM - CUSTOM STYLES
   ============================================ */

/* ============================================
   1. BRAND COLORS & CSS VARIABLES
   ============================================ */
:root {
    /* Primary Brand Color - Use dynamic color from settings */
    --primary-color: var(--fo-primary-color, #0d6efd);
    --primary-dark: color-mix(in srgb, var(--fo-primary-color, #0d6efd) 85%, black);
    --primary-light: color-mix(in srgb, var(--fo-primary-color, #0d6efd) 150%, white);
    --primary-rgb: 13, 110, 253;
    
    /* Secondary Brand Color - Green (WCAG AA compliant) */
    --secondary-color: #198754;
    --secondary-dark: #146c43;
    --secondary-light: #75b798;
    --secondary-rgb: 25, 135, 84;
    
    /* Neutral Colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-normal);
}

h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-normal);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   3. BRAND COLOR OVERRIDES
   ============================================ */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

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

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

/* Price Color Overrides */
.car-price,
.price-section h4,
h3.text-primary {
    color: var(--fo-primary-color) !important;
}

.car-financing,
.financing-info,
.text-success {
    color: var(--fo-secondary-color) !important;
}

/* ============================================
   4. BUTTON STYLES
   ============================================ */
.btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn:hover,
.btn:focus {
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--fo-primary-button-color);
    border-color: var(--fo-primary-button-color);
    color: var(--bg-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: color-mix(in srgb, var(--fo-primary-button-color) 85%, black);
    border-color: color-mix(in srgb, var(--fo-primary-button-color) 85%, black);
    color: var(--bg-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--bg-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--fo-primary-button-color);
    border-color: var(--fo-primary-button-color);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--fo-primary-button-color);
    border-color: var(--fo-primary-button-color);
    color: var(--bg-white);
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
}

.btn-outline-primary-custom {
    color: var(--fo-primary-color);
    border-color: var(--fo-primary-color);
    background-color: transparent;
}

.btn-outline-primary-custom:hover,
.btn-outline-primary-custom:focus {
    background-color: var(--fo-primary-color);
    border-color: var(--fo-primary-color);
    color: var(--bg-white);
}

.btn-outline-secondary-custom {
    color: var(--fo-secondary-color);
    border-color: var(--fo-secondary-color);
    background-color: transparent;
}

.btn-outline-secondary-custom:hover,
.btn-outline-secondary-custom:focus {
    background-color: var(--fo-secondary-color);
    border-color: var(--fo-secondary-color);
    color: var(--bg-white);
}

.btn-lg {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.25rem var(--spacing-sm);
    font-size: 0.875rem;
}

/* ============================================
   5. FORM INPUT STYLES
   ============================================ */
.form-label {
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-control,
.form-select {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: var(--bg-white);
    color: var(--text-primary);
}

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

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--bg-light);
    opacity: 0.6;
    cursor: not-allowed;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* ============================================
   6. CARD STYLES
   ============================================ */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
}

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

.card-header {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: var(--font-weight-medium);
}

.card-body {
    padding: var(--spacing-md);
}

.card-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-img-top {
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

/* ============================================
   7. HEADER & NAVIGATION
   ============================================ */
header:not(.header-transparent) {
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

/* Add top padding to main content to account for fixed header */
main {
    padding-top: 100px;
}

/* Remove top padding on homepage since hero carousel is full height */
body:has(.hero-carousel) main {
    padding-top: 0;
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--bg-white) !important;
    transition: opacity var(--transition-fast);
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--bg-white) !important;
}

.navbar-nav .nav-link.active {
    color: var(--bg-white) !important;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xs) 0;
}

.dropdown-item {
    padding: var(--spacing-xs) var(--spacing-md);
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ============================================
   8. FOOTER
   ============================================ */
footer {
    margin-top: auto;
    background-color: var(--text-primary);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

footer a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

footer h5 {
    color: var(--bg-white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   9. LAYOUT & SPACING
   ============================================ */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* ============================================
   10. IMAGES & MEDIA
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ============================================
   11. CAROUSEL / SLIDESHOW
   ============================================ */
.carousel-item img {
    object-fit: cover;
    width: 100%;
}

/* Exclude hero carousel from default carousel styles */
.hero-carousel .carousel-item img {
    height: 100%;
    max-height: none;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* ============================================
   12. ALERTS & MESSAGES
   ============================================ */
.alert {
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* ============================================
   13. PAGINATION
   ============================================ */
.pagination {
    margin-top: var(--spacing-md);
}

.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   14. LOADING STATES
   ============================================ */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

/* ============================================
   15. ACCESSIBILITY (WCAG AA COMPLIANCE)
   ============================================ */
/* Ensure sufficient color contrast for links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: var(--spacing-sm);
}

/* ============================================
   16. UTILITY CLASSES
   ============================================ */
.text-muted {
    color: var(--text-muted) !important;
}

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

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ============================================
   17. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile devices (<768px) */
@media (max-width: 767px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    body {
        font-size: 0.9375rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9375rem;
    }
    
    .card-body {
        padding: var(--spacing-sm);
    }
    
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    /* Stack filter sidebar on mobile */
    .col-lg-3 {
        margin-bottom: var(--spacing-md);
    }
    
    /* Adjust carousel height for mobile (exclude hero carousel) */
    .carousel-item:not(.hero-carousel .carousel-item) img {
        max-height: 300px;
    }
    
    /* Full width buttons on mobile */
    .btn-mobile-full {
        width: 100%;
    }
}

/* Tablet devices (768px - 1919px) */
@media (min-width: 768px) and (max-width: 1919px) {
    .container {
        max-width: 1240px;
    }
    
    .carousel-item:not(.hero-carousel .carousel-item) img {
        max-height: 400px;
    }
}

/* Desktop devices (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .carousel-item:not(.hero-carousel .carousel-item) img {
        max-height: 600px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

/* ============================================
   18. PRINT STYLES
   ============================================ */
@media print {
    header,
    footer,
    .btn,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
}


/* ============================================
   BREADCRUMB IMPROVEMENTS - MINIMALIST
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.breadcrumb-item a {
    color: var(--fo-secondary-color, #0d6efd);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--fo-primary-color, #0b5ed7);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #212529;
    font-weight: 400;
}


/* ============================================
   REMOVE ROUNDED BORDERS - SQUARE DESIGN
   ============================================ */
.card,
.btn,
.form-control,
.form-select,
.input-group,
.alert,
.modal-content,
.dropdown-menu,
.breadcrumb,
.badge,
.pagination .page-link,
.nav-pills .nav-link,
.toast,
.popover,
.tooltip-inner,
.progress,
.list-group-item,
.img-thumbnail,
.carousel-inner,
.carousel-item img,
.icon-box-contact,
.icon-box {
    border-radius: 0 !important;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark,
.btn-link {
    border-radius: 0 !important;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
    border-radius: 0 !important;
}

/* Images */
img {
    border-radius: 0 !important;
}

/* Carousel indicators */
.carousel-indicators button {
    border-radius: 0 !important;
}


/* ============================================
   COMPREHENSIVE BORDER RADIUS REMOVAL
   ============================================ */
* {
    border-radius: 0 !important;
}

/* Specific overrides for inline styles */
.card-header,
.card-footer,
.card-body,
.modal-header,
.modal-body,
.modal-footer,
.alert-success,
.alert-danger,
.alert-warning,
.alert-info,
.btn-group > .btn,
.input-group > .form-control,
.input-group > .btn,
.nav-tabs .nav-link,
.tab-content,
.accordion-button,
.accordion-item,
.offcanvas,
.table,
.thumbnail-nav,
.carousel-control-prev,
.carousel-control-next {
    border-radius: 0 !important;
}

/* ============================================
   CAMPAIGN BADGE COMPONENT
   ============================================ */

/* Campaign badge styling */
.campaign-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--fo-secondary-color);
    color: white;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
    .campaign-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ============================================
   PRICE DISPLAY COMPONENT
   ============================================ */

/* Price display styling */
.car-price {
    margin: 15px 0;
}

.price-original {
    font-size: 16px;
    color: #999;
    margin-bottom: 5px;
}

.price-discounted {
    font-size: 28px;
    font-weight: bold;
    color: var(--fo-primary-color);
    margin-bottom: 5px;
}

.price-savings {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.price-regular {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
    .price-discounted {
        font-size: 24px;
    }
    .price-regular {
        font-size: 20px;
    }
}

/* ============================================
   COUNTDOWN TIMER COMPONENT
   ============================================ */

/* Countdown timer styling */

.countdown-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.countdown-display {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.countdown-value {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    display: block;
    line-height: 1.2;
}

.countdown-text {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .countdown-timer {
        padding: 12px;
        margin: 12px 0;
    }

    .countdown-label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .countdown-value {
        font-size: 20px;
    }
    
    .countdown-text {
        font-size: 10px;
    }
    
    .countdown-display {
        gap: 5px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .countdown-timer {
        padding: 10px;
    }

    .countdown-value {
        font-size: 18px;
    }
    
    .countdown-text {
        font-size: 9px;
    }
}

/* Ensure minimum touch target size on all devices */
@media (hover: none) and (pointer: coarse) {
    .countdown-unit {
        min-width: 44px;
        min-height: 44px;
    }
}


/* ============================================
   SERVICE FORMS - PROCESS STEPS & INFO SECTIONS
   ============================================ */

/* Process Steps Styling */
.process-steps {
    padding: 0.5rem 0;
}

.process-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--fo-primary-color) 0%, #e9ecef 100%);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fo-primary-color) 0%, color-mix(in srgb, var(--fo-primary-color) 85%, black) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--fo-primary-color) 30%, transparent);
}

.step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.375rem;
}

.step-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Info List Styling */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    font-size: 0.9375rem;
    color: #495057;
    margin-bottom: 0.875rem;
    line-height: 1.5;
}

.info-list li i {
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 1.125rem;
}

/* Card Header Styling */
.card-header h5,
.card-header h6 {
    display: flex;
    align-items: center;
}

.card-header.bg-primary h5 {
    color: #ffffff !important;
}

/* Responsive Adjustments for Service Forms */
@media (max-width: 991px) {
    .col-lg-4 {
        margin-top: 2rem;
    }
}


/* ============================================
   OPPORTUNITIES SECTION
   ============================================ */

/* Opportunities Section Styling */
.opportunities-section {    
    padding: 60px 0;
}

.opportunities-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.opportunities-section .section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--fo-secondary-color);
    margin-bottom: 10px;
}

.opportunities-section .section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 0;
}

/* Countdown Timer Overlay on Image */
.opportunities-section .countdown-timer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 5;
    padding: 12px 8px;
}

.opportunities-section .countdown-timer-overlay .countdown-timer {
    margin: 0;
}

.opportunities-section .countdown-timer-overlay .countdown-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
}

.opportunities-section .countdown-timer-overlay .countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.opportunities-section .countdown-timer-overlay .countdown-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.opportunities-section .countdown-timer-overlay .countdown-text {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Campaign Disclaimer Styling */
.opportunities-section .campaign-disclaimer {  
    margin: 0 0 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #856404;
    font-weight: 500;
}

.opportunities-section .campaign-disclaimer i {
    font-size: 1rem;
    color: #ffc107;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .opportunities-section {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .opportunities-section .section-title {
        font-size: 28px;
    }
    
    .opportunities-section .section-subtitle {
        font-size: 16px;
    }
    
    .opportunities-section .countdown-timer-overlay {
        padding: 10px 6px;
    }
    
    .opportunities-section .countdown-timer-overlay .countdown-value {
        font-size: 16px;
    }
    
    .opportunities-section .countdown-timer-overlay .countdown-text {
        font-size: 9px;
    }
    
    .opportunities-section .campaign-disclaimer {
        font-size: 0.75rem;
        padding: 8px 10px;
        margin: 0 1rem 0;
    }
    
    .opportunities-section .campaign-disclaimer i {
        font-size: 0.875rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .opportunities-section {
        padding: 50px 0;
        margin: 30px 0;
    }
    
    .opportunities-section .section-title {
        font-size: 32px;
    }
}

@media (min-width: 1921px) {
    .opportunities-section {
        padding: 80px 0;
    }
    
    .opportunities-section .section-title {
        font-size: 42px;
    }
    
    .opportunities-section .section-subtitle {
        font-size: 20px;
    }
    
    .opportunities-section .countdown-timer-overlay {
        padding: 14px 10px;
    }
    
    .opportunities-section .countdown-timer-overlay .countdown-value {
        font-size: 20px;
    }
    
    .opportunities-section .countdown-timer-overlay .countdown-text {
        font-size: 11px;
    }
}
/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #2a2a2a;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%);
}

.hero-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding-top: 0;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 1000px;
    width: 100%;
    padding: 2rem;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.1s both;
    color: var(--fo-secondary-color);
}

.hero-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
}

.btn-hero-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-hero-secondary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 80px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 0.75rem;
}

/* Carousel Indicators - Removed */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-carousel {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 1.25rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Search Section Overlay */
.search-section-overlay {
    position: relative;
    margin-top: -120px;
    z-index: 100;
    padding-bottom: 2rem;
}

/* Modern Search Form Styles */
.search-card-modern {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2.5rem 3rem;
}

.search-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.search-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: end;
}

.search-field-modern {
    display: flex;
    flex-direction: column;
}

.search-label-modern {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.search-select-modern,
.search-input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #6b7280;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.search-select-modern {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236b7280' d='M7 9L3 5h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.search-input-modern::placeholder {
    color: #9ca3af;
}

.search-select-modern:focus,
.search-input-modern:focus {
    outline: none;
    border-color: var(--fo-primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fo-primary-color) 10%, transparent);
}

.search-button-wrapper {
    display: flex;
    align-items: flex-end;
}

.search-button-modern {
    width: 100%;
    padding: 0.75rem 2rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--fo-primary-button-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
}

.search-button-modern:hover {
    background: color-mix(in srgb, var(--fo-primary-button-color) 85%, black);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--fo-primary-button-color) 35%, transparent);
}

.search-button-modern:active {
    transform: translateY(0);
}

/* Remove spinner from number inputs */
.search-input-modern::-webkit-outer-spin-button,
.search-input-modern::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.search-input-modern[type=number] {
    -moz-appearance: textfield;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .search-section-overlay {
        margin-top: -80px;
    }
    
    .search-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-button-wrapper {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .search-section-overlay {
        margin-top: -60px;
        padding-bottom: 2rem;
    }
    
    .search-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .search-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .search-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-button-modern {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Sleek Horizontal Services Bar */
.services-marketing-bar {
    padding: 3rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
}

.services-bar-wrapper {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

.services-bar-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

.service-item {
    position: relative;
    display: block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-item:hover {
    text-decoration: none;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-item-evaluation::before {
    background: linear-gradient(135deg, color-mix(in srgb, var(--fo-primary-color) 5%, transparent) 0%, color-mix(in srgb, var(--fo-primary-color) 2%, transparent) 100%);
}

.service-item-import::before {
    background: linear-gradient(135deg, color-mix(in srgb, var(--fo-secondary-color) 5%, transparent) 0%, color-mix(in srgb, var(--fo-secondary-color) 2%, transparent) 100%);
}

.service-item:hover::before {
    opacity: 1;
}

.service-item-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    position: relative;
    z-index: 1;
}

.service-icon-circle {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-icon-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item-evaluation .service-icon-circle {
    background: linear-gradient(135deg, color-mix(in srgb, var(--fo-primary-color) 15%, white) 0%, color-mix(in srgb, var(--fo-primary-color) 25%, white) 100%);
    color: var(--fo-primary-color);
}

.service-item-evaluation .service-icon-circle::before {
    background: linear-gradient(135deg, var(--fo-primary-color) 0%, color-mix(in srgb, var(--fo-primary-color) 85%, black) 100%);
}

.service-item-import .service-icon-circle {
    background: linear-gradient(135deg, color-mix(in srgb, var(--fo-secondary-color) 15%, white) 0%, color-mix(in srgb, var(--fo-secondary-color) 25%, white) 100%);
    color: var(--fo-secondary-color);
}

.service-item-import .service-icon-circle::before {
    background: linear-gradient(135deg, var(--fo-secondary-color) 0%, color-mix(in srgb, var(--fo-secondary-color) 85%, black) 100%);
}

.service-item:hover .service-icon-circle {
    transform: scale(1.1) rotate(-5deg);
}

.service-item:hover .service-icon-circle::before {
    opacity: 1;
}

.service-text {
    flex: 1;
    min-width: 0;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    transition: color 0.3s ease;
}

.service-item:hover .service-name {
    color: var(--fo-primary-color);
}

.service-item-import:hover .service-name {
    color: var(--fo-secondary-color);
}

.service-tagline {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.service-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item-evaluation .service-arrow {
    background: color-mix(in srgb, var(--fo-primary-color) 8%, transparent);
    color: var(--fo-primary-color);
}

.service-item-import .service-arrow {
    background: color-mix(in srgb, var(--fo-secondary-color) 8%, transparent);
    color: var(--fo-secondary-color);
}

.service-item:hover .service-arrow {
    transform: translateX(4px);
}

.service-item-evaluation:hover .service-arrow {
    background: var(--fo-primary-color);
    color: #ffffff;
}

.service-item-import:hover .service-arrow {
    background: var(--fo-secondary-color);
    color: #ffffff;
}

.services-divider {
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.08) 20%,
        rgba(0, 0, 0, 0.08) 80%,
        transparent 100%
    );
}

/* Responsive Design */
@media (max-width: 991px) {
    .services-bar-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .services-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.08) 20%,
            rgba(0, 0, 0, 0.08) 80%,
            transparent 100%
        );
    }
    
    .service-item-inner {
        padding: 1.75rem 2rem;
    }
}

@media (max-width: 767px) {
    .services-marketing-bar {
        padding: 2rem 0;
    }
    
    .services-bar-wrapper {
        border-radius: 16px;
    }
    
    .services-bar-content {
        border-radius: 12px;
    }
    
    .service-item-inner {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .service-icon-circle {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 14px;
    }
    
    .service-name {
        font-size: 1.125rem;
    }
    
    .service-tagline {
        font-size: 0.875rem;
    }
    
    .service-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
}

@media (max-width: 575px) {
    .service-item-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .service-arrow {
        display: none;
    }
}

/* Card Hover Effects */
.hover-shadow {
    transition: all 0.4s ease-in-out;
}

/* Featured Cars Section Header */
.featured-cars-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.featured-cars-section .section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--fo-primary-color);
    margin-bottom: 10px;
}

.featured-cars-section .section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 0;
}

/* Responsive adjustments for featured section title */
@media (max-width: 768px) {
    .featured-cars-section .section-title {
        font-size: 28px;
    }
    
    .featured-cars-section .section-subtitle {
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .featured-cars-section .section-title {
        font-size: 32px;
    }
}

@media (min-width: 1921px) {
    .featured-cars-section .section-title {
        font-size: 42px;
    }
    
    .featured-cars-section .section-subtitle {
        font-size: 20px;
    }
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-4px);
}

.car-image-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.car-image-link img {
    transition: transform 0.5s ease-in-out;
}

.car-image-link:hover img {
    transform: scale(1.05);
}

/* Featured Cars Card Styles */
.car-card-featured {
    transition: all 0.4s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.car-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.car-card-featured .card-body {
    padding: 1.25rem;
}

.car-card-featured .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.car-card-featured .card-footer {
    background: transparent;
    border-top: none;
    padding: 0 1.25rem 1.25rem;
}

/* Price Section - Featured */
.price-section-featured {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f5;
}

.car-price-large {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fo-primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.car-financing-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.car-financing-info i {
    font-size: 1rem;
    color: #28a745;
}

.financing-amount {
    font-weight: 600;
    color: #495057;
}

/* Specs Grid - Featured */
.specs-grid-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.spec-item-compact {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.spec-item-compact i {
    font-size: 1rem;
    color: var(--fo-secondary-color);
    flex-shrink: 0;
}

.spec-item-compact span {
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Features Tags - Featured */
.features-tags-featured {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #f1f3f5;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.feature-tag i {
    font-size: 0.875rem;
}

.feature-tag.tag-warranty {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feature-tag.tag-warranty:hover {
    background: linear-gradient(135deg, #c3e6cb 0%, #b1dfbb 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.15);
}

.feature-tag.tag-vat {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.feature-tag.tag-vat:hover {
    background: linear-gradient(135deg, #bee5eb 0%, #abdde5 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(12, 84, 96, 0.15);
}

/* Responsive adjustments for featured cards */
@media (max-width: 1200px) {
    .specs-grid-featured {
        gap: 0.5rem;
    }
    
    .spec-item-compact {
        font-size: 0.8125rem;
        gap: 0.3rem;
    }
    
    .spec-item-compact i {
        font-size: 0.9375rem;
    }
}

@media (max-width: 768px) {
    .specs-grid-featured {
        gap: 0.5rem;
    }
    
    .spec-item-compact {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .spec-item-compact i {
        font-size: 0.875rem;
    }
    
    .car-price-large {
        font-size: 1.5rem;
    }
}
    /* Countdown Timer Overlay on Image */
    .countdown-timer-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        z-index: 5;
        padding: 12px 8px;
    }

    .countdown-timer-overlay .countdown-timer {
        margin: 0;
    }

    .countdown-timer-overlay .countdown-display {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 8px;
    }

    .countdown-timer-overlay .countdown-unit {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .countdown-timer-overlay .countdown-value {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        line-height: 1;
    }

    .countdown-timer-overlay .countdown-text {
        font-size: 10px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Car Card Hover Effects */
    .card {
        transition: all 0.4s ease-in-out;
        border: 2px solid transparent;
    }
    
    /* Campaign Card Border */
    .card:has(.countdown-timer-overlay) {
        border-color: var(--fo-secondary-color);
        box-shadow: 0 0 0 1px var(--fo-secondary-color);
    }
    
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
    
    .card:has(.countdown-timer-overlay):hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15), 0 0 0 2px var(--fo-secondary-color) !important;
    }
    
    /* Modern Card Body */
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    /* Price Section - Modern */
    .price-section {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #f1f3f5;
    }
    
    .car-price-large {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--fo-primary-color);
        line-height: 1;
        margin-bottom: 0.5rem;
    }
    
    .car-financing-info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: #6c757d;
    }
    
    .car-financing-info i {
        font-size: 1rem;
        color: #28a745;
    }
    
    .financing-amount {
        font-weight: 600;
        color: #495057;
    }
    
    /* Campaign Disclaimer Styling */
    .campaign-disclaimer {  
        margin: 0 0 1.2em;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8125rem;
        color: #856404;
        font-weight: 500;
    }

    .campaign-disclaimer i {
        font-size: 1rem;
        color: #ffc107;
        flex-shrink: 0;
    }
    
    /* Specs Grid - Clean Minimal Layout */
    .specs-grid {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .specs-grid-featured {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .spec-item-compact {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: #495057;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    
    .spec-item-compact i {
        font-size: 1rem;
        color: var(--fo-secondary-color);
        flex-shrink: 0;
    }
    
    .spec-item-compact span {
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Features Tags - Modern Pills */
    .features-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 1rem;
        border-top: 2px solid #f1f3f5;
    }
    
    .feature-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 0.875rem;
        border-radius: 20px;
        font-size: 0.8125rem;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .feature-tag i {
        font-size: 0.875rem;
    }
    
    .feature-tag.tag-warranty {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    
    .feature-tag.tag-warranty:hover {
        background: linear-gradient(135deg, #c3e6cb 0%, #b1dfbb 100%);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(21, 87, 36, 0.15);
    }
    
    .feature-tag.tag-vat {
        background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
        color: #0c5460;
        border: 1px solid #bee5eb;
    }
    
    .feature-tag.tag-vat:hover {
        background: linear-gradient(135deg, #bee5eb 0%, #abdde5 100%);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(12, 84, 96, 0.15);
    }
    
    /* Responsive Grid Adjustments */
    @media (max-width: 1200px) {
        .specs-grid {
            gap: 0.75rem;
        }
        
        .spec-item-compact {
            font-size: 0.8125rem;
            gap: 0.3rem;
        }
        
        .spec-item-compact i {
            font-size: 0.9375rem;
        }
    }
    
    @media (max-width: 768px) {
        .specs-grid {
            gap: 0.5rem;
        }
        
        .spec-item-compact {
            font-size: 0.75rem;
            gap: 0.25rem;
        }
        
        .spec-item-compact i {
            font-size: 0.875rem;
        }
        
        .countdown-timer-overlay {
            padding: 10px 6px;
        }
        
        .countdown-timer-overlay .countdown-value {
            font-size: 16px;
        }
        
        .countdown-timer-overlay .countdown-text {
            font-size: 9px;
        }
    }
    
    /* View Toggle Buttons */
    .view-toggle-buttons {
        display: flex;
        gap: 0.5rem;
        background: #f8f9fa;
        padding: 0.25rem;
        border-radius: 8px;
        border: 1px solid #dee2e6;
    }
    
    .view-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        color: #6c757d;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 1.25rem;
    }
    
    .view-toggle-btn:hover {
        background: #e9ecef;
        color: #495057;
    }
    
    .view-toggle-btn.active {
        background: var(--fo-secondary-color);
        color: #fff;
        box-shadow: 0 2px 4px color-mix(in srgb, var(--fo-secondary-color) 30%, transparent);
    }
    
    /* List View Styles */
    #carGrid.list-view {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    #carGrid.list-view .car-item {
        max-width: 100%;
        flex: 0 0 100%;
        width: 100%;
    }
    
    #carGrid.list-view .card {
        display: flex;
        flex-direction: row;
        height: 180px;
        overflow: hidden;
    }
    
    /* Campaign cards need slightly more height */
    #carGrid.list-view .card:has(.countdown-timer-overlay) {
        height: 200px;
    }
    
    #carGrid.list-view .car-image-link {
        position: relative;
        flex: 0 0 300px;
        max-width: 300px;
        height: 100%;
        overflow: hidden;
    }
    
    #carGrid.list-view .car-image-link img,
    #carGrid.list-view .car-image-link .card-img-top {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 !important;
    }
    
    #carGrid.list-view .countdown-timer-overlay {
        border-radius: 0;
    }
    
    #carGrid.list-view .card-body {
        flex: 1;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto 1fr auto;
        padding: 1rem 1.5rem;
        gap: 0.5rem 1rem;
    }
    
    /* Title - top left */
    #carGrid.list-view .card-title {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
        align-self: start;
    }
    
    /* Price section - top right, same row as title */
    #carGrid.list-view .price-section {
        grid-column: 2;
        grid-row: 1 / 4;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 0.25rem;
        margin: 0;
        padding: 0;
        border: none;
        align-self: start;
    }
    
    #carGrid.list-view .car-price-large {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
        text-align: right;
        line-height: 1;
    }
    
    #carGrid.list-view .car-financing-info {
        font-size: 0.75rem;
        margin: 0;
        text-align: right;
        grid-column: 2;
        grid-row: 3;
        align-self: start;
    }
    
    /* Campaign disclaimer - below title */
    #carGrid.list-view .campaign-disclaimer {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        font-size: 0.6875rem;
        line-height: 1.3;
        align-self: start;
    }
    
    /* Specs - middle row, left side */
    #carGrid.list-view .specs-grid-featured {
        grid-column: 1 / -1;
        grid-row: 4;
        display: flex;
        flex-wrap: wrap;
        gap: 0.875rem;
        margin: 0;
        align-self: center;
    }
    
    #carGrid.list-view .spec-item-compact {
        font-size: 0.8125rem;
        flex: 0 0 auto;
    }
    
    #carGrid.list-view .spec-item-compact i {
        font-size: 0.9375rem;
    }
    
    /* Features tags - bottom left, horizontal */
    #carGrid.list-view .features-tags-featured {
        grid-column: 1;
        grid-row: 5;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        border-top: none;
        padding-top: 0;
        margin: 0;
        gap: 0.5rem;
        align-self: end;
    }
    
    #carGrid.list-view .feature-tag {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
        white-space: nowrap;
    }
    
    /* Button - bottom right */
    #carGrid.list-view .card-footer {
        grid-column: 2;
        grid-row: 5;
        border-top: none;
        background: transparent;
        padding: 0;
        align-self: end;
    }
    
    #carGrid.list-view .card-footer .btn {
        padding: 0.5rem 1.75rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    #carGrid.list-view .compare-checkbox-wrapper {
        top: 10px;
        left: 10px;
        right: auto;
    }
    
    @media (max-width: 991px) {
        #carGrid.list-view .card {
            flex-direction: column;
            height: auto;
        }
        
        #carGrid.list-view .card:has(.countdown-timer-overlay) {
            height: auto;
        }
        
        #carGrid.list-view .car-image-link {
            flex: 0 0 auto;
            max-width: 100%;
            height: 250px;
        }
        
        #carGrid.list-view .card-body {
            padding: 1.25rem;
            gap: 0.75rem;
        }
        
        #carGrid.list-view .card-body > :first-child {
            flex-direction: column;
            align-items: flex-start;
        }
        
        #carGrid.list-view .card-title {
            font-size: 1.25rem;
        }
        
        #carGrid.list-view .price-section {
            align-items: flex-start;
        }
        
        #carGrid.list-view .car-price-large {
            font-size: 1.75rem;
            text-align: left;
        }
        
        #carGrid.list-view .car-financing-info {
            text-align: left;
        }
        
        #carGrid.list-view .campaign-disclaimer {
            font-size: 0.8125rem;
        }
        
        #carGrid.list-view .specs-grid-featured {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }
        
        #carGrid.list-view .card-body > :last-child {
            flex-direction: column;
            align-items: stretch;
        }
        
        #carGrid.list-view .features-tags-featured {
            flex-direction: column;
        }
        
        #carGrid.list-view .card-footer .btn {
            width: 100%;
        }
    }
    
    /* Car Image Link Styles */
    .car-image-link {
        display: block;
        overflow: hidden;
        position: relative;
    }
    
    .car-image-link img {
        transition: transform 0.5s ease-in-out;
    }
    
    .car-image-link:hover img {
        transform: scale(1.05);
    }
    
    /* Modern Filter Sidebar Styles */
    .filter-sidebar {
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }
    
    .filter-header {
        background: var(--fo-secondary-color);
        color: #ffffff;
        padding: 1.25rem 1.5rem;
        font-weight: 600;
    }
    
    .filter-body {
        padding: 1.5rem;
    }
    
    .filter-group {
        margin-bottom: 1.5rem;
    }
    
    .filter-group:last-of-type {
        margin-bottom: 2rem;
    }
    
    .filter-label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: #333;
        margin-bottom: 0.5rem;
    }
    
    .filter-select,
    .filter-input {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        color: #495057;
        background-color: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        transition: all 0.2s ease;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 12px;
    }
    
    .filter-input {
        background-image: none;
    }
    
    .filter-select:focus,
    .filter-input:focus {
        outline: none;
        border-color: #0d6efd;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    }
    
    .filter-range {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .filter-input-range {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        color: #495057;
        background-color: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        transition: all 0.2s ease;
    }
    
    .filter-input-range:focus {
        outline: none;
        border-color: #0d6efd;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    }
    
    .filter-input-range::placeholder {
        color: #adb5bd;
    }
    
    .filter-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-filter-apply {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        color: #ffffff;
        background: var(--fo-primary-button-color);
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .btn-filter-apply:hover {
        background: color-mix(in srgb, var(--fo-primary-button-color) 85%, black);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px color-mix(in srgb, var(--fo-primary-button-color) 30%, transparent);
    }
    
    .btn-filter-apply:active {
        transform: translateY(0);
    }
    
    .btn-filter-clear {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: #6c757d;
        background: transparent;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
        display: block;
    }
    
    .btn-filter-clear:hover {
        color: #495057;
        background: #f8f9fa;
        border-color: #adb5bd;
    }
    
    /* Remove spinner from number inputs */
    .filter-input-range::-webkit-outer-spin-button,
    .filter-input-range::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    .filter-input-range[type=number] {
        -moz-appearance: textfield;
    }
    
    /* Order By Section Styles */
    .order-by-wrapper {
        display: flex;
        align-items: center;
    }
    
    .order-by-select {
        min-width: 220px;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
        font-size: 0.875rem;
        color: #495057;
        background-color: #ffffff;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        transition: all 0.2s ease;
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 12px;
    }
    
    .order-by-select:focus {
        outline: none;
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    }
    
    .order-by-select:hover {
        border-color: #adb5bd;
    }
    
    .results-count {
        font-size: 0.9375rem;
        font-weight: 500;
    }
    
    /* Modern Pagination Styles */
    .pagination-wrapper {
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .pagination-info {
        font-size: 0.9375rem;
        color: #6c757d;
        text-align: center;
    }
    
    .custom-pagination {
        display: flex;
        justify-content: center;
    }
    
    .pagination-list {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .page-item {
        margin: 0;
    }
    
    .page-number,
    .page-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 0.9375rem;
        font-weight: 500;
        color: #495057;
        background-color: transparent;
        border: 1px solid #dee2e6;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    
    .page-arrow {
        color: #6c757d;
    }
    
    .page-number:hover,
    .page-arrow:hover {
        color: #0d6efd;
        background-color: #f8f9fa;
        border-color: #0d6efd;
        transform: scale(1.05);
    }
    
    .page-item.active .page-number {
        color: #0d6efd;
        background-color: transparent;
        border-color: #0d6efd;
        font-weight: 600;
        cursor: default;
    }
    
    .page-item.disabled .page-arrow {
        color: #adb5bd;
        background-color: transparent;
        border-color: #dee2e6;
        cursor: not-allowed;
        opacity: 0.5;
    }
    
    .page-item.disabled .page-arrow:hover {
        transform: none;
        border-color: #dee2e6;
        background-color: transparent;
    }
    
    .page-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    /* Responsive adjustments */
    @media (max-width: 991px) {
        .filter-sidebar {
            margin-bottom: 2rem;
        }
    }
    
    @media (max-width: 576px) {
        .order-by-wrapper {
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
        }
        
        .order-by-wrapper form {
            width: 100%;
        }
        
        .order-by-select {
            width: 100%;
            min-width: auto;
        }
        
        .d-flex.justify-content-between.align-items-center.mb-4 {
            flex-direction: column;
            align-items: flex-start !important;
            gap: 1rem;
        }
        
        .results-count {
            width: 100%;
        }
        
        .pagination-list {
            gap: 0.375rem;
        }
        
        .page-number,
        .page-arrow {
            min-width: 36px;
            height: 36px;
            font-size: 0.875rem;
        }
        
        .page-arrow svg {
            width: 18px;
            height: 18px;
        }
        
        .pagination-info {
            font-size: 0.875rem;
        }
    }
    
    /* Car Comparison Styles */
    .car-card {
        position: relative;
    }
    
    .compare-checkbox-wrapper {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 10;
    }
    
    .compare-checkbox {
        display: none;
    }
    
    .compare-label {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: rgba(60, 60, 67, 0.85);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        user-select: none;
        
        /* iOS Glassmorphism Effect */
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border: 0.5px solid rgba(255, 255, 255, 0.18);
        border-radius: 14px;
        box-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 4px 12px rgba(0, 0, 0, 0.08),
            inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
    }
    
    .compare-label:hover {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: saturate(180%) blur(25px);
        -webkit-backdrop-filter: saturate(180%) blur(25px);
        transform: scale(1.05);
        box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.06),
            0 8px 16px rgba(0, 0, 0, 0.12),
            inset 0 0 0 0.5px rgba(255, 255, 255, 0.6);
    }
    
    .compare-label i {
        font-size: 0.875rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .compare-checkbox:checked + .compare-label {
        background: color-mix(in srgb, var(--fo-primary-color) 88%, transparent);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        color: #fff;
        border: 0.5px solid rgba(255, 255, 255, 0.25);
        box-shadow: 
            0 2px 8px color-mix(in srgb, var(--fo-primary-color) 30%, transparent),
            0 8px 20px color-mix(in srgb, var(--fo-primary-color) 20%, transparent),
            inset 0 0 0 0.5px rgba(255, 255, 255, 0.3);
    }
    
    .compare-checkbox:checked + .compare-label:hover {
        background: color-mix(in srgb, var(--fo-primary-color) 95%, transparent);
        box-shadow: 
            0 4px 12px color-mix(in srgb, var(--fo-primary-color) 40%, transparent),
            0 12px 24px color-mix(in srgb, var(--fo-primary-color) 25%, transparent),
            inset 0 0 0 0.5px rgba(255, 255, 255, 0.4);
    }
    
    .compare-checkbox:checked + .compare-label i {
        transform: rotate(45deg);
    }
    
    .comparison-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        color: #fff;
        padding: 1rem 0;
        z-index: 1000;
        animation: slideUp 0.3s ease;
        
        /* iOS Glassmorphism Effect with Secondary Color */
        background: color-mix(in srgb, var(--fo-secondary-color) 60%, transparent);
        backdrop-filter: saturate(180%) blur(30px);
        -webkit-backdrop-filter: saturate(180%) blur(30px);
        border-top: 0.5px solid rgba(255, 255, 255, 0.18);
        box-shadow: 
            0 -4px 20px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 0.5px rgba(255, 255, 255, 0.2);
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .comparison-bar-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .comparison-info {
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .comparison-info i {
        font-size: 1.5rem;
    }
    
    #comparisonCount {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0.25rem;
    }
    
    .comparison-actions {
        display: flex;
        align-items: center;
    }
    
    .comparison-actions .btn {
        font-weight: 600;
        padding: 0.5rem 1.25rem;
        border-radius: 20px;
    }
    
    .comparison-actions .btn-outline-light {
        border-width: 2px;
    }
    
    .comparison-actions .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: #fff;
    }
    
    .comparison-actions .btn-light {
        background: #fff;
        color: #667eea;
        border: none;
    }
    
    .comparison-actions .btn-light:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    @media (max-width: 576px) {
        .compare-label span {
            display: none;
        }
        
        .compare-label {
            padding: 0.375rem;
            border-radius: 12px;
            width: 32px;
            height: 32px;
            justify-content: center;
        }
        
        .compare-label i {
            font-size: 0.875rem;
        }
        
        .comparison-bar-content {
            flex-direction: column;
            gap: 1rem;
        }
        
        .comparison-info {
            font-size: 1rem;
        }
        
        #comparisonCount {
            font-size: 1.25rem;
        }
        
        .comparison-actions {
            width: 100%;
            justify-content: center;
        }
    }
    
    /* Empty State Styles */
    .empty-state-container {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 500px;
        padding: 3rem 1.5rem;
    }
    
    .empty-state-content {
        text-align: center;
        max-width: 600px;
        width: 100%;
    }
    
    .empty-state-icon {
        width: 120px;
        height: 120px;
        margin: 0 auto 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 50%;
        border: 3px solid #dee2e6;
    }
    
    .empty-state-icon i {
        font-size: 3.5rem;
        color: #6c757d;
    }
    
    .empty-state-title {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1rem;
    }
    
    .empty-state-description {
        font-size: 1.125rem;
        color: #6c757d;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .empty-state-suggestions {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        text-align: left;
    }
    
    .suggestions-title {
        font-size: 1rem;
        font-weight: 600;
        color: #495057;
        margin-bottom: 1rem;
    }
    
    .suggestions-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .suggestions-list li {
        padding: 0.5rem 0;
        padding-left: 1.75rem;
        position: relative;
        color: #6c757d;
        font-size: 0.9375rem;
    }
    
    .suggestions-list li:before {
        content: "•";
        position: absolute;
        left: 0.5rem;
        color: var(--fo-primary-color);
        font-weight: bold;
        font-size: 1.25rem;
    }
    
    .empty-state-actions {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .empty-state-actions .btn {
        padding: 0.75rem 2rem;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .empty-state-actions .btn-primary {
        background: var(--fo-primary-color);
        border-color: var(--fo-primary-color);
    }
    
    .empty-state-actions .btn-primary:hover {
        background: color-mix(in srgb, var(--fo-primary-color) 85%, black);
        border-color: color-mix(in srgb, var(--fo-primary-color) 85%, black);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px color-mix(in srgb, var(--fo-primary-color) 30%, transparent);
    }
    
    .empty-state-actions .btn-outline-secondary {
        border: 2px solid #dee2e6;
        color: #495057;
    }
    
    .empty-state-actions .btn-outline-secondary:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
        color: #212529;
        transform: translateY(-2px);
    }
    
    @media (max-width: 768px) {
        .empty-state-container {
            min-height: 400px;
            padding: 2rem 1rem;
        }
        
        .empty-state-icon {
            width: 100px;
            height: 100px;
            margin-bottom: 1.5rem;
        }
        
        .empty-state-icon i {
            font-size: 3rem;
        }
        
        .empty-state-title {
            font-size: 1.5rem;
        }
        
        .empty-state-description {
            font-size: 1rem;
        }
        
        .empty-state-actions {
            flex-direction: column;
        }
        
        .empty-state-actions .btn {
            width: 100%;
        }
    }

    /* Car Description Styling (Quill Editor Content) */
    .car-description {
        line-height: 1.6;
    }
    
    .car-description p {
        margin-bottom: 1rem;
    }
    
    .car-description h1,
    .car-description h2,
    .car-description h3,
    .car-description h4,
    .car-description h5,
    .car-description h6 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .car-description ul,
    .car-description ol {
        margin-bottom: 1rem;
        padding-left: 2rem;
    }
    
    .car-description li {
        margin-bottom: 0.5rem;
    }
    
    .car-description strong {
        font-weight: 600;
    }
    
    .car-description em {
        font-style: italic;
    }
    
    .car-description u {
        text-decoration: underline;
    }
    
    .car-description blockquote {
        border-left: 4px solid #dee2e6;
        padding-left: 1rem;
        margin: 1rem 0;
        color: #6c757d;
    }
    
    .car-description a {
        color: #0d6efd;
        text-decoration: none;
    }
    
    .car-description a:hover {
        text-decoration: underline;
    }
    
    .btn-outline-secondary-custom {
        background-color: white;
        color: var(--fo-secondary-color);
        border: 1px solid var(--fo-secondary-color);
        transition: all 0.3s ease;
    }
    
    .btn-outline-secondary-custom:hover {
        background-color: var(--fo-secondary-color);
        color: white;
        border-color: var(--fo-secondary-color);
    }
    
    .thumbnail-nav {
        transition: all 0.3s ease;
        border: 3px solid transparent;
    }
    
    .thumbnail-nav:hover {
        opacity: 0.8;
        transform: scale(1.05);
    }
    
    .thumbnail-nav.active {
        border-color: #0d6efd;
        opacity: 1;
    }
    
    .carousel-indicators {
        margin-bottom: 0;
    }
    
    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin: 0 5px;
    }
    
    .carousel-main-image {
        cursor: zoom-in;
        transition: opacity 0.2s ease;
    }
    
    .carousel-main-image:hover {
        opacity: 0.95;
    }
    
    #fullscreenBtn {
        opacity: 0.9;
        transition: all 0.3s ease;
        z-index: 10;
    }
    
    #fullscreenBtn:hover {
        opacity: 1;
        transform: scale(1.05);
    }
    
    #fullscreenModal .modal-content {
        background-color: rgba(0, 0, 0, 0.98);
    }
    
    #fullscreenModal .modal-body {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
        position: relative;
    }
    
    #fullscreenModal .modal-header {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
        padding: 1.5rem;
        pointer-events: none;
    }
    
    #fullscreenModal .modal-header .btn-close {
        pointer-events: all;
    }
    
    #fullscreenModal .modal-header .modal-title {
        pointer-events: all;
    }
    
    #fullscreenModal .carousel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #fullscreenModal .carousel-inner {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    #fullscreenModal .carousel-item {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #fullscreenModal .carousel-item > div {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #fullscreenModal .carousel-control-prev,
    #fullscreenModal .carousel-control-next {
        width: 15%;
        opacity: 0.8;
    }
    
    #fullscreenModal .carousel-control-prev:hover,
    #fullscreenModal .carousel-control-next:hover {
        opacity: 1;
    }
    
    #fullscreenModal .carousel-indicators {
        margin-bottom: 2rem;
    }
    
    #fullscreenModal .carousel-indicators button {
        width: 15px;
        height: 15px;
        background-color: rgba(255, 255, 255, 0.5);
    }
    
    #fullscreenModal .carousel-indicators button.active {
        background-color: rgba(255, 255, 255, 1);
    }
    
    #fullscreenCarousel {
        outline: none;
    }
    
    /* Fade transition for carousel */
    .carousel-fade .carousel-item {
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
    }
    
    .carousel-fade .carousel-item.active {
        opacity: 1;
    }
    
    /* Financing Calculator Slider Styling */
    #loanAmountSlider,
    #monthsSlider {
        height: 8px;
        background: linear-gradient(to right, #10b981 0%, #10b981 100%);
        border-radius: 5px;
        outline: none;
        opacity: 0.9;
    }
    
    #loanAmountSlider::-webkit-slider-track,
    #monthsSlider::-webkit-slider-track {
        height: 8px;
        background: #10b981;
        border-radius: 5px;
    }
    
    #loanAmountSlider::-moz-range-track,
    #monthsSlider::-moz-range-track {
        height: 8px;
        background: #10b981;
        border-radius: 5px;
    }
    
    #loanAmountSlider::-webkit-slider-thumb,
    #monthsSlider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        background: #059669;
        cursor: pointer;
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    #loanAmountSlider::-moz-range-thumb,
    #monthsSlider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        background: #059669;
        cursor: pointer;
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    #loanAmountSlider:hover,
    #monthsSlider:hover {
        opacity: 1;
    }
    
    /* Responsive adjustments */
    @media (max-width: 767px) {
        #carPhotoCarousel .carousel-item img {
            height: 300px !important;
        }
        
        #fullscreenBtn {
            padding: 0.25rem 0.5rem;
            font-size: 0.875rem;
        }
        
        #fullscreenModal .carousel-control-prev,
        #fullscreenModal .carousel-control-next {
            width: 10%;
        }
        
        #fullscreenModal .carousel-indicators {
            margin-bottom: 1rem;
        }
    }

    /* Empty State Styles */
    .empty-state-wrapper {
        min-height: 65vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4rem 1rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    .empty-state-content {
        max-width: 600px;
        text-align: center;
        animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    .empty-state-visual {
        position: relative;
        margin-bottom: 3rem;
    }
    
    .car-slots {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .car-slot {
        width: 120px;
        height: 120px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        position: relative;
        transition: all 0.3s ease;
        animation: float 3s ease-in-out infinite;
    }
    
    .car-slot:nth-child(1) {
        animation-delay: 0s;
    }
    
    .car-slot:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .car-slot:nth-child(3) {
        animation-delay: 0.4s;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-10px);
        }
    }
    
    .car-slot::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(135deg, var(--fo-primary-color), var(--fo-secondary-color));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    
    .car-slot:hover::before {
        opacity: 1;
    }
    
    .car-slot i {
        font-size: 3.5rem;
        color: #d1d5db;
        transition: all 0.3s ease;
    }
    
    .car-slot:hover i {
        color: var(--fo-primary-color);
        transform: scale(1.1);
    }
    
    .comparison-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
        background: linear-gradient(135deg, var(--fo-primary-color), var(--fo-secondary-color));
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 32px color-mix(in srgb, var(--fo-primary-color) 30%, transparent);
        animation: pulse 2s ease-in-out infinite;
    }
    
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 8px 32px color-mix(in srgb, var(--fo-primary-color) 30%, transparent);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 0 12px 40px color-mix(in srgb, var(--fo-primary-color) 40%, transparent);
        }
    }
    
    .comparison-icon i {
        font-size: 2.5rem;
        color: #fff;
    }
    
    .empty-state-title {
        font-size: 2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1rem;
        letter-spacing: -0.02em;
    }
    
    .empty-state-description {
        font-size: 1.125rem;
        color: #6b7280;
        margin-bottom: 2.5rem;
        line-height: 1.6;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-browse-cars {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 2.5rem;
        font-size: 1.0625rem;
        font-weight: 600;
        color: #fff;
        background: linear-gradient(135deg, var(--fo-primary-button-color), color-mix(in srgb, var(--fo-primary-button-color) 85%, black));
        text-decoration: none;
        box-shadow: 0 4px 16px color-mix(in srgb, var(--fo-primary-button-color) 30%, transparent);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .btn-browse-cars::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .btn-browse-cars:hover::before {
        left: 100%;
    }
    
    .btn-browse-cars:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px color-mix(in srgb, var(--fo-primary-button-color) 40%, transparent);
        color: #fff;
        text-decoration: none;
    }
    
    .btn-browse-cars i {
        font-size: 1.25rem;
        transition: transform 0.3s ease;
    }
    
    .btn-browse-cars:hover i {
        transform: translateX(4px);
    }
    
    @media (max-width: 768px) {
        .car-slots {
            gap: 1rem;
        }
        
        .car-slot {
            width: 90px;
            height: 90px;
        }
        
        .car-slot i {
            font-size: 2.5rem;
        }
        
        .comparison-icon {
            width: 60px;
            height: 60px;
        }
        
        .comparison-icon i {
            font-size: 2rem;
        }
        
        .empty-state-title {
            font-size: 1.5rem;
        }
        
        .empty-state-description {
            font-size: 1rem;
        }
        
        .btn-browse-cars {
            padding: 0.875rem 2rem;
            font-size: 1rem;
        }
    }
    
    @media (max-width: 576px) {
        .car-slots {
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }
        
        .car-slot {
            width: 100px;
            height: 100px;
        }
    }
    
    .comparison-table-wrapper {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }
    
    .comparison-table {
        margin: 0;
        border: none;
    }
    
    .comparison-table thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .comparison-table thead th {
        border: none;
        padding: 1.5rem;
        vertical-align: top;
        color: #fff;
    }
    
    .spec-label-column {
        width: 200px;
        min-width: 200px;
        background: rgba(255, 255, 255, 0.1);
        font-weight: 600;
        position: sticky;
        left: 0;
        z-index: 10;
    }
    
    .car-column {
        width: calc((100% - 200px) / 3);
        text-align: center;
    }
    
    .car-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .car-image {
        width: 100%;
        max-width: 200px;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
        border: 3px solid rgba(255, 255, 255, 0.3);
    }
    
    .car-image-placeholder {
        width: 100%;
        max-width: 200px;
        height: 150px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px solid rgba(255, 255, 255, 0.3);
    }
    
    .car-image-placeholder i {
        font-size: 3rem;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .car-title {
        color: #fff;
        font-weight: 600;
        margin: 0;
        font-size: 1.1rem;
    }
    
    .remove-car {
        background: #fff;
        border: 1.5px solid #dc3545;
        color: #dc3545;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.625rem;
        border-radius: 6px;
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .remove-car:hover {
        background: #dc3545;
        border-color: #dc3545;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
    }
    
    .remove-car i {
        font-size: 0.75rem;
    }
    
    .empty-column {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .empty-slot {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .empty-slot i {
        font-size: 2.5rem;
        opacity: 0.5;
    }
    
    .empty-slot p {
        margin: 0;
        font-size: 0.9rem;
    }
    
    .comparison-table tbody tr {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .comparison-table tbody tr:last-child {
        border-bottom: none;
    }
    
    .comparison-table tbody tr:nth-child(even) {
        background: #f9fafb;
    }
    
    .spec-label {
        padding: 1.25rem 1.5rem;
        background: #f3f4f6;
        font-weight: 500;
        color: #374151;
        position: sticky;
        left: 0;
        z-index: 5;
    }
    
    .spec-value {
        padding: 1.25rem 1.5rem;
        text-align: center;
        color: #6b7280;
        vertical-align: middle;
    }
    
    .empty-cell {
        background: #fafafa;
        color: #d1d5db;
    }
    
    .action-row {
        background: #fff !important;
    }
    
    .action-row .spec-value {
        padding: 1.5rem;
    }
    
    /* Features List Styling */
    .features-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
        display: inline-block;
    }
    
    .features-list li {
        padding: 0.375rem 0;
        font-size: 0.875rem;
        color: #374151;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .features-list li i {
        color: #10b981;
        font-size: 0.875rem;
        flex-shrink: 0;
    }
    
    @media (max-width: 991px) {
        .comparison-table-wrapper {
            overflow-x: auto;
        }
        
        .comparison-table {
            min-width: 800px;
        }
        
        .spec-label-column {
            width: 150px;
            min-width: 150px;
        }
        
        .car-image,
        .car-image-placeholder {
            max-width: 150px;
            height: 120px;
        }
        
        .car-title {
            font-size: 1rem;
        }
    }
    
    @media (max-width: 576px) {
        .spec-label-column {
            width: 120px;
            min-width: 120px;
            font-size: 0.875rem;
        }
        
        .spec-label,
        .spec-value {
            padding: 1rem;
            font-size: 0.875rem;
        }
        
        .car-image,
        .car-image-placeholder {
            max-width: 120px;
            height: 100px;
        }
        
        .car-title {
            font-size: 0.9rem;
        }
    }

    /* Page Header Section */
    .page-header-section {
        background-color: #1a1a1a;
        padding: 4rem 0 3rem;        
        position: relative;
        overflow: hidden;
    }
    
    @if($page->background_image)
    .page-header-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('{{ asset('storage/' . $page->background_image) }}');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.45;
        z-index: 0;
    }
    @else
    .page-header-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
        opacity: 0.9;
        z-index: 0;
    }
    
    .page-header-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
        z-index: 0;
    }
    @endif
    
    .page-header-content {
        position: relative;
        z-index: 1;
        text-align: center;
    }
    
    .page-title {
        color: #ffffff;
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        line-height: 1.2;
    }
    
    .page-subtitle {
        color: rgba(255, 255, 255, 0.95);
        font-size: 1.25rem;
        font-weight: 400;
        margin-bottom: 0;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
    }
    
    @media (max-width: 768px) {
        .page-header-section {
            padding: 3rem 0 2rem;
        }
        
        .page-title {
            font-size: 2rem;
        }
        
        .page-subtitle {
            font-size: 1.1rem;
        }
    }
    
    /* Page Content */
    .page-content {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .page-body {
        background: #ffffff;
        padding: 2rem;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    @media (max-width: 768px) {
        .page-body {
            padding: 1.5rem;
        }
    }
    
    /* Quill editor content styles */
    .page-body .ql-editor {
        padding: 0;                
    }
    
    .page-body h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 700;
        color: #1e293b;
    }
    
    .page-body h2 {
        font-size: 2rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 600;
        color: #1e293b;
    }
    
    .page-body h3 {
        font-size: 1.75rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: #334155;
    }
    
    .page-body h4 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: #334155;
    }
    
    .page-body h5 {
        font-size: 1.25rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #475569;
    }
    
    .page-body h6 {
        font-size: 1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #475569;
    }
    
    .page-body p {
        margin-bottom: 1.25rem;
        color: #334155;
    }
    
    .page-body ul, .page-body ol {
        margin-bottom: 1.25rem;
        padding-left: 2rem;
        color: #334155;
    }
    
    .page-body li {
        margin-bottom: 0.5rem;
    }
    
    .page-body img {
        max-width: 100%;
        height: auto;
        margin: 1.5rem 0;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .page-body blockquote {
        border-left: 4px solid #1e40af;
        padding-left: 1.5rem;
        margin: 1.5rem 0;
        font-style: italic;
        color: #64748b;
        background: #f8fafc;
        padding: 1rem 1.5rem;
        border-radius: 0.25rem;
    }
    
    .page-body a {
        color: #1e40af;
        text-decoration: underline;
        transition: color 0.2s;
    }
    
    .page-body a:hover {
        color: #1e3a8a;
    }
    
    .page-body strong {
        font-weight: 700;
        color: #1e293b;
    }
    
    .page-body em {
        font-style: italic;
    }
    
    .page-body u {
        text-decoration: underline;
    }
    
    .page-body s {
        text-decoration: line-through;
    }
    
    .page-body pre {
        background-color: #1e293b;
        color: #e2e8f0;
        padding: 1.5rem;
        border-radius: 0.5rem;
        overflow-x: auto;
        margin: 1.5rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .page-body code {
        background-color: #f1f5f9;
        color: #e11d48;
        padding: 0.2rem 0.4rem;
        border-radius: 0.25rem;
        font-family: 'Courier New', monospace;
        font-size: 0.9em;
    }
    
    .page-body pre code {
        background-color: transparent;
        color: inherit;
        padding: 0;
    }
    
    .page-body .ql-align-center {
        text-align: center;
    }
    
    .page-body .ql-align-right {
        text-align: right;
    }
    
    .page-body .ql-align-justify {
        text-align: justify;
    }
    
    .page-body .ql-indent-1 {
        padding-left: 3em;
    }
    
    .page-body .ql-indent-2 {
        padding-left: 6em;
    }
    
    .page-body .ql-indent-3 {
        padding-left: 9em;
    }

    .hover-lift {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }
    
    .form-control:focus,
    .form-control-lg:focus {
        border-color: var(--fo-secondary-color);
        box-shadow: 0 0 0 0.25rem rgba(var(--fo-secondary-color-rgb, 13, 110, 253), 0.25);
    }
    
    .icon-box {
        transition: all 0.3s ease;
    }
    
    .hover-lift:hover .icon-box {
        transform: scale(1.1);
    }

/* Success Icon Styles */
.success-icon i {
    font-size: 120px;
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Success Icon Styles */
.success-icon i {
    font-size: 120px;
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Transparent Header Styles (Homepage only) */
.header-transparent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--fo-primary-color) 60%, transparent);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Standard Header Styles (Other pages) */
.header-standard {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--fo-primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-transparent .navbar,
.header-standard .navbar {
    padding: 1.5rem 0;
}

.header-transparent .navbar-brand,
.header-standard .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-transparent .brand-text,
.header-standard .brand-text {
    color: #fff;
    text-transform: uppercase;
}

.header-transparent .nav-link,
.header-standard .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.header-transparent .nav-link:hover,
.header-transparent .nav-link.active,
.header-standard .nav-link:hover,
.header-standard .nav-link.active {
    color: #fff !important;
    text-decoration: none;
}

.header-transparent .nav-link::after,
.header-standard .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--fo-secondary-color);
    transition: transform 0.3s ease;
}

.header-transparent .dropdown-toggle::after,
.header-standard .dropdown-toggle::after {
    width: calc(100% - 2.5rem);
}

/* Remove Bootstrap dropdown default border */
.header-transparent .dropdown-toggle,
.header-standard .dropdown-toggle {
    border: none !important;
    box-shadow: none !important;
}

.header-transparent .nav-link:hover::after,
.header-standard .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.header-transparent .nav-link.active::after,
.header-standard .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.header-transparent .dropdown-menu,
.header-standard .dropdown-menu {
    background: color-mix(in srgb, var(--fo-secondary-color) 85%, transparent);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: none !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    margin-top: 0.75rem;
    min-width: 260px;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.header-transparent .dropdown-menu::before,
.header-standard .dropdown-menu::before {
    display: none;
}

.header-transparent .dropdown-item,
.header-standard .dropdown-item {
    color: #fff;
    padding: 0.875rem 1.25rem;
    transition: background 0.2s ease, transform 0s;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 12px;
    margin-bottom: 0.25rem;
    transform: translateX(0);
    text-decoration: none !important;
}

.header-transparent .dropdown-item:last-child,
.header-standard .dropdown-item:last-child {
    margin-bottom: 0;
}

.header-transparent .dropdown-item i,
.header-standard .dropdown-item i {
    font-size: 1.125rem;
    color: #fff;
    transition: none;
    flex-shrink: 0;
}

.header-transparent .dropdown-item:hover,
.header-standard .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(0);
    text-decoration: none !important;
}

.header-transparent .dropdown-item:hover i,
.header-standard .dropdown-item:hover i {
    transform: none;
}

.header-transparent .dropdown-item:active,
.header-standard .dropdown-item:active {
    background: rgba(255, 255, 255, 0.25);
}

/* Prevent underline on dropdown toggle when hovering */
.header-transparent .dropdown-toggle:hover::after,
.header-standard .dropdown-toggle:hover::after {
    transform: translateX(-50%) scaleX(0) !important;
}

/* Show underline on dropdown toggle when active */
.header-transparent .dropdown-toggle.active::after,
.header-standard .dropdown-toggle.active::after {
    transform: translateX(-50%) scaleX(1) !important;
}

/* Dropdown toggle icon animation */
.header-transparent .dropdown-toggle i,
.header-standard .dropdown-toggle i {
    transition: transform 0.3s ease;
}

.header-transparent .dropdown-toggle[aria-expanded="true"] i,
.header-standard .dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Scrolled Header State */
.header-transparent.scrolled {
    background: color-mix(in srgb, var(--fo-primary-color) 65%, transparent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 991px) {
    .header-transparent {
        background: rgba(40, 40, 40, 0.98);
    }
    
    .header-transparent .navbar-collapse {
        background: rgba(40, 40, 40, 0.98);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }
}
