/* --- 1. CSS VARIABLES (Color Palette: Bright & Modern) --- */
:root {
  --primary-color: #4f46e5;
  /* Bright Indigo */
  --secondary-color: #06b6d4;
  /* Cyan/Teal */
  --accent-color: #f59e0b;
  /* Amber/Orange for CTA */
  --bg-light: #f9fafb;
  --text-dark: #1f2937;
  --text-light: #a2b2d3;
  --white: #ffffff;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- 2. GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-fill:hover {
  color: var(--white) !important;
}

section {
  padding: 100px 50px !important;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: white;
  text-shadow: 0px 0px 5px black;
  margin-bottom: unset !important;
}

#package-type {
  font-size: 20px;
  text-align: center;
  margin-bottom: 1rem;
}

.devider {
  margin: 50px 0 10px 0;
  border: 1px solid white;
}

.visatype {
  color: grey;
  font-size: 12px;
  margin-bottom: 20px;
}

.section-hint {
  font-weight: bold;
  font-size: 20px;
  background: #f9fafb;
  display: block;
  width: max-content;
  color: #356ddf;
  padding: 3px 10px;
  margin-top: -29px;
  margin-bottom: 35px;
  border-radius: 10px;
}

.section-subtitle {
  text-align: center;
  color: white;
  text-shadow: 0px 0px 5px black;
  margin-bottom: 3rem;
}

/* --- 3. HEADER & NAVIGATION --- */
header {
  background: white;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- 4. HERO SECTION --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  height: 80vh;
}

.hero-background {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.hero-text {
  flex: 1;
  padding-right: 50px;
}

.hero-text .btn {
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0px 0px 5px black;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  height: 567px;
}

/* --- 5. SERVICES & PACKAGES (The "Plans") --- */
.packages {
  padding: 80px 0;
}

.service-package-best {
  border: 2px solid var(--primary-color) !important;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.plan-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  transition: 0.3s;
  border: 1px solid #e5e7eb;
  flex-direction: column;
  height: max-content;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.plan-features {
  margin-bottom: 30px;
  text-align: left;
}

.plan-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features i {
  color: var(--secondary-color);
}

/* --- 6. NEWS & EVENTS --- */
.news-events {
  padding: 80px 0;
}

.news-events .container::after {
  position: absolute;
  content: "";
  background: linear-gradient(to top, #0a2469c9, #ffffff00);
  width: calc(100% - 370px);
  height: 50px;
  margin-top: -50px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 70px;
  max-height: 500px;
  overflow-y: scroll;
  padding-right: 5px;
  padding-bottom: 50px;

  &::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  &::-webkit-scrollbar-track {
    background: #85b4d8;
    border-radius: 10px;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #4676e5;
    border-radius: 10px;
  }

  &::-webkit-scrollbar-thumb:hover {
    background-color: #4f46e5;
    cursor: pointer;
  }
}

.post-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-img {
  height: 200px;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #676;
}

/* Placeholder styling */
.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-tag,
.post-date {
  top: 10px;
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 6px;
  position: absolute;
  margin-bottom: 8px;
  font-size: 0.8rem;
  right: 10px;
}

.post-date {
  right: unset;
  left: 10px;
  background: #00000093;
  color: white;
}

.post-title {
  margin: 10px 0;
  font-size: 1.2rem;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- 7. SUCCESS CASES (Stats) --- */
.success-cases {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item h3 {
  font-size: 3rem;
  margin-bottom: 5px;
}

/* --- 8. FOOTER --- */
footer {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #f3f4f6;
  padding: 60px 0 20px;
  border-radius: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.social-icons a {
  margin-right: 15px;
  font-size: 1.5rem;
  transition: 0.3s;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

.lng-flag {
  height: 40px;
  border-radius: 50%;
  border: 2px solid #4f46e5;
  margin-top: 7px;
}

.lng-flag:hover {
  opacity: 0.8;
}

/* DESKTOP SCREEN */
@media (max-width: 1286px) {
  .news-events .container::after {
    width: calc(100% - 150px);
  }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  section {
    padding: 20px 5px !important;
  }

  .container {
    padding: 0 10px;
  }

  .hero-image img {
    height: 450px;
  }

  .logo {
    font-size: 23px;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 40px;
    height: auto;
  }

  .hero-text {
    padding-right: 0;
    margin-top: 30px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-background {
    object-fit: contain;
    width: unset;
    height: 100%;
  }

  .nav-links {
    display: none;
    /* Hidden on mobile by default */
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .news-events .container::after {
    width: calc(100% - 40px);
  }
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.plan-card {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  height: 340px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: max-content;
}

.plan-name {
  font-size: 20px;
  font-weight: bold;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  transition: max-height 0.4s ease;
  overflow: hidden;
  max-height: 110px; /* Collapsed */
}

.plan-card.expanded {
  height: auto !important; /* Allow card to grow when expanded */
}

.plan-card.expanded .plan-features {
  max-height: 2000px; /* Show all */
}

.expand-btn {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--primary-color, #0055ff);
  cursor: pointer;
  font-weight: 600;
  padding: 5px 0;
  margin-bottom: 20px;
}

.expand-btn:hover {
  text-decoration: underline;
}

.socmedialinks {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 50px !important;
}
.socmedialinks h2 {
  color: white;
}
.socmedialinks p {
  color: rgb(221, 217, 255);
}
.socmedialinks h2 {
  color: white;
}
.socmedialinks div {
  width: max-content;
  display: flex;
  gap: 50px;
  justify-content: space-around;
}
.socmedialinks div a {
  font-size: 50px;
  color: #f9fafb;
}
.socmedialinks div a:hover {
  opacity: 0.8;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: max-content;
  position: relative;
}

.post-content {
  padding: 0px 15px 15px 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.popup-body {
  font-size: 0.9rem;
  line-height: 1.6;

  * {
    margin-bottom: 10px;
  }

  ul {
    margin-left: 20px;
    list-style: disc;
    li {
      margin-bottom: unset;
    }
  }

  img {
    min-height: 222px;
    max-height: 400px;
    margin: 10px 0;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: #e0ebff;
  }

  strong {
    padding: 0 5px;
  }
}

.popup-buttons {
  position: sticky;
  background: white;
  bottom: 0;
  padding: 15px 0;
  border-top: 2px solid #6392ff;

  a {
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
    width: max-content;
    padding: 4px 10px;
    font-size: 0.8rem;
    margin-top: 20px;
    border-radius: 5px;
    color: white;
  }

  a:hover {
    opacity: 0.8;
  }
}

.post-tag {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  width: max-content;
}

.post-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.post-content p {
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.read-btn {
  margin-top: 20px;
  padding: 10px 15px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s;
}

.read-btn:hover {
  opacity: 0.8;
}

/* POPUP / MODAL */
.popup-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 6px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0 20px;

  &::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  &::-webkit-scrollbar-track {
    background: #add2ed;
    border-radius: 10px;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #7a9ef3;
    border-radius: 10px;
  }

  &::-webkit-scrollbar-thumb:hover {
    background-color: #7b75ee;
    cursor: pointer;
  }
}

.popup-header {
  position: sticky;
  justify-content: space-between;
  display: flex;
  padding: 20px 0px;
  border-bottom: 2px solid #6392ff;
  margin-bottom: 20px;
  width: 100%;
  background: white;
  top: 0;

  p {
    font-size: 20px;
    font-weight: 500;
  }

  button {
    background: #eee;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    height: 33px;
    width: 33px;
  }

  button:hover {
    opacity: 0.8;
  }
}

@keyframes btn-spinner {
  to {
    transform: rotate(360deg);
  }
}

.booking-container {
  width: max-content;
  margin: 0px auto;
  padding: 100px 0px 0px 0px !important;
  color: #4f46e5;

  #bookingForm {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: max-content;
    box-shadow: var(--shadow);
  }

  h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 30px;
  }

  .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
  }

  label {
    margin-bottom: 6px;
    font-weight: 600;
  }

  input,
  select,
  button {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #555;
    font-size: 16px;
  }

  input:invalid,
  select:invalid {
    border-color: #cc4444;
  }

  button {
    width: 100%;
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    color: white;
  }

  button:hover {
    opacity: 0.8;
  }

  #timeSelect {
    display: block;
    color: black;
    width: 100%;
    border-color: #cc4444;
  }

  .page-columns {
    display: flex;
    justify-content: center;
    gap: 30px;
  }

  .btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
    color: transparent !important;
  }

  .btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    margin-left: -0.5em;
    color: white;
    background: #54b2ff;

    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spinner 0.6s linear infinite;
  }
}

@media (max-width: 600px) {
  .booking-container {
    padding: 18px !important;
    width: calc(100vw - 35px);
    display: flex;
    justify-content: center;

    #bookingForm {
      padding: 20px;
    }

    .page-columns {
      display: flex;
      justify-content: center;
      flex-direction: column;
      gap: 30px;
    }
  }
}
