/* GLOBAL STYLES
-------------------------------------------------- */
/* Modern, fluent design with smooth transitions */

body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  scroll-behavior: smooth;
}

/* Add smooth transitions to all elements */
* {
  transition: all 0.3s ease;
}

/* Remove background from marketing container */
.container.marketing {
  max-width: 95%;
  width: 95%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  /* No background styling - transparent */
}

/* Make all containers wider */
.container {
  max-width: 95%;
  width: 95%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Background image with overlay */
body {
  background: url('./img/DSC_7595_scrn.jpg') center center fixed;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
}

/* Add a subtle overlay to ensure text readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.65);
  z-index: -1;
}


/* Make images and videos responsive */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

audio {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Custom Carousel - Built from scratch */
.custom-carousel {
  position: relative;
  margin-bottom: 4rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  height: 45.9rem; /* Increased from 43.7rem by additional 5% */
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #777;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

/* Navigation buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Dots navigation */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Caption overlay */
.carousel-caption-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: white;
  width: fit-content;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  top: auto;
  transform: translateX(-50%);
  margin: 0;
  z-index: 6;
}

.carousel-caption h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  white-space: nowrap;
}

.carousel-caption p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: 0;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  opacity: 0.95;
  white-space: nowrap;
}

/* Copyright overlay for photo credits */
.carousel-copyright {
  position: absolute;
  top: 1.25rem;
  right: 15px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

.carousel-copyright:hover {
  opacity: 0.7;
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Modern card-style columns - Keep row layout for readability */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure proper row layout on larger screens */
.marketing .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Make columns more readable on laptop screens */
@media (min-width: 992px) {
  .marketing .col-lg-4 {
    flex: 0 0 32%;
    max-width: 32%;
    margin-bottom: 1.5rem;
  }
}

.marketing .col-lg-4:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.marketing .col-lg-4 h2 {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* rtl:begin:ignore */
.marketing .col-lg-4 p {
  margin-right: .25rem;
  margin-left: .25rem;
  color: #555;
}

/* rtl:end:ignore */


/* Featurettes - Modern section styling
------------------------- */

.featurette-divider {
  margin: 3rem 0;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.row.featurette {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Only center content in the video section */
.row.featurette:has(h2#video) {
  text-align: center;
}

.row.featurette:has(h2#video) .col-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Fallback for browsers that don't support :has() */
h2#video {
  text-align: center;
}

h2#video + .video-container {
  text-align: center;
}

/* Thin out the marketing headings */
/* rtl:begin:remove */
.featurette-heading {
  letter-spacing: -.05rem;
  color: #333;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* rtl:end:remove */

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {

  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

/* Medium screens - stack vertically */
@media (min-width: 768px) and (max-width: 991px) {
  .marketing .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 2rem;
  }
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

/* Enhanced responsive tweaks for small screens */
@media (max-width: 767.98px) {
  body {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.98rem;
  }
  
  .custom-carousel {
    border-radius: 12px;
    margin-bottom: 2rem;
    height: 24.15rem; /* Increased from 23rem by additional 5% */
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .carousel-nav {
    padding: 0 0.25rem;
  }
  
  .carousel-caption {
    padding: 1rem;
    border-radius: 8px;
    width: fit-content;
    max-width: 90vw;
    margin: 0 auto;
    left: 50% !important;
    right: auto !important;
    top: auto;
    bottom: 2.5rem;
    transform: translateX(-50%) !important;
    text-align: center !important;
  }
  
  .carousel-caption h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
  }
  
  /* Mobile-specific positioning - force override */
  .custom-carousel .carousel-copyright {
    top: 2.75rem !important;
    left: auto !important;
    right: 15px !important;
  }
  
  .custom-carousel .carousel-caption-overlay {
    align-items: center !important;
    justify-content: center !important;
  }
  
  .custom-carousel .carousel-caption {
    text-align: center !important;
    margin: 0 auto !important;
  }

  .featurette-heading {
    font-size: 1.8rem;
    margin-top: 1rem;
  }
  
  .marketing .col-lg-4 {
    margin: 0 0 1rem 0;
    padding: 0.75rem;
    border-radius: 12px;
  }
  
  .featurette-divider {
    margin: 1.5rem 0;
  }
  
  .row.featurette {
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .lead, p, ul, li {
    font-size: 1rem;
  }
  
  h1, h2, h3 {
    font-size: 1.4em;
  }
  
  nav.navbar {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  
  .navbar-toggler {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    margin: 0;
    z-index: 1051;
  }
}

/* Add some modern text styles for better readability */
.text-left {
  text-align: left !important;
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Make video-container fit the video exactly */
.video-container {
  display: inline-block;
  margin: 0 auto;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  min-height: unset;
  width: auto;
  height: auto;
}

.video-container video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Footer styling */
footer.container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Modern Gigg Card Styling */
.gigg-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.gigg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gigg-card.upcoming {
  border-left-color: #28a745;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.gigg-card.past {
  border-left-color: #6c757d;
  background: rgba(248, 249, 250, 0.95);
}

.gigg-card.no-giggs {
  border-left-color: #ffc107;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
  text-align: center;
  flex-direction: column;
  padding: 2rem;
}

/* Date styling for upcoming giggs */
.gigg-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #28a745;
  color: white;
  border-radius: 12px;
  padding: 1rem;
  margin-right: 1.5rem;
  min-width: 80px;
  text-align: center;
}

.gigg-day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.gigg-month {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.gigg-year {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* Smaller date styling for past giggs */
.gigg-date-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #6c757d;
  color: white;
  border-radius: 8px;
  padding: 0.75rem;
  margin-right: 1rem;
  min-width: 60px;
  text-align: center;
}

.gigg-day-small {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

.gigg-month-small {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Content styling */
.gigg-content {
  flex: 1;
  text-align: left;
}

.gigg-location {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.gigg-description {
  margin: 0 0 0.5rem 0;
  color: #666;
  line-height: 1.4;
}

.gigg-full-date {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}

/* Icon styling */
.gigg-icon {
  font-size: 2rem;
  margin-left: 1rem;
  opacity: 0.7;
}


/* Year section styling */
.year-section {
  margin-bottom: 3rem;
}

.year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.year-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.year-count {
  background: #6c757d;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.giggs-timeline {
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gigg-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .gigg-date,
  .gigg-date-small {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .gigg-icon,
  .gigg-icon-small {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .year-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}