/* ============================================
   JackTrace Raffle - Faithful Replica Styles
   ============================================ */

:root {
    --green-dark: #1a3c34;
    --green-mid: #1a5c4d;
    --teal: #1a7a6d;
    --teal-hover: #15695e;
    --beige-light: #f0eed8;
    --gray-light: #f5f5f5;
    --gray-border: #ddd;
    --text-dark: #333;
    --white: #fff;
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Open Sans', Arial, sans-serif;
    --font-script: 'Dancing Script', cursive;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- TOP HEADER ---- */
.top-header {
    background: var(--green-dark);
    padding: 0 20px;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}


/* ---- HERO BANNER ---- */
.hero-banner {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
}

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

/* ---- DEPARTMENT NAV ---- */
.dept-nav {
    background: var(--green-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
    transition: box-shadow 0.3s;
}

.dept-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dept-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.dept-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 0;
    white-space: nowrap;
}

.dept-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.dept-links {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.dept-links a {
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 14px;
    transition: background 0.2s;
    white-space: nowrap;
}

.dept-links a:hover {
    background: rgba(255,255,255,0.1);
}

.dept-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
    background: var(--gray-light);
    border-bottom: 1px solid var(--gray-border);
    padding: 10px 20px;
}

.dept-nav.sticky ~ .breadcrumb {
    margin-top: 54px;
}

.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 12px;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-inner a {
    color: var(--green-dark);
    text-decoration: underline;
}

.breadcrumb-inner a:hover {
    text-decoration: none;
}

/* ---- MAIN CONTENT ---- */
.main-content {
    padding: 30px 20px 60px;
}

.content-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ---- LEFT COLUMN ---- */
.content-left {
    flex: 1;
    min-width: 0;
}

.content-left h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--green-dark);
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1.3;
}

.subtitle-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

.congrats-all {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.green-link {
    color: var(--green-dark);
    text-decoration: underline;
}

.green-link:hover {
    text-decoration: none;
}

.content-left > p {
    margin-bottom: 6px;
}

/* ---- WINNERS LIST ---- */
.winners-list {
    margin-top: 20px;
}

.winner-entry {
    border-top: 1px solid var(--gray-border);
    padding: 20px 0;
}

.winner-heading {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--green-dark);
}

.photo-soon {
    font-style: italic;
    color: #666;
    margin-top: 8px;
}

/* Winner Graphic Card */
.winner-graphic {
    margin-top: 16px;
    padding: 24px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wg-label {
    font-family: var(--font-script);
    font-size: 28px;
    color: var(--green-dark);
    display: block;
}

.wg-date {
    font-family: var(--font-script);
    font-size: 48px;
    font-weight: 700;
    color: var(--green-dark);
    display: block;
    line-height: 1.2;
}

.wg-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--green-dark);
    display: block;
    margin-top: 4px;
}

.wg-dept {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: var(--teal);
    display: block;
}

/* Winner Photo */
.winner-photo {
    margin-top: 16px;
}

.winner-photo img {
    max-width: 420px;
    height: auto;
    display: block;
}

/* ---- DATA TABLE ---- */
.draw-table-section {
    margin-top: 40px;
    border-top: 1px solid var(--gray-border);
    padding-top: 30px;
}

.draw-table-section h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--green-dark);
    margin-bottom: 6px;
    font-weight: 400;
}

.table-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.table-responsive {
    overflow-x: auto;
}

.draw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.draw-table thead th {
    background: var(--green-dark);
    color: var(--white);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.draw-table tbody tr:nth-child(odd) {
    background: var(--white);
}

.draw-table tbody tr:nth-child(even) {
    background: var(--beige-light);
}

.draw-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0d0;
    vertical-align: top;
}

.draw-table tbody tr:hover {
    background: #e6e4cc;
}

/* ---- SIDEBAR ---- */
.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.sidebar-btn {
    display: block;
    background: var(--teal);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 20px;
    border-radius: 6px;
    text-align: left;
    transition: background 0.2s;
}

.sidebar-btn:hover {
    background: var(--teal-hover);
}


/* ---- FOOTER ---- */
.site-footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.footer-logo img {
    width: 260px;
    height: auto;
    filter: brightness(0) invert(1);
}

.land-ack {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
    margin-top: 16px;
    max-width: 360px;
}

.land-ack a {
    text-decoration: underline;
}

/* Campaign Badge */
.campaign-badge {
    margin-bottom: 30px;
}

.campaign-label {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
}

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

.campaign-word-1 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.campaign-word-2 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.15);
    padding: 6px 30px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Footer Addresses */
.footer-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.address-block h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.address-block p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.address-block a {
    color: var(--white);
    text-decoration: underline;
}

.address-block a:hover {
    text-decoration: none;
}


.footer-links {
    max-width: 1400px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    font-size: 13px;
    text-decoration: underline;
    opacity: 0.85;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
}

/* ---- LEGAL PAGES ---- */
.legal-page h2 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--green-dark);
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-page p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-page ul {
    margin: 0 0 16px 24px;
    line-height: 1.7;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-updated {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

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

@media (max-width: 1024px) {
    .dept-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--green-dark);
        flex-direction: column;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 99;
    }

    .dept-links.open {
        display: flex;
    }

    .dept-links a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dept-menu-toggle {
        display: block;
    }

    .dept-nav-inner {
        position: relative;
    }

    .content-inner {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 180px;
    }

    .dept-title {
        font-size: 16px;
    }

    .content-left h1 {
        font-size: 24px;
    }

    .subtitle-large {
        font-size: 20px;
    }

    .wg-date {
        font-size: 36px;
    }

    .wg-label {
        font-size: 22px;
    }

    .photo-placeholder {
        width: 100%;
        max-width: 320px;
    }

    .campaign-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .campaign-word-1 {
        font-size: 22px;
    }

    .campaign-word-2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .content-left h1 {
        font-size: 20px;
    }

    .subtitle-large {
        font-size: 17px;
    }

    .draw-table {
        font-size: 12px;
    }

    .draw-table thead th,
    .draw-table tbody td {
        padding: 8px 6px;
    }
}
