:root {
    --primary: #40627c;
    --light: #F0FBFC;
    --dark: #181d38;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* scroll-behavior handled by JS for smooth animated scrolling */

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* 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;
}

/* Buttons */
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-blue {
    padding: 1em;
    background: #052368;
    color: white;
}

.btn-red {
    padding: 1em;
    background: #ba1e30;
    color: white;
}

.btn.btn-primary,
.btn.btn-secondary {
    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;
    border-radius: 0px;
}

/* Navbar */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 60px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.fixed-top {
    top: 0 !important;
    transition: .5s;
    z-index: 1030;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        right: 0;
        left: auto;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* Dropdown stays within viewport */
.navbar .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 240px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
}

/* Header Carousel */
.header-carousel {
    position: relative;
}

.header-carousel .owl-carousel-item {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        height: 400px;
    }

    .header-carousel .owl-carousel-item img {
        height: 400px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0 !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    background: transparent !important;
    border: 2px solid #FFFFFF !important;
    border-radius: 0 !important;
    font-size: 22px !important;
    transition: .5s;
    padding: 0 !important;
    line-height: 1 !important;
}

.header-carousel .owl-nav button i {
    color: #FFFFFF !important;
    font-size: 22px !important;
}

/* Override Owl default theme button styles */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    background: none !important;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../images/bg3.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 75px;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 50%;
    right: calc(100% + 15px);
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 50%;
    left: calc(100% + 15px);
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: 40px;
    left: 0;
    right: auto;
}

.section-title.text-start::after {
    width: 60px;
    left: calc(100% + 15px);
}

/* Service Items */
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

/* Course / Urgency Items */
.course-item:hover {
    background-color: #0f3c5e;
    color: white;
    cursor: pointer;
}

/* Category & Course images */
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}

/* Team Items */
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

/* Testimonial Carousel */
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Footer */
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Utility Classes */
.page-title {
    color: #40627c;
    font-size: 24px;
}

.img-fluid:not(.header-carousel .img-fluid) {
    max-height: 600px !important;
}

.header-carousel .owl-carousel-item .img-fluid {
    max-height: none !important;
    height: 520px;
    object-fit: cover;
}

.text-blue {
    color: #40627c;
}

.text-red {
    color: red;
}

.color-white {
    color: white;
}

.border-blue {
    border: 2px solid #181d38b3;
}

.bg-blue {
    background-color: #072236;
}

.item-container {
    height: 250px;
}

.bgpatt {
    background: linear-gradient(135deg, #ffffff80 50%, transparent 0),
                linear-gradient(-135deg, #ffffff80 50%, transparent 0);
    background-size: 6em 6em;
    background-color: #efefef;
    opacity: 1;
}

.paynow {
    border: 2px solid #40627c;
    padding: 6px;
}

.errormsg {
    padding: 5px;
    background: #ffcdcd;
}

@media only screen and (max-width: 600px) {
    .d-mob-none {
        display: none;
    }
}

/* Contain WOW/animate overflow */
section, .footer {
    overflow-x: hidden;
}

/* Testimonial section clip */
.testimonial-carousel {
    overflow: hidden;
}

/* ===== HERO SLIDE CONTENT ===== */
.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 60px;
    background: rgba(0, 0, 0, 0.35);
}

.carousel-caption-custom h1 {
    font-size: 50px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Heebo', sans-serif;
}

.carousel-caption-custom p {
    font-size: 25px;
    color: #ddd;
    margin-bottom: 20px;
    max-width: 550px;
}

.carousel-caption-custom .btn-order {
    display: inline-block;
    background: #fff;
    color: #333;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    border: none;
    transition: .3s;
    text-decoration: none;
    width: fit-content;
}

.carousel-caption-custom .btn-order:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .carousel-caption-custom {
        padding: 20px 25px;
    }
    .carousel-caption-custom h1 {
        font-size: 28px;
    }
}

/* ===== URGENCY / QUOTE SECTION ===== */
.urgency-section {
    padding: 60px 0;
}

.process-card {
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}

.process-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.process-card-body {
    background: var(--dark);
    color: #fff;
    padding: 20px 25px;
}

.process-card-body h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-card-body p {
    font-size: 14px;
    color: #ccc;
    margin: 0;
    line-height: 1.6;
}

.quote-form {
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 0 0 6px 6px;
}

.quote-form h4 {
    font-size: 22px;
    font-weight: 700;
}

.quote-form .subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.quote-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    overflow: hidden;
}

.phone-input-group .phone-prefix {
    background: #f8f9fa;
    padding: 8px 10px;
    font-size: 14px;
    border-right: 1px solid #ced4da;
    white-space: nowrap;
}

.phone-input-group input {
    border: none;
    padding: 8px 12px;
    flex: 1;
    outline: none;
    font-size: 14px;
}

.btn-submit-quote {
    background: #ba1e30;
    color: #fff;
    padding: 10px 30px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    transition: .3s;
}

.btn-submit-quote:hover {
    background: #8e1726;
    color: #fff;
}

/* Registered Agent Box */
.registered-agents-box {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 25px 30px;
    margin-top: 25px;
}

.registered-agents-box h4 {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.agent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.agent-item .fa-check {
    color: #ba1e30;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--dark);
    color: #fff;
    padding: 60px 0;
}

.about-section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-section h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0 12px;
}

.about-section p {
    font-size: 15px;
    color: #ccc;
    line-height: 1.7;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    font-size: 15px;
    padding: 5px 0;
    color: #ccc;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-list li i {
    color: #ba1e30;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 60px 0;
}

.contact-section .get-in-touch h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-section .get-in-touch > p {
    color: #666;
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.contact-info-item .icon-box {
    width: 45px;
    height: 45px;
    background: var(--dark);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.contact-info-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.contact-info-item a {
    color: #666;
    text-decoration: underline;
}

.contact-info-item a:hover {
    color: var(--primary);
}

.contact-form-box .form-control {
    border: 1px solid #ddd;
    padding: 12px 16px;
    font-size: 14px;
}

.contact-form-box .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.contact-form-box textarea.form-control {
    min-height: 140px;
}

.btn-send {
    background: #ba1e30;
    color: #fff;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    transition: .3s;
}

.btn-send:hover {
    background: #8e1726;
    color: #fff;
}
