/* ========================================= */
/* ======= Base Page Styling ======= */
/* ========================================= */

body {
    font-family: Arial, Helvetica, Sans-Serif;
    background-color: #f4f1ec;
    color: #2e2e2e;
    margin: 0;
    padding: 0;
}

/* ========================================= */
/* ======= Header ======= */
/* ========================================= */

.header {
    background-color: #ffffff;
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid #e0d9cf;
}

.header h1 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.header p {
    margin-top: 8px;
    color: #777;
}

/* ========================================= */
/* ======= MAIN NAVIGATION MENU ======= */
/* ========================================= */

#main-menu {
    background-color: #2e2e2e;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left and right sections */
.menu-left,
.menu-right {
    display: flex;
    align-items: center;
}

/* LEFT SIDE MENU */
.menu-left ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-left li {
    position: relative;
    margin-right: 20px;
}

/* Pipe separators for top-level only */
.menu-left > ul > li::before {
    content: "|";
    color: #b8a48c;
    font-weight: bold;
    margin-right: 12px;
}

.menu-left > ul > li::after {
    content: "|";
    color: #b8a48c;
    font-weight: bold;
    margin-left: 12px;
}

/* Remove pipes from dropdown items */
.menu-left .dropdown-content li::before,
.menu-left .dropdown-content li::after {
    content: none;
}

#main-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

#main-menu a:hover {
    color: #b8a48c;
}

/* Dropdown title styling */
.menu-left .drop-title {
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.menu-left .drop-title:hover {
    color: #b8a48c;
}

/* Weekly Modules dropdown */
.menu-left .dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #3a3a3a;
    min-width: 260px;
    z-index: 1000;
}

.menu-left .dropdown-content li {
    display: block;
}

.menu-left .dropdown-content a {
    display: block;
    padding: 10px 14px;
    color: #ffffff;
}

.menu-left .dropdown-content a:hover {
    background-color: #4a4a4a;
}

.menu-left .dropdown:hover .dropdown-content {
    display: block;
}

/* ========================================= */
/* ======= RIGHT SIDE (LOGIN / USER) ======= */
/* ========================================= */

.menu-right {
    gap: 15px;
}

.menu-right a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.menu-right a:hover {
    color: #b8a48c;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
}

/* Create invisible hover buffer */
.user-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
}

.user-dropdown .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0; /* remove any spacing */
    background-color: #3a3a3a;
    min-width: 160px;
    z-index: 1000;
}

.user-dropdown .dropdown-content li {
    display: block;
}

.user-dropdown .dropdown-content a {
    display: block;
    padding: 10px 14px;
    color: #ffffff;
}

.user-dropdown .dropdown-content a:hover {
    background-color: #4a4a4a;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* Avatar */
.user-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #b8a48c;
}

/* ========================================= */
/* ======= Hero Section ======= */
/* ========================================= */

/* ========================================= */
/* ======= Hero Section (Full Width) ======= */
/* ========================================= */

.hero-section {
    position: relative;
    width: 100%;
    height: 65vh; /* controls hero height */
    min-height: 420px;
    max-height: 750px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.92);
    padding: 20px 25px;
    border-radius: 12px;
    max-width: 420px;
}

.hero-overlay h2 {
    margin: 0 0 8px 0;
    font-size: 1.8em;
}

.hero-overlay p {
    margin: 0 0 15px 0;
    color: #555;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-primary {
    background-color: #b8a48c;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #9f8c75;
}

.btn-secondary {
    border: 2px solid #b8a48c;
    color: #b8a48c;
}

.btn-secondary:hover {
    background-color: #b8a48c;
    color: #ffffff;
}

/* ========================================= */
/* ======= Directory Menu ======= */
/* ========================================= */

.directory-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.directory-header h2 {
    margin: 0;
}

.directory-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.directory-menu li {
    display: inline-block;
    position: relative;
}

.directory-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #d6cdc3;
    padding: 5px 0;
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.directory-dropdown-content li {
    display: block;
    padding: 8px 15px;
}

.directory-dropdown-content li a {
    text-decoration: none;
    color: #2e2e2e;
}

.directory-dropdown-content li a:hover {
    background-color: #f1ebe3;
}

.directory-dropdown:hover .directory-dropdown-content {
    display: block;
}

/* ========================================= */
/* ======= Main Content ======= */
/* ========================================= */

.content {
    padding: 30px;
    background-color: #ffffff;
    margin: 30px auto;
    width: 90%;
    max-width: 1100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ========================================= */
/* ======= Tables ======= */
/* ========================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background-color: #f1ebe3;
    padding: 10px;
    text-align: left;
}

td {
    padding: 10px;
}

table, th, td {
    border: 1px solid #d6cdc3;
}

/* ========================================= */
/* ======= Forms ======= */
/* ========================================= */

input[type="text"],
textarea {
    border: 1px solid #ccc;
    padding: 6px;
    width: 250px;
}

input[type="submit"] {
    background-color: #b8a48c;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

input[type="submit"]:hover {
    background-color: #9f8c75;
}

/* ========================================= */
/* ======= Disclaimer Box ======= */
/* ========================================= */

.disclaimer-box {
    background: #f8f6f2; /* soft warm tone */
    max-width: 850px;
    margin: 60px auto 40px auto;
    padding: 26px 32px;
    text-align: center;
    font-size: 0.95em;
    color: #444;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border: 1px solid #e3ddd4;
}

.disclaimer-box p {
    margin: 10px 0;
}

.disclaimer-box em {
    color: #666;
    font-style: italic;
}

/* ========================================= */
/* ======= Footer ======= */
/* ========================================= */

.footer {
    background-color: #eeeeee;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    border-top: 1px solid #d6cdc3;
}

.footer a {
    color: #2e2e2e;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========================================= */
/* ======= Last Modified Text ======= */
/* ========================================= */

.last-modified {
    font-size: 0.9em;
    color: #777777;
    text-align: center;
    margin-top: 15px;
}