/* Generic Template 2 - Showcase/Info Tiles Layout */
/* Used for: Campus, Manufacturing, and similar pages */

/* ================================
   Hero Section
   ================================ */

.title-section {
    display: flex;
    color: var(--global-colour-text-light);
    height: 100vh;
    min-height: 50vh;
    align-items: center;
    background-size: cover;
    background-position-x: center;
    background-repeat: no-repeat;
    background-color: black;
    position: relative;
}
@media (max-width: 1024px) {
    .title-section {
        overflow-y: hidden;
    }
}

.title-section img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    z-index: 0;
    overflow-y: hidden;
}

.title-section video {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    z-index: 0;
    overflow-y: hidden;
}

.title-subsection {
    display: flex;
    flex-direction: column;
    color: var(--global-colour-text-light);
    width: 100%;
    height: auto;
    z-index: 1;
}

h1 {
    display: flex;
    font-size: 88px;
    line-height: 110%;
    padding-top: 0%;
    font-weight: 500;
    letter-spacing: -1.5px;
    text-align: center;
    justify-content: center;
    z-index: 1;
}
@media (max-width: 1024px) {
    h1 {
        padding-top: 12%;
        padding-bottom: 3%;
        font-size: 68px;
    }
}
@media (max-width: 769px) {
    h1 {
        padding-top: 35%;
        font-size: 48px;
    }
}

/* ================================
   Body Sections
   ================================ */

.body-section {
    display: flex;
    color: var(--global-colour-text-light);
    background-color: #000;
    padding-top: 3%;
    height: auto;
    align-items: center;
    justify-content: center;
}
@media (max-width: 769px) {
    .body-section {
        padding-top: 2%;
    }
}

.body-section-light {
    background-color: var(--global-colour-secondary);
    padding-top: 2%;
    padding-bottom: 2%;
}

.body-subsection {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: unset;
    padding-top: 3%;
    width: 100%;
    max-width: 1500px;
}

.body-subsection-short {
    padding-top: 0;
}

/* ================================
   Page Description
   ================================ */

.page-description {
    font-size: 36px;
    text-align: center;
    width: 80%;
    font-weight: 300;
    margin: 0 auto 3% auto;
    color: white;
}
@media (max-width: 769px) {
    .page-description {
        font-size: 24px;
        width: 90%;
    }
}
@media (max-width: 540px) {
    .page-description {
        font-size: 20px;
    }
}

/* ================================
   Grid Layout
   ================================ */

.body-grid {
    display: grid;
    width: 96%;
    max-width: 1500px;
    margin: 0 auto;
    height: 700px;
    grid-column-gap: 10px;
    grid-row-gap: 4%;
    grid-template-columns: 33% 66%;
    overflow-y: hidden;
    scrollbar-width: none;
}
@media (max-width: 1024px) {
    .body-grid {
        min-width: 700px;
        width: 98%;
        height: auto;
        margin: 0 30px 3% 35px;
        overflow-x: scroll;
        grid-template-columns: 50% 50% 50%;
        grid-column-gap: 0;
    }
}
@media (max-width: 769px) {
    .body-grid {
        min-width: 0;
        width: 90%;
        height: auto;
        padding-top: 5%;
        font-size: 20px;
        grid-template-columns: 100%;
        margin: 0 auto 3% auto;
        grid-row-gap: 0%;
    }
}

.body-grid-reverse {
    grid-template-columns: 66% 33% !important;
    height: 100%;
}
@media (max-width: 1024px) {
    .body-grid-reverse {
        grid-template-columns: 50% 50% 50% !important;
        height: auto;
    }
}
@media (max-width: 769px) {
    .body-grid-reverse {
        grid-template-columns: 100% !important;
    }
}

/* ================================
   Grid Tiles
   ================================ */

.body-grid-tile-container {
    width: 100%;
    min-height: 0;
    min-width: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #212121;
    border-radius: 20px;
}
@media (max-width: 1024px) {
    .body-grid-tile-container {
        aspect-ratio: 1 / 1.3;
        width: 95%;
        height: auto;
    }
}
@media (max-width: 769px) {
    .body-grid-tile-container {
        aspect-ratio: unset;
        width: 100%;
    }
}

.middle-column {
    background-color: transparent;
}
@media (max-width: 1024px) {
    .middle-column {
        aspect-ratio: unset;
        width: 95%;
    }
}
@media (max-width: 769px) {
    .middle-column {
        padding-top: 7%;
        width: 100%;
    }
}

/* ================================
   Tile Content
   ================================ */

.body-offset-grid-titles {
    align-content: start;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    padding-top: 10%;
    padding-left: 5%;
    width: 90%;
    max-width: 1500px;
    padding-bottom: 3%;
    color: var(--global-colour-secondary);
    margin-left: 5%;
}
@media (max-width: 1024px) {
    .body-offset-grid-titles {
        padding-top: 10%;
        padding-left: 5%;
        width: 88%;
    }
}
@media (max-width: 769px) {
    .body-offset-grid-titles {
        margin-left: 0%;
        padding-left: 8%;
        width: 84%;
    }
}

.large-tile-text {
    font-size: 48px;
    font-weight: 600;
    line-height: 100%;
}
@media (max-width: 1024px) {
    .large-tile-text {
        font-size: 36px;
    }
}
@media (max-width: 769px) {
    .large-tile-text {
        font-size: 32px;
        margin-left: 0%;
    }
}

.tile-row {
    height: 100%;
    padding-left: 0%;
    margin-left: 0%;
    padding-right: 0%;
}
@media (max-width: 1024px) {
    .tile-row {
        padding-top: 0%;
        padding-bottom: 0%;
        height: 100%;
    }
}
@media (max-width: 769px) {
    .tile-row {
        padding-top: 0%;
        padding-left: 0%;
        padding-right: 0%;
    }
    .first-tile-row {
        padding-right: 8%;
        padding-bottom: 2%;
    }
}

.tile-title {
    /* Spacer element */
}

.tile-subtitle {
    font-size: 18px;
    line-height: 140%;
    padding-bottom: 15px;
    margin-left: 10%;
    width: 80%;
}
@media (max-width: 1024px) {
    .tile-subtitle {
        margin-left: 3%;
        display: none;
    }
}
@media (max-width: 769px) {
    .tile-subtitle {
        margin-left: 0%;
    }
}
@media (max-width: 400px) {
    .tile-subtitle {
        font-size: 16px;
    }
}

.tile-description {
    font-size: 18px;
    line-height: 140%;
    font-weight: 100;
    padding-bottom: 10%;
    margin-left: 10%;
    margin-right: 10%;
}
@media (max-width: 1024px) {
    .tile-description {
        margin-left: 8%;
        font-size: 16px;
    }
}
@media (max-width: 769px) {
    .tile-description {
        margin-left: 8%;
        margin-right: 8%;
        font-size: 18px;
        padding-bottom: 5%;
    }
}
@media (max-width: 400px) {
    .tile-description {
        font-size: 16px;
    }
}

.tile-description a {
    text-decoration: underline;
    color: white;
}

.tile-description a:hover {
    color: #cccccc;
}

/* ================================
   Tile Images
   ================================ */

.tile-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 1024px) {
    .tile-logo {
        height: 100%;
    }
}

.tile-logo img,
.tile-image-sent {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   Mobile/Desktop Layout Toggle
   ================================ */

.body-section-mobile {
    display: none;
    padding-top: 0;
    padding-bottom: 0;
}
@media(max-width: 769px) {
    .body-section-mobile {
        display: flex;
    }
}

.body-section-desktop {
    display: flex;
}
@media(max-width: 769px) {
    .body-section-desktop {
        display: none;
    }
}

/* ================================
   Download Button (optional)
   ================================ */

.download-section {
    margin-left: 10%;
    margin-right: 10%;
    padding-bottom: 5%;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--global-colour-primary);
    color: #212121;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.download-button:hover {
    background-color: var(--global-colour-primary-light);
}

.download-icon {
    font-size: 14px;
}

/* ================================
   Section 2: External Link
   ================================ */

.body-subsection-tagline {
    padding-top: 0 !important;
    padding-bottom: 2%;
    margin-top: 0;
    height: 160px;
}

.more-info-section {
    margin: auto;
    width: 50%;
    height: 100%;
    text-wrap: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: 28px;
}

.more-info-section a {
    text-decoration: none !important;
    width: 60%;
}
@media(max-width: 850px) {
    .more-info-section a {
        width: 75%;
    }
}
@media(max-width: 680px) {
    .more-info-section a {
        width: 110%;
    }
}

.mission-link {
    background-color: var(--global-colour-text-link);
    border-radius: 28px;
    padding: 8px 12px;
    margin: auto;
    font-size: 28px;
    max-width: 90%;
    text-decoration: none !important;
    color: #212121;
    font-weight: 400;
    text-align: center;
}
@media(max-width: 1300px) {
    .mission-link {
        font-size: 22px;
    }
}
@media(max-width: 520px) {
    .mission-link {
        font-size: 18px;
    }
}
@media(max-width: 450px) {
    .mission-link {
        font-size: 14px;
    }
}

.external-link {
    /* Additional styling for external links if needed */
}

/* ================================
   Animations
   ================================ */

.reveal {
    opacity: 1;
}

/* ================================
   Theme: Dark (default)
   ================================ */

.theme-dark {
    background-color: #000;
}

.theme-dark .body-section {
    background-color: #000;
}

.theme-dark .body-section-light {
    background-color: #000;
}

/* ================================
   Theme: Light
   ================================ */

.theme-light {
    background-color: #F0EDE3;
}

.theme-light .body-section {
    background-color: #F0EDE3;
}

.theme-light .body-section-light {
    background-color: #F0EDE3;
}

/* Force dark background regardless of theme */
.body-section-dark {
    background-color: #000 !important;
}
