/* ==========================================================================
   Mirza Group - Layout & Typography (front-layout.css)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #FFFFFF;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #3b5998;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Main Site Wrapper
   ========================================================================== */

.site-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    background-color: #fff;
    color: #555555;
    padding: 12px;
    border: 1px solid #C2C2C2;
    border-radius: 5px;
    box-shadow: 0 0 8px #C2C2C2;

    display: flex;
    flex-direction: column;

    min-height: 100vh;
}

/* ==========================================================================
   Main Layout
   Desktop: Sidebar LEFT + Content RIGHT
   Mobile: Content FIRST + Sidebar SECOND
   ========================================================================== */

.main-container {
    display: flex;
    align-items: stretch;

    padding-top: 15px;
    gap: 15px;

    width: 100%;
    min-width: 0;

    flex: 0 0 auto;
}

/* Sidebar width is controlled here only */
.sidebar-area {
    width: 300px;
    flex: 0 0 300px;

    min-width: 0;
    align-self: stretch;
}

/* Main content takes remaining space */
.content-area {
    flex: 1 1 auto;

    width: auto;
    min-width: 0;

    align-self: stretch;
}

/* ==========================================================================
   Main Content Typography
   ========================================================================== */

.section-heading {
    color: #555555;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.welcome-text {
    font-size: 13px;
    line-height: 1.7;
    color: #555555;
    text-align: justify;
    margin-bottom: 25px;
}

/* ==========================================================================
   Responsive Layout - Tablet
   ========================================================================== */

@media screen and (max-width: 991px) {

    .main-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    /* Content comes FIRST */
    .content-area {
        order: 1;
        width: 100%;
        flex: 0 0 auto;
    }

    /* Sidebar comes SECOND */
    .sidebar-area {
        order: 2;
        width: 100%;
        flex: 0 0 auto;
    }
}

/* ==========================================================================
   Responsive Layout - Mobile
   ========================================================================== */

@media screen and (max-width: 576px) {

    .site-wrapper {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;
        padding: 8px;

        border-radius: 0;
        border: none;
        box-shadow: none;

        min-height: 100vh;
    }

    .main-container {
        padding-top: 10px;
        gap: 12px;
    }

    .content-area {
        order: 1;
    }

    .sidebar-area {
        order: 2;
    }
}