/* =========================
   ROOT VARIABLES
========================= */
:root {
    --primary: #3b71b8; /* Blue logo color */
    --secondary: #6fbc4b; /* Gold accent color */
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --scroll-track: #f1f3f8;
    --font-main: 'Poppins', sans-serif;
    --font-alt: 'Roboto', sans-serif;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 15px 35px rgba(13, 42, 105, 0.25);
    --shadow-hover: 0 12px 30px rgba(13, 42, 105, 0.18);
    --overlay-dark: rgba(0, 0, 0, 0.55);
}

/* =========================
   GLOBAL
========================= */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--scroll-track);
}

body {
    font-family: var(--font-main);
}

i {
    color: var(--primary);
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 6px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar a {
    color: var(--primary) !important;
}

.navbar-brand {
    display: flex;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar-nav .nav-link.on {
    font-weight: 700 !important;
}

.nav-logo {
    height: 55px;
    width: auto;
}

.notices-link {
    color: var(--secondary) !important;
}

.notices-dropdown {
    background-color: var(--white);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.notices-dropdown .dropdown-item {
    font-weight: 500;
    padding: 10px 18px;
    transition: all 0.3s ease;
}

.notices-dropdown .dropdown-item:hover {
    background-color: #bbb6b6;
}

.dropdown-toggle::after {
    margin-left: 6px;
}

.modal-backdrop {
    z-index: 1090 !important;
}

.modal {
    z-index: 1100 !important;
}

.navbar.sticky-top {
    z-index: 1020 !important;
}

/* =========================
   HERO
========================= */
.hero {
    background: url('../images/banner.webp') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* =========================
   TITLES
========================= */
.section-title,
.sub-title {
    color: var(--primary);
    font-weight: 700;
}

.sub-title {
    font-size: 1.5rem;
}

/* =========================
   SERVICES
========================= */
.top-section {
    padding-top: 30px;
}

.service-link {
    text-decoration: none;
    color: inherit;
}

.service-card {
    border: 2px solid transparent;
    border-radius: 16px;
    background: var(--white);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
}
.career-form {
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(9, 21, 49, 0.07);
}

.career-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 16px;
}

.career-row-full {
    margin-bottom: 16px;
}

.career-col {
    display: flex;
    flex-direction: column;
}

.req {
    color: red;
}

/* Responsive: stack to single column on mobile */
@media (max-width: 576px) {
    .career-form {
        padding: 24px 18px;
    }

    .career-row {
        grid-template-columns: 1fr;
    }
}
.branch {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-card:hover,
.service-card.service-active {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(18, 59, 156, 0.18);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-points {
    padding: 0;
    margin: 0;
    list-style: none;
}
.btn-primary{
    background-color: var(--primary);
    border: 5px solid var(--primary);
}
.btn-primary:hover{
    background-color: var(--primary);
    border: 5px solid var(--primary);
    box-shadow: var(--shadow-hover);
}
.service-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    line-height: 1.6;
}

.service-modal li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    line-height: 1.6;
}

.service-points li i {
    margin-top: 4px;
    flex-shrink: 0;
}

ul.service-points {
    list-style-type: none;
}

ul.icon {
    list-style-type: none;
}

.icon li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5em;
    color: var(--primary);
}

.service-points li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5em;
    color: var(--primary);
}

.modal-title {
    color: var(--primary);
    font-weight: 700;
}

.branch a {
    color:rgba(0, 0, 0, 0.55);
    text-decoration: none;
}
.service-card h5 {
    font-weight: 600;
}

.service-card p {
    margin-bottom: 0;
}

.service-card i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.service-toggle {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
}

/* =========================
   BRANCH SECTION
========================= */
#our-branches {
    padding: 60px 0;
    background-color: var(--light-bg);
}

#our-branches .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

#our-branches p {
    color: rgba(0, 0, 0, 0.70);
    font-size: 1rem;
    margin-bottom: 40px;
}

#our-branches .branch {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

#our-branches .branch h5 {
    font-weight: 600;
    color: var(--primary);
}
#our-branches i{
    color: var(--primary);
}
#our-branches .branch p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

#our-branches .map-box {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#our-branches .map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================
   TEAM
========================= */
.team-section {
    background: #f9f9f9;
}

.team-member {
    transition: 0.3s ease;
}

.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 15px;
    transition: 0.3s ease;
}

.team-img:hover {
    box-shadow: 0 4px 15px #6fbc4b;
}

/* =========================
   CLIENT
========================= */
#client {
    background: var(--light-bg);
}

#client h2,
#client h3,
#client h4,
#client .section-title {
    color: var(--primary);
    font-weight: 700;
}

#client p {
    font-family: var(--font-alt);
    font-size: 0.95rem;
}

.client-card {
    background: transparent;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-card i {
    color: var(--primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.client-card:hover {
    background: var(--white);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.client-card:hover i {
    transform: scale(1.15);
}

/* =========================
   FOOTER
========================= */
footer {
    background: linear-gradient(135deg, #091531 0%, #0d2b1f 50%, #091531 100%);
    color: #e8f5e9;
    padding: 20px 30px 14px;
    text-align: center;
    border-top: 3px solid var(--secondary); /* your brand green as accent line */
}

footer p.mb-1 {
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.4px;
}

footer .small {
    font-size: 0.76rem;
    color: rgba(232, 245, 233, 0.6);
    margin-bottom: 10px;
}

.social-icons a {
    text-decoration: none;
    font-size: 20px;
    margin: 0 8px;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    color: rgba(255,255,255,0.75);
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(100, 220, 100, 0.5);
}

/* =========================
   CHAT FLOAT
========================= */
.chat-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    border: 2px solid white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-float,
.chat-options {
    z-index: 1000;
}

.chat-float:hover {
    transform: translateY(-8px);
}

.chat-options {
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.chat-option {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 14px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(13, 42, 105, 0.15);
    transition: all 0.3s ease;
}

.chat-option:hover,
.chat-option:hover i {
    color: var(--secondary);
}
.custom-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation (Attract Attention) */
.chat-float.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13,110,253,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(13,110,253,0); }
    100% { box-shadow: 0 0 0 0 rgba(13,110,253,0); }
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60% 60%;
}
/* =========================
   HIGHLIGHT
========================= */
.service-active {
    border: 3px solid var(--primary);
    border-radius: 14px;
    background-color: #f8f9ff;
    box-shadow: 0 12px 28px rgba(18, 59, 156, 0.15);
    color: var(--primary);
    transition: all 0.4s ease;
}

.service-active h5,
.service-active p,
.service-active li,
.service-active i {
    color: var(--primary) !important;
}

/* =========================
   SCROLLBAR (WEBKIT)
========================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scroll-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary), #123b9c);
    border-radius: 10px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .nav-logo {
        height: 42px;
    }

    .hero {
        height: auto;
        padding: 100px 0 60px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .nav-logo {
        height: 38px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .service-card,
    .branch {
        padding: 15px;
    }
}

@media (max-width: 400px) {
    .nav-logo {
        height: 34px;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }
}

/* =========================
   MOBILE LEFT MENU (BLUR)
========================= */
@media (max-width: 991px) {

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Navbar collapse as left drawer */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        max-height: 100vh;
        padding: 6px 20px 20px;
        background: var(--white);
        /* same theme color */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: left 0.35s ease;
        box-shadow: 8px 0 25px rgba(0, 0, 0, 0.35);
        z-index: 9998;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: 100vh;
        -webkit-overflow-scrolling: touch;

    }

    .navbar {
        overflow: visible !important;
        z-index: 9999;
    }

    /* When menu opens */
    .navbar-collapse.show {
        left: 0;
    }

    /* Vertical menu items */
    .navbar-nav {
        overflow: visible !important;
        max-height: none !important;
        flex-direction: column;
        gap: 12px;
    }

    .navbar-nav .nav-link {
        font-size: 1.05rem;
        padding: 10px 0;
        color: var(--primary) !important;
    }

    /* Toggler button fix */
    .navbar-toggler {
        border: none;
        outline: none;
        z-index: 9999;
    }

    /* Dark overlay behind menu */
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 9996;
        /* BELOW menu */
    }

    body.menu-open::after {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-nav .dropdown {
        overflow: visible !important;
        position: relative;
    }

    /* Dropdown menu */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        max-height: none !important;
        overflow: visible !important;
        margin-top: 6px;
    }
      .navbar-collapse .dropdown-menu {
        box-sizing: border-box;
        padding: 6px 0;
    }
    /* Dropdown item color */
    .navbar-collapse .dropdown-item {
        color: var(--primary);
        padding: 8px 12px;
        box-sizing: border-box;
        width: 100%;
        white-space: normal;
        word-break: break-word;
        line-height: 1.5;
    }

    .navbar-collapse .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    /* Ensure dropdown toggle clickable */
    .navbar-collapse .dropdown-toggle {
        pointer-events: auto;
    }
}
