/* ── Link Transit Intranet — Main Styles ───────────────────────────────────── */

:root {
    --lt-yellow:  #f5c400;
    --lt-navy:    #1a2951;
    --lt-cream:   #f5f0e8;
    --lt-blue:    #0693e3;
    --lt-red:     #cf2e2e;
    --lt-gray:    #f2f2f2;
    --lt-border:  #bcbcbc;
    --lt-text:    #333333;
    --lt-max:     1200px;
}

/* ── Reset / Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lt-text);
    background: var(--lt-cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lt-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Site Layout ─────────────────────────────────────────────────────────── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }
.container { max-width: var(--lt-max); margin: 0 auto; padding: 0 24px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--lt-navy);
    padding: 12px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo img {
    height: 52px;
    width: auto;
}

.site-logo-text {
    color: var(--lt-yellow);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.site-nav {
    background: var(--lt-yellow);
    border-bottom: 2px solid #d4a900;
}

.site-nav .container {
    display: flex;
    align-items: stretch;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

.site-nav li a {
    display: block;
    padding: 14px 22px;
    color: var(--lt-navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.site-nav li a:hover,
.site-nav li.current-menu-item a,
.site-nav li.current_page_item a {
    background: rgba(0,0,0,0.12);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px;
    color: var(--lt-navy);
    font-size: 1.4rem;
    line-height: 1;
}

/* ── Page Header (title bar on inner pages) ──────────────────────────────── */
.page-title-bar {
    text-align: center;
    padding: 40px 24px 20px;
}

.page-title-bar h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--lt-navy);
    font-weight: 700;
}

/* ── Home Hero ───────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
    overflow: hidden;
}

.hero-content {
    background: #fffef5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 48px 48px 5vw;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--lt-navy);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 28px;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: filter 0.15s, transform 0.1s;
    cursor: pointer;
    border: none;
}

.btn:hover { filter: brightness(0.92); transform: translateY(-1px); text-decoration: none; }

.btn-primary {
    background: var(--lt-yellow);
    color: var(--lt-navy);
}

.btn-navy {
    background: var(--lt-navy);
    color: #fff;
}

/* ── Page Content Area ───────────────────────────────────────────────────── */
.page-content {
    max-width: var(--lt-max);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ── Daily Assignments ───────────────────────────────────────────────────── */
.daily-section {
    margin-bottom: 48px;
}

.daily-section h2 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--lt-navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lt-yellow);
}

.daily-file-display {
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.daily-file-display img,
.daily-file-display iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.daily-file-display .no-file {
    color: #999;
    font-style: italic;
}

/* ── Mission Statement Banner ────────────────────────────────────────────── */
.mission-banner {
    background: var(--lt-navy);
    color: #fff;
    padding: 40px;
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.mission-banner h2 {
    font-size: 2rem;
    color: var(--lt-yellow);
    margin-bottom: 12px;
}

.mission-banner p { font-size: 1rem; line-height: 1.7; }

.mission-banner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
}

/* ── Club Link Event Cards ───────────────────────────────────────────────── */
.event-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.event-card {
    background: #fff;
    border: 1px solid var(--lt-border);
    border-radius: 4px;
    overflow: hidden;
}

.event-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-body {
    padding: 12px 14px;
}

.event-card-date {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 4px;
}

.event-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--lt-navy);
    margin-bottom: 6px;
}

.event-card-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

/* ── Gallery Carousel ────────────────────────────────────────────────────── */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    background: #000;
    margin-bottom: 24px;
    border-radius: 4px;
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.gallery-carousel-slide {
    min-width: 100%;
}

.gallery-carousel-slide img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    margin: 0 auto;
}

.gallery-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-carousel-btn:hover { background: rgba(0,0,0,0.75); }
.gallery-carousel-btn.prev { left: 12px; }
.gallery-carousel-btn.next { right: 12px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--lt-navy);
    color: rgba(255,255,255,0.75);
    padding: 28px 0;
}

.site-footer .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.site-footer p {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ── Login Page ──────────────────────────────────────────────────────────── */
body.login-page {
    margin: 0;
    background: #fff;
}

.login-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-header {
    background: var(--lt-navy);
    padding: 12px 0;
    flex-shrink: 0;
}

.login-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 480px;
    min-height: 0;
}

.login-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 440px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    background: #fff;
}

.login-form-wrap {
    width: 100%;
    max-width: 360px;
}

.login-form-wrap h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--lt-navy);
    line-height: 1.2;
    margin-bottom: 12px;
}

.login-form-wrap > p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 24px;
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.login-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    background: #fff;
    color: var(--lt-text);
    transition: border-color 0.15s;
}

.login-input:focus {
    outline: none;
    border-color: var(--lt-yellow);
    box-shadow: 0 0 0 2px rgba(245,196,0,0.25);
}

.login-btn {
    display: block;
    width: 100%;
    padding: 11px 20px;
    background: var(--lt-yellow);
    color: var(--lt-navy);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    transition: filter 0.15s;
}

.login-btn:hover { filter: brightness(0.92); }

.login-footer {
    background: var(--lt-navy);
    padding: 20px 0;
    flex-shrink: 0;
}

@media (max-width: 780px) {
    .login-main { grid-template-columns: 1fr; }
    .login-banner { min-height: 220px; }
    .login-panel { padding: 32px 24px; }
}

/* ── Native Event Grid (replaces acf/image-text-card) ───────────────────── */
.lt-event-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: var(--lt-max);
    margin: 0 auto;
    padding: 0 24px;
}

.lt-event-card {
    background: #fff !important;
    border: 1px solid var(--lt-border) !important;
    border-radius: 4px;
    overflow: hidden;
    padding: 0 !important;
}

.lt-event-card .wp-block-image {
    margin: 0;
}

.lt-event-card .wp-block-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.lt-event-card .lt-event-date {
    font-size: 0.78rem;
    color: #888;
    padding: 10px 12px 2px;
    margin: 0;
}

.lt-event-card .lt-event-title {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--lt-navy);
    padding: 0 12px 6px;
    margin: 0;
}

.lt-event-card .lt-event-desc {
    font-size: 0.83rem;
    color: #555;
    line-height: 1.5;
    padding: 0 12px 14px;
    margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-image { height: 220px; }
    .hero-content { padding: 32px 24px; }
    .event-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .lt-event-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-banner { grid-template-columns: 1fr; }
    .mission-banner img { height: 160px; }
}

@media (max-width: 640px) {
    .site-nav ul { flex-direction: column; display: none; }
    .site-nav ul.open { display: flex; }
    .nav-toggle { display: block; }
    .site-nav .container { flex-wrap: wrap; padding: 0; }
    .site-nav li a { padding: 12px 20px; border-top: 1px solid rgba(0,0,0,0.1); }
    .event-cards-grid { grid-template-columns: 1fr; }
    .lt-event-grid { grid-template-columns: 1fr; }
}
