/* ========================================
   HEADER
======================================== */

.aui-header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15,61,145,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Main Header Container */

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    min-height: 112px;
}

/* ========================================
   LEFT LOGO AREA
======================================== */

.header-brand {
    padding: 0 15px;
}

/* ========================================
   RIGHT SECTION
======================================== */

.header-menu {

    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ========================================
   TOP HEADER
======================================== */

.header-top {

    display: flex;
    align-items: center;
    gap: 15px;

    min-height: 64px;
    padding: 10px 20px;

    border-bottom: none;
}

/* Search */

.search-wrapper {

    flex: 1;
    position: relative;
}

.global-search {

    width: 100%;

    height: 44px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    padding: 0 15px;

    font-size: 14px;
}

/* Country */

.country-select {

    height: 44px;

    min-width: 120px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    padding: 0 10px;
    color: #111827;
    background: #ffffff;
}

.header-account-actions {
    display: flex;
    gap: 15px;
}

/* Buttons */

.btn-login,
.btn-register {

    height: 44px;

    padding: 0 20px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {

    border: 1px solid #d1d5db;
    color: #111827;
    background: #ffffff;
}

.btn-login:hover {

    background: #f3f4f6;
}

.btn-register {

    background: #f97316;
    color: #ffffff;
}

.btn-register:hover {

    background: #ea580c;
}

/* ========================================
   NAVIGATION
======================================== */

.header-nav {
    width: calc(100% - 40px);
    margin: 0 20px;
    background: #123d92;
}

.header-nav ul {

    list-style: none;

    display: flex;
    justify-content: flex-end;

    margin: 0;

    padding: 0 20px 0 0;
}

.header-nav li {

    margin: 0;
}

.header-nav a {

    display: block;

    padding: 14px 18px;

    color: #ffffff;
    text-decoration: none;

    font-weight: 500;

    transition: 0.3s;
}

.header-nav a:hover {

    background: rgba(255,255,255,0.10);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 992px) {

    .header-container {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .header-brand {
        padding: 0 10px;
    }

    .header-top {

        flex-wrap: wrap;
    }

    .search-wrapper {

        width: 100%;
        flex: auto;
    }

    .header-nav ul {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ==========================================
   MODAL
========================================== */

.aui-modal {

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.55);

    z-index: 99999;
}

.aui-modal.active {

    display: flex;

    justify-content: center;
    align-items: center;
}

.aui-modal-content {

    width: 500px;

    max-width: 90%;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.25);
}

.aui-modal-header {

    background: #ffffff;

    color: #123d92;

    padding: 18px 24px;

    border-top: 6px solid #123d92;
    border-bottom: 1px solid #e5e7eb;
}

.aui-modal-header h3 {

    margin: 0;
}

.aui-modal-body {

    padding: 25px;
}

.aui-modal-body h4 {

    margin-bottom: 10px;

    color: #f97316;
}

.aui-modal-body p {

    line-height: 1.7;
}

.aui-modal-footer {

    padding: 20px;

    text-align: right;

    border-top: 1px solid #e5e7eb;
}

.modal-btn {

    background: #0f3d91;

    color: white;

    border: none;

    padding: 10px 20px;

    border-radius: 6px;

    cursor: pointer;
}

.modal-btn:hover {

    background: #0b2f6f;
}

.modal-brand{
    display:flex;
    align-items:center;
    gap:15px;
}

.modal-logo{
    width:70px;
    height:70px;
    object-fit:contain;
    background:#fff;
    border-radius:50%;
    padding:4px;
}

.modal-brand-text {
    min-width: 0;
}

.modal-brand-text h3 {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.modal-brand-name,
.modal-brand-institute {
    color:#123d92;
}

.modal-brand-training {
    color:#f26522;
}

.modal-brand-text p {
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.2;
    color: #475569;
}

@media (max-width: 600px) {
    .aui-modal-header {
        padding: 15px;
    }

    .modal-brand {
        gap: 10px;
    }

    .modal-logo {
        width: 54px;
        height: 54px;
    }

    .modal-brand-text h3 {
        gap: 3px;
        font-size: 13px;
    }

    .modal-brand-text p {
        font-size: 11px;
    }
}
