/* GENERAL STYLES */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    padding: 20px;
    margin: 20px auto; /* Centers the container */
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 85%; /* Adjust as a general max-width, override for smaller form containers if needed */
}
/* HEADER & NAVIGATION */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-color: #004080;
    color: white;
    padding: 15px 30px;
}
nav {
     flex-shrink: 0;
     max-width: 500px;
}

.nav-container {
  flex-grow: 1;
}


nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    padding: 0;
    margin: 0 15px;
}

nav ul li a,
.dropbtn {
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* DROPDOWN MENU */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    color: #004080;
    min-width: 150px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #004080;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

/* FORM STYLING */
form {
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* BUTTON STYLING */
.btn {
    display: inline-block;
    background-color: #004080; /* Dark blue */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #002060; /* Slightly darker on hover */
}


button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
}

button:hover {
    background-color: #002060;
}

/* TABLE STYLING */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

th {
    background-color: #004080;
    color: white;
}

/* ADVERTISEMENT STYLING */
.ad-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}

.ad-box {
    width: 100%;
    max-width: 350px;
    text-align: center;
    background: white;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 15px;
}

.ad-box img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px;
    background-color: #004080;
    color: white;
    margin-top: 30px;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    .ad-box {
        width: 90%;
    }
    .container{
        max-width: 85%;
    }
}

h2 {
    text-align: center;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full viewport height */
}

main {
    flex: 1; /* This forces the main content to grow and push the footer down */
}
.logo {
    height: 100px;
}
.logo-container {
  flex-shrink: 0;
}

.layoutTable {
  border-collapse: collapse;
  border: none;
}

.layoutTable td {
  border: none;
  box-shadow: none;
}

.layoutTable .first,
.layoutTable .second,
.layoutTable .third {
  border: none;
  box-shadow: none;
}

.layoutTable th{
    text-align: center;
    background-color: green;
}

textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.text-center {
    text-align: center;
}


