/* Base Styles */
* {
    font-family: Arial, sans-serif; /* Added fallback */
    box-sizing: border-box; /* Added for better layout control */
    margin: 0;
    padding: 0;
}

/* Fix: Only apply the default background to the body */
body {
    background-color: var(--background-color);
}

:root {
    /* Use the DUCT color as the primary theme color for better continuity */
    --duct-tangerine: #ff6600; /* Dundee United Tangerine */
    --duct-dark: #cc5200;      /* Darker shade for hover/accents */
    --primary-color: #d9534f;
    --duct-color: var(--duct-tangerine); /* Kept your variable name */
    --primary-color-dark: #c9302c;
    --text-color: #333;
    --highlight-color: var(--duct-dark); /* Using darker tangerine for highlight */
    --contrast-text-color: #fff;
    --neutral-text-color: #333;
    --background-color: #f4f4f4;
    --border-color: #ccc;
    --focus-border-color: var(--primary-color);
    --link-color: var(--duct-color);
    --link-hover-color: var(--duct-dark);
    --form-background-color: #ffffff;

}

/* Navbar styles */
#navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 15px;
}

/* Navigation list */
.nav-list {
    list-style: none;
    display: flex;
    gap: 15px; /* Spacing between buttons */
    padding: 0;
    margin: 0;
}

/* General Button Styling */
.nav-list li a {
    color: rgb(39, 38, 38);
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 20px; /* Rounded buttons */
    font-family: Arial, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

nav ul li a:hover {
    background: #900; /* Highlight color */
    text-decoration: none;
    color: #fff; /* Contrast text color */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px; /* Position the hamburger menu on the top left */
    z-index: 3; /* Ensure the menu toggle is above the hero content */
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: var(--highlight-color);
    margin: 4px 0;
    transition: 0.4s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

h1 { 
    color: var(--duct-color); 
    padding-top: 20px;
    text-align: center;
}

/* New: Styling for the summary area */
.duct-summary {
    max-width: 800px;
    margin: 20px auto 40px;
    padding: 0 15px;
    text-align: center;
    color: var(--neutral-text-color);
}

/* --- GALLERY ENHANCEMENTS (Changed from Flex to Grid) --- */
.gallery { 
    display: grid; 
    /* Default for large screens: 3 columns, each minimum 300px wide */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background-color: var(--form-background-color); /* White card background */
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 6px 12px rgba(0,0,0,0.1); 
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.gallery-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}

.gallery-item img { 
    width: 100%; 
    height: 220px; /* Fixed height for consistent look */
    object-fit: cover; /* Important: prevents stretching and cropping nicely */
    border-radius: 0; /* Remove radius on image corners to match container */
    box-shadow: none; /* Remove shadow from individual images */
    background-color: transparent; /* Ensure image background is transparent */
}

.image-caption {
    background-color: var(--form-background-color);
    color: var(--text-color);
    padding: 15px 10px;
    font-size: 0.9em;
    min-height: 60px; /* Ensure even caption blocks look good */
    display: flex; /* Centers text vertically in the caption */
    align-items: center;
    justify-content: center;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal Content (The Image itself) */
.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px; /* Max size for large image */
    max-height: 80vh; /* Max height (80% of viewport height) */
    object-fit: contain; /* Important: ensures full image is visible */
}

/* The Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Caption of Modal Image */
#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.1em;
}

/* Add animation to the image */
.modal-content, #modal-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* ===========================
   VIDEO GALLERY WRAPPER
=========================== */
.video-gallery {
  font-family: "Inter", Arial, sans-serif;
  background: #f9fafb;
  color: #222;
  line-height: 1.6;
}

/* ===========================
   PAGE TITLE
=========================== */
.PageTitle {
  text-align: center;
  margin: 2rem auto;
  padding: 1.5rem 1rem;
  max-width: 800px;
}

.PageTitle h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: #222;
}

.PageTitle p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #444;
  opacity: 0.9;
  line-height: 1.6;
}

/* ===========================
   GRID LAYOUT
=========================== */
.video-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

/* ===========================
   VIDEO CARD
=========================== */
.video-gallery .card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.video-gallery .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.video-gallery .card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #ff0000; /* YouTube red */
}

/* ===========================
   THUMBNAIL IMAGE
=========================== */
.video-gallery .card img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #ddd;
  aspect-ratio: 9 / 16; /* vertical short format */
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-gallery .card img:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

/* ===========================
   BUTTON / LINK STYLES
=========================== */

.youtube-link,
.tiktok-link {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin: 0.5rem auto;
  transition: opacity 0.3s ease;
}

.youtube-link {
  background: #ff0000;
}

.youtube-link:hover {
  opacity: 0.85;
}

.tiktok-link {
  background: #000;
}

.tiktok-link:hover {
  background: #ff0050; /* TikTok pink */
  opacity: 1;
}


@media (max-width: 480px) {
    /* Gallery change: Switch to single column on phones */
    .gallery {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        height: 250px; /* Give images more vertical space on small screens */
    }

    .modal-content {
        width: 100%;
    }
}