/* ============================================================
   RIVON Lanka - Blue & Silver Theme Override
   Replaces gold/black accent with blue (#1D63FC) & silver (#C0C8D8)
   ============================================================ */

:root {
    --primary-color       : #061B39;      /* Deep navy (was black) */
    --secondary-color     : #FFFFFF;
    --bg-color            : #F0F4FA;      /* Cool silver-blue tint (was warm gray) */
    --text-color          : #1E2A3A;
    --accent-color        : #1D63FC;      /* Rivon Blue (was gold) */
    --silver-color        : #C0C8D8;      /* Silver */
    --silver-light        : #E8EDF5;
    --white-color         : #FFFFFF;
    --divider-color       : #061B391A;
    --dark-divider-color  : #FFFFFF1A;
    --error-color         : rgb(230, 87, 87);
    --default-font        : "Open Sauce One", sans-serif;
    --accent-font         : "Poppins", sans-serif;
}

body {
    background-color: #ffffff !important;
}

/* Scrollbar */
::-webkit-scrollbar-track { background-color: var(--primary-color); border-left: 1px solid var(--primary-color); }
::-webkit-scrollbar { width: 7px; background-color: var(--primary-color); }
::-webkit-scrollbar-thumb { background: var(--accent-color); }
::selection { color: #fff; background-color: var(--accent-color); filter: none; }

/* Background section cool silver */
.bg-section { background-color: var(--bg-color) !important; }

/* Dark sections stay navy */
.dark-section { background-color: var(--primary-color) !important; }

.intro-video-box.dark-section {
    border-top: none !important;
    border-bottom: none !important;
}

/* Buttons — blue instead of gold */
.btn-default {
    background: var(--accent-color) !important;
    color: #fff !important;
    border-color: var(--accent-color) !important;
}
.btn-default:hover { background: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.btn-default::before { background-color: var(--primary-color) !important; }
.btn-default::after { background: var(--primary-color) !important; }
.btn-default.btn-white {
    background: rgba(192, 200, 216, 0.25) !important;
    border: 2px solid rgba(255,255,255,0.7) !important;
    color: #ffffff !important;
    backdrop-filter: blur(6px);
}
.btn-default.btn-white:hover {
    background: #C0C8D8 !important;
    color: #061B39 !important;
    border-color: #C0C8D8 !important;
}
.btn-default.btn-white::after { background: #C0C8D8 !important; }
.btn-default.btn-white:hover::before {
    background-color: #061B39 !important;
    background-image: url('../images/arrow-primary.svg') !important;
}

/* Book a Test Drive - text stays black when silver on hover */
.btn-default.btn-highlighted:hover {
    color: #061B39 !important;
}

.btn-default.btn-highlighted { background: var(--accent-color) !important; }
.btn-default.btn-highlighted::after { background: var(--silver-color) !important; }

/* Section sub-titles */
.section-title .section-sub-title { color: var(--accent-color) !important; }
.section-title .section-sub-title::before { background: var(--accent-color) !important; }
.dark-section .section-title .section-sub-title { color: var(--silver-color) !important; }

/* Nav active / hover accent */
.navbar-nav .nav-item a:hover,
.navbar-nav .nav-item a:focus,
.navbar-nav .nav-item.active > a { color: white !important; }

/* Header button */
.header-btn .btn-default { background: var(--accent-color) !important; color: #fff !important; }

/* Hero rent-car-box */
.rent-car-box { background: var(--primary-color) !important; }
.rent-car-box .rent-car-box-title h2 { color: #fff !important; }
.rent-car-box-form .form-group label { color: var(--silver-color) !important; }
.rent-car-box-form .btn-default { background: var(--accent-color) !important; color: #fff !important; }

/* About satisfy client images overlay */
.satisfy-client-image.add-more h2 { color: #fff !important; background: var(--accent-color) !important; }

/* Service items icon box */
.service-item .icon-box img { filter: hue-rotate(200deg) saturate(1.5); }
.service-item:hover .icon-box img {
    filter: brightness(0) invert(1);
    
}
/* ====================== SERVICE ITEM HOVER FIXES ====================== */

/* icon-box image turns white on service item hover */
.service-item:hover .icon-box img {
    filter: brightness(0) invert(1) !important;
    
}

/* "View Details" readmore-btn text turns white on hover */
.service-item:hover .service-item-btn a.readmore-btn {
    color: #ffffff !important;
    transition: all 0.4s ease-in-out;
}

/* readmore-btn arrow also turns white */
.service-item:hover .service-item-btn a.readmore-btn::before {
    background-image: url('../images/arrow-white.svg') !important;
}

/* Why choose icon boxes */
.why-choose-item .icon-box img { filter: hue-rotate(200deg) saturate(1.5); }

/* Counter numbers */
.counter, .why-choose-counter-no h2 { color: var(--accent-color) !important; }


/* Read more links */
.readmore-btn { color: var(--accent-color) !important; }
.readmore-btn::after { background-color: var(--accent-color) !important; }

/* Fleet item price */
.fleets-item-content h2 { color: white !important; }

/* FAQ accordion button open */
.accordion-button:not(.collapsed) {
    color: var(--accent-color) !important;
    background-color: var(--silver-light) !important;
    box-shadow: none !important;
}
.accordion-button:focus { box-shadow: 0 0 0 2px rgba(29,99,252,0.2) !important; }
.accordion-button::after { filter: hue-rotate(200deg) saturate(2); }

/* Core features icons */
.core-features-item .icon-box img { filter: hue-rotate(200deg) saturate(1.5); }

/* Footer */
.main-footer { background-color: var(--primary-color) !important; }
.footer-links h2 { color: var(--silver-color) !important; }
.footer-social-links a:hover { background: var(--accent-color) !important; border-color: var(--accent-color) !important; }

/* Newsletter btn */
.newsletter-btn { background: var(--accent-color) !important; }
.newsletter-btn:hover { background: var(--silver-color) !important; }

/* Testimonial stars */
.testimonial-item-rating i,
.section-footer-text ul li i { color: var(--accent-color) !important; }

/* Hero gradient overlay on dark */
.hero.hero-video::before { background: linear-gradient(135deg, rgba(6,27,57,0.75) 0%, rgba(29,99,252,0.25) 100%) !important; }

/* CTA box */
.cta-box { background-color: var(--primary-color) !important; }

/* About contact box icon */
.about-contact-box .icon-box img { filter: hue-rotate(200deg) saturate(2) brightness(1.2); }

/* Phone icon accent */
.satisfy-client-image.add-more img { filter: hue-rotate(200deg) saturate(2) brightness(1.2); }

/* Fleets pagination dots */
.fleets-pagination .swiper-pagination-bullet-active { background: var(--accent-color) !important; }

/* Page breadcrumb / hero sub-pages */
.page-hero, .inner-page-hero { background-color: var(--primary-color) !important; }

/* ============================================================
   ICON VISIBILITY FIXES
   Ensure all SVG icons render visibly with blue/white tint
   ============================================================ */

/* All icon-box images — visible on light backgrounds */
.icon-box img {
    filter: hue-rotate(200deg) saturate(1.8) brightness(0.85) !important;
}

/* Icon-box images on dark/navy sections — brighter */
.dark-section .icon-box img,
.cta-box .icon-box img,
.about-us-video .icon-box img {
    filter: hue-rotate(200deg) saturate(1.8) brightness(1.4) !important;
}

/* About body item icons */
.about-us-body .icon-box img {
    filter: hue-rotate(200deg) saturate(2) brightness(0.9) !important;
}

/* Contact icon box */
.about-contact-box .icon-box img {
    filter: hue-rotate(200deg) saturate(2) brightness(1.5) !important;
}

/* Approach / process step icons */
.approach-item .icon-box img {
    filter: hue-rotate(200deg) saturate(1.8) brightness(0.85) !important;
}

/* Amenity icons in fleet cards */
.fleets-amenity-item-list ul li img {
    filter: hue-rotate(200deg) saturate(2) brightness(0.8) !important;
    width: 18px;
    height: 18px;
}

/* Footer social links hover */
.footer-social-links a { 
    border: 1px solid var(--dark-divider-color); 
    transition: all 0.3s ease; 
}

/* Ensure page-header is always full-width (no left/right margin on mobile) */
@media (max-width: 767px) {
    .page-header {
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 160px 0 80px !important;
    }
    .page-header-box h1 {
        font-size: 36px !important;
    }
}

/* Fix sticky header: ensure it doesn't leave a gap */
header.main-header.active-sticky-header {
    height: auto !important;
}

/* Ensure nav items are aligned vertically and spaced nicely */
.navbar-nav .nav-item {
    display: flex;
    align-items: baseline;
}

/* Active nav indicator underline */
.navbar-nav .nav-item.active > a {
    position: relative;
}
.navbar-nav .nav-item.active > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* Smooth section transitions */
section, .our-services, .our-faqs, .why-choose-us, .about-us, .our-fleets {
    scroll-margin-top: 100px;
}

/* Ensure page-header breadcrumb links are readable */
.page-header-box ol li.breadcrumb-item a:hover {
    color: var(--accent-color);
}



/* ============================================================
   FIX 3: ALTERNATING SECTION BACKGROUNDS
   Clear visual separation between sections
   ============================================================ */

/* Base: white */
.about-us,
.our-core-features,
.our-fleets,
.our-services:not(.bg-section),
.why-choose-us:not(.bg-section) {
    background-color: #ffffff !important;
}

/* Alternate: cool light blue-grey */
.why-choose-us.bg-section,
.our-services.bg-section,
.our-faqs,
.our-apporach,
.our-apporach.bg-section {
    background-color: #EEF2F9 !important;
}

/* Dark CTA sections stay dark */
.cta-box.dark-section,
.dark-section {
    background-color: var(--primary-color) !important;
}

/* Ensure bg-section class uses the alternate colour */
.bg-section {
    background-color: #EEF2F9 !important;
}

/* Add subtle top border to visually separate each section */


/* If the sections are direct children of 
   or a full-width wrapper — just ensure no
   parent has overflow: hidden or max-width */

.our-core-features,
.our-faqs,
.bg-section {
    background-color: #EEF2F9 !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* The inner .container handles the content width */
.our-core-features .container,
.our-faqs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.our-core-features .container-fluid {
    padding-left: calc(6vw + 30px) !important;
    padding-right: calc(6vw + 30px) !important;
}

@media (max-width: 991px) {
    .our-core-features .container-fluid {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (max-width: 767px) {
    .our-core-features .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Make all service item icon boxes the same height */
.service-item .icon-box {
    min-height: 100px;  /* adjust to match your tallest icon */
    display: flex;
    align-items: center;
}

/* Ensure service item content aligns consistently */
.service-item {
    display: flex;
    flex-direction: column;
}

.service-item-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Make all why-choose icon boxes the same height */
.why-choose-item .icon-box {
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Ensure consistent card structure */
.why-choose-item {
    display: flex;
    flex-direction: column;
}

.why-choose-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.why-choose-items-list {
    display: flex;
    align-items: stretch;
}

.why-choose-items-list .why-choose-item {
    flex: 1;
}

/* =============================================
   RIVON LANKA - FOOTER ONLY (Fixed)
   ============================================= */

.main-footer {
    background: #061B39 url('../images/dark-section-bg-image.png') top center / cover !important;
    color: #e0e0e0 !important;
    padding: 80px 0 5px !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 0px;
    border-radius: 40px 40px 0 0 !important; /* Rounded top, flat bottom */
}



/* Dark overlay - reduced so zigzag is visible */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6,27,57, 0.75);   /* Lower opacity = more visible zigzag */
    z-index: 1;
}

/* Content above overlay */
.main-footer .container,
.main-footer .row,
.main-footer .about-footer,
.main-footer .footer-links-box,
.main-footer .footer-copyright {
    position: relative;
    z-index: 2;
}

/* Typography & Links */
.main-footer .footer-links h2,
.main-footer .footer-newsletter-form h2 {
    color: #ffffff !important;
    margin-bottom: 22px;
}

.main-footer a {
    color: #b0c4de !important;
}

.main-footer a:hover {
    color: #1A8CFF !important;
}

/* Newsletter */
.main-footer .footer-newsletter-form .form-control {
    background: rgba(17, 42, 79, 0.85) !important;
    border: 1px solid #1E4A7A !important;
    color: #ffffff !important;
    padding: 14px 20px !important;
}

.main-footer .newsletter-btn {
    background: #1A8CFF !important;
    color: white !important;
    margin-left:10px;
}

.main-footer .newsletter-btn:hover {
    background: #0F6BD1 !important;
}

/* Copyright area */
.main-footer .footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    padding-top: 25px !important;
    margin-top: 40px !important;
}

.main-footer .footer-copyright-text p {
    color: #b0c4de !important;
    margin: 0;
}

/* This creates the "middle light" effect */
.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 30%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Reduce overlay opacity so zigzag + light is visible */
.main-footer::before {
    background: rgba(6,27,57, 0.68) !important;   /* Reduced from previous */
    z-index: 2;
}
/* =============================================
   RIVON CONTACT CARD - Modern Form UI
   ============================================= */

.rivon-contact-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 44px 48px;
    box-shadow: 0 8px 48px rgba(6,27,57, 0.10);
}

/* Badge */
.rivon-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f0e8;
    color: #061B39;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.rivon-contact-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    flex-shrink: 0;
}

/* Title + description */
.rivon-contact-card-title {
    font-size: 38px;
    font-weight: 800;
    color: #061B39;
    line-height: 1.15;
    margin-bottom: 14px;
}
.rivon-contact-card-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Field wrapper */
.rivon-field-group {
    position: relative;
}

/* All inputs, selects, textarea */
.rivon-field {
    width: 100%;
    height: 58px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 0 20px;
    font-size: 15px;
    color: #061B39;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}
.rivon-field:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 59,130,246), 0.10);
}
.rivon-field::placeholder {
    color: #9ca3af;
    font-weight: 400;
}
.rivon-textarea {
    height: auto;
    padding: 16px 20px;
    resize: vertical;
    min-height: 130px;
}
select.rivon-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-color: #f3f4f6;
    cursor: pointer;
}

/* Submit button */
.rivon-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--accent-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 28px 6px 6px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.01em;
}
.rivon-submit-btn:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}
.rivon-submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #061B39;
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
}

/* Error messages */
.rivon-field-group .help-block {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    padding-left: 4px;
}

.navbar-brand img {
    height: 42px !important;
    width: auto !important;
    max-height: 42px;
    object-fit: contain;
}

.footer-logo img {
    height: 55px !important;
    width: auto !important;
    max-height: 55px;
    object-fit: contain;
}

#loading-icon img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.cta-box {
    margin: 40px clamp(30px, 8vw, 180px);
    border-radius: 30px;
    overflow: hidden;
}
/* Responsive */
@media (max-width: 767px) {
    .rivon-contact-card {
        padding: 30px 24px;
    }
    .rivon-contact-card-title {
        font-size: 28px;
    }
}



/* Fix: How It Works - stack icon above content */
.our-apporach .approach-item {
    width: 100% !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.our-apporach .approach-item .icon-box {
    margin-right: 0;
    margin-bottom: 0;
}

.our-apporach .approach-item-content {
    width: 100%;
}

/* Font Awesome icon boxes — replace missing SVGs */
.icon-box i {
    font-size: 40px;
    color: var(--accent-color);
    display: block;
    line-height: 1;
}

.service-item .icon-box i,
.why-choose-item .icon-box i,
.core-features-item .icon-box i,
.approach-item .icon-box i,
.about-us-body-item .icon-box i {
    font-size: 36px;
}

/* Dark section icons should be white/silver */
.dark-section .icon-box i,
.cta-box .icon-box i {
    color: #ffffff;
}

/* =============================================
   BLOG CARDS — align "Learn More" to same line
   ============================================= */

/* Make all 3 cards in the row equal height */
.our-blog .row {
    align-items: stretch !important;
}

.our-blog .col-xl-4,
.our-blog .col-md-6 {
    display: flex !important;
}

/* Card itself stretches full height, content pushes button down */
.our-blog .post-item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Image stays fixed height so all cards align from same point */
.our-blog .post-featured-image {
    flex-shrink: 0 !important;
}

.our-blog .post-featured-image figure,
.our-blog .post-featured-image img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Body fills remaining space */
.our-blog .post-item-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* Title area grows to fill — pushes button to bottom */
.our-blog .post-item-content {
    flex: 1 !important;
}

/* Button always sits at the bottom */
.our-blog .post-item-btn {
    margin-top: auto !important;
    padding-top: 12px !important;
}

/* ====================== GLASSMORPHISM VEHICLES DROPDOWN ====================== */
.navbar-nav .nav-item.submenu > ul {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
    border: 1px solid rgba(192, 200, 216, 0.25) !important;
    box-shadow: 
        0 10px 40px rgba(6,27,57, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
}
/* Dropdown items */
.navbar-nav .nav-item.submenu ul li {
    margin: 2px 8px;
    border-radius: 10px;
}

.navbar-nav .nav-item.submenu ul li a {
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Hover effect on items */
.navbar-nav .nav-item.submenu ul li a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    transform: translateX(6px);
}

/* Active state */
.navbar-nav .nav-item.submenu ul li.active a {
    background: rgba(29,99,252, 0.4) !important;
    color: #fff !important;
}

/* Optional: Small arrow indicator */
.navbar-nav .nav-item.submenu > a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.7;
}

/* Make sure it works on mobile too */
@media (max-width: 991px) {
    .navbar-nav .nav-item.submenu > ul {
        background: rgba(6,27,57, 0.85) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255,255,255,0.1);
    }
}

/* ====================== SEND US A MESSAGE BADGE ====================== */
.rivon-contact-badge {
    background: rgba(255, 255, 255, 0.75) !important;     /* Soft white with transparency */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(29,99,252, 0.25) !important; /* Light blue border */
    color: #061B39 !important;
    box-shadow: 0 4px 20px rgba(6,27,57, 0.08) !important;
}

/* Make the dot more vibrant */
.rivon-contact-badge-dot {
    background: var(--accent-color) !important;   /* #1D63FC */
    box-shadow: 0 0 6px rgba(29,99,252, 0.6);
}

.accordion-body p {
    color: #ffffff !important;
}

/* ====================== CUSTOM ACCORDION ICON ====================== */

/* Hide default Bootstrap icon */
.accordion-button::after {
    display: none !important;
}

/* Add new custom icon using Font Awesome */
.accordion-button {
    position: relative;
    padding-right: 50px !important;   /* Space for icon */
}

.accordion-button::before {
    content: "\f107";                    /* Font Awesome chevron down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: black;
    transition: all 0.3s ease;
}

/* When accordion is OPEN - rotate icon */
.accordion-button:not(.collapsed)::before {
    transform: translateY(-50%) rotate(180deg);
    color: black;
}

/* Optional: Better styling */
.accordion-button {
    transition: all 0.3s ease;
}

/* ====================== FAQ LIST ICONS FIX ====================== */
.faqs-content-list ul,
.accordion-body ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.faqs-content-list li,
.accordion-body li {
    position: relative;
    padding-left: 35px !important;
    margin-bottom: 14px;
    color: black;
}

/* Custom Checkmark Icon */
.faqs-content-list li::before,
.accordion-body li::before {
    content: "\f058" !important;           /* Font Awesome solid checkmark */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0;
    top: 4px;
    font-size: 20px;
    color: black !important;
    line-height: 1;
}

.breadcrumb {
    display: none !important;
}

.intro-video-list ul li::before {
    content: "\2726";
    color: #a8d8ff;
    margin-right: 8px;
}

.cta-content-body ul li::before {
    content: "\2726";
    color: #a8d8ff;
    margin-right: 8px;
}

