/* Los Banditos - Static Website Styles */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Global Styles */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Helvetica', Arial, sans-serif;font-size:16px;font-weight:400;line-height:1.6;color:#000;max-width:100%;overflow-x:hidden;letter-spacing:-0.01em}
a{color:#0088FF;text-decoration:none;font-weight:normal}
a:hover{text-decoration:underline}
h1,h3,h4,h5,h6{margin-top:1.5rem;margin-bottom:1.5rem;font-weight:400;text-align:center;color:#000;line-height:1.12;font-family: 'Bebas Neue', sans-serif;text-transform:uppercase}
h1{font-size:2.5rem;letter-spacing:2px;line-height:1.1}
h2{font-size:2rem;font-weight:300;margin-top:1.5rem;margin-bottom:1.5rem;text-align:center;color:#000;line-height:1.12;font-family:'Bebas Neue', sans-serif;text-transform:uppercase}
h3{font-size:1.5rem;margin-top:2.5rem}
p{margin-bottom:1.5rem;text-align:left}
img{max-width:90%;height:auto;display:block;margin:0 auto}
.btn{display:block;background-color:#000;color:#fff;padding:15px 30px;border-radius:0;text-align:center;font-weight:normal;font-family:'Bebas Neue', sans-serif;text-decoration:none;margin:20px auto;transition:background-color 0.3s;letter-spacing:0.05em;font-size:20px;text-transform:uppercase;width:300px}
.btn:hover{background-color:#333;text-decoration:none}

.secondary-btn{display:block;background-color:#fff;color:#000;padding:15px 30px;border-radius:0;text-align:center;font-weight:normal;font-family:'Bebas Neue', sans-serif;text-decoration:none;margin:20px auto;transition:all 0.3s;letter-spacing:0.05em;font-size:20px;text-transform:uppercase;width:300px;border:2px solid #000}
.secondary-btn:hover{background-color:#f5f5f5;text-decoration:none}

.tertiary-link{display:inline-block;color:#000;font-family:'Bebas Neue', sans-serif;text-decoration:none;margin:20px auto;font-size:18px;text-transform:uppercase;letter-spacing:0.05em;transition:all 0.3s}
.tertiary-link:hover{color:#555;text-decoration:none}
.tertiary-link:after{content:" →";font-family:sans-serif}
section{padding:40px 20px;max-width:1200px;margin:0 auto}

/* Standardized image classes */
.full-width-img{width:90%;max-width:1000px;margin:0 auto 30px;border-radius:5px;height:auto}
.profile-img{display:block;margin:0 auto 20px;max-width:500px;width:90%;border-radius:5px;height:auto}
.small-img{width:50px;height:50px;border-radius:50%;margin-right:15px}
.sponsor-img{max-width:150px;margin:10px auto}

/* Header and Navigation */
header{
  background-color:#fff;
  padding:7px;
  border-bottom:1px solid #eee;
  position:relative;
  max-width:1200px;
  margin:0 auto;
  width:100%;
}
@media (min-width: 769px) {
  header{
    max-width:100% !important;
    width:100% !important;
  }
  main p{max-width:34em;margin-left:auto;margin-right:auto}
  main ul, main ol{max-width:34em;margin-left:auto;margin-right:auto}
}
nav{display:flex;justify-content:space-between;align-items:center;width:100%}
.nav-left{flex:1;display:flex;align-items:center}
.nav-center{flex:2;display:flex;justify-content:center}
.nav-right{flex:1;display:flex;align-items:center;justify-content:flex-end}
.logo-text{font-family:'Bebas Neue', sans-serif;font-size:28px;margin:0;letter-spacing:0px;text-decoration:none;font-weight:600;text-transform:uppercase;}
.logo-text:hover{text-decoration:none;}
.menu-toggle{background:none;border:none;cursor:pointer;padding:5px}
.menu-toggle .material-icons{font-size:24px}
.social-icon{margin-left:15px;text-decoration:none;color:#333;font-size:24px}

/* Mobile Menu */
@media (max-width: 768px) {
  .mobile-menu{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:#fff;
    z-index:1000;
    display:none;
    box-shadow:2px 0 5px rgba(0,0,0,0.1);
    overflow-y:auto
  }
  .mobile-menu.active{display:block}
}

@media (min-width: 769px) {
  .mobile-menu{
    position:absolute;
    top:60px;
    left:0;
    width:250px;
    background-color:#fff;
    z-index:1000;
    display:none;
    box-shadow:2px 2px 5px rgba(0,0,0,0.1);
    border-radius:0
  }
  .mobile-menu.active{display:block}
}

.menu-header{display:flex;justify-content:flex-end;padding:20px}
.close-menu{background:none;border:none;cursor:pointer;padding:10px}
.close-menu .material-icons{font-size:36px}
.menu-items{list-style:none;padding:20px}
.menu-items li{margin-bottom:20px}
.menu-items a{color:#000;text-decoration:none;font-size:18px;display:block;padding:10px 0;font-family:'Helvetica', Arial, sans-serif;font-weight:400}

/* Hero Section */
.hero{text-align:center;padding:40px 20px}
.hero-content h1{margin-top:0;margin-bottom:0.5rem}
.hero-content p{text-align:center}
.logo{width:180px;margin:20px auto;display:block}

/* Location Section */
.location{text-align:center;background-color:#fff;padding:20px}
.location p{text-align:center}
.rating{display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.google-rating-img{margin:0 auto 10px;max-width:100%;height:auto;transform:scale(1.05)}
.address,.links{margin-bottom:5px}
.map-link,.time-link,.price-link,.contact-link{color:#0088FF;text-decoration:underline}

/* Gallery */
.gallery-row{display:flex;justify-content:space-between;margin-bottom:30px}
.gallery-img{width:32%;border-radius:5px;height:auto}

/* Team Preview Section */
.team-preview {
    padding: 40px 20px;
    text-align: center;
}

.team-preview h2 {
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.team-preview h2:first-child {
    margin-top: 0;
}

/* Swipable Gallery */
.swipe-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding: 10px 0;
    /* Enhanced properties for better scrolling */
    width: 100%;
    max-width: 100%;
    position: relative;
    touch-action: pan-x;
    cursor: grab;
    /* Prevent vertical scrolling while swiping horizontally */
    overscroll-behavior-x: contain;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 15px;
    scroll-snap-align: start;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* Ensure items don't shrink */
    min-width: 300px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top; /* Prioritize top of image */
    display: block;
}

.gallery-caption {
    padding: 10px;
    background-color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    text-align: center;
}

/* Hide scrollbar but keep functionality */
.swipe-gallery::-webkit-scrollbar {
    display: none;
}

.swipe-gallery {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Removed gradient indicator for swipeable content */

/* Sponsors */
.sponsors{display:flex;justify-content:center;align-items:center;gap:40px;padding:20px;background-color:#fff}
.sponsor-logo{max-width:150px;margin:0}

/* Testimonials - Standardized */
.testimonial-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:30px}
.testimonial{background-color:#f5f5f5;padding:20px;border-radius:0;text-align:left}
.testimonial-header{display:flex;margin-bottom:15px}
.testimonial-img{width:50px;height:50px;border-radius:50%;margin-right:15px;margin-left:0}
.testimonial-name{display:flex;flex-direction:column;justify-content:center}
.testimonial-name h3{margin:0 0 5px 0;padding:0;text-align:left;line-height:1.2;font-family: 'Bebas Neue', sans-serif;text-transform:uppercase;font-weight:500}
.stars-img{width:87.5px;height:auto;margin:10px 0 0 0;margin-left:0}
.testimonial p{margin-top:10px}

/* Content Sections - Standardized */
.content-section{margin-bottom:30px;text-align:left}
.content-section ul{margin-left:80px;margin-right:20px;margin-bottom:20px;text-align:left}
.content-section li{margin-bottom:15px;position:relative;padding-left:10px}
.content-section li::before{content:"•";position:absolute;left:-20px;color:#0088FF}

/* Programs Section */
.programs {
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.programs h2 {
    margin-bottom: 30px;
}

.programs h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.programs h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-item {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.program-item p {
    text-align: center;
    margin-bottom: 10px;
}

/* Profile Sections - Standardized (Coaches, Grapplers) */
.profile{margin-bottom:40px;text-align:left}
.profile h3{margin-bottom:20px}
.profile-img{display:block;margin:0 auto 20px;max-width:500px;width:90%;border-radius:5px}
.profile-info{max-width:600px;margin:0 auto;text-align:left}
.profile-info p{margin-bottom:10px}

/* Video Containers and Thumbnails */
.video-container {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    max-width: 800px;
}

.video-container iframe {
    width: 800px;
    height: 450px;
    border: none;
}

/* Make videos responsive on mobile */
@media (max-width: 850px) {
    .video-container {
        max-width: 100%;
    }
    
    .video-container iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

.video-thumbnail{position:relative;margin:30px auto;max-width:600px;width:90%;cursor:pointer}
.thumbnail-img{width:100%;border-radius:5px}
.play-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:3rem;color:#fff;background-color:rgba(0,0,0,0.5);width:70px;height:70px;border-radius:50%;display:flex;align-items:center;justify-content:center}

/* Social Section */
.social-links{display:flex;justify-content:center;gap:20px;margin-bottom:30px;text-align:center}
.social-btn{display:flex;align-items:center;background-color:#fff;padding:10px 20px;border-radius:0;color:#333;text-decoration:none;border:1px solid #eee;letter-spacing:0.05em;font-family: 'Bebas Neue', sans-serif;text-transform:uppercase;}
.social-btn .icon-text{margin-right:10px;display:inline-block}
.instagram-embed{max-width:500px;width:90%;margin:0 auto;border:1px solid #ddd;border-radius:0;overflow:hidden}
.instagram-profile{display:flex;align-items:center;padding:10px;border-bottom:1px solid #ddd}
.instagram-profile-img{width:40px;height:40px;border-radius:50%;margin-right:10px}
.instagram-profile-info{flex:1;text-align:left}
.view-profile-btn{background-color:#0095f6;color:#fff;border:none;padding:5px 10px;border-radius:0;cursor:pointer;font-family: 'Bebas Neue', sans-serif;text-transform:uppercase;}
.instagram-post-img{width:100%}
.instagram-actions{padding:10px;border-top:1px solid #ddd}
.instagram-buttons{margin-top:10px;display:flex;align-items:center}

/* Footer */
footer{background-color:#000;color:#fff;padding:30px 20px;text-align:center}
.footer-links{margin-bottom:15px}
.footer-links a{color:#fff;margin:0 10px}
footer p{text-align:center}

/* Media Queries */
@media (max-width:768px){
  .nav-center p{font-size:1.5rem}
  .hero-content h1{font-size:2.2rem;font-weight:700}
  /* Reduce headline size on mobile */
  h1 {
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    line-height: 1;
    margin-bottom: 15px;
    padding: 0 10px;
  }
  .gallery-row{flex-direction:column;align-items:center}
  .gallery-img{width:100%;margin-bottom:15px}
  .testimonial-grid{grid-template-columns:1fr}
  .sponsors{flex-direction:column}
  .sponsor-logo{margin-bottom:20px}
  img{max-width:100%}
  .full-width-img, .profile-img, .video-thumbnail{width:100%}
  .btn{display:block;width:95%;margin:20px auto;padding:15px 10px}
  .logo{width:120px}
  
  /* Mobile video container styles */
  .video-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Remove fixed width/height from iframes */
  iframe {
    max-width: 100%;
  }
  
  /* Team Preview responsive styles */
  .preview-container {
    flex-direction: column;
    align-items: center;
  }
  
  .preview-section {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .gallery-item {
    width: 250px;
    min-width: 250px; /* Ensure consistent width */
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* Ensure swipe galleries work well on mobile */
  .swipe-gallery {
    padding: 5px 0;
    margin-bottom: 15px;
    width: 100%;
    overflow-x: scroll; /* Ensure scrolling works on all mobile browsers */
  }
  
  /* Programs responsive styles */
  .programs {
    padding: 30px 15px;
  }
  
  .programs h2 {
    font-size: 2rem;
  }
  
  .programs h3 {
    font-size: 1.6rem;
  }
  
  .program-item {
    padding: 15px;
  }
}
