/* =========================
   Root variables
   ========================= */
:root {
    --main-color: #007583;
    --color_product: #ffecaa;
    --text-main-color: #ffb71b;
    --primary-color: #007583;
    --footer-height: 140px; /* default */
    --header-height: 80px;
}

/* =========================
   Base styles
   ========================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    /*margin-bottom: var(--footer-height);*/
    height: 100%;
    background: #f8f9fa;
}

html, body {
    padding: 0;
}

/* =========================
   Responsive font-size
   ========================= */
@media (min-width: 576px) {
    html {
        font-size: 14px;
    }

    :root {
        --footer-height: 120px;
    }
    /* sm */
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    :root {
        --footer-height: 80px;
    }
    /* md */
}

@media (min-width: 992px) {
    :root {
        --footer-height: 80px;
    }
    /* lg */
}

@media (min-width: 1200px) {
    :root {
        --footer-height: 80px;
    }
    /* xl */
}

/* =========================
   Header & Footer
   ========================= */
header.fixed-top {
    height: var(--header-height);
    z-index: 1030;
}

footer.fixed-bottom {
    height: var(--footer-height);
    z-index: 1030;
}

/* =========================
   Main content
   ========================= */
main.content {
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    height: 100vh;
    overflow-y: auto;
}

/* =========================
   Buttons & forms
   ========================= */
.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-check {
    text-align: left;
}

/* =========================
   Header info section
   ========================= */
.header-info {
    background: linear-gradient(135deg, #037683 0%, #025e63 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid #ffeb3b;
}

    .header-info .main-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .header-info .subtitle {
        font-size: 20px;
        margin-bottom: 15px;
        font-weight: 500;
    }

    .header-info .content-box {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 15px;
        margin: 10px auto;
        max-width: 900px;
        text-align: left;
        border-left: 4px solid #ffeb3b;
    }

    .header-info .mission-item {
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.4;
    }

        .header-info .mission-item strong {
            color: #ffeb3b;
        }

    .header-info .institute {
        font-size: 20px;
        font-weight: bold;
        margin-top: 10px;
        color: #ffeb3b;
        text-transform: uppercase;
    }

/* =========================
   Menu section
   ========================= */
.menu-section {
    padding: 30px 0;
    background-color: #f8f9fa;
}

.menu-title {
    text-align: center;
    margin-bottom: 30px;
    color: #037683;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 auto;
    max-width: 1000px;
}

/* =========================
   Cards
   ========================= */
.menu-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .menu-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #037683, #025e63);
    }

    .menu-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        border-color: #037683;
    }

    .menu-card i {
        font-size: 32px;
        color: #037683;
        margin-bottom: 15px;
    }

    .menu-card .card-number {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #037683;
        color: white;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
    }

/* =========================
   Titles with arrow
   ========================= */
.title-with-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
}

    .title-with-arrow h3 {
        font-size: 20px;
        color: #037683;
        margin-bottom: 0;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
    }

.arrow-icon {
    color: #037683;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    margin-top: 2px;
}

    .arrow-icon:hover {
        color: #025e63;
        transform: scale(1.1);
    }

/* =========================
   Simple cards & hidden select
   ========================= */
.hidden-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.simple-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .simple-card:hover {
        text-decoration: none;
        color: inherit;
    }

    .simple-card h3 {
        font-size: 20px;
        color: #037683;
        margin-bottom: 0;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
    }

/* =========================
   Responsive adjustments
   ========================= */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header-info .main-title {
        font-size: 20px;
    }

    .header-info .subtitle {
        font-size: 14px;
    }

    .header-info .content-box {
        padding: 12px;
    }

    .menu-card {
        padding: 15px;
        min-height: 100px;
    }

    .title-with-arrow h3,
    .simple-card h3 {
        font-size: 15px;
    }

    .arrow-icon {
        font-size: 11px;
    }
}
