/* ==========================================================================
   1. Reset & Global Structure Style
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: #444444;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 980px; /* Legacy container constraints width */
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   2. Navbar Header & Dropdown Setup
   ========================================================================== */
.navbar {
    background-color: #ffffff;
    padding: 25px 0 15px 0;
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.logo-img {
    max-height: 90px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links > li {
    position: relative; /* Context floor for the dropdown menu positioning */
}

.nav-links a {
    font-size: 13px;
    font-weight: bold;
    color: #000000;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom: 2px solid #a3917d;
}

/* Dropdown Menu Box Styling */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    list-style: none;
    min-width: 210px;
    margin-top: 5px;
    display: none; /* Keeps hidden until hovered */
    padding: 5px 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: normal;
    color: #555555;
    text-transform: none;
    text-align: left;
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #a3917d;
    border-bottom: none;
}

/* Toggle visibility on hover state */
.dropdown-wrapper:hover .dropdown-menu {
    display: block;
}

/* ==========================================================================
   3. Main Workspace Split-Column Design (Sidebar & Main content)
   ========================================================================== */
.layout-wrapper {
    display: flex;
    gap: 25px;
    border-top: 1px solid #d3d3d3; /* Legacy separating horizontal bar */
    padding-top: 25px;
    margin-bottom: 60px;
    margin-top: 10px;
}

/* Sidebar Styling */
.sidebar {
    flex: 1;
    max-width: 210px;
    border-right: 1px solid #e8e8e8;
    padding-right: 15px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: #4c83b6;
    text-decoration: underline;
    text-align: right; /* Right alignment per custom legacy aesthetics */
}

.sidebar-menu a:hover {
    color: #2b5882;
}

.sidebar-menu .active-page a {
    background-color: #f4f4f4;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

/* Main Workspace Formatting rules */
.main-content {
    flex: 3;
    padding-left: 10px;
}

.page-title {
    font-size: 23px;
    color: #8c7662; /* Authentic corporate warm charcoal accent color */
    font-weight: normal;
    font-family: Georgia, serif;
    margin-bottom: 20px;
}

.main-content p {
    font-size: 13px;
    color: #333333;
    margin-bottom: 18px;
    text-align: left;
}

/* Square Layout Bullets Configuration */
.content-list {
    margin-top: 15px;
    padding-left: 18px;
    list-style-type: square;
}

.content-list li {
    font-size: 13px;
    color: #333333;
    margin-bottom: 8px;
    text-align: left;
}

/* ==========================================================================
   4. Embedded Components (Image Carousel System)
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 380px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    color: #777777;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 30px;
    z-index: 10;
    user-select: none;
    transition: color 0.2s;
}

.carousel-arrow:hover {
    color: #ffffff;
}

.prev { left: 10px; }
.next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
}

.dot {
    width: 11px;
    height: 11px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #ffffff;
    border-color: #ffffff;
}

/* ==========================================================================
   5. Solid Base Dark Charcoal Footer
   ========================================================================== */
.footer {
    background-color: #333333;
    padding: 40px 0;
    font-size: 12px;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.footer-column p {
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.5;
}

.footer-btn img {
    max-width: 160px;
    height: auto;
    display: block;
}

/* Column 2 inner split block configuration */
.footer-btn-split {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.btn-side img {
    max-width: 110px;
    height: auto;
    display: block;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    font-size: 11px;
    color: #ffffff;
    margin-bottom: 5px;
}

/* Column 3 vertical tracking configurations */
.footer-btn-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.footer-btn-inline img {
    max-width: 140px;
    height: auto;
    display: block;
}

.footer-column a {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   6. Mobile Responsiveness Layout Adapters
   ========================================================================== */
@media (max-width: 820px) {
    .layout-wrapper {
        flex-direction: column;
    }
    .sidebar {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding-right: 0;
        padding-bottom: 15px;
    }
    .sidebar-menu a {
        text-align: left;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .carousel-container {
        height: 250px;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .dropdown-menu {
        right: auto;
        left: 0;
    }
}

/* ==========================================================================
   Homepage Layout Refinements
   ========================================================================== */
.homepage-hero-section {
    border-top: 1px solid #d3d3d3; /* Standard corporate dividing line */
    padding-top: 30px;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center; /* Centers the homepage titles across the map */
}

.homepage-main-title {
    font-size: 26px;
    color: #555555;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

.homepage-sub-title {
    font-size: 14px;
    color: #777777;
    margin-bottom: 10px;
}

.homepage-map-container {
    margin-bottom: 60px;
    overflow: hidden;
}

.homepage-map-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eaeaea;
}

/* Adjusts dropdown placement tracking dynamically */
.nav-links li {
    position: relative;
}