/********** Template CSS **********/
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed navbar */
}

/* Add scroll margin to all anchor targets */
[id] {
    scroll-margin-top: 100px;
}

/* Specific offsets for different sections */
#home {
    scroll-margin-top: 0;
}

#about,
#courses,
#features,
#testimonial,
#contact {
    scroll-margin-top: 100px;
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 80px;
    }
    
    [id] {
        scroll-margin-top: 80px;
    }
    
    #about,
    #courses,
    #features,
    #testimonial,
    #contact {
        scroll-margin-top: 80px;
    }
}

:root {
    --primary: #02AEEE;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;
}

/* Force override all yellow/primary colors */
.btn-primary,
.bg-primary,
.text-primary,
.border-primary,
.btn-outline-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: #02AEEE !important;
    border-color: #02AEEE !important;
    color: #FFFFFF !important;
}

.btn-outline-primary {
    color: #02AEEE !important;
    border-color: #02AEEE !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: #02AEEE !important;
    border-color: #02AEEE !important;
    color: #FFFFFF !important;
}

.bg-primary {
    background-color: #02AEEE !important;
}

.text-primary {
    color: #02AEEE !important;
}

.border-primary {
    border-color: #02AEEE !important;
}

.spinner-grow.text-primary {
    color: #02AEEE !important;
}

/* Override Bootstrap primary utilities */
[class*="bg-primary"],
[class*="text-primary"],
[class*="btn-primary"],
[class*="border-primary"] {
    background-color: #02AEEE !important;
    color: #02AEEE !important;
    border-color: #02AEEE !important;
}

/* Override any remaining yellow colors */
[style*="#F3BD00"],
[style*="#ffc107"],
[style*="#FFC107"],
[style*="yellow"] {
    background-color: #02AEEE !important;
    color: #02AEEE !important;
    border-color: #02AEEE !important;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hide back-to-top on mobile */
@media (max-width: 991.98px) {
    .back-to-top {
        display: none !important;
    }
}

/* Mobile Call Button */
.mobile-call-btn {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 20px;
    bottom: 20px;
    z-index: 99;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.mobile-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    color: white;
    background: #218838;
}

.mobile-call-btn i {
    font-size: 24px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(40, 167, 69, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }
}

/* Show mobile call button only on mobile */
@media (min-width: 992px) {
    .mobile-call-btn {
        display: none !important;
    }
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .75);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/*** Courses Image Styling ***/
.courses-image-wrapper {
    width: 100%;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    overflow: hidden;
    position: relative;
    display: block;
    flex-shrink: 0;
}

.courses-image-wrapper img,
.courses-image-wrapper .courses-image,
.courses-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
}

.courses-item:hover .courses-image-wrapper img,
.courses-item:hover .courses-image-wrapper .courses-image,
.courses-item:hover .courses-image {
    transform: scale(1.05);
}

/* Ensure course item text remains visible */
.courses-item h5,
.courses-item .d-inline-block.bg-primary,
.courses-item p {
    position: relative;
    z-index: 1;
}

.courses-item {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.courses-item .text-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
    z-index: 10;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}

.courses-overlay .btn {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    background-color: transparent !important;
    z-index: 11;
}

.courses-overlay .btn:hover {
    background-color: #02AEEE !important;
    border-color: #02AEEE !important;
    color: #FFFFFF !important;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** Topbar ***/
.bg-dark .btn.btn-link,
.bg-dark .btn.btn-link i {
    color: #FFFFFF !important;
}

.bg-dark .btn.btn-link:hover,
.bg-dark .btn.btn-link:hover i {
    color: #02AEEE !important;
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}

/*** Map Styling ***/
iframe[src*="google.com/maps"] {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    iframe[src*="google.com/maps"] {
        height: 350px;
    }
}

/*** Testimonial Avatar Styles ***/
.testimonial-item {
    padding: 20px;
}

.testimonial-item .bg-primary.rounded-circle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-item:hover .bg-primary.rounded-circle {
    transform: scale(1.05);
}

.testimonial-item .bg-primary.rounded-circle span {
    font-weight: 600;
    letter-spacing: 1px;
}

/* Additional overrides to ensure no yellow colors remain */
* {
    --bs-primary-rgb: 2, 174, 238 !important;
}

.btn-primary,
.btn-primary:visited,
.btn-primary:link {
    background-color: #02AEEE !important;
    border-color: #02AEEE !important;
}

a.text-primary,
a.text-primary:hover,
a.text-primary:focus {
    color: #02AEEE !important;
}

.bg-primary,
[class*="bg-primary"] {
    background-color: #02AEEE !important;
}

.text-primary,
[class*="text-primary"] {
    color: #02AEEE !important;
}

.border-primary,
[class*="border-primary"] {
    border-color: #02AEEE !important;
}

/* Override any Bootstrap utility classes */
[class^="bg-primary"],
[class*=" bg-primary"],
[class^="text-primary"],
[class*=" text-primary"] {
    background-color: #02AEEE !important;
    color: #02AEEE !important;
}

/* Force override Bootstrap primary color everywhere */
:root {
    --bs-primary: #02AEEE !important;
    --bs-primary-rgb: 2, 174, 238 !important;
}

/* Override all possible Bootstrap button states */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus {
    background-color: #02AEEE !important;
    border-color: #02AEEE !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 0.2rem rgba(2, 174, 238, 0.5) !important;
}

/* Override spinner */
.spinner-grow.text-primary,
.spinner-border.text-primary {
    color: #02AEEE !important;
}

/* Override carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #02AEEE !important;
    border-color: #02AEEE !important;
}

/* Override all elements with primary color */
*[class*="primary"] {
    --bs-primary: #02AEEE !important;
}

/* Force override any computed styles */
* {
    --bs-primary: #02AEEE !important;
}

/* Ensure fa-check icons are visible */
.fa-check.text-primary {
    color: #02AEEE !important;
    opacity: 1 !important;
    display: inline-block !important;
    font-size: 1rem !important;
    font-weight: bold !important;
}

/* Make sure check icons have proper contrast */
.col-sm-6 .fa-check.text-primary {
    color: #02AEEE !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure btn-outline-primary text and spans are visible */
.btn-outline-primary {
    color: #02AEEE !important;
    border-color: #02AEEE !important;
}

.btn-outline-primary > span:not(.btn-square):not(.flex-shrink-0) {
    color: #02AEEE !important;
}

.btn-outline-primary:hover > span:not(.btn-square):not(.flex-shrink-0),
.btn-outline-primary:focus > span:not(.btn-square):not(.flex-shrink-0) {
    color: #FFFFFF !important;
}

/* Ensure all icon colors are visible */
.fa-motorcycle.text-primary,
.fa-car.text-primary,
.fa-truck.text-primary,
.fa-quote-left.text-primary {
    color: #02AEEE !important;
    opacity: 1 !important;
}

/* Ensure text-primary is always visible */
.text-primary {
    opacity: 1 !important;
}

/* Phone number in btn-outline-primary */
.btn-outline-primary .phone-number {
    color: #02AEEE !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-outline-primary:hover .phone-number,
.btn-outline-primary:focus .phone-number {
    color: #FFFFFF !important;
}

/* Ensure btn-outline-primary is visible */
.btn-outline-primary {
    color: #02AEEE !important;
    border-color: #02AEEE !important;
    background-color: transparent !important;
}

.btn-outline-primary span.phone-number {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Additional visibility fixes */
/* Footer h2 text */
.footer h2.text-white {
    color: #FFFFFF !important;
}

/* Ensure all check icons are visible with proper size */
i.fa-check.text-primary {
    color: #02AEEE !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    font-size: inherit !important;
    margin-right: 0.5rem !important;
}

/* Courses overlay button visibility */
.courses-overlay .btn.btn-outline-primary {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.courses-overlay .btn.btn-outline-primary:hover {
    background-color: #02AEEE !important;
    border-color: #02AEEE !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
}