/* ============================================================
   THE TOWERS AT TOWER LANE — Interactive Signage
   Portrait: 1080 x 1920
   ============================================================ */

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

body {
    width: 1080px;
    height: 1920px;
    overflow: hidden;
    margin: 0 auto;
    background-color: #182e4a;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    color: #1c3554;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

a { text-decoration: none; cursor: pointer; }

#main {
    width: 1080px;
    height: 1920px;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   HOME SCREEN  (#home-screen)
   ============================================================ */
#home-screen {
    background-color: #1c3554;
    width: 1080px;
    height: 1920px;
    position: relative;
    overflow: hidden;
}

/* Decorative left green line */
.home-left-line {
    position: absolute;
    left: 115px;
    top: 450px;
    width: 8px;
    height: 900px;
    background-color: #5cb848;
    z-index: 2;
}
.home-left-bracket-h {
    position: absolute;
    left: 115px;
    top: 450px;
    width: 60px;
    height: 8px;
    background-color: #5cb848;
    z-index: 2;
}
.home-left-bracket-b {
    position: absolute;
    left: 115px;
    top: 1342px;
    width: 60px;
    height: 8px;
    background-color: #5cb848;
    z-index: 2;
}

/* Welcome to box */
.home-welcome-box {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 580px;
    border: 3px solid #5cb848;
    padding: 18px 40px;
    text-align: center;
    z-index: 5;
}
.home-welcome-box span {
    font-size: 56px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-style: italic;
}

/* Logo area */
.home-logo-area {
    position: absolute;
    top: 200px;
    left: 130px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 5;
}
.home-logo-icon {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    position: relative;
}
/* Two overlapping rectangles for the icon */
.home-logo-icon .rect1 {
    position: absolute;
    top: 0; left: 40px;
    width: 120px; height: 120px;
    border: 7px solid #5cb848;
    background: transparent;
}
.home-logo-icon .rect2 {
    position: absolute;
    top: 30px; left: 0;
    width: 120px; height: 120px;
    border: 7px solid #5cb848;
    background: transparent;
}
.home-logo-icon .tree {
    position: absolute;
    top: 15px; left: 15px;
    width: 110px; height: 140px;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
}
.home-logo-text { flex: 1; }
.home-logo-text .towers {
    font-size: 92px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 6px;
    line-height: 1;
    text-transform: uppercase;
}
.home-logo-text .at-tower-lane {
    font-size: 34px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* Nav buttons on home */
.home-nav {
    position: absolute;
    top: 680px;
    left: 155px;
    z-index: 5;
}
.home-btn {
    display: block;
    width: 420px;
    padding: 28px 20px;
    margin-bottom: 46px;
    background-color: #5cb848;
    border: 3px solid #ffffff;
    border-radius: 40px;
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}
.home-btn:hover, .home-btn:active { background-color: #4aa038; }

/* Decorative plant shapes on home */
.plant-decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   SECTION SCREENS (green pages)
   ============================================================ */
.section-screen {
    background-color: #4a9440;
    width: 1080px;
    height: 1920px;
    position: relative;
    overflow: hidden;
}

/* Leaf decoration strip on left */
.section-left-decor {
    position: absolute;
    top: 0; left: 0;
    width: 110px;
    height: 1920px;
    background-color: #3d8035;
    overflow: hidden;
    z-index: 2;
}

/* Header */
.section-header {
    position: absolute;
    top: 0;
    left: 110px;
    right: 0;
    height: 230px;
    background: linear-gradient(to bottom, #c8e8b0 0%, #b0d898 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    overflow: hidden;
}
.section-header h1 {
    font-size: 72px;
    font-weight: 900;
    color: #1c3554;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    padding: 0 40px;
    line-height: 1.1;
}

/* Navy separator bar */
.section-separator {
    position: absolute;
    top: 230px;
    left: 110px;
    right: 0;
    height: 28px;
    background-color: #1c3554;
    z-index: 5;
}

/* Content area */
.section-content-wrap {
    position: absolute;
    top: 258px;
    left: 110px;
    right: 110px;  /* leave space for A-Z nav */
    bottom: 130px;
    z-index: 3;
    overflow: hidden;
}

/* A-Z Index nav */
.az-nav {
    position: absolute;
    top: 258px;
    right: 0;
    width: 110px;
    bottom: 130px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}
.az-nav .az-track {
    position: absolute;
    right: 10px;
    top: 0; bottom: 0;
    width: 28px;
    background-color: #1c3554;
    border-radius: 14px;
}
.az-nav .az-thumb {
    position: absolute;
    right: 10px;
    width: 28px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 14px;
    top: 0;
    transition: top 0.15s;
    z-index: 2;
}
.az-letter {
    font-size: 18px;
    font-weight: 700;
    color: #1c3554;
    line-height: 1;
    cursor: pointer;
    padding: 3px 0;
    flex: 1;
    text-align: left;
    padding-left: 10px;
    display: flex;
    align-items: center;
}
.az-letter.active { color: #ffffff; }
.az-letter:hover  { color: #ffffff; }

/* Bottom nav buttons (Home / Back) */
.section-bottom-nav {
    position: absolute;
    bottom: 20px;
    left: 110px;
    z-index: 10;
    display: flex;
    gap: 20px;
}
.btn-home, .btn-back {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #1c3554;
    border: 4px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 36px;
    color: #ffffff;
    transition: background-color 0.2s;
}
.btn-home:hover, .btn-back:hover { background-color: #2e4f78; }

/* Intro text box */
.intro-box {
    background-color: rgba(255,255,255,0.88);
    border: 2px solid #5cb848;
    border-radius: 6px;
    padding: 28px 32px;
    margin: 24px 20px;
    font-size: 21px;
    line-height: 1.55;
    color: #1c3554;
    text-align: center;
}

/* Donor list content */
.donor-list-panel {
    height: 100%;
    overflow: hidden;
}

.page-content {
    width: 700px;
    margin-left:100px;
    height: 100%;
    padding: 10px 20px;
    overflow-y: auto;
}

/* Tier heading */
.tier-heading {
    text-align: center;
    margin: 24px 10px 8px;
    padding-bottom: 8px;
}
.tier-heading .tier-title {
    font-size: 30px;
    font-weight: 900;
    color: #1c3554;
}
.tier-heading .tier-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: #1c3554;
    margin-top: 2px;
}

/* Donor name */
.donor-name {
    text-align: center;
    font-size: 22px;
    color: #1c3554;
    padding: 5px 10px;
    line-height: 1.35;
}
.donor-name.blessed::after {
    content: '*';
    font-size: 16px;
    vertical-align: super;
}

.blessed-note {
    text-align: right;
    font-size: 17px;
    font-style: italic;
    color: #1c3554;
    padding: 12px 20px 0;
}

/* Flat list (no tiers) donor box */
.flat-list-panel {
    background-color: rgba(255,255,255,0.88);
    margin: 20px 20px;
    border-radius: 6px;
    padding: 20px 30px;
    height: calc(100% - 40px);
    overflow: hidden;
}

/* Date subtitle on Annual Honor Roll */
.ahr-date {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1c3554;
    padding: 14px 10px 6px;
}

/* ============================================================
   SUB-MENU SCREENS (Legacy / Capital sub-menus)
   ============================================================ */
.submenu-content {
    position: absolute;
    top: 258px;
    left: 110px;
    right: 0;
    bottom: 130px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 20px 40px;
}

.sub-btn {
    display: block;
    width: 680px;
    padding: 38px 30px;
    background-color: #1c3554;
    border: 3px solid #ffffff;
    border-radius: 10px;
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1.2;
    transition: background-color 0.2s;
}
.sub-btn:hover, .sub-btn:active { background-color: #2e4f78; }

/* ============================================================
   CORPORATE SPONSORS PAGE
   ============================================================ */
.sponsor-carousel-wrap {
    position: absolute;
    top: 258px;
    left: 110px;
    right: 0;
    bottom: 130px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
}

.sponsor-main-slide {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 30px;
    overflow: hidden;
}
.sponsor-main-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.sponsor-main-slide .sponsor-name {
    font-size: 36px;
    font-weight: 700;
    color: #1c3554;
    text-align: center;
}

/* Carousel arrows */
.carousel-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.carousel-arrow {
    width: 70px; height: 70px;
    border-radius: 50%;
    background-color: #1c3554;
    border: 3px solid #fff;
    color: #fff;
    font-size: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.carousel-arrow:hover { background-color: #2e4f78; }
.carousel-counter {
    font-size: 24px;
    font-weight: 700;
    color: #1c3554;
}

/* Sponsor thumb strip */
.sponsor-thumbs {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}
.sponsor-thumb {
    width: 110px; height: 80px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 3px solid transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    overflow: hidden;
    padding: 6px;
    transition: border-color 0.15s;
}
.sponsor-thumb.active { border-color: #1c3554; }
.sponsor-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ============================================================
   HISTORY OF GIVING PAGE
   ============================================================ */
.history-wrap {
    position: absolute;
    top: 258px;
    left: 110px;
    right: 0;
    bottom: 130px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
}
.history-main-img {
    flex: 1;
    background-color: #1c3554;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.history-main-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.history-nav-arrows {
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    display: flex; justify-content: space-between;
    padding: 0 10px;
}
.history-arrow {
    width: 60px; height: 60px;
    border-radius: 50%;
    background-color: rgba(28,53,84,0.75);
    border: 2px solid #fff;
    color: #fff; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

.history-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.history-thumb {
    width: 120px; height: 90px;
    border-radius: 6px;
    border: 3px solid transparent;
    overflow: hidden;
    cursor: pointer;
    background-color: #1c3554;
}
.history-thumb.active { border-color: #ffffff; }
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SCROLLBAR OVERRIDES (mCustomScrollbar)
   ============================================================ */
.mCSB_outside + .mCSB_scrollTools { right: -50px; }
.mCSB_scrollTools .mCSB_draggerRail { background-color: #1c3554; }
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { background-color: #ffffff; }

/* ============================================================
   LEAF DECORATIONS (SVG-based, reusable)
   ============================================================ */
.leaf-bg {
    position: absolute;
    pointer-events: none;
    opacity: 0.18;
    z-index: 1;
}

/* ============================================================
   BG-IMAGE LAYOUT SYSTEM
   All section pages now use a full-bleed 1080×1920 PNG as the
   page background; interactive elements are absolutely positioned
   on top of it.
   ============================================================ */

/* Base: every #main gets bg-image sizing */
#main {
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 1080px 1920px;
}

/* ── Home page nav links ──────────────────────────────────────
   Transparent blocks over each nav button in home.png.
   top is set inline per-link; width/height are shared.         */
.home-nav-link {
    position: absolute;
    left: 50px;
    width: 545px;
    height: 168px;
    display: block;
    z-index: 10;
    cursor: pointer;
}

/* ── Section overview nav links (legacy, capital) ────────────
   Transparent blocks over the dark-navy buttons.
   top is set inline; left/width/height are shared.             */
.section-nav-link {
    position: absolute;
    left: 250px;
    width: 580px;
    height: 172px;
    display: block;
    z-index: 10;
    cursor: pointer;
}

/* ── Title overlay on lsit_subpages.png ─────────────────────
   The cream band between the two navy separator bars
   spans roughly y 110–240.                                     */
.page-title {
    position: absolute;
    top: 110px;

    height: 130px;
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: 900;
    color: #5fa546;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    line-height: 1.1;
    z-index: 5;
}

/* ── Title overlay on gallery_bg.png ────────────────────────
   Sits in the green header band (y 0–230), matching the style
   of the baked-in titles on the other section pages.           */
.gallery-title {
    position: absolute;
    top: 0;
    left: 110px;
    right: 0;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 900;
    color: #1c3554;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    line-height: 1.1;
    z-index: 5;
}

/* ── Transparent nav button overlays ────────────────────────
   Home button circle is at the same position on all section
   images (~y 1735, left ~15 px).
   Back button circle only appears on lsit_subpages.png.        */
.btn-overlay {
    position: absolute;
    display: block;
    cursor: pointer;
    z-index: 20;
}
.btn-home-overlay {
    top: 1728px;
    left: 5px;
    width: 130px;
    height: 150px;
}
.btn-back-overlay {
    top: 1610px;
    left: 5px;
    width: 130px;
    height: 112px;
}

/* ── A-Z nav rail ────────────────────────────────────────────
   top is set inline (710 for AHR, 430 for sub-pages).         */
.az-nav {
    position: absolute;
    right: 5px;
    width: 105px;
    bottom: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

