/* -----------------------------------------------------
   VARIABLES
----------------------------------------------------- */
:root {
    --primary: #2a628f;
    --primary-light: #4a8fc2;
    --accent: #e6a243;

    --background: #f8f7f3;
    --text-main: #333;
    --text-muted: #666;

    --radius: 10px;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --max-width: 1100px;

    --font-main: "Inter", "Segoe UI", Arial, sans-serif;
}

/* -----------------------------------------------------
   GLOBAL BASE
----------------------------------------------------- */
body {
    font-family: var(--font-main);
    background: var(--background);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
}

/* -----------------------------------------------------
   NAVIGATION (as you originally had it)
----------------------------------------------------- */
.navbar {
    background: #1f2937;
    padding: 15px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 150px;
    width: auto;
}

/* THIS keeps your menu on the right */
.nav-container nav {
    margin-left: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

/* Hover underline */
.nav-links li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: #ffffff;
    transition: width 0.25s ease-in-out;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Mobile nav */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    .logo img {
        height: 70px;
    }
}

/* -----------------------------------------------------
   HERO
----------------------------------------------------- */
.hero {
    background: url('../images/heroPicture.jpg') center/cover no-repeat;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text {
    color: white;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}
/* -----------------------------------------------------
   FEATURED SECTION
----------------------------------------------------- */
section.featured {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
section.featured article {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* -----------------------------------------------------
   BUTTONS
----------------------------------------------------- */
.btn,
button.cta {
    background-color: #b17c4f;
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover,
button.cta:hover {
    background-color: #9e6543;
}

.btn.secondary {
    background-color: #eae7df;
    color: #333;
}
.btn.secondary:hover {
    background-color: #d6d2c7;
}

/* -----------------------------------------------------
   SUCCESS PAGE
----------------------------------------------------- */
.success-container {
    display: flex;
    justify-content: center;
    padding: 4rem 1rem;
}

.success-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.success-card h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
}
.success-card .subtle {
    color: #777;
    margin-bottom: 1.5rem;
}
.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */
footer {
    background-color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #777;
    margin-top: 2rem;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.news-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-card h3 {
    margin-top: 0;
}

.news-card p {
    line-height: 1.5;
}

form {
    max-width: 700px;
    margin: 0;              /* keeps left aligned */
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Every Django form row */
form p,
.form-group:not(.event-type-group) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
}

/* Labels */
label {
    font-weight: 500;
    margin-bottom: 4px;
}

/* Inputs, selects, textareas */
input:not([type="checkbox"]),
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Buttons */
button,
input[type="submit"] {
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: #2a628f;
    color: white;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
    background: #1f4c6d;
}

.event-checkbox {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #4a90e2;
}

.checkbox-label:hover {
    color: #333;
}

/* EVENT TYPE INLINE RADIOS */

.event-type-group {
    width: 100%;
}

.event-type-group #id_event_type {
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%
}

.event-type-group #id_event_type > div {
    display: flex;
    align-items: center;
}

.event-type-group #id_event_type label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
}

.event-type-group #id_event_type input {
    margin: 0;
}

/* Admin dropdown */
.admin-dropdown {
    position: relative;
}

.admin-toggle {
    color: white;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
}

/* hidden by default */
.admin-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
}

.admin-menu li {
    padding: 0;
}

.admin-menu li a {
    display: block;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
}

.admin-menu li a:hover {
    background: #f0f0f0;
}

/* show on hover */
.admin-dropdown:hover .admin-menu {
    display: block;
}

/* -----------------------------------------------------
   MOBILE TYPOGRAPHY BOOST
----------------------------------------------------- */
@media (max-width: 768px) {

    body {
        font-size: 18px;
        line-height: 1.7;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .nav-links li a {
        font-size: 18px;
    }

    input,
    textarea,
    select {
        font-size: 16px;
    }

    button,
    .btn {
        font-size: 16px;
    }
}

/* Hide hamburger on desktop */
.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 768px) {

    .hamburger {
        display: block;
        margin-left: auto;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {

    .nav-container {
        flex-wrap: wrap;
        align-items: center;
    }

    .hamburger {
        display: block;
        margin-left: auto;
        order: 2;
    }

    .logo {
        order: 1;
    }

    nav {
        display: none;
        width: 100%;
        order: 3;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        right: 20px;
        width: 220px;
        background: #f4f4f4;
        padding: 12px 0px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        z-index: 999;
    }

    nav.active .nav-links li a {
        color: #333;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links li a {
        display: block;
        padding: 10px 15px;
    }

    .navbar {
        position: relative;
    }
}

/* -----------------------------------------------------
   BASIC MODAL LAYOUT (Bootstrap-free)
----------------------------------------------------- */

/* -----------------------------------------------------
   MODAL OVERLAY
----------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Show modal */
.modal-overlay.show {
    display: flex;
}

/* -----------------------------------------------------
   MODAL BOX
----------------------------------------------------- */
.modal-box {
    background: white;
    width: 90%;
    max-width: 480px;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modal-close {
    border: none;
    background: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-delete-btn {
    display: inline-block;
    background: #c0392b;
    padding: 0.6rem 1rem;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 1rem;
}