:root {
    --primary: #F0882F; /* Orange, used for backgrounds, borders, etc. */
    --light: #FFF8F0;
    --dark: #2D2D2D;
    --hover: #D9701F;
    --secondary: #4A2C0A; /* Brownish color for text */
}

/*** 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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
    background-color: var(--primary); /* Orange for button background */
}

.btn.btn-outline-primary {
    border-color: var(--primary); /* Orange border */
    color: var(--secondary); /* Brownish text instead of orange */
}

.btn.btn-outline-primary:hover {
    background-color: var(--hover); /* Hover uses orange hover shade */
    color: #FFFFFF; /* White text on hover for contrast */
}

.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: 50px;
}

/*** Navbar ***/
.navbar,
.sticky-top.navbar {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Nav links */
.navbar-nav .nav-link,
.navbar .navbar-nav .nav-link,
.sticky-top.navbar .navbar-nav .nav-link {
    color: #000000 !important; /* Black text */
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    margin-left: 25px;
    padding: 35px 0 !important;
    font-weight: 500;
    outline: none;
    transition: .5s;
    background-color: transparent !important;
    border: none !important;
    text-decoration: none !important;
}

/* Hover and active states */
.navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:hover,
.sticky-top.navbar .navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.active,
.sticky-top.navbar .navbar-nav .nav-link.active {
    color: #000000 !important; /* Stay black */
    font-weight: bold;
}

/* Sticky top specific adjustments */
.sticky-top.navbar .navbar-nav .nav-link {
    padding: 20px 0 !important;
    color: #000000 !important;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .sticky-top.navbar {
        position: relative;
        background: #ffffff !important;
    }

    .navbar .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #E0E0E0;
    }

    .navbar .navbar-nav .nav-link,
    .sticky-top.navbar .navbar-nav .nav-link {
        padding: 10px 0 !important;
        margin-left: 0 !important;
        color: #000000 !important;
        display: block !important;
    }
}

/* Desktop specific */
@media (min-width: 992px) {
    .navbar {
        position: fixed !important;
        width: 100%;
        top: 0;
        left: 0;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar {
        position: fixed;
        background: #ffffff !important;
    }

    /* Orange underline effect */
    .navbar .navbar-nav .nav-link::before,
    .sticky-top.navbar .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 2px;
        bottom: 10px;
        left: 0;
        background: var(--primary) !important; /* Orange underline */
        opacity: 0;
        transition: .5s;
    }

    .navbar .navbar-nav .nav-link:hover::before,
    .navbar .navbar-nav .nav-link.active::before,
    .sticky-top.navbar .navbar-nav .nav-link:hover::before,
    .sticky-top.navbar .navbar-nav .nav-link.active::before {
        bottom: -1px;
        left: 0;
        opacity: 1;
    }

    /* Dropdown menu */
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: visible !important;
        top: 100%;
        transform: rotateX(0deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 1 !important;
        background-color: #ffffff !important;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* For brand/logo */
.navbar .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar .navbar-brand img {
    max-height: 45px;
}

/*** Hero Header ***/
.hero-header {
    width: 100vw;
    height: 100vh;
    background: url("{{ asset('img/hero.png') }}") no-repeat center center;
    background-size: cover;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Overlay for readability */
.hero-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-header .container {
    position: relative;
    z-index: 2;
}

/* Force text color */
.hero-title,
.hero-text {
    color: #fff !important; /* White text */
}

/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
}

.service-item:hover {
    box-shadow: none;
    border-color: var(--primary); /* Orange border */
}

.service-item .service-icon,
.service-item .service-btn {
    margin: -1px 0 0 -1px;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--secondary); /* Brownish background */
    border-radius: 5px 0;
    transition: .5s;
}

.service-item .service-btn {
    margin: -1px -1px 0 0;
    border-radius: 0 5px;
    opacity: 0;
}

.service-item:hover .service-btn {
    opacity: 1;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transform: scale(.85);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: none;
    border-color: var(--primary); /* Orange border */
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-item img {
    width: 50px;
    height: 50px;
}

.testimonial-carousel .owl-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary); /* Brownish text instead of orange */
    border: 1px solid var(--primary); /* Orange border */
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--hover); /* Orange hover background */
}

/*** Team ***/
.team-item {
    position: relative;
    padding: 30px;
    text-align: center;
    transition: .5s;
    z-index: 1;
}

.team-item::before,
.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 40%;
    top: 0;
    left: 0;
    border-radius: 5px;
    background: var(--light);
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
    z-index: -1;
}

.team-item::after {
    top: auto;
    bottom: 0;
}

.team-item:hover::before,
.team-item:hover::after {
    background: var(--secondary); /* Brownish background */
}

.team-item h5,
.team-item p {
    transition: .5s;
}

.team-item:hover h5,
.team-item:hover p {
    color: #FFFFFF;
}

.team-item img {
    padding: 15px;
    border: 1px solid var(--primary); /* Orange border */
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--secondary); /* Brownish text instead of orange */
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    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: 14px;
    border-top: 1px solid rgba(255, 255, 255, .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;
}

/* Zigzag Pattern */
.zigzag-pattern .col-md-6 {
    margin-bottom: 20px;
}
.zigzag-pattern .offset-md-6 {
    margin-left: 50%;
}
@media (min-width: 768px) {
    .zigzag-pattern .col-md-6:nth-child(odd) {
        clear: left;
    }
    .zigzag-pattern .col-md-6:nth-child(even) {
        margin-left: 50%;
    }
}

/* Timeline Zigzag */
.timeline-zigzag {
    position: relative;
    padding: 20px 0;
}
.timeline-item {
    position: relative;
    padding: 20px;
    width: 45%;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 55%;
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 10px;
    height: 10px;
    background: var(--primary); /* Orange dot */
    border-radius: 50%;
    z-index: 1;
}
.timeline-item.left::before {
    left: -5px;
}
.timeline-item.right::before {
    right: -5px;
}
.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    bottom: -20px;
    width: 2px;
    background: var(--secondary); /* Brownish line */
}
.timeline-item.left::after {
    left: -2px;
}
.timeline-item.right::after {
    right: -2px;
}
.timeline-item:last-child::after {
    display: none;
}
.timeline-date {
    color: var(--secondary); /* Brownish text instead of orange */
    font-weight: bold;
    margin-bottom: 10px;
}
.timeline-content {
    position: relative;
    z-index: 2;
}

/* Client Counts Section */
.client-counts .col-md-4 {
    text-align: center;
    padding: 20px;
    background: var(--light);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Business Segments Section */
.business-segment {
    padding: 20px;
}
.business-segment .card {
    background: var(--light);
    border: 1px solid var(--primary); /* Orange border */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: .5s;
}
.business-segment .card:hover {
    background: var(--secondary); /* Brownish background */
    color: #FFFFFF;
}
.business-segment .card h5 {
    color: var(--secondary); /* Brownish text instead of orange */
    transition: .5s;
}
.business-segment .card:hover h5 {
    color: #FFFFFF;
}

/* Credit Life Insurance Section */
.credit-life-insurance .card {
    background: var(--light);
    border: 1px solid var(--primary); /* Orange border */
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}
.credit-life-insurance .card h6 {
    color: var(--secondary); /* Brownish text instead of orange */
    margin-bottom: 10px;
}
.credit-life-insurance .card p {
    margin: 0;
}

/* Life Corporate Segment Section */
.life-corporate-segment .card {
    background: var(--light);
    border: 1px solid var(--primary); /* Orange border */
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.life-corporate-segment .card h6 {
    color: var(--secondary); /* Brownish text instead of orange */
    margin-bottom: 10px;
}

/* Corporate Non-Life Products Section */
.corporate-non-life-products .card {
    background: var(--light);
    border: 1px solid var(--primary); /* Orange border */
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}
.corporate-non-life-products .card h6 {
    color: var(--secondary); /* Brownish text instead of orange */
    margin-bottom: 10px;
}
.corporate-non-life-products .card p {
    margin: 0;
}