/* =========================
   GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* =========================
   HEADER & NAVIGATION
========================= */

header {
    background: #C8102E;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

header h1 {
    margin-bottom: 10px;
}

header p {
    margin: 5px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex: 0 0 120px;
}

.header-text {
    text-align: left;
}

.header-text h1,
.header-text h3 {
    margin: 0;
}

nav,
.site-nav {
    background: #000;
    text-align: center;
    padding: 12px 20px;
}

.menu-toggle,
.menu-button {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

nav a,
.site-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    font-weight: bold;
    border-radius: 5px;
}

nav a:hover,
.site-nav a:hover,
nav a:focus,
.site-nav a:focus {
    background: #C8102E;
    outline: none;
}

/* =========================
   COMMON LAYOUT
========================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

section,
.card,
.intro,
.upload-box,
.search-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card {
    padding: 20px;
}

.intro,
.upload-box,
.search-box {
    padding: 25px;
    margin-bottom: 25px;
}

/* =========================
   BUTTONS
========================= */

button,
.btn {
    background: #C8102E;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button {
    padding: 12px 20px;
}

button:hover {
    background: #A20D26;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
}

.clear-btn {
    background: #666;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
}

.clear-btn:hover {
    background: #444;
}

/* =========================
   ABOUT PAGE
========================= */

.motto {
    text-align: center;
    background: #C8102E;
    color: white;
    padding: 25px;
    border-radius: 8px;
}

.highlight {
    color: #C8102E;
    font-weight: bold;
}

/* =========================
   SCHEDULE PAGE
========================= */

.schedule-day {
    background: white;
    border-left: 8px solid #C8102E;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.schedule-day h2 {
    color: #C8102E;
    margin-bottom: 20px;
}

.event {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.event:last-child {
    border-bottom: none;
}

.time {
    width: 150px;
    font-weight: bold;
}

.activity {
    flex: 1;
}

/* =========================
   CLASSMATES PAGE
========================= */

.classmate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card.contact-y {
    border-left: 6px solid #28a745;
}

.card.contact-n {
    border-left: 6px solid #ffc107;
}

.card.contact-d {
    border-left: 6px solid #6f42c1;
}

.card.contact-c {
    border-left: 6px solid #17a2b8;
}

.status {
    font-weight: bold;
    margin-top: 10px;
}

.attending {
    color: green;
}

.not-attending {
    color: #666;
}

.deceased {
    color: #C8102E;
    font-weight: bold;
    font-style: italic;
}

/* Search */

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
    min-width: 250px;
}

.status-filter {
    padding: 12px;
    border: 2px solid #C8102E;
    border-radius: 5px;
    background: white;
    font-size: 16px;
    font-weight: bold;
}

.status-filter:focus {
    outline: none;
    border-color: black;
    box-shadow: 0 0 5px rgba(200,16,46,.4);
}

/* =========================
   GALLERY
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 25px;
}

.gallery-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: transform .3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-card h3 {
    padding: 15px;
    text-align: center;
    color: #C8102E;
}

/* =========================
   REGISTRATION FORM
========================= */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    min-height: 180px;
}

.notice {
    background: #ffe9ec;
    border-left: 5px solid #C8102E;
    padding: 15px;
    margin-bottom: 25px;
}

.checkbox-group {
    margin: 15px 0;
}

.checkbox-group label {
    font-weight: normal;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

footer p {
    margin: 6px 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .classmate-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .classmate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    nav a {
        display: block;
        margin: 5px 0;
    }

    .event {
        display: block;
    }

    .time {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 600px) {
    .classmate-grid {
        grid-template-columns: 1fr;
    }
}
.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: rgba(0, 0, 0, 0.6);
    color: white;

    padding: 20px 40px;
    border-radius: 10px;

    text-align: center;
}

.hero-text h2 {
    margin-bottom: 10px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.folder {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    text-align: center;
}

.folder a {
    text-decoration: none;
    color: #333;
    display: block;
}

.folder img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

.folder div {
    padding: 15px;
    font-weight: bold;
}
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
.folder {
    transition: transform .2s ease;
}

.folder:hover {
    transform: translateY(-5px);
}
.no-image {
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: #666;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    background: white;
}

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

.image-card:hover img {
    transform: scale(1.05);
}
@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}
.viewer-image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: 8px;
}
.honeypot {
    position: absolute;
    left: -9999px;
}


/* Mobile header and menu */
@media (max-width: 768px) {
    header {
        padding: 28px 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .header-logo,
    .header-logoext {
        width: 88px;
        height: 88px;
        flex: 0 0 88px;
    }

    .header-text {
        text-align: center;
    }

    .header-text h1 {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .header-text h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .site-nav {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 0;
        text-align: left;
    }

    .menu-button {
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
        min-height: 52px;
        padding: 14px 18px;
        font-weight: bold;
        cursor: pointer;
        user-select: none;
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 24px;
        height: 3px;
        background: white;
        border-radius: 999px;
        content: "";
    }

    .menu-icon {
        position: relative;
    }

    .menu-icon::before,
    .menu-icon::after {
        position: absolute;
        left: 0;
    }

    .menu-icon::before {
        top: -7px;
    }

    .menu-icon::after {
        top: 7px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,.2);
        background: #111;
    }

    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .site-nav a {
        display: block;
        width: 100%;
        padding: 15px 18px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .site-nav a:hover,
    .site-nav a:focus {
        background: #C8102E;
    }

    .container {
        width: 94%;
        margin: 24px auto;
    }
}
/* Force desktop menu to show normal links and hide hamburger */
@media (min-width: 769px) {
    .site-nav .menu-toggle,
    .site-nav .menu-button {
        display: none !important;
    }

    .site-nav .nav-links {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Mobile menu only */
@media (max-width: 768px) {
    .site-nav .menu-button {
        display: flex !important;
    }

    .site-nav .nav-links {
        display: none !important;
    }

    .site-nav .menu-toggle:checked ~ .nav-links {
        display: flex !important;
    }
}