:root {
    --primary: #2563EB;     /* Indigo Blue */
    --secondary: #F59E0B;   /* Soft Amber */
    --light: #F9FAFB;       /* Snow White */
    --dark: #1E293B;        /* Slate Gray */
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Heebo:wght@300;400;500;600&display=swap');

/* Base Styles */
body {
    font-family: 'Heebo', sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Inter', sans-serif;
}

/* Override Bootstrap Colors */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-light { color: var(--light) !important; }
.text-dark { color: var(--dark) !important; }

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

.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--secondary) !important; }
.border-light { border-color: var(--light) !important; }
.border-dark { border-color: var(--dark) !important; }

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--light) !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    box-shadow: none !important;
}

.btn-primary:focus,
.btn-primary:active:focus {
    box-shadow: none !important;
    outline: none !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: var(--light) !important;
}

.btn-secondary:hover {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
}

.btn-light {
    background-color: var(--light) !important;
    border-color: var(--light) !important;
    color: var(--dark) !important;
}

.btn-light:hover {
    background-color: #f3f4f6 !important;
    border-color: #f3f4f6 !important;
}

.btn-dark {
    background-color: var(--dark) !important;
    border-color: var(--dark) !important;
    color: var(--light) !important;
}

.btn-dark:hover {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
}

/* List Kos Styles */
.kos-item {
    transition: opacity 0.3s ease;
}

.kos-item.hidden {
    opacity: 0;
    display: none;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: var(--light) !important;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:active:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Remove any default focus styles */
.btn:focus,
.btn:active:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Custom Container */
.container-custom {
    padding-left: 0rem;
    padding-right: 0rem;
}

@media (min-width: 992px) {
    .container-custom {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

.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;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.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: 50px;
}

/* Custom button styles */
.square-btn {
    border-radius: 0 !important;
    padding: 8px 20px !important;
    color: white !important;
    font-weight: 500 !important;
    border: none !important;
    box-shadow: none !important;
}

.btn-success {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-success:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

@media (max-width: 992px) {
    .navbar-nav .square-btn {
        display: inline-block;
        width: auto;
        margin: 5px 0;
    }
}

/*** Navbar ***/
.nav-bar {
    position: sticky;
    margin-top: 0;
    padding: 0;
    transition: .5s;
    z-index: 9999;
}

.navbar {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.navbar .navbar-container {
    padding-left: 8rem;
    padding-right: 8rem;
    width: 100%;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
    font-weight: 500;
}

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

.navbar-light .navbar-brand {
    height: 75px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

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

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
}

/*** Header ***/
@media (min-width: 992px) {
    .header {
        margin-top: -120px;
    }
}

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

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

@media (max-width: 768px) {
    .header-carousel .owl-nav {
        left: 25px;
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #DDDDDD;
}

/*** Icon ***/
.icon {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light) !important;
    border-radius: 50px;
    border: 1px dashed var(--primary) !important;
}


/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: skew(20deg);
    z-index: 1;
}

/* banner */
.kos-banner {
    background: url('/home/img/banner.png') center/cover no-repeat, var(--primary);
    min-height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    position: relative;
    margin-top: -75px;
    z-index: 0;
    padding: 100px 0;
}

@media (max-width: 768px) {
    .kos-banner {
        padding-top: 120px;
        padding-bottom: 100px;
    }
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


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

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

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    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 .form-control {
    border-color: rgba(255,255,255,0.5);
}

.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;
}

/* Remove default outline and set primary color for focus */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25); /* Using a translucent version of --primary */
    outline: 0;
}

/* Style for checked radio buttons */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

/* Custom Dropdown Styles */
.dropdown-menu {
    min-width: 280px !important;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
}

/* Desktop Dropdown Styles */
@media (min-width: 992px) {
    .dropdown-menu {
        min-width: 320px !important;
        padding: 0.75rem 0;
    }

    .dropdown-menu .dropdown-item {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    .dropdown-menu .px-3 {
        padding: 1.25rem 1.75rem !important;
    }

    .dropdown-menu .px-3 p {
        font-size: 1.1rem;
    }

    .dropdown-menu .px-3 small {
        font-size: 0.95rem;
    }
}

.dropdown-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #f3f4f6;
}

.dropdown-menu .px-3 {
    padding: 1rem 1.5rem !important;
}

.dropdown-menu .px-3 p {
    font-size: 1rem;
    margin-bottom: 0.25rem !important;
}

.dropdown-menu .px-3 small {
    font-size: 0.875rem;
}
