/* public/css/app.css */

/* Include padding and border inside width/height */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #004080;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 32px;
}

/* NAVBAR STYLING */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* LEFT SIDE: Logo and Company Name */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* RIGHT SIDE: Navigation Menu */
.nav-right {
    /* make nav-right a positioning context for JS/CSS alignment */
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-right a:hover {
    color: #007bff;
}

/* Optional: Responsive tweak */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-right {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .nav-right a {
        margin: 5px 0;
    }
}

main {
    flex: 1;
    padding: 40px;
}

footer {
    text-align: center;
    padding: 5px;
    margin-top: 40px;
    background-color: #eee;
    color: #555;
    font-size: 14px;
}

h2 {
    color: #004080;
}

ul {
    padding-left: 20px;
}

p {
    line-height: 1.6;
}

/* Group burger and nav-right */
.nav-toggle {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Burger icon default (hidden on desktop) */
.burger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
}

/* RESPONSIVE STYLES (burger & nav dropdown) */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-right {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #f8f9fa;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 10;
    }

    .nav-right.active {
        display: flex;
    }

    .nav-right a {
        margin: 10px 0;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .nav-toggle {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}

/* background / dynamic */
.dynamic-bg {
    position: relative;
    overflow: hidden;
    min-height: 100vh; /* full height */
}

.dynamic-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/background.jpg') no-repeat center center/cover;
    transform: scale(1);
    animation: zoomInBg 15s infinite alternate ease-in-out;
    z-index: -1; /* behind content */
}

@keyframes zoomInBg {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

@media (max-width: 992px) {
    .content-box {
        width: 95%;
    }
}

p, li {
    font-size: 16px;
}

@media (max-width: 600px) {
    p, li {
        font-size: 14px;
    }
}

/*SERVICES CARD (unchanged)*/
.service-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.service-card img {
    display: block;
    margin: 0 auto 15px;
    width: 50%;
    height: auto;
    border-radius: 8px;
}

.service-card:hover {
    transform: scale(1.01);
}

/* responsive image helper */
.responsive-img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* content box */
.content-box {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 10px;
    max-width: 960px;
    margin: 40px auto;
}

.logo {
    max-width: 100%;
    height: auto;
    width: 250px;
}

@media (max-width: 768px) {
    .logo {
        width: 150px;
    }
}

/*Organization Chart CSS*/
.orgchart-container {
    text-align: center;
}

.orgchart-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ======== DROPDOWN (robust) ======== */

/* container for a dropdown item (keep inline so it sits with other links) */
.dropdown {
    position: relative;   /* used for fallback CSS; JS will refine placement on desktop */
    display: inline-block;
}

/* the clickable parent */
.dropbtn {
    cursor: pointer;
    display: inline-block;
    padding: 6px 4px; /* small padding so the link is narrow; adjust if needed */
    text-decoration: none;
    color: #333;
}

/* content box: default hidden */
.dropdown-content {
    display: none;
    position: absolute;     /* desktop: positioned absolutely (JS sets exact left/top & width) */
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    z-index: 999;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    /* stack layout */
    display: flex;
    flex-direction: column;
    white-space: nowrap;     /* keeps text on one line */
}

/* each link fills the dropdown width */
.dropdown-content a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    box-sizing: border-box;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* Desktop hover shows it (CSS fallback) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: flex;
    }
}

/* Mobile: we change dropdown to static flow so it fits inside the mobile nav menu */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
    }

    .dropdown.active .dropdown-content {
        display: flex;
    }
}

/* end dropdown */
