﻿* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-weight: bold;
    font-size: 1.3rem;
    color: #222;
}

.logo img {
    height: 90px;       
    width: auto;        
    display: block;     
}

nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin-right: 120px;
}

nav a {
    color: #555555;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

    nav a:hover, nav a.active {
        color: #0044aa;
        border-bottom: 2px solid #0044aa;
        padding-bottom: 4px;
    }

.hero {
    text-align: center;
    padding: 60px 0 30px 0;
    background-color: #ffffff;
}

    .hero h1 {
        font-size: 3.5rem;
        font-weight: 400;
        margin: 0 0 10px 0;
        color: #111111;
    }

.subtitle {
    font-size: 1.5rem;
    color: #b8c412;
    margin-bottom: 30px;
}

.highlight {
    background-color: #e2f42a;
    color: #ffffff;
    padding: 2px 10px;
    font-weight: bold;
    display: inline-block;
}

.description {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555555;
}

.page-main {
    padding: 40px 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .card h3, .card h4 {
        margin-top: 0;
        color: #222;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 8px;
    }

footer {
    background-color: #222222;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    margin-top: 60px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    background: none !important;
    border: none !important;
    outline: none;
    padding: 0;
    z-index: 101;
    -webkit-appearance: none;
    appearance: none;
}

    .menu-toggle .bar {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #333333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

.table-minister-preview {
    width: 110px;
    height: 140px;
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    border: 2px solid #ccd4dc;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.table-minister-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.summary-table td {
    vertical-align: middle;
    padding: 10px 15px;
}

.hymne-container {
    text-align: center;
    margin: 30px auto;
    max-width: 600px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eef2f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.hymne-credits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 15px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebedf0;
    flex-wrap: wrap;
}

.credit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.credit-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
    margin-bottom: 3px;
}

.credit-name {
    font-size: 1.05rem;
    color: #0044aa;
    font-weight: 600;
}

.hymne-player audio {
    width: 100%;
    max-width: 400px;
    outline: none;
}

.btn-link {
    display: inline-block;
    background-color: #0044aa;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

    .btn-link:hover {
        background-color: #003388;
        transform: translateY(-1px);
    }

    .btn-link:active {
        transform: translateY(0);
    }

@media (max-width: 900px) {
    
    header {
        position: relative !important;
    }

    .nav-container {
        justify-content: space-between;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: flex !important;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 10px 0;
        border-bottom: 2px solid #e0e0e0;
        margin-right: 0 !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 100;
    }

        nav.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        nav a {
            margin: 0 !important;
            font-size: 1.1rem;
            width: 100%;
            text-align: center;
            padding: 15px 0;
            border-bottom: 1px solid #f5f5f5;
        }

            nav a:last-child {
                border-bottom: none;
            }

            nav a:hover, nav a.active {
                border-bottom: 1px solid #0044aa !important;
                padding-bottom: 15px !important;
            }

    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        padding: 40px 15px 20px 15px;
    }

        .hero h1 {
            font-size: 2.2rem;
        }

    .subtitle {
        font-size: 1.2rem;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 10px;
    }

}

@media (max-width: 768px) {

    .government-table,
    .government-table thead,
    .government-table tbody,
    .government-table th,
    .government-table td,
    .government-table tr {
        display: block;
    }

        .government-table thead {
            display: none;
        }

        .government-table tr {
            background: #ffffff;
            border: 1px solid #eef2f5;
            border-radius: 12px;
            margin-bottom: 25px;
            padding: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 12px;
        }

            .government-table tr.president-row {
                background-color: #f4f7fc;
                border-color: #dbe4f3;
            }

        .government-table td {
            padding: 0;
            border-bottom: none;
            text-align: center;
            width: 100%;
        }

            .government-table td:nth-of-type(1) {
                font-size: 1.05rem;
                color: #222;
                font-weight: 700;
                order: 2;
            }

            .government-table td:nth-of-type(2) {
                font-size: 0.95rem;
                color: #0044aa;
                font-weight: 600;
                margin-top: -4px;
                order: 3;
            }

            .government-table td:nth-of-type(3) {
                order: 1;
                margin-bottom: 5px;
                display: flex;
                justify-content: center;
            }

    .table-minister-preview {
        width: 100px;
        height: 133px;
    }
}