html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.grid-container {
    display: grid;
    height: 100vh;
    grid-template-areas:
        "header header header header header header"
        "menu main main main right right"
        "menu footer footer footer footer footer";
    grid-template-rows: 80px 1fr 60px;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    background-color: #dfdfdf;
    padding: 10px;
    box-sizing: border-box;
}

.grid-container > div {
    text-align: center;
    border-radius: 6px;
    border: 1px solid black;
    background-color: white;
    padding: 10px;
}

/* Grid area definitions */
.item1 { grid-area: header; }
.item2 { grid-area: menu; }
.item3 { grid-area: main; }
.item4 { grid-area: right; }
.item5 { grid-area: footer; }

/* Menu styling */
.menu {
    background-color: #2c3e50;
    height: 100%;
    padding: 0;
    margin: 0;
    border-radius: 6px;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu ul li {
    position: relative;
}

.menu ul li a {
    display: block;
    color: white;
    padding: 12px;
    text-decoration: none;
    text-align: left;
    /*transition: background 0.3s;*/
}

.menu ul li a:hover {
    background-color: #34495e;
}
/* Active (highlighted) link */
.menu a.active {
    background-color: #1abc9c;
    color: #fff;
    font-weight: bold;
}

/* Dropdown menu */
.menu ul li.dropdown > a::after {
    /*content: "";*/
}

.menu ul li .dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #34495e;
    min-width: 160px;
    border-radius: 0 6px 6px 0;
    z-index: 1;
}

.menu ul li .dropdown-content li a {
    color: #fff;
    padding: 10px;
    border-bottom: 1px solid #2c3e50;
}

.menu ul li .dropdown-content li a:hover {
    background-color: #3d566e;
}

/* Show dropdown on hover */
.menu ul li.dropdown:hover .dropdown-content {
    display: block;
}
/* ===== Header / Top Navigation Bar ===== */
.site-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 0 20px;
    border-radius: 6px;
    height: 100%;
    box-sizing: border-box;
}

.site-header .logo {
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
}

.top-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.top-nav ul li {
    margin-left: 20px;
}

.top-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 2px;
}

.top-nav ul li a:hover {
    color: #1abc9c;
    border-bottom: 2px solid #1abc9c;
}

/* ===== About Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: left;
}

.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #444;
}

.close:hover {
    color: #1abc9c;
}

/* ===== Responsive (Android / mobile) adjustments ===== */
@media (max-width: 768px) {
    .grid-container {
        grid-template-areas:
            "header"
            "menu"
            "main"
            "right"
            "footer";
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 8px;
        height: auto;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        text-align: left;
    }

    .top-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .top-nav ul li {
        margin: 5px 0;
    }

    .menu {
        height: auto;
    }

    .menu ul li a {
        padding: 10px;
    }

    .video-container {
        padding-bottom: 56.25%;
        margin-top: 10px;
    }

    iframe, video {
        height: auto;
    }

    body {
        font-size: 16px;
    }
}

