/* Poppins font is loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each page <head>
   (faster than @import, which forces a serial round trip before render). */

/* Modern Tech-Forward Color Scheme */
:root {
  --primary-blue: #1a365d;
  --secondary-gray: #2d3748;
  --accent-green: #38a169;
  --action-blue: #3182ce;
  --action-blue-hover: #2c5aa0;
  --text-dark: #1a202c;
  --text-light: #ffffff;
  --bg-overlay: rgba(26, 54, 93, 0.8);
  --bg-overlay-light: rgba(26, 54, 93, 0.4);
  --navbar-height: 100px;
  --navbar-padding-desktop: 4rem;
  --navbar-padding-mobile: 2rem;
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
}

/* Body styles */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2);
  background-color: #fef2f2;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
  background-color: #fff;
}

.form-group input,
.form-group textarea,
.form-group select {
  transition: all 0.2s ease;
  background-color: #fff;
}

.form-group input:not(:focus):not(.error),
.form-group textarea:not(:focus):not(.error),
.form-group select:not(:focus):not(.error) {
  background-color: #fff;
  border-color: #e2e8f0;
}

.error-message {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.error-message::before {
  content: "⚠";
  font-size: 0.75rem;
}

.form-message {
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
}

.success-message {
  background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
  border: 2px solid #38a169;
  color: #22543d;
  position: relative;
  overflow: hidden;
}

.success-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #38a169;
}

.error-message {
  background: linear-gradient(135deg, #fed7d7 0%, #fef5e7 100%);
  border: 2px solid #e53e3e;
  color: #742a2a;
  position: relative;
  overflow: hidden;
}

.error-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #e53e3e;
}

.form-message i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.form-message span {
  font-size: 1.1rem;
  line-height: 1.4;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn:disabled:hover {
  background-color: var(--action-blue);
  transform: none;
}

/* Mobile touch enhancements */
@media (max-width: 768px) {
  /* Ensure minimum 44px touch targets */
  .nav-links ul li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
  }
  
  .dropdown_menu li a {
    min-height: 44px;
  }
  
  .dropdown_menu .action_btn {
    min-height: 48px;
  }
  
  /* Improve touch scrolling */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Prevent zoom on input focus */
  input, select, textarea {
    font-size: 16px;
  }
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

*{
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Open Sans', sans-serif;
}
.header{
  height: calc(80vh - var(--navbar-height));
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  margin-top: var(--navbar-height);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
}





.header-video {
  position: absolute;
  top: calc(-1 * var(--navbar-height));
  left: 0;
  width: 100%;
  height: calc(100% + var(--navbar-height));
  object-fit: cover;
  z-index: -2;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay-light);
  z-index: -1;
}

/* Fallback for browsers that don't support video or when video fails to load */
.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Images/Logo.png');
  background-position: center;
  background-size: cover;
  z-index: -3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show fallback image if video fails */
.header.video-failed::after {
  opacity: 1;
}

.text-box{
  width: 90%;
  max-width: 1200px;
  color: #fff;
  position: relative;
  text-align: center;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  padding: 0;
  margin: -2rem 0 0 0;
  flex-shrink: 0;
}
.text-box h1{
  font-size: 62px;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}
.text-box p{
  margin: 20px 0;
  line-height: 1.8;
  font-size: 18px;
  color: #fff;
  padding: 0;
}
.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: 1s;
  margin-top: 20px;
}

.hero-btn:hover{
  border: 1px solid #f44336;
  background: var(--accent-green);
}


@media(max-width: 1400px) {
  /* Hide regular nav links */
  .nav-links {
    display: none;
  }
  
  /* Show toggle button */
  .toggle_btn {
    display: flex;
  }

  /* Configure dropdown menu */
  .dropdown_menu {
    display: block;
    top: var(--navbar-height);
    right: 1rem;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
  }

  /* Mobile text adjustments */
  .text-box h1 {
    font-size: 20px;
    object-position: center center;
  }
  
  /* Mobile video optimizations */
  .header-video {
    object-position: center center;
  }
  
  .text-box {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
  }
}

nav{
  display: flex;
  height: var(--navbar-height);
  padding: 0 var(--navbar-padding-desktop);
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-overlay);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

nav img{
  width: 280px;
  height: auto;
}

.nav-links{
  flex: 1;
  text-align: right;
}

.nav-links ul li{
  list-style: none;
  display: inline-block;
  padding: 6px 4px;
  position: relative;
}

.nav-links ul li a{
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-links ul li a:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-links ul li a:hover{
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-links ul li::after{
  content: '';
  width: 0%;
  height: 2px;
  background: var(--accent-green);
  display: block;
  margin: auto;
  transition: .5s;    
}

.nav-links ul li:hover::after{
  width: 100%;
}

nav .fa{
  display: none;
}

.toggle_btn{
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  position: relative;
  z-index: 999999;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  margin-left: 20px;
}
.dropdown_menu{
  display: none;
  position: fixed;
  top: var(--navbar-height);
  right: 1rem;
  width: 280px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 99999;
  opacity: 0;
  box-sizing: border-box;
  visibility: hidden;
  transform: translateY(-20px);
}

.dropdown_menu .menu-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 1.5rem;
  gap: 0.5rem;
  position: relative;
  z-index: 100000;
  width: 100%;
  box-sizing: border-box;
}

.dropdown_menu .menu-content ul {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.dropdown_menu li {
  padding: 0;
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100001;
}

.dropdown_menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.15px;
  transition: all 0.3s ease;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  min-height: 40px;
  position: relative;
  z-index: 100002;
  width: 100%;
  box-sizing: border-box;
}

.dropdown_menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dropdown_menu li a:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.dropdown_menu .action_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0;
  background: rgb(49, 130, 206);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0.4rem 0 0 0;
  border: none;
  min-height: 40px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 100003;
  width: 96%;
  box-sizing: border-box;
}

.dropdown_menu .action_btn:hover {
  background: var(--action-blue-hover);
}

.dropdown_menu .action_btn:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
  background: var(--action-blue-hover);
}

.dropdown_menu.open{
  opacity: 1;
  visibility: visible;
  height: auto;
  transform: translateY(0);
}

/* Hide text content when dropdown is open */
.dropdown_menu.open ~ .text-box {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Alternative: Hide all body content when dropdown is open */
body.dropdown-open .text-box {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.dropdown-open .WhyUs {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.dropdown-open .testimonials {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.dropdown-open .cta {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.dropdown-open .footer {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 1400px) {
  nav {
    padding: 0 var(--navbar-padding-mobile);
  }

  .nav-links {
    display: none;
  }
  
  .toggle_btn {
    display: flex;
  }

  .dropdown_menu{
    display: block;
    top: var(--navbar-height);
    right: 1rem;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
  }
  
  /* Disable hover effects on touch devices for better performance */
  .dropdown_menu li a:hover {
    background: transparent;
  }
  
  .dropdown_menu .action_btn:hover {
    background: var(--action-blue);
  }
  
  .dropdown_menu .menu-content {
    padding: 1rem;
  }
  
  .dropdown_menu li a {
    padding: 0.65rem 0;
    font-size: 0.95rem;
    min-height: 38px;
    width: 92%;
    margin: 3px auto;
  }
  
  .dropdown_menu .action_btn {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    min-height: 38px;
    width: 92%;
    margin: 0.8rem auto 3px auto;
  }
}

@media (max-width: 576px) {
  .dropdown_menu {
    right: 0.25rem;
    width: 280px;
  }
  
  .dropdown_menu .menu-content {
    padding: 0.8rem;
  }
  
  .dropdown_menu li a {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    min-height: 36px;
    width: 92%;
    margin: 2px auto;
  }
  
  .dropdown_menu .action_btn {
    padding: 0.55rem 0;
    font-size: 0.85rem;
    min-height: 36px;
    width: 92%;
    margin: 0.7rem auto 2px auto;
  }
}

/*---------- course --------*/

.WhyUs{
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}
h1{
  font-size: 36px;
  font-weight: 600;
}
p{
  color: #777;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  padding: 10px;
}
.row{
  margin-top: 5%;
  display: flex;
  justify-content: space-between;  
}

.why-col{
  flex-basis: 31%;
  background: #fff3f3;
  border-radius: 10px;
  margin-bottom: 5%;
  padding: 20px 12px;
  box-sizing: border-box;
  transition: .5s;
}
h3{
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
}

@media (max-width:700px){
  .row{
      flex-direction: column;
  }
} 

/*---------------- AG Drone ----------------*/

.agdrone{
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 50px;
}
.agdrone-col{
  flex-basis: 48%;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.agdrone-col img{
  width: 100%;
}

.layer{
  background: transparent;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  position: absolute;
  transition: .5s;
}
.layer:hover{
  background: rgba(226, 0, 0, 0.7);
}
.layer h3{
  width: 100%;
  font-weight: 500;
  color: #fff;
  font-size: 26px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  opacity: 0;
  transition: .5s;
}
.layer:hover h3{
  bottom: 49%;
  opacity: 1;
}

/*-------------- Facilities ----------------*/

.facility{
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}
.facility-col{
  flex-basis: 31%;
  border-radius: 10px;
  margin-bottom: 5%;
  text-align: left;
}
.facility-col img{
  width: 100%;
  border-radius: 10px;
}
.facility-col p{
  padding: 0;
}
.facility-col h3{
  margin-top: 16px;
  margin-bottom: 15px;
  text-align: left;
}

/*---------------- testimonials ------------------*/

.testimonials{
  width: 80%;
  margin: auto;
  padding-top: 100px;
  text-align: center;
}

.testimonial-col{
  flex-basis: 44%;
  border-radius: 10px;
  margin-bottom: 5%;
  text-align: left;
  background: #fff3f3;
  padding: 25px;
  cursor: pointer;
  display: flex;
}
.testimonial-col img{
  height: 40px;
  margin-left: 5px;
  margin-right: 30px;
  border-radius: 50%;
}
.testimonial-col p{
  padding: 0;
}
.testimonial-col h3{
  margin-top: 15px;
  text-align: left;
}
.testimonial-col .fa{
  color: #f44336;
}

@media(max-width:700px){
  .testimonial-col {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-col img{
    margin: 0 auto 15px auto;
    display: block;
  }
  
  .testimonial-col h3 {
    text-align: center;
  }
}

/*-------- Call To Action ----------*/


.cta{
  margin: 100px auto;
  width: 80%;
  background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(Images/Logo.png);
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  text-align: center;
  padding: 100px 0;
}
.cta h1{
  color: #fff;
  margin-bottom: 40px; 
  padding: 0; 
}

@media(max-width:700px){
  .cta h1{
      font-size: 24px;
  }
}

/*--------------Footer---------------*/

.footer{
  width: 100%;
  text-align: center;
  padding: 30px 0;
}
.footer h4{
  margin-bottom: 25px;
  margin-top: 20px;
  font-weight: 600;
}

.icons .fa{
  color: #f44336;
  margin: 0 13px;
  cursor: pointer;
  padding: 18px 0;
}
.fa-heart-o{
  color: #f44336;
}

/*-------------- Contact Form ---------------*/

.contact-form {
  width: 80%;
  margin: auto;
  padding: 80px 0;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-container h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-container p {
  color: #777;
  font-size: 16px;
  margin-bottom: 50px;
}

.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contact-form-element {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: left;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f44336;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* reCAPTCHA Styling */
.g-recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.g-recaptcha > div {
  transform: scale(1.1);
  transform-origin: center;
}

/* Responsive reCAPTCHA */
@media (max-width: 768px) {
  .g-recaptcha > div {
    transform: scale(0.9);
  }
}

@media (max-width: 480px) {
  .g-recaptcha > div {
    transform: scale(0.8);
  }
}

.submit-btn {
  background: var(--accent-green);
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: #d32f2f;
}

.submit-btn:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .contact-form {
    width: 100%;
    padding: 60px 0;
  }
  
  .contact-container {
    max-width: none;
    padding: 0 20px;
  }
  
  .contact-form-element {
    padding: 30px 20px;
  }
  
  .contact-container h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .contact-form {
    width: 100%;
    padding: 40px 5px;
    margin: 0;
  }
  
  .contact-container {
    max-width: none;
    padding: 0 5px;
    width: 100%;
  }
  
  .contact-form-element {
    padding: 25px 15px;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 360px) {
  .contact-form {
    padding: 30px 2px;
  }
  
  .contact-container {
    padding: 0 2px;
  }
  
  .contact-form-element {
    padding: 20px 10px;
  }
}

/* Yarbo Introduction Section Styling */
.yarbo-intro {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.yarbo-intro h1 {
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 700;
}

.yarbo-intro p {
  text-align: center;
  color: var(--secondary-gray);
  font-size: 1.2rem;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.yarbo-col {
  flex-basis: 31%;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 5%;
  padding: 20px 12px;
  box-sizing: border-box;
  transition: 0.5s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  position: relative;
}

.yarbo-col:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-green);
}

.yarbo-col img {
  width: 100%;
  border-radius: 10px;
  height: 250px;
  object-fit: cover;
  display: block;
}

.yarbo-col .layer {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(56, 161, 105, 0.8));
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s;
}

.yarbo-col:hover .layer {
  opacity: 1;
}

.yarbo-col .layer h3 {
  width: 100%;
  font-weight: 500;
  color: #fff;
  font-size: 26px;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  opacity: 0;
  transition: 0.5s;
  text-align: center;
  margin: 0;
}

.yarbo-col:hover .layer h3 {
  top: 50%;
  opacity: 1;
}

.yarbo-col .layer p {
  color: #fff;
  font-size: 14px;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  opacity: 0;
  transition: 0.5s;
  text-align: center;
  padding: 0 20px;
  margin: 0;
  line-height: 1.4;
}

.yarbo-col:hover .layer p {
  top: 65%;
  opacity: 1;
}

@media (max-width: 768px) {
  .yarbo-intro h1 {
    font-size: 2rem;
  }
  
  .yarbo-intro p {
    font-size: 1rem;
  }
  
  .yarbo-col {
    flex-basis: 100%;
    margin-bottom: 30px;
  }
  
  .yarbo-col img {
    height: 200px;
  }
  
  /* Show text below images on mobile instead of hover */
  .yarbo-col .layer {
    position: static;
    opacity: 1;
    background: none;
    padding: 15px 0;
    height: auto;
  }
  
  .yarbo-col .layer h3 {
    position: static;
    transform: none;
    opacity: 1;
    color: var(--text-dark);
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .yarbo-col .layer p {
    position: static;
    transform: none;
    opacity: 1;
    color: #666;
    font-size: 14px;
    padding: 0;
  }  
  
 
}

/* Promotional Banner Carousel */
.promo-banner-section {
  width: 100%;
  margin: 0;
  padding: 40px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.promo-banner-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.promo-banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.promo-banner-slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.promo-banner-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.promo-banner-slide-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.promo-banner-slide-link img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}

/* Fallback for images not in a link wrapper */
.promo-banner-slide img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* On desktop, disable link pointer on image when not hovering (button shows on hover) */
@media (min-width: 769px) {
  .promo-banner-slide-link {
    pointer-events: none;
  }
  
  .promo-banner-slide:hover .promo-banner-slide-link {
    pointer-events: auto;
  }
}

/* On mobile, make entire image clickable */
@media (max-width: 768px) {
  .promo-banner-slide-link {
    pointer-events: auto;
    width: 100%;
  }
  
  .promo-banner-slide-link:active img {
    opacity: 0.8;
  }
}

.promo-banner-cta-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-green), #2ecc71);
  color: #fff;
  padding: 18px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
  white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.promo-banner-slide:hover .promo-banner-cta-btn,
.promo-banner-carousel:hover .promo-banner-cta-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.promo-banner-cta-btn:hover {
  background: linear-gradient(135deg, #2ecc71, var(--accent-green));
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.promo-banner-cta-btn:active {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.promo-banner-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-blue);
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.promo-banner-controls:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.promo-banner-controls:active {
  transform: translateY(-50%) scale(0.95);
}

.promo-banner-prev {
  left: 20px;
}

.promo-banner-next {
  right: 20px;
}

.promo-banner-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.promo-banner-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.promo-banner-indicator.active {
  background: rgba(255, 255, 255, 1);
  width: 30px;
  border-radius: 6px;
}

.promo-banner-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .promo-banner-section {
    padding: 20px 0;
  }
  
  .promo-banner-container {
    padding: 0 10px;
  }
  
  .promo-banner-controls {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .promo-banner-prev {
    left: 10px;
  }
  
  .promo-banner-next {
    right: 10px;
  }
  
  .promo-banner-slide img {
    max-height: 400px;
    max-width: 100%;
  }
  
  .promo-banner-cta-btn {
    bottom: 30px;
    padding: 15px 35px;
    font-size: 16px;
    /* Hide button on mobile - entire image is clickable instead */
    display: none;
  }
  
  .promo-banner-indicators {
    bottom: 10px;
  }
  
  .promo-banner-indicator {
    width: 10px;
    height: 10px;
  }
  
  .promo-banner-indicator.active {
    width: 25px;
  }
}

@media (max-width: 480px) {
  .promo-banner-slide img {
    max-height: 300px;
    max-width: 100%;
  }
  
  .promo-banner-cta-btn {
    bottom: 20px;
    padding: 12px 25px;
    font-size: 14px;
    border-radius: 40px;
    /* Hide button on mobile - entire image is clickable instead */
    display: none;
  }
}

/* Accessibility: respect users who ask for reduced motion.
   Stop the autoplay hero videos and show the static fallback image instead. */
@media (prefers-reduced-motion: reduce) {
  .header-video {
    display: none !important;
  }
  .header::after {
    opacity: 1;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

