/* Core Grid Engine Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    display: flex; /* Side-by-side alignment framework */
    min-height: 100vh;
    overflow-x: hidden;
}

/* 1. Left Sidebar structural component */
.sidebar {
    width: 280px;
    background-color: #1e293b;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    border-right: 1px solid #334155;
}

.sidebar-branding {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #334155;
}

/* Sidebar Branding Clickable Link Settings */
.sidebar-branding-link {
    text-decoration: none; /* Removes automatic browser underline decoration */
    color: inherit;        /* Retains clean white typography layout values */
    display: block;        /* Expands clickable box boundary size across area */
}

.sidebar-branding-link:hover .site-name {
    color: #007bff;        /* Subtle blue text highlight color shift when hovered */
    transition: color 0.2s ease;
}

.logo-box {
    font-size: 24px;
}

.site-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.menu-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding: 10px 24px 5px 24px;
    font-weight: 700;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 24px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover {
    background-color: #334155;
    color: #ffffff;
}

.sidebar-menu li a.active {
    background-color: #007bff;
    color: #ffffff;
    font-weight: 500;
}

/* 2. Main content area space constraint configuration */
.main-workspace {
    flex: 1;
    margin-left: 280px; /* Offset spacing matching sidebar boundary precisely */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar sitting next to the sidebar */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.nav-item:hover {
    color: #007bff;
}

/* Services dropdown functionality */
.dropdown {
    position: relative;
}

.arrow {
    font-size: 9px;
    margin-left: 3px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: #334155;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    color: #007bff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Content Area Configuration Split */
.content-body {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Top Section: Documentation and status check area */
.top-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.text-block h1 {
    color: #0f172a;
    font-size: 26px;
    margin-bottom: 12px;
}

.text-block p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 20px;
}

button {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Lower Section: Multi-card structure grid */
.lower-section {
    width: 100%;
}

.image-grid {
    display: flex;
    gap: 24px;
}

.img-card {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.img-card:hover {
    transform: translateY(-2px);
}

.media-placeholder {
    background-color: #cbd5e1;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    color: #0f172a;
    font-size: 16px;
    margin-bottom: 8px;
}

.card-info p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

/* Footnotes layout alignment correction */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 20px 40px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 24px;
}

.footer-links a:hover {
    color: #007bff;
}

/* Mobile viewport layout engine handling transformation */
/* Mobile Viewport Layout Override Rules */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }
    
    /* Converts sidebar to a clean top banner block */
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #334155;
    }

    .sidebar-branding {
        justify-content: center;
        padding: 15px;
    }

    /* Arranges the dashboard list items cleanly sideways on mobile devices */
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
        gap: 5px;
    }

    .menu-category {
        display: none; /* Hides structural category tags on mobile layouts for space */
    }

    .sidebar-menu li a {
        padding: 8px 16px;
        border-radius: 4px;
    }

    /* Adjusts top main area alignment offset to match layout stacking change */
    .main-workspace {
        margin-left: 0;
    }
    
    .navbar {
        justify-content: center;
        padding: 0 20px;
    }

    /* Resolves card positioning parameters instantly */
    .image-grid {
        flex-direction: column;
        gap: 20px;
    }
}


