/* ================================================================================================== */
/*                                          Master stylesheet                                         */
/* ================================================================================================== */

@font-face {
  font-family: 'ManualeBold';
  src: url('/assets/fonts/manuale/Manuale-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'ManualeLight';
  src: url('/assets/fonts/manuale/Manuale-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Megastina';
  src: url('/assets/fonts/megastina/Megastina.ttf') format('truetype');
}

@font-face {
  font-family: 'VanityLight';
  src: url('/assets/fonts/vanity/Vanity-LightWide.ttf') format('truetype');
}

@font-face {
  font-family: 'VanityBold';
  src: url('/assets/fonts/vanity/Vanity-BoldWide.ttf') format('truetype');
}

/* ======================= */
/*        Universal        */
/* ======================= */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'ManualeBold';
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'VanityLight';
}

p, strong, span, li, label {
  font-family: 'ManualeBold';
  font-size: 16px;
}

@media (max-width: 600px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    p  { font-size: 14px; }
}

#header-contents{
    background-color: #e9dddd;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow */
    display: flex; /* Enables flexbox */
    align-items: center; /* Aligns items vertically */
    justify-content: space-between; /* Distributes space evenly */
    padding: 15px;
}

.parent-container img {
    height: 50px; /* Adjust height as needed */
    width: auto; /* Keeps aspect ratio */
    margin-right: 0; /* Ensure no margin between image and navbar */
}

#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
}

#bb-logo {
    position: sticky;  /* Change fixed to sticky */
    z-index: 2; /* Ensure logo stays in front */
    max-height: 80px; /* Adjust logo size if needed */
    display: block;
}

@media (max-width: 768px) {
    #header-placeholder {
        position: relative;
    }

    #bb-logo {
        position: relative;
        max-height: 60px;
    }
}

#custom-navbar {
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    z-index: 1;
    display: flex;
    align-items: center; /* Vertically align the items inside navbar */
    justify-content: flex-start; /* Align navbar items to the left */
    width: 100%;
}

@media (min-width: 992px) {
    #custom-navbar .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.navbar-toggler {
    margin-left: auto; /* Pushes the navbar toggler to the right */
}

.navbar-nav .nav-link {
    transition: color 0.3s ease, font-size 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: black !important;
    font-size: 110%;
}

.btn-bb {
    background-color: transparent;
    color: black;
    border: 1px solid black; 
    border-radius: 50px;
    padding: 10px 20px;
    height: 60px;
    font-family: "ManualeBold";
    font-size: 26px;
}

.btn-bb:hover{
    background-color: #e1d1d1;
}

/* Center the nav items only for small screens */
@media (max-width: 992px) {
    #header-placeholder {
        position: fixed;
        top: 0;
        width: 100%; /* Adjust to ensure it's responsive */
        z-index: 1000;
    }
    #bb-logo{
        position: fixed;
        top: 10px;
        max-width: 100px; /* Adjust logo size if needed */
        width: 100%; /* Adjust to ensure it's responsive */
    }
    .navbar-nav.mx-auto {
        margin-left: auto;
        margin-right: auto;
    }
    #navIndex {
        text-align: center;
    }
    #navAbout {
        text-align: center;
    }
    #navPortfolio {
        text-align: center;
    }
    #navPrices {
        text-align: center;
    }
    #navTerms {
        text-align: center;
    }
    #navContact {
        text-align: center;
    }
}

/* Keep the nav items left-aligned for large screens */
@media (min-width: 992px) {
    #header-contents {
        display: flex;
        padding: 15px;
        align-items: center; /* Ensure that the logo and nav items stay vertically aligned */
        justify-content: space-between; /* Keep space between logo and navbar */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #bb-logo {
        margin-right: 15px; /* Adjust the logo's right margin to align with the navbar-toggler icon */
    }

    .navbar-nav {
        display: flex;
        justify-content: flex-start; /* Keep nav items aligned to the left on large screens */
    }

    .navbar-collapse {
        flex-grow: 0; /* Prevents the navbar items from stretching */
    }
    .navbar-expand-lg .navbar-nav .nav-link{
        padding-right: 15px;
    }
}

#page-content {
    flex-grow: 1;  /* This makes the page content expand to take all remaining space */
    margin-bottom: 20px;
}

.footer {
    width: 100%;
    background-color: #e9dddd;
    color: black;
    z-index: 999;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* Add shadow */
    margin-top: auto; /* This ensures the footer is pushed to the bottom */
}

.social-links a {
    font-size: 1.5rem;
    margin: 10px;
    color: black;
}

.social-links a:hover {
    color: #007bff; /* Change color on hover */
}

@media (max-width: 768px) {
    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 8px 0;
    }

    .social-links i {
        margin-right: 8px;
    }
}

#title {
    color: white;
    text-shadow: 0.2px 0.2px 0 black, -0.2px -0.2px 0 black, -0.2px 0.2px 0 black, 0.2px -0.2px 0 black;
    backdrop-filter: blur(5px) saturate(70%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 20px;
    -webkit-backdrop-filter: blur(5px) saturate(70%);
    border: none;
    font-size: 46px;
}

h1 {
    text-align: center;
}

label {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

form {
    display: flex;
    flex-direction: column;
    bottom: 0;
}

input, textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.lineBreaker{
    border-style: groove;
    border-top: 1px solid black;
}

/* ======================= */
/*          Index          */
/* ======================= */

#title-container {

    z-index: 1;
    position: relative;
    
    height: 300px;
    text-align: center;
    background-color: transparent;
    margin-bottom: 20px;

    /* Flexbox for centering */
    display: flex;
    justify-content: center;  /* Centers horizontally */
    align-items: center;  /* Centers vertically */

    /* Fade-in animation */
    opacity: 0; /* Initial state (hidden) */
    animation: fadeIn 3s ease-out forwards; /* Apply fade-in animation */
}

@media (max-width: 768px) {
    #title-container {
        height: 180px;
        margin-top: 60px;
    }
}

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#timeline {
    display: flex;
    background-color: #031625;
    justify-content: space-between;
    height: 100vh;
    overflow-x: auto; /* Allows horizontal scrolling if necessary */
    margin-top: 30px;
    margin-bottom: 25px;
  }
  
  .tl-item {
    position: relative;
    width: 25%; /* Start with each item at 25% width */
    height: 100vh; /* Full height of the viewport */
    color: #fff;
    overflow: hidden;
    transition: width 0.5s ease;
    margin: 0 0.05%;
  }
  
  .tl-item:hover {
    width: 35% !important;
  }

  @media (max-width: 768px) {
    #timeline {
        flex-direction: column;
        height: auto;
    }

    .tl-item {
        width: 100%;
        height: 250px; 
    }

    .tl-content {
        opacity: 1;
        transform: translateY(0);
    }
}
  
  .tl-bg {
    position: absolute;
    width: 100%;
    height: 100%; /* Make sure the background image fills the entire container */
    top: 0;
    left: 0;
    background-size: cover; /* Ensure the background image covers the div without stretching */
    background-position: center center; /* Center the background image */
    transition: filter 0.5s ease;
    filter: grayscale(100%); /* Images are in grayscale by default */
  }
  
  .tl-year {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
  }
  
  .tl-year p {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: white;
  }
  
  .tl-content {
    transform: translate3d(0, 0, 0) translateY(25px);
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 1.618em;
    top: 55%;
    opacity: 0;
    transition: opacity 0.75s ease 0.5s, transform 0.75s ease 0.5s;
  }
  
  .tl-item:hover .tl-content {
    opacity: 1;
    transform: translateY(0);
  }
  
  .tl-item:hover .tl-bg {
    filter: grayscale(0); /* Color the image on hover */
  }
  
  .tl-content h1 {
    text-transform: uppercase;
    font-size: 1.44rem;
    font-weight: normal;
  }
  
  .tl-content p {
    font-size: 1rem;
    color: #fff;
    margin-top: 10px;
  }

  .home-card{
    width: 100%;
    border: 0.5px solid black;
    text-align: center;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    background: #f1e9e9;
    backdrop-filter: blur(10px);
  }

  #myKit-text{
        font-size: inherit; 
    }

    #myKit-text h1{
        font-size: inherit; 
    }

    #myKit-text h2{
        font-size: inherit; 
    }

    #myKit-text h3{
        font-size: inherit; 
    }

    #myKit-text h4{
        font-size: inherit; 
    }

/* Mobile screens: up to 768px wide */
@media (max-width: 768px) {
    .home-card {
        width: 100%;              /* Take full width of the parent */
        margin: 20px 10px;        /* Top/bottom margin + small left/right breathing room */
        padding: 15px;            /* Add internal padding so content doesn’t touch edges */
        font-size: 14px;          /* Slightly smaller text for mobile readability */
        box-sizing: border-box;   /* Ensure padding is included in width */
        border: none;
    }

    .home-card h1 {
        font-size: 1.5rem;        /* Scale down heading */
    }

    .home-card h2 {
        font-size: 1.2rem;        /* Scale down subheading */
    }

    .home-card img {
        width: 60px;               /* Slightly smaller icon */
        height: 60px;
        margin-bottom: 8px;
        border: none;
    }

    #myKit-text{
        font-size: 14px; 
    }

    #myKit-text h1{
        font-size: 1.8rem; 
    }

    #myKit-text h2{
        font-size: 1.5rem; 
    }

    #myKit-text h3{
        font-size: 1.3rem; 
    }

    #myKit-text h4{
        font-size: 1.2rem; 
    }
}

/* ======================= */
/*         Reviews         */
/* ======================= */

/* ==== WRAPPER LAYOUT ==== */
.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 95%;
    margin: 10px auto;
}

/* ==== CONTAINER HOLDS THE SLIDER ==== */
.slider-container {
    flex: 1;
    overflow: hidden;
}

/* ==== SLIDER STRIP ==== */
.reviews-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
    padding:1px;
}

/* ==== INDIVIDUAL REVIEW CARD ==== */
.review {
    display: flex;
    flex: 0 0 50%;
    background-color: #f1e9e9;
    border: 1px solid grey;
    border-radius: 25px;
    padding: 15px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    height: auto;
}

.reviewImage{
    width: 22%;
    height: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* ensures anything outside the circle is clipped */
}

.reviewText{
    width: 70%;
    margin-top: auto;
    margin-bottom: auto;
}

.reviewImage img {
        width: 100%; /* or 100% to fill completely */
        height: auto;
        }
        .reviewText{
            /* display: flex; */
            padding-left: 5%;
            width: 50%;
        }
        .review h3{
            font-size: 25px;
        }


/* ==== TEXT STYLES ==== */
.review h3 {
    color: #333;
    font-size: 30px;
    margin-bottom: 0px !important;
}

.review p {
    font-size: 14px;
    color: #555;
}

.review-footer {
    font-size: 14px;
    color: #777;
}

/* ==== QUOTES ==== */
.quote-icon {
    font-size: 40px;
    color: #4CAF50;
}

.quote-icon-left {
    position: absolute;
    top: 10px;
    left: 20px;
}

.quote-icon-right {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

/* ==== SLIDER BUTTONS ==== */
.prev,
.next {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}


/* ======================= */
/*          About          */
/* ======================= */

#about-me {   
    display: flex; /* Side-by-side layout */
    align-items: flex-start; /* Aligns all items to the top */
    gap: 20px; /* Space between image and text */
    position: relative; /* Ensures proper alignment */
    padding-left: 10%;
    padding-right: 10%;
    padding-bottom: 20px;

    background-image: url("/assets/img/about/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Optional: makes background stay in place when scrolling */
}

#about-me-text { 
    margin-top: 15px;
    width: 60%;
    margin-left: 2%;
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Apply blur effect */
    border-radius: 10px; 
    padding: 20px;
}

#bev-name{
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Apply blur effect */
    border-radius: 10px; 
    padding: 1px;
}

/* The content wrapper around the image */
#content-wrapper-bg {
    position: relative; /* To allow z-index to work */
    display: inline-block; /* Makes it fit around the image */
    padding: 20px;
    background-size: 100% 100%; /* Adjust to fit content */
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2; /* Just below the wrapper background */
}

/* Golden border image: placed behind everything */
#content-wrapper-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2; /* Below everything */
    padding-top: 6px;
    padding-bottom: 3px;
}

/* Image inside the content wrapper */
#content-img {
    position: relative; /* Ensures it sits above the border */
    z-index: 1; /* Positioned above the border */
    width: 100%; /* Ensures the image doesn't overflow */
}

#content-img img {
    width: 100%;
    max-width: 285px;  /* maintains original proportion */
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    #about-me {
        flex-direction: column;
        align-items: center;
    }

    #about-me-text {
        max-width: 90%;
        text-align: center;
        width:auto;
    }

    #about-me-text h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

#about-me-text p {
    margin-bottom: 15px;
}

    #content-wrapper-bg {
        display: inline-block;
        padding: 20px;
        background-size: cover; /* or 'contain' depending on your preference */
        background-repeat: no-repeat;
        background-position: center;
    }

    #content-img {
        display: inline-block;
        position: relative;
        z-index: 1;
    }

    #content-img img {
        display: block;
        max-width: 100%;
        height: auto;
    }
}

/* ======================= */
/*        Portfolio        */
/* ======================= */

/* General styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --magnifier: 1.5;
    --gap: 1vmin;
    --transition: 0.5s;
}

/* Gallery grid layout */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 5px;
    transition: 0.3s;
}

/* Tablet breakpoint */
@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .gallery {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Hover effect - desaturate other images */
/* .gallery:hover .gallery__image {
    filter: grayscale(1);
} */

/* Gallery item (clickable) */
.gallery__link {
    overflow: hidden;
    height: 300px;
    max-height: 400px;
    display: block;
    position: relative;
    cursor: pointer;
}

/* Image container */
.gallery__thumb {
    position: relative;
    height: 100%;
}

/* Gallery images */
.gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
}

/* Hover effects */
.gallery__link:hover .gallery__image {
    filter: grayscale(0);
    transform: scale(1.1);
}

.gallery__link:hover .gallery__caption {
    opacity: 1;
}

/* Caption overlay */
.gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px 15px 15px;
    width: 100%;
    font-size: 14px;
    color: white;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    transition: opacity 0.3s;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}
.prev, .next {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 20px;
}
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ======================= */
/*         Prices          */
/* ======================= */

#prices {
    display: flex; /* Side-by-side layout */
    align-items: flex-start; /* Aligns all items to the top */
    gap: 20px; /* Space between image and text */
    position: relative; /* Ensures proper alignment */
    background-image: url("/assets/img/terms/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Optional: makes background stay in place when scrolling */
}

#prices-content {
    width: 70%; 
    padding-top: 5%; 
    padding-left: 10%; 
    padding-right: 10%; 
    padding-bottom: 5%; 
    border: 1px solid black; 
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f1e9e9;
}

#prices-container {
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn’t affect width */
    text-align: left; /* Keeps text aligned properly */
}

#prices-container h2 {
    margin-top: 40px;
    margin-bottom: 10px;
}
#prices-container p,
#prices-container ul {
    margin-bottom: 20px;
}

#prices-content h2 {
    font-family: 'VanityBold';
    margin-top: 20px;
    margin-bottom: 10px;
}
#prices-content strong {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #prices-content {
        width: 90%;
        padding: 15px;
    }

    #prices-container h2 {
        font-size: 1.2rem;
    }

    #prices-container p,
    #prices-container ul {
        font-size: 0.9rem;
    }
    .lineBreaker{
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

/* ======================= */
/*    Terms & Conditions   */
/* ======================= */

#conditions {
    display: flex; /* Side-by-side layout */
    align-items: flex-start; /* Aligns all items to the top */
    gap: 20px; /* Space between image and text */
    position: relative; /* Ensures proper alignment */
    background-image: url("/assets/img/terms/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Optional: makes background stay in place when scrolling */
}

#conditions-content {
    width: 70%; 
    padding-top: 5%; 
    padding-left: 10%; 
    padding-right: 10%; 
    padding-bottom: 5%; 
    border: 1px solid black; 
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f1e9e9;
}

#conditions-container {
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn’t affect width */
    text-align: left; /* Keeps text aligned properly */
}

#conditions-container h2 {
    margin-top: 40px;
    margin-bottom: 10px;
}
#conditions-container p,
#conditions-container ul {
    margin-bottom: 20px;
}

#conditions-content h2 {
    font-family: 'VanityBold';
    margin-top: 20px;
    margin-bottom: 10px;
}
#conditions-content strong {
    text-decoration: underline;
}

.lineBreaker{
        margin-top: 25px;
        margin-bottom: 25px;
    }

@media (max-width: 768px) {
    #conditions-content {
        width: 90%;
        padding: 15px;
    }

    #conditions-container h2 {
        font-size: 1.2rem;
    }

    #conditions-container p,
    #conditions-container ul {
        font-size: 0.9rem;
    }
    .lineBreaker{
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

/* ======================= */
/*         Contact         */
/* ======================= */

.contact-form-container {
    width: 100%;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    margin-top: 280px;
    background-color: #f9f9f9;
    border: 1px solid black;
    border-radius: 8px;
}

#contact-us{
    display: flex; /* Side-by-side layout */
    align-items: flex-start; /* Aligns all items to the top */
    gap: 20px; /* Space between image and text */
    position: relative; /* Ensures proper alignment */
    background-image: url("/assets/img/book/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Optional: makes background stay in place when scrolling */
}

#contact-us-content {
    width: 70%;
    padding-left: 10%; 
    padding-right: 10%; 
    padding-bottom: 3%; 
    border: 1px solid black; 
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f1e9e9;
}

#contact-us-content h4 {
    font-size: 22px; /* adjust as needed */
}

#contact_form-message {
    text-shadow: 0.2px 0.2px 0 black, -0.2px -0.2px 0 black, -0.2px 0.2px 0 black, 0.2px -0.2px 0 black;
    backdrop-filter: blur(5px) saturate(70%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 20px;
    display: inline-block;       /* prevents full-width stretching */
    margin-top: 10px;            /* optional spacing */
}

@media (max-width: 768px) {
    #contact-us-content h4 {
        font-size: 24px; /* readable on small screens */
    }
}

@media (max-width: 768px) {
    #agreeTerms-container {
        flex-direction: column; /* Stack vertically */
        align-items: flex-start; /* Align items to the left */
    }

    #agreeTerms-container label {
        display: block;
    }

    #agreeTerms-container a#navT\&C {
        display: block;
        margin-top: 5px; /* Add some space from the checkbox label */
    }
}

/* ======================= */
/*    Global Mobile Fixes  */
/* ======================= */

@media (max-width: 768px) {

    /* Base text sizing */
    html, body {
        font-size: 14px; /* readable on mobile */
        visibility: visible !important;
    }

    /* Headings */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    /* Layout spacing */
    .home-card,
    .review,
    .gallery,
    #timeline {
        margin-left: 10px;
        margin-right: 10px;
    }

    /* Title image area */
    #title-container {
        height: 180px;
        background-position: center;
    }

    /* Timeline: convert to vertical stacked cards */
    #timeline {
        flex-direction: column;
        height: auto;
        overflow-x: visible;
    }

    .tl-item {
        width: 100%;
        height: 220px;
        margin-bottom: 2px;
    }

    .tl-item:hover {
        width: 100% !important; /* disable hover behavior */
    }

    .tl-bg {
        filter: grayscale(0);
    }

    .tl-content {
        opacity: 1;
        transform: none;
        top: auto;
        margin-top: 50px;
    }

    /* Reviews slider: single column, auto height */
    .reviews-slider {
        gap: 10px;
    }

    .review {
        flex: 0 0 100%;
        max-height: none;
        height: auto;
        padding: 10px;
    }

    /* Hide the review images */
    .reviewImage {
        display: none;
    }

    
    .reviewText {
        width: 100%;
        padding-left: 10px;
        overflow-y: auto;
    }

    .review h3 {
        font-size: 20px;
    }

    .review p {
        font-size: 14px;
    }

    /* Slider buttons */
    .slider-btn {
        padding: 5px 8px;
        font-size: 20px;
    }

    /* Images default responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Reduce padding everywhere */
    #header-contents,
    .footer,
    .home-card {
        padding: 10px;
    }

    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 8px 0;
    }

    .social-links i {
        margin-right: 8px;
    }

    #header-contents,
    .footer,
    .home-card {
        padding: 10px;
    }

}
