/* =========================================================
   MOLDOVA eVISA — Home Page (index.php)
   ========================================================= */

/* ---------- Reset ---------- */
html, body, div, span, h1, h2, h3, h4, h5, h6, p,
a, img, ul, li, form, label, input, table, tr, td, th, button {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }

* { box-sizing: border-box; }

/* =========================================================
   BASE
   ========================================================= */
html {
    height: 100%;
}

body {
    font: 12px/1.3 Arial, Helvetica, sans-serif;
    background: #fff;
    color: #333;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;      /* Keep the body at least viewport height */
}

/* =========================================================
    PAGE WRAPPER — centered page container
   ========================================================= */
.page-wrapper {
    background: #fff;
    min-height: 100%;
    width: 960px;
    max-width: 100%;
    margin: 0 auto;
    
}

/* =========================================================
   HEADER
   ========================================================= */
#header-wrapper {
    width: 100%;
    background: #2f65a7;
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: auto;
    min-height: 100px;
}

#header-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* ---- Fallback header when the image is unavailable ---- */
.default-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px;
    background: linear-gradient(135deg, #2f65a7 0%, #1e4c86 100%);
    min-height: 120px;
    color: #fff;
}

.default-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.default-header-emblem {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.default-header-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.default-header-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-line-1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}

.title-line-2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.default-header-right {
    text-align: right;
    flex-shrink: 0;
}

.default-header-right .flags {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.default-header-right .flags span {
    font-size: 20px;
    line-height: 1;
}

.visa-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.visa-text {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1;
}

.moldova-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 4px;
    margin-top: 2px;
}

/* =========================================================
    NAVBAR — sizing and single-line layout
   ========================================================= */
#horizontal-menu {
    display: flex;
    background: #2f65a7;
    padding: 0;
    margin: 0;
    width: 100%;
    flex-wrap: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    align-items: stretch;
}

/* ---- Container for each navigation item ---- */
#horizontal-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

#horizontal-menu li:last-child {
    border-right: none;
}

/* =========================================================
    Navigation item widths (total 100%)
   ========================================================= */
#horizontal-menu li.menu-color1 { flex: 0 0 11%; }   /* START */
#horizontal-menu li.menu-color2 { flex: 0 0 17%; }   /* DO I NEED A VISA? */
#horizontal-menu li.menu-color3 { flex: 0 0 13%; }   /* APPLY NOW */
#horizontal-menu li.menu-color4 { flex: 0 0 19%; }   /* CONTINUE APPLICATION */
#horizontal-menu li.menu-color5 { flex: 0 0 27%; }   /* CHECK YOUR APPLICATION STATUS */
#horizontal-menu li.menu-color6 { flex: 0 0 13%; }   /* CHECK VISA */

/* =========================================================
    Colored bars above each navigation item
   ========================================================= */
#horizontal-menu .nav-color {
    display: block;
    width: 95%;
    height: 8px;                          /* Bar height */
    flex-shrink: 0;
    margin: 14px auto 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
}

/* =========================================================
    Navigation bar colors
   ========================================================= */
.c1 { background: #f5c234; }              /* START — yellow */
.c2 { background: #7d2ae8; }              /* DO I NEED A VISA? — purple */
.c3 { background: #A9C33B; }              /* APPLY NOW — light green */
.c4 { background: #48c3d1; }              /* CONTINUE APPLICATION — cyan */
.c5 { background: #c1272d; }              /* CHECK YOUR APPLICATION STATUS — dark red */
.c6 { background: #f5c234; }              /* CHECK VISA — yellow */

/* =========================================================
    Navigation text — single-line layout
   ========================================================= */
#horizontal-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 4px;                        /* Space below the color bar */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.3px;
    min-height: 46px;
    flex: 1;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
}

#horizontal-menu li a:hover {
    background: #1e4c86;
}

/* =========================================================
    Override legacy menu-color classes
   ========================================================= */
#horizontal-menu li.menu-color1,
#horizontal-menu li.menu-color2,
#horizontal-menu li.menu-color3,
#horizontal-menu li.menu-color4,
#horizontal-menu li.menu-color5,
#horizontal-menu li.menu-color6 {
    background: transparent !important;
}


/* =========================================================
   BODY WRAPPER
   ========================================================= */
#body-wrapper {
    overflow: hidden;
    padding: 20px 10px;
    margin: 0 0 18px;
    display: flex;
    align-items: flex-start;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
#sidebar {
    overflow: hidden;
    width: 200px;
    flex-shrink: 0;
    min-height: 10px;
}

.sidebar-item {
    border: 1px solid #295ea9;
    padding: 5px 5px 5px 10px;
    border-left-color: #295ea9;
    border-left-width: 15px;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #222;
    line-height: 1.3;
}

.sidebar-item a {
    margin-top: 5px;
    width: 98%;
    background-color: #3c79c1;
    color: #fff;
    display: block;
    text-align: center;
    padding: 3px;
    text-decoration: none;
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.25;
}

.sidebar-item a:hover {
    background-color: #2f65a7;
}

/* =========================================================
   CONTENT
   ========================================================= */
#content {
    overflow: hidden;
    padding-left: 20px;
    flex: 1;
}

.page-title-content {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    color: #222;
    border-bottom: 1px dashed #295ea9;
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: inline-block;
    width: 100%;
    font-weight: normal;
}

/* =========================================================
    INFORMATION MENU — with document icons
   ========================================================= */
.meniu-info li {
    display: block;
    padding: 2px 2px 8px 32px;
    margin: 0 0 4px 0;
    line-height: 18px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    min-height: 24px;
    position: relative;
    background: none;
}

.meniu-info li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'><rect x='1' y='1' width='22' height='20' fill='%233c79c1' rx='1'/><rect x='3' y='3' width='18' height='16' fill='white'/><rect x='3' y='3' width='18' height='3' fill='%233c79c1'/><rect x='5' y='8' width='6' height='6' fill='none' stroke='%233c79c1' stroke-width='1.5'/><rect x='13' y='8' width='8' height='1.5' fill='%233c79c1'/><rect x='13' y='11' width='8' height='1.5' fill='%233c79c1'/><rect x='13' y='14' width='8' height='1.5' fill='%233c79c1'/><rect x='5' y='16' width='16' height='1.5' fill='%233c79c1'/></svg>");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 22px 20px;
}

.meniu-info li a {
    color: #295ea9;
    text-decoration: none;
}

.meniu-info li a:hover {
    text-decoration: underline;
}

/* =========================================================
   FOOTER
   ========================================================= */
#footer-wrapper {
    overflow: hidden;
    background: #FFFFFF;
    border-top: 1px solid #bbb;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6e788c;
}

#footer-left {
    font-family: Arial, Helvetica, sans-serif;
    color: #aeb2b9;
}

#contact-info {
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #6e788c;
}

#contact-info strong {
    display: inline;
    font-weight: normal;
    font-size: 12px;
    line-height: 18px;
    color: #6e788c;
    padding-right: 70px;
}

#contact-info a {
    color: #1020ff;
    text-decoration: none;
    font-size: 14px;
}

#contact-info a:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    body { width: 100%; }

    #body-wrapper {
        flex-direction: column;
        padding: 15px;
    }

    #sidebar {
        width: 100%;
        margin-bottom: 15px;
    }

    #content {
        padding-left: 0;
    }

    #horizontal-menu {
        overflow-x: auto;
    }

    #horizontal-menu li a {
        font-size: 10px;
        padding: 8px 4px;
        white-space: nowrap;
    }

    .default-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 20px;
    }

    .default-header-left {
        flex-direction: column;
        gap: 10px;
    }

    .default-header-emblem {
        width: 70px;
        height: 70px;
    }

    .title-line-1 { font-size: 12px; }
    .title-line-2 { font-size: 11px; }
    .visa-text { font-size: 24px; }
    .moldova-text { font-size: 10px; }

    #footer-wrapper {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}