/* ==========================================================================
   STYLE INDEX
   ==========================================================================
   1. VARIABLES & RESET ......... CSS Variables, resets, html/body
   2. TYPOGRAPHY ................ Headings, base text styles
   3. HEADER & NAVIGATION ....... Logo, nav-bar, auth buttons, mobile menu
   4. HOME / HERO ............... Hero banner, feature cards, about section
   5. PRODUCTIONS & FILTERS ..... Search bar, card grid, iframe wrappers
   6. FORMS & AUTH .............. Login, register, submission forms
   7. TIMELINE .................. Horizontal timeline slider & events
   8. FOOTER .................... Site footer & credits
   9. MEDIA QUERIES ............. Responsive breakpoints (768px, 600px)
   ========================================================================== */


/* ==========================================
   1. VARIABLES & BASE SETUP
   ========================================== */
:root {
    --red: #931f1d;
    --white: #eff1f3;
    --beige: #f0e8df;
    --yellow: #deb841;
    --black: #08090A;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Calibri', sans-serif;
}

html {
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-secondary);
    background: linear-gradient(rgba(239, 241, 243, 0.94), rgba(239, 241, 243, 0.94)), 
                url('../images/JHC.png') center/500px no-repeat fixed;
    background-color: var(--white);
}

main#content {
    flex: 1 0 auto;
    padding: 30px 20px 50px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================
   2. HEADER & BRANDING
   ========================================== */
.header-container {
    background-color: var(--white);
    width: 100%;
}

.brand-area {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    box-sizing: border-box;
}

.logo-link {
    display: flex;
    align-items: center;
}

#logo {
    height: 70px;
    width: auto;
    margin-right: 18px;
}

.brand-title h1 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: bold;
    color: var(--red);
    margin: 0;
    line-height: 1;
}

.brand-title span {
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

/* ==========================================
   3. NAVIGATION BAR & AUTH BUTTONS
   ========================================== */
.nav-bar-wrapper {
    background-color: var(--red);
    width: 100%;
}

nav.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

nav ul#nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul#nav-links li:first-child a {
    padding-left: 0;
}

nav ul#nav-links li a {
    display: block;
    padding: 14px 18px;
    color: var(--white);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

nav ul#nav-links li a:hover {
    color: var(--yellow);
    background-color: rgba(0, 0, 0, 0.15);
}

nav ul#nav-links li a.active {
    color: var(--yellow);
    font-weight: bold;
    border-bottom: 3px solid var(--yellow);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-login:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-join {
    background-color: #e3a835;
    color: #000000;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #e3a835;
    transition: all 0.2s ease;
}

.btn-join:hover {
    background-color: #f1c84b;
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px 0;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

/* ==========================================
   4. HOME / INDEX COMPONENTS
   ========================================== */
.hero-section {
    background: linear-gradient(rgba(147, 31, 29, 0.35), rgba(80, 15, 14, 0.35)), url('../images/background.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.6;
    color: var(--beige);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.features-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--red);
    display: flex;
    flex-direction: column;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-family: var(--font-primary);
    color: var(--red);
    margin-top: 0;
}

.feature-card p {
    flex-grow: 1;
    color: #444;
    line-height: 1.5;
}

.card-link {
    color: var(--red);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

.card-link:hover {
    color: var(--yellow);
}

.about-section {
    background-color: var(--beige);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--red);
    margin-bottom: 40px;
}

.about-section h2 {
    font-family: var(--font-primary);
    color: var(--red);
    margin-top: 0;
}

/* Reusable Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
}

.btn-primary:hover {
    background-color: #c9a334;
    border-color: #c9a334;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-secondary:hover {
    background-color: var(--red);
    color: var(--white);
}

/* ==========================================
   5. PRODUCTIONS & FILTERS
   ========================================== */
.filter-search-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.search-container {
    flex: 1 1 280px;
    max-width: 400px;
}

#search-bar {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: var(--font-secondary);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search-bar:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 6px rgba(147, 31, 29, 0.3);
}

.filter-box {
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: var(--font-secondary);
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-box:focus {
    outline: none;
    border-color: var(--red);
}

.filter-button,
.reset-button {
    padding: 10px 22px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.filter-button {
    background-color: var(--red);
    color: var(--white);
}

.filter-button:hover {
    background-color: #7a1817;
}

.reset-button {
    background-color: #e0e0e0;
    color: #333333;
}

.reset-button:hover {
    background-color: #d0d0d0;
}

.delete-message {
    max-width: 600px;
    margin: 15px auto;
    padding: 12px 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-secondary);
}

.no-results {
    font-family: var(--font-secondary);
    color: var(--red);
    text-align: center;
    font-size: 1.2rem;
    margin: 40px 0;
}

.production-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px 40px;
}

.production {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 0 0 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--red);
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.production:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: #f8f8f8;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.production:hover .card-image-wrapper img {
    transform: scale(1.03);
}

.card-body {
    padding: 20px 20px 0 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.production h2 {
    margin: 0 0 8px;
    font-family: var(--font-primary);
    color: var(--red);
    font-size: 1.35rem;
}

.meta-info {
    font-size: 0.85rem;
    color: #444444;
    margin: 0 0 6px;
}

.description {
    font-size: 0.95rem;
    color: #111111;
    line-height: 1.5;
    margin: 12px 0 18px;
    flex-grow: 1;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-top: 15px;
}

.iframe-wrapper iframe,
.iframe-wrapper .lazyload {
    width: 100%;
    height: 100%;
    border: none;
}

.link-text {
    margin-top: auto;
    padding-top: 10px;
}

.link-text a {
    color: var(--red);
    font-weight: bold;
    text-decoration: none;
}

.link-text a:hover {
    text-decoration: underline;
}

.no-link-text,
.error-text {
    font-size: 0.85rem;
    color: #888888;
    font-style: italic;
    margin-top: 15px;
}

.delete-button {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 15px;
    width: 100%;
}

.delete-button:hover {
    background-color: #bd2130;
}

/* ==========================================
   6. LOGIN & FORM PAGES
   ========================================== */
.centered-login {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.loginproductions-form {
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--red);
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
}

.loginproductions-form input[type="text"],
.loginproductions-form input[type="email"],
.loginproductions-form input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.loginproductions-form input[type="text"]:focus,
.loginproductions-form input[type="email"]:focus,
.loginproductions-form input[type="password"]:focus {
    outline: none;
    border-color: var(--red);
}

.loginproductions-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: var(--red);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
    margin-top: 5px;
}

.loginproductions-form input[type="submit"]:hover {
    background-color: #7a1817;
}

.loginproductions-form .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    text-align: center;
}

.form-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.form-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.form-footer a {
    color: var(--red);
    font-weight: bold;
    text-decoration: none;
}

.form-footer a:hover {
    color: var(--yellow);
    text-decoration: underline;
}

/* Submit Form */
.submit-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.submit-form input[type="text"],
.submit-form input[type="number"],
.submit-form input[type="url"],
.submit-form select,
.submit-form textarea {
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
}

.submit-form input[type="text"]:focus,
.submit-form input[type="number"]:focus,
.submit-form input[type="url"]:focus,
.submit-form select:focus,
.submit-form textarea:focus {
    border-color: var(--red);
    outline: none;
}

.submit-form input[type="submit"] {
    padding: 10px 25px;
    font-family: var(--font-secondary);
    font-size: 16px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: var(--red);
    color: var(--white);
    cursor: pointer;
    margin-bottom: 40px;
    transition: background-color 0.2s ease;
}

.submit-form input[type="submit"]:hover {
    background-color: darkred;
}

.submitproductionserror-message {
    font-family: var(--font-secondary);
    text-align: center;
    color: var(--red);
}

.submitproductionsuccess-message {
    font-family: var(--font-secondary);
    text-align: center;
}

/* ==========================================
   7. TIMELINE SECTION
   ========================================== */
.timeline-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--red);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.timeline-nav:hover {
    background-color: var(--yellow);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.nav-left {
    left: 10px;
}

.nav-right {
    right: 10px;
}

.timeline-container {
    width: 100%;
    overflow-x: auto;
    padding: 60px 50px 20px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.timeline-horizontal {
    display: flex;
    flex-direction: row;
    position: relative;
    min-width: max-content;
    align-items: flex-start;
}

.timeline-horizontal::after {
    content: '';
    position: absolute;
    height: 4px;
    background-color: var(--red);
    left: 0;
    right: 0;
    top: -20px;
    border-radius: 2px;
}

.timeline-event {
    position: relative;
    width: 320px;
    margin-right: 30px;
    flex-shrink: 0;
    white-space: normal;
    box-sizing: border-box;
}

.timeline-event::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--white);
    border: 4px solid var(--red);
    top: -28px;
    left: 20px;
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.timeline-event:hover::before {
    background-color: var(--yellow);
    transform: scale(1.2);
}

.timeline-content {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--red);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.timeline-date {
    display: inline-block;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--white);
    background-color: var(--red);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin: 5px 0 10px;
    font-family: var(--font-primary);
    color: var(--red);
    font-size: 1.15rem;
}

.timeline-content p {
    margin: 0 0 10px;
    color: #444;
    line-height: 1.5;
    font-size: 0.95rem;
}

.timeline-content img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 6px;
}

.read-more {
    color: var(--red);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* ==========================================
   8. FOOTER
   ========================================== */
.site-footer {
    flex-shrink: 0;
    background-color: var(--red);
    color: var(--white);
    padding: 30px 20px 15px;
    font-family: var(--font-secondary);
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-section h3, 
.footer-section h4 {
    margin: 0 0 10px 0;
    font-family: var(--font-primary);
    color: var(--yellow);
}

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

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a, 
.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover, 
.footer-contact a:hover {
    color: var(--yellow);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 15px auto 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom .credits {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 5px;
}

.school-motto{
	color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 1px;
    margin-top: 15px;
    border-left: 3px solid #e5c158; /* Small gold accent line on the left */
    padding-left: 10px;
}

/* ==========================================
   9. MEDIA QUERIES (RESPONSIVENESS)
   ========================================== */

/* Tablet & Mobile Breakpoint (768px and below) */
@media screen and (max-width: 768px) {
    /* Header & Navigation */
    .header-container {
        padding: 10px;
    }

    #logo {
        width: 11vw;
    }

    #header {
        font-size: 8vw;
    }

    nav.nav-container {
        flex-wrap: wrap;
        padding: 10px 20px;
        position: relative;
    }

    .menu-icon {
        display: block;
        order: 1;
    }

    .auth-buttons {
        order: 2;
    }

    nav ul#nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding: 10px 0 5px;
        margin-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    nav ul#nav-links.show {
        display: flex;
    }

    nav ul#nav-links li {
        width: 100%;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    nav ul#nav-links li:last-child {
        border-bottom: none;
    }

    nav ul#nav-links li:first-child a {
        padding-left: 12px;
    }

    nav ul#nav-links li a {
        padding: 12px;
        font-size: 1rem;
    }

    nav ul#nav-links li a.active {
        border-bottom: none;
        border-left: 4px solid var(--yellow);
        background-color: rgba(0, 0, 0, 0.2);
    }

    /* Content & Cards */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .feature-card {
        flex: 1 1 100%;
    }

    .production {
        flex: 0 1 100%;
        margin: 5px 0;
        height: auto;
    }

    /* Filters & Search */
    .filter-search-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .search-container {
        width: 100%;
        margin-bottom: 15px;
    }

    #search-bar {
        width: 100%;
    }

    .filter-form {
        width: 100%;
        text-align: center;
    }

    .filter-form form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-box,
    .filter-button {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Form Fields */
    .submit-form {
        width: 100%;
    }

    .submit-form input[type="text"],
    .submit-form input[type="number"],
    .submit-form input[type="url"],
    .submit-form select,
    .submit-form textarea {
        width: 90%;
        font-size: 16px;
        padding: 12px;
    }

    #name {
        margin-top: 20px;
    }

    .submit-form input[type="submit"] {
        width: 100%;
        padding: 15px 30px;
        font-size: 18px;
    }

    .submitproductionserror-message,
    .submitproductionsuccess-message {
        font-size: 16px;
    }

    .loginproductions-form {
        width: 80%;
    }

    /* Timeline Adjustments */
    .timeline-container {
        padding: 50px 15px 20px;
    }

    .timeline-event {
        width: 280px;
        margin-right: 20px;
    }

    .timeline-event::before {
        top: -26px;
        left: 15px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo-title {
        justify-content: center;
    }
}

/* Small Mobile Breakpoint (600px and below) */
@media screen and (max-width: 600px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: 100%;
    }

    .filter-box,
    .filter-button,
    .reset-button {
        width: 100%;
    }
}