/*

TemplateMo 583 Festava Live

https://templatemo.com/tm-583-festava-live

*/


/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --white-color:                  #fefefe;
  --red-color:                    hwb(258 0% 93%);
  --primary-color:                #ffffff;
  --secondary-color:              #ffffff;
  --section-bg-color:             #f0f8ff;
  --custom-btn-bg-color:          #8b1a16;
  --custom-btn-bg-hover-color:    #c01f27;
  --dark-color:                   #000000;
  --p-color:                      #717275;
  --border-color:                 #7fffd4;
  --link-hover-color:             #B22727;

  --body-font-family:             'Outfit', sans-serif;

  --h1-font-size:                 74px;
  --h2-font-size:                 46px;
  --h3-font-size:                 32px;
  --h4-font-size:                 28px;
  --h5-font-size:                 24px;
  --h6-font-size:                 22px;
  --p-font-size:                  18px;
  --btn-font-size:                14px;
  --copyright-font-size:          16px;

  --border-radius-large:          100px;
  --border-radius-medium:         20px;
  --border-radius-small:          10px;

  --font-weight-light:            300;
  --font-weight-normal:           400;
  --font-weight-bold:             700;
}

/* The Seasons font - place your font files in /fonts and update filenames if needed */
@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/TheSeasons.woff2') format('woff2'),
       url('../fonts/TheSeasons.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: var(--red-color);
  font-family: var(--body-font-family); 
}

/* Force no gap at top: remove default margins/paddings that can create a visible band */
html, body, main {
  margin: 0;
  padding: 0;
}

/* ensure hero sits at the very top */
.hero-section {
  margin-top: 0;
  padding-top: 0;
}

/* make sure video fills hero from the top */
.video-wrap, .custom-video {
  top: 0;
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
}

h1 {
  font-size: var(--h1-font-size);
  color: var(--white-color);
  font-family: 'The Seasons', sans-serif;
}

h2 {
  font-size: var(--h2-font-size);
  font-family: 'The Seasons', sans-serif;
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

/* thin email text used in contact section */
.text-email {
  font-weight: 300;
  font-size: 20px;
  color: var(--white-color);
  margin-bottom: 12px;
}

/* push social follow block lower in contact section */
.contact-social {
  margin-top: 48px;
}

@media screen and (max-width: 767px) {
  .contact-social {
    margin-top: 28px;
  }
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

.link-fx-1 {
  color: var(--white-color);
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 6px;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.link-fx-1:hover {
  color: var(--link-hover-color);
}

.link-fx-1:hover::before {
  transform: translateX(17px) scaleX(0);
  transition: transform .2s;
}

.link-fx-1:hover .icon circle {
  stroke-dashoffset: 200;
  transition: stroke-dashoffset .2s .1s;
}

.link-fx-1:hover .icon line {
  transform: rotate(-180deg);
}

.link-fx-1:hover .icon line:last-child {
  transform: rotate(180deg);
}

.link-fx-1::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform-origin: right center;
  transition: transform .2s .1s;
}

.link-fx-1 .icon {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateX(100%) rotate(90deg);
  font-size: 32px;
}

.icon {
  --size: 1em;
  height: var(--size);
  width: var(--size);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.link-fx-1 .icon circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .2s;
}

.link-fx-1 .icon line {
  transition: transform .4s;
  transform-origin: 13px 15px;
}

.link-fx-1 .icon line:last-child {
  transform-origin: 19px 15px;
}


/*---------------------------------------
  SECTION               
-----------------------------------------*/
.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-bg {
  background-color: var(--section-bg-color);
}

.section-overlay {
  background-color: var(--dark-color);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.section-overlay + .container {
  position: relative;
}

.tab-content {
  background-color: var(--white-color);
  border-radius: var(--border-radius-medium);
  padding: 45px;
}

.nav-tabs {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius-large);
  border-bottom: 0;
  padding: 15px;
}

.nav-tabs .nav-link {
  border-radius: var(--border-radius-large);
  border: 0;
  padding: 15px 25px;
  transition: all 0.3s;
}

.nav-tabs .nav-link:first-child {
  margin-right: 15px;
}

.nav-tabs .nav-item.show .nav-link, 
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus, 
.nav-tabs .nav-link:hover {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  color: var(--primary-color);
}

.nav-tabs h5 {
  color: var(--p-color); 
  margin-bottom: 0;
}

.nav-tabs .nav-link.active h5,
.nav-tabs .nav-link:focus h5, 
.nav-tabs .nav-link:hover h5 {
  color: var(--primary-color);
}


/*---------------------------------------
  CUSTOM ICON COLOR               
-----------------------------------------*/
.custom-icon {
  color: var(--secondary-color);
}


/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn {
  background: var(--custom-btn-bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-bold);
  line-height: normal;
  transition: all 0.3s;
  padding: 10px 20px;
}

.custom-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  color: var(--white-color);
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--custom-btn-bg-color);
  color: var(--custom-btn-bg-color);
}

.navbar-expand-lg .navbar-nav .nav-link.custom-btn:hover,
.custom-border-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
  color: var(--white-color);
}

.custom-btn-bg-white {
  border-color: var(--white-color);
  color: var(--white-color);
}


/*---------------------------------------
  VIDEO              
-----------------------------------------*/
.video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
}

.custom-video {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}


/*---------------------------------------
  SITE HEADER              
-----------------------------------------*/
.site-header {
  background-color: var(--primary-color);
  padding-top: 12px;
  padding-bottom: 12px;
}


/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
.sticky-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  margin-top: 0;
}

.sticky-wrapper.is-sticky .navbar {
  background-color: var(--dark-color);
}

.navbar {
  background-color: var(--dark-color);
  z-index: 9999;
  padding-top: 4px;
  padding-bottom: 0px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
}

.navbar-brand,
.navbar-brand:hover {
  color: var(--white-color);
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-bold);
  font-family: 'The Seasons', sans-serif;
}

.navbar-expand-lg .navbar-nav .nav-link {
  border-radius: var(--border-radius-large);
  margin: 6px;
  padding: 6px 14px;
}

.navbar-nav .nav-link {
  display: inline-block;
  color: var(--white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
  position: relative;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Slight upward nudge for nav links */
.navbar-nav .nav-link { transform: translateY(-4px); }

.navbar-brand { padding-top: 2px; padding-bottom: 2px; }

/* tighter container padding for nav so brand/links sit closer to edges */
.navbar .container {
  padding-left: 8px;
  padding-right: 8px;
}

.navbar-brand {
  margin-left: 0;
  padding-left: 0;
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--white-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--white-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}


/*---------------------------------------
  HERO        
-----------------------------------------*/
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  height: 100vh;
}

.hero-section small {
  color: var(--white-color);
  text-transform: uppercase;
}

.hero-section .section-overlay {
  z-index: 2;
  opacity: 0.45;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-bottom: 50px;
}

.hero-section .container .row {
  height: 100%;
}


/*---------------------------------------
  ABOUT              
-----------------------------------------*/
.about-section {
  background-image: url('../images/edward-unsplash-blur.jpg');
  background-color: #704010;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.about-image {
  border-radius: var(--border-radius-medium);
  display: block;
}

.about-text-wrap {
  position: relative;
}

.about-text-icon {
  background: var(--primary-color);
  border-radius: 100%;
  font-size: var(--h3-font-size);
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
}

.about-text-info {
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: var(--border-radius-medium);
  border: 1px solid rgba(209, 213, 219, 0.3);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  margin: 20px;
  padding: 35px;
}


/*---------------------------------------
  TICKET               
-----------------------------------------*/
.ticket-section {
  background-image: url('../images/nicholas-green-unsplash-blur.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding-top: 130px;
}

.ticket-form {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  padding: 50px;
}

.ticket-form .form-check {
  position: relative;
  min-height: 52px;
  padding-left: 35px;
}

.ticket-form .form-check .form-check-label {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 12px;
  margin-left: 35px;
  width: 100%;
  height: 100%;
}


/*---------------------------------------
  ARTISTS              
-----------------------------------------*/
.artists-thumb {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.artists-image {
  border-radius: var(--border-radius-medium);
  display: block;
  width: 100%;
}

.artists-thumb:hover .artists-hover {
  transform: translateY(0);
  opacity: 1;
}

.artists-hover {
  background-color: var(--primary-color);
  background-color: rgba(248, 203, 46, 0.75);
  border-radius: var(--border-radius-medium);
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  margin: 20px;
  padding: 35px;
  transition: all 0.5s ease;
  transform: translateY(100%);
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  opacity: 0;
}

.artists-hover p strong {
  color: var(--white-color);
  display: inline-block;
  min-width: 180px;
  margin-right: 20px;
}

.artists-hover p a {
  color: var(--secondary-color);
}

.artists-hover p a:hover {
  color: var(--white-color);
}

.artists-hover hr {
  margin: 1.5rem 0;
}


/*---------------------------------------
  SCHEDULE              
-----------------------------------------*/
.schedule-section {
  background-image: url('../images/nainoa-shizuru-unsplash-blur.jpg');
  background-color: #242424;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.table-responsive {
	filter: drop-shadow(2px 2px 4px #606060);
}

.schedule-table {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.schedule-table .bg-warning {
  background: #f0a5a5 !important;
}

.schedule-table thead th {
  background-color: var(--secondary-color);
}

.schedule-table th,
.schedule-table tr,
.schedule-table td {
  border-bottom-color: #363a3e;
  padding: 30px;
}

.schedule-table tr:last-child th,
.schedule-table tr:last-child td {
  border-bottom-color: transparent;
}

.schedule-table thead th {
  border-right: 1px solid #c7460a;
  border-bottom-color: transparent;
}

.schedule-table th + td {
  border-bottom: 0;
}

.schedule-table thead th:last-child {
  border-right-color: transparent;
}

.schedule-table .pop-background-image {
  background-image: url('../images/artists/joecalih-UmTZqmMvQcw-unsplash.jpg');
}

.schedule-table .rock-background-image {
  background-image: url('../images/artists/abstral-official-bdlMO9z5yco-unsplash.jpg');
}

.schedule-table .country-background-image {
  background-image: url('../images/artists/soundtrap-rAT6FJ6wltE-unsplash.jpg');
}

.table-background-image-wrap {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: none;
  position: relative;
}

.schedule-table h3,
.schedule-table p {
  color: var(--white-color);
  position: relative;
  z-index: 2;
}


/*---------------------------------------
  PRICING              
-----------------------------------------*/
.pricing-thumb {
  border: 5px dotted var(--dark-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  padding: 50px;
}

.pricing-thumb h3 small {
  display: inline-block;
  font-size: var(--p-font-size);
  margin-right: 15px;
}

.pricing-list {
  column-count: 2;
  padding-left: 20px;
}

.pricing-list-item {
  line-height: normal;
  margin-right: 10px;
  margin-bottom: 10px;
}

.pricing-tag {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  position: absolute;
  top: 0;
  right: 0;
  margin: 20px;
}

.pricing-tag span {
  font-size: 180%;
  line-height: normal;
}

.pricing-thumb .link-fx-1 {
  color: var(--primary-color);
}

.pricing-thumb .link-fx-1:hover {
  color: var(--link-hover-color);
}


/*---------------------------------------
  CONTACT               
-----------------------------------------*/
.google-map {
  border-radius: var(--border-radius-medium);
}


/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control {
  color: var(--p-color);
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  outline: none;
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s;
  margin-bottom: 0;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}


/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.site-footer {
  background-color: var(--dark-color);
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
}

.site-footer-top {
  background-color: var(--secondary-color);
  background-image: url('../images/nainoa-shizuru-NcdG9mK3PBY-unsplash.jpg');
  background-repeat: no-repeat;
  margin-bottom: 70px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.site-footer-bottom {
  border-top: 1px solid #1f1c1c;
  margin-top: 60px;
}

.site-footer-title {
  color: var(--primary-color); 
}

.site-footer-link,
.copyright-text {
  color: var(--white-color);
}

.site-footer-links {
  padding-left: 0;
}

.site-footer-link-item {
  list-style: none;
  display: inline-block;
  margin-right: 15px;
}

.copyright-text {
  font-size: var(--copyright-font-size);
}


/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--secondary-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--copyright-font-size);
  display: block;
  margin-right: 10px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 36px;
  transition: background 0.2s, color 0.2s;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.social-icon-link span {
  display: block;
}

.social-icon-link span:hover::before{
  animation: spinAround 2s linear infinite;
}

/* PNG social icons (replace images/*.png with your assets) */
.social-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

/* remove white bubble when link contains a PNG icon */
.social-icon-img-link {
  background: transparent;
  width: auto;
  height: auto;
  padding: 0;
  margin-right: 6px;
}
.social-icon-img-link .social-icon-img {
  width: 36px;
  height: 36px;
}

/* Prevent white circular background appearing on hover for PNG icon links */
.social-icon-img-link {
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}
.social-icon-img-link:hover {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

@keyframes spinAround {
  from {
    transform: rotate(0deg)
  }
  to {
    transform: rotate(360deg);
  }
}


/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (max-width: 991px) {
  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .navbar {
    background-color: var(--dark-color);
  }

  .navbar-expand-lg .navbar-nav {
    padding-bottom: 30px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 0;
  }

  .hero-section {
    padding-top: 150px;
  }

  .pricing-thumb {
    padding: 35px;
  }

  .schedule-table h3 {
    font-size: 22px;
  }

  .schedule-table th {
    padding: 20px;
  }

  .schedule-table tr, 
  .schedule-table td {
    padding: 25px;
  }

  .ticket-section {
    padding-top: 130px;
  }

  .ticket-form {
    padding: 30px;
  }
}

@media screen and (max-width: 767px) {
  .custom-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }
}

/* --- Mobile-specific responsive tweaks --- */
@media screen and (max-width: 767px) {
  .hero-section {
    height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: 36px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  p {
    font-size: 16px;
  }

  .video-wrap, .custom-video {
    /* show background video on phones — controlled and centered by the later 'additional' mobile rules */
    display: block;
  }

  .navbar-collapse {
    background: rgba(0,0,0,0.95);
    padding: 12px;
    margin-top: 8px;
    border-radius: 8px;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 8px 12px;
    text-align: center;
    margin: 6px 0;
  }

  .social-icon-img {
    width: 32px;
    height: auto;
  }

  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .gallery {
    gap: 10px;
  }

  .text-email {
    font-size: 16px;
  }

  .custom-btn {
    width: auto;
    padding: 8px 14px;
    font-size: 14px;
  }

  /* Reduce schedule/date font size on phones for better fit */
  .text-dates {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 28px !important;
  }

  .navbar-brand {
    font-size: 20px;
  }

  .social-icon-img {
    width: 28px;
  }
}

/* Responsive iframe helper */
.responsive-iframe {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.responsive-iframe iframe,
.responsive-iframe video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Additional mobile-only tweaks (phone-first) --- */
@media screen and (max-width: 767px) {
  /* Reduce hero height so background video appears less zoomed */
  .hero-section {
    height: 60vh;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .video-wrap {
    height: 60vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
  }

  .custom-video {
    position: absolute;
    top: 50%;
    left: 50%;
    /* enlarge slightly so the sides are filled on narrow viewports */
    transform: translate(-50%, -50%) scale(1.08);
    min-width: 120%;
    min-height: 120%;
    width: auto;
    height: 100%;
    object-fit: cover;
    background-color: transparent;
  }

  /* Make sure the collapsed menu is visible and usable on small screens */
  .navbar-toggler {
    z-index: 10001;
  }

  .navbar-collapse {
    z-index: 10000;
  }

  .navbar-collapse.show {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    position: fixed;
    right: 8px;
    left: 8px;
    top: 56px;
    background: rgba(0, 0, 0, 0.98);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav .nav-link {
    font-size: 18px;
    padding: 10px 0;
    margin: 0;
    text-align: center;
    color: var(--white-color);
  }

  /* Center the bio content and ensure stacked columns are full-width and readable */
  .about-section .services-info,
  .about-section .about-text-wrap {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    /* slightly increase horizontal padding for better readability on phones */
    padding-left: 8px !important;
    padding-right: 12px !important;
  }

  /* Also reduce column gutters inside about section on mobile */
  .about-section .col-12,
  .about-section [class*="col-"] {
    padding-left: 2px !important;
    padding-right: 12px !important;
  }

  /* Force any d-flex usage to stop interfering on small screens */
  .about-section .d-flex {
    display: block !important;
    align-items: normal !important;
  }

  /* Specific styling for the BIO paragraph to remove extra margins and increase readability (mobile: justified) */
  .about-section .text-filsdepute {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    /* Make the paragraph justified on phones for cleaner edges */
    text-align: justify !important;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    text-align-last: left;
  }

  .about-section .services-info p {
    font-size: 17px;
    line-height: 1.4;
  }

  /* Gallery: 2 images per row and much smaller thumbnails on phones */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    /* reduce container width so each tile is small */
    max-width: 320px;
    margin: 0 auto;
  }

  /* Remove forced aspect ratio on mobile and set a fixed small height */
  .gallery-item {
    aspect-ratio: auto !important;
    height: 70px !important;
    overflow: hidden;
    width: 100%;
  }

  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
  }

  /* Make the featured YouTube video much smaller and centered */
  .responsive-iframe {
    max-width: 260px !important;
    margin: 12px auto !important;
  }

  .responsive-iframe iframe,
  .responsive-iframe .featured-video {
    width: 100% !important;
    height: auto !important;
    position: static !important; /* allow normal flow within the limited box */
    display: block !important;
  }

  /* extra safety: if Bootstrap or other global rules still force width, use a specific rule */
  .featured-video {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Compact contact block: label + email remain on same line */
  .contact-section .text-white3 {
    font-size: 13px !important;
    margin-bottom: 0;
    display: inline-block;
  }

  .contact-section .text-email {
    font-size: 12px !important;
    margin-bottom: 6px;
    display: inline-block;
    white-space: nowrap;
    margin-left: 6px;
  }

  /* If label is immediately followed by an email (sibling), keep them inline without breaking */
  .contact-section .text-white3 + .text-email {
    display: inline-block;
    white-space: nowrap;
    font-size: 12px !important;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 28px !important;
  }

  .navbar-brand {
    font-size: 18px;
  }

  .social-icon-img {
    width: 26px;
  }

  /* Further reduce the hero/video size on smaller phones */
  .hero-section {
    height: 50vh;
  }

  .video-wrap {
    height: 50vh;
  }

  .custom-video {
    transform: translate(-50%, -50%) scale(1.15);
    min-width: 130%;
    min-height: 130%;
  }

  .responsive-iframe {
    max-width: 220px !important;
    padding-bottom: 56.25%;
    margin: 8px auto !important;
  }

  .gallery-item img {
    height: 55px; /* reduced: half height for very small phones */
  }

  /* Very small phones: make gallery even smaller */
  @media screen and (max-width: 420px) {
    .gallery {
      max-width: 260px;
      gap: 6px;
    }

    .gallery-item {
      height: 55px !important;
    }

    .gallery-item img {
      height: 55px !important;
    }
  }

  .contact-section .text-white3 {
    font-size: 12px !important;
  }

  .contact-section .text-email {
    font-size: 11px !important;
  }

  .about-section .services-info p {
    font-size: 15px;
    line-height: 1.25;
  }

  /* Very small phones: reduce schedule dates font so the lines fit comfortably */
  .text-dates {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  /* Very small phones: give a small balanced horizontal padding for readability */
  .about-section .services-info,
  .about-section .about-text-wrap,
  .about-section .col-12,
  .about-section [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 14px !important;
    margin-left: 2px !important;
  }

  .about-section .text-filsdepute {
    font-size: 17px !important;
    padding-left: 6px !important;
    padding-right: 8px !important;
    margin-left: 0 !important;
  }
}

