/* General Styles (Optimized) */
/* Consolidated common styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");

:root {
  --primary-color: #0a2748;
  --secondary-color: #fc3a02;
  --accent-color: #84c03f;
  --text-color: #333333;
  --font-family: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--primary-color);
}

a,
a:visited,
a:active,
a:link {
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  color: #ffffff;
  background-color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--accent-color);
}

/* Navbar */
.navbar {
  background-color: var(--primary-color); /* Remove solid background */
  position: relative; /* Overlay on the background image */
  color: white;
  padding: 15px 0;
  width: 100%;
  z-index: 10;
  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    #navbar-logo {
      max-width: 120px;
    }
  }
}

.navbar-transparent {
  background-color: transparent !important; /* Ensure transparency */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  box-shadow: none; /* Remove shadow if any */
}

.navbar .logo img {
  max-width: 120px;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.dropdown {
  display: none;
  position: absolute;
  background-color: var(--primary-color);
  list-style: none;
}

.nav-links li:hover .dropdown {
  display: block;
  z-index: 1;
}

.dropdown li a {
  padding: 10px;
  display: block;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 30px;
  height: 4px;
  background-color: white;
  border-radius: 2px;
  margin: 5px;
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 0.9rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 1;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    padding: 12px 0;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .hamburger {
    display: block;
  }

  .container {
    padding: 10px;
  }
}

/* Sections */
section {
  padding: 50px 0;
}

/* Hero Section */
.hero-section {
  padding: 180px 48px;
  background-image: url(/assets/img/hero-bg.png);
  background-position: center;
  background-size: cover;
  div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    color: white;

    h1 {
      color: white;
      font-size: 4rem;
      line-height: 4rem;
    }

    p {
      width: 50%;
      font-size: 1rem;
      span {
        font-weight: 700;
        color: var(--orange);
      }
    }
    a {
      margin-top: 20px;
      background-color: var(--accent-color);
      padding: 8px 12px;
      border-radius: 5px;
      font-weight: bold;
      text-decoration: none;
      color: white;
    }
  }
  @media (max-width: 480px) {
    padding: 120px 32px;
  }
}

/* About WorkAbroad Section */
.about-workabroad {
  padding: 50px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-intro {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.step {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  max-width: 300px;
  text-align: center;
}

.step:hover {
  transform: translateY(-5px);
}

.step-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 1rem;
}

h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

@media (max-width: 480px) {
  h1 {
    padding-top: 24px;
    font-size: 2rem;
    line-height: 2.15rem;
  }

  .hero-section {
    & div {
      h1 {
        padding-top: 24px;
        color: white;
        font-size: 2rem;
        line-height: 2.15rem;
      }
      p {
        width: 70%;
      }
    }
  }

  h2 {
    padding-top: 24px;
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.85rem;
  }

  .btn {
    padding: 8px 15px;
  }

  .container {
    padding: 5px;
  }
}
/* Programs Carousel */
.programs-carousel {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Smooth transition */
  touch-action: pan-y; /* Prevent vertical scrolling conflicts */
}

.carousel-item {
  min-width: 100%;
  height: 400px;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.carousel-container:active {
  transition: none; /* Disable transition during drag */
}

.carousel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  h2 {
    color: white;
  }
  h3 {
    color: white;
  }
  .btn {
    width: fit-content;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.carousel-btn:hover {
  background-color: var(--secondary-color);
}

.prev-btn {
  left: 10px;
  z-index: 1;
}

.next-btn {
  right: 10px;
}

/* Página - programas */

.program-card {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.program-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.program-card h3 {
  margin-bottom: 10px;
}

/* Footer Styles */
.footer {
  background-color: #000000;
  color: white;
  padding: 64px 0;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 90%;
}

.footer-logo img {
  max-width: 150px;
}

.footer-social-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social img {
  width: 36px;
  height: 36px;
}

.footer-whatsapp .btn-whatsapp {
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.footer-whatsapp .btn-whatsapp:hover {
  background-color: var(--secondary-color);
}

.footer-rights p {
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-section {
    width: 30%;
  }

  .footer-social,
  .footer-whatsapp {
    margin: 0;
  }
}
