﻿/*for default page*/
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f7f5;
    color: #1f2933;
}

.page {
    width: 100%;
    min-height: 100%;
}

/* HEADER */
.hero {
    /*height: 31.56vw;*/
    height: 20.56vw;
    min-height: 105px;
    max-height: 559px;

    background-image:
        url('/images/bannerhome-optimized.jpg');

    background-color: #063b16;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: #fff;
}

/* .hero:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 300px;
    background: #063b16;
    opacity: 0.72;
    filter: alpha(opacity=72);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 55px;
}

.hero-content h1 {
    margin: 0;
    font-size: 40px;
    font-weight: bold;
    text-shadow: 2px 3px 5px #000000;
}

.hero-content h2 {
    margin: 12px 0;
    font-size: 62px;
    font-weight: bold;
    color: #93ff7e;
    text-shadow: 2px 4px 6px #000000;
}

.hero-content p {
    margin: 5px 0;
    font-size: 18px;
} */

/* NAVIGATION */
.nav-bar {
    background: #008f24;
    text-align: center;
    min-height: 55px;
    box-shadow: 0 4px 10px #cccccc;
}

.nav-bar a {
    display: inline-block;
    color: #ffffff;
    padding: 18px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.nav-item {
    display: inline-block;
}

.nav-dropdown {
    position: relative;
}

.nav-submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 190px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 18px #9ca3af;
    text-align: left;
    z-index: 1000;
}

.nav-submenu a {
    display: block;
    color: #006b1d;
    padding: 13px 18px;
    white-space: nowrap;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
    display: block;
}

.nav-bar a:hover {
    background: #006f1b;
}

.nav-submenu a:hover {
    background: #e7f8e7;
}

/* MAIN LAYOUT */
.content {
    width: 94%;
    max-width: 1450px;
    margin: 35px auto;
}

.top-section {
    display: flex;
    align-items: stretch;
    gap: 35px;
}

.left-section {
    display: flex;
    flex: 1 1 62%;
    min-width: 0;
}

.right-section {
    display: flex;
    flex: 0 0 35%;
    flex-direction: column;
    min-width: 0;
}

.events-section {
    width: 100%;
    margin-top: 25px;
}

/* CARDS */
.welcome-card,
.login-card,
.events-card {
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #dce7dc;
    border-radius: 16px;
    box-shadow: 0 8px 24px #d0d0d0;
}

.welcome-card {
    flex: 1;
    padding: 45px;
    background: #ffffff;
}

.welcome-card h2 {
    margin-top: 0;
    color: #006b1d;
    font-size: 32px;
}

.welcome-card p {
    font-size: 19px;
    line-height: 1.7;
}

.welcome-card h3 {
    margin-top: 40px;
    color: #d61f1f;
    font-size: 27px;
}

.reminder {
    font-weight: bold;
}

/* HELP */
.help-box {
    background: #eaffcf;
    border-left: 6px solid #008f24;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    color: #004aad;
    font-style: italic;
}

.help-box input,
.help-box img {
    float: left;
    margin-right: 10px;
}

.help-box span {
    line-height: 34px;
}

/* LOGIN */
.login-card,
.events-card {
    padding: 24px;
    margin-bottom: 25px;
}

#upLogin {
    display: flex;
    flex: 1;
}

#upLogin .login-card {
    flex: 1;
    margin-bottom: 0;
}

.events-section .events-card {
    margin-bottom: 0;
}

.login-card h3,
.events-card h3 {
    margin-top: 0;
    color: #006b1d;
    font-size: 24px;
}

.login-card label {
    display: block;
    margin-top: 13px;
    margin-bottom: 6px;
    font-weight: bold;
}

.input-control {
    width: 96%;
    height: 38px;
    padding: 7px 10px;
    border: 1px solid #b8c7bd;
    border-radius: 7px;
    font-size: 15px;
}

.login-button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #008f24;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-button:hover {
    background: #006f1b;
}

.error-message {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.forgot-link {
    display: block;
    margin-top: 14px;
    color: #0057d9;
    text-decoration: none;
    font-style: italic;
}

/* EVENTS TABLE */
.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.modern-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modern-grid th {
    background: #006b1d;
    color: white;
    padding: 10px;
    text-align: left;
}

.modern-grid td {
    padding: 10px;
    border-bottom: 1px solid #d9e5d9;
}

.modern-grid tr:hover {
    background: #e7f8e7;
}

/* FOOTER */
.footer {
    clear: both;
    background: #003d14;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

/* RESPONSIVE */
@media screen and (max-width: 950px) {
    .top-section {
        display: block;
    }

    .left-section,
    .right-section {
        display: block;
        width: 100%;
    }

    .right-section {
        margin-top: 25px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content h2 {
        font-size: 42px;
    }

    .nav-bar a {
        padding: 14px 18px;
    }
}

@media screen and (max-width: 520px) {
    .hero {
        min-height: 96px;
    }
}

/* ===============================
   CHIEF MESSAGE POPUP
================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal-content {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.modal-image {
    width: 60%;
    height: 60%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: #ffffff;
    color: #333;

    font-size: 32px;
    font-weight: bold;

    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,.4);
}

.modal-close:hover {
    background: #f0f0f0;
}

@media (max-width:768px) {

    .modal-content {
        width: 98%;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

.modal-overlay {
    text-align: center;
}
