* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}

:root {
  --brand-blue: #1C068C;
  --brand-orange: #D18219;
  --primary: #1c068c;
  --accent: #d18219;
  --white: #ffffff;
  --white-color: #ffffff;
  --bg: #f9f9fb;
  --gray-bg: #f8f9fa;
  --footer-bg: #f7f8fb;
  --gray-border: #ccc;
  --border-light: #e5e7eb;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #1ebd5a;
}

[data-aos] {
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

body {
  margin: 0;
  font-family: 'Instrument Sans', sans-serif, arial;
  background-color: #f8f9fa;
  color: #333;
}

/* navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 0.75rem 8%;
  color: #1c068c;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.logo-img {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

.logo span {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  color: #1c068c;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding-left: 1rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: #1c068c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links li a:hover {
  color: #000000;
}

.auth-btn {
  background: #1c068c;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.auth-btn:hover {
  background: #12045f;
  color: #ffffff !important;
}

.profile-dropdown {
  position: relative;
}

.profile-toggle {
  border: none;
  background: #f4f4ff;
  color: #1c068c;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.profile-toggle:hover {
  background: #ececff;
}

.profile-toggle .caret {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.profile-dropdown.open .profile-toggle .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  z-index: 1200;
  overflow: hidden;
}

.profile-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f1f1f1;
}

.dropdown-header .name {
  font-weight: 700;
  color: #1c068c;
  font-size: 14px;
  word-break: break-word;
}

.dropdown-header .sub {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  text-decoration: none;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: #f7f7fb;
}

.dropdown-divider {
  height: 1px;
  background: #f1f1f1;
  margin: 8px 0;
}

.signout-item {
  color: #c62828 !important;
  font-weight: 700 !important;
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px;
}

.hamburger i {
  font-size: 24px;
  color: #1c068c;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1c068c;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 2000;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .logo span {
    font-size: 0.95rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    width: 280px;
    max-width: 88%;
    height: calc(100vh - 64px);
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a,
  .profile-toggle {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0;
    padding: 14px 18px;
  }

  .auth-btn {
    border-radius: 0;
  }

  .profile-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    min-width: 100%;
    box-shadow: none;
    border: none;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
  }

  .profile-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-header {
    padding: 14px 18px;
    background: #fafafe;
  }

  .dropdown-menu a,
  .dropdown-menu button {
    padding: 13px 22px;
  }

  .hamburger {
    display: block;
  }

  .toast {
    bottom: 18px;
    max-width: calc(100% - 24px);
    white-space: normal;
    text-align: center;
  }
}

/* hero */
.hero-swiper {
  height: 720px;
  margin-bottom: 1.5rem;
}

.hero-swiper .swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  margin-left: 5rem;
  padding: 20px;
  animation: fadeInUp 1s ease-in-out;
}

.slide-content h1 {
  font-size: 4.5rem;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 2rem;
  color: #ddd;
}

/* ===================== Responsive Media Queries ===================== */
@media (max-width: 1024px) {
  .hero-swiper {
    height: 600px;
  }

  .slide-content {
    margin-left: 2rem;
  }

  .slide-content h1 {
    font-size: 3rem;
  }

  .slide-content p {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-swiper {
    height: 500px;
  }

  .slide-content {
    margin-left: 1.5rem;
    padding: 15px;
  }

  .slide-content h1 {
    font-size: 2.2rem;
  }

  .slide-content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-swiper {
    height: 400px;
  }

  .slide-content {
    margin-left: 1rem;
    padding: 10px;
  }

  .slide-content h1 {
    font-size: 1.8rem;
  }

  .slide-content p {
    font-size: 1rem;
  }
}

/* ==================================================================== */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
  background: #fff;
}

/* subscribe */
body.modal-open {
  overflow: hidden;
}

/* PLANS CARDS */
#packages {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

#packages h2 {
  font-size: 32px;
  color: var(--brand-blue);
  margin-bottom: 40px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.pricing-card {
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  transition: transform 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--brand-blue);
}

.pricing-card .price {
  font-size: 18px;
  color: var(--brand-orange);
  margin-bottom: 15px;
  font-weight: 600;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}

.pricing-card ul li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  color: #333;
}

.pricing-card ul li::before {
  content: '✔';
  color: var(--brand-orange);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* PICK PLAN BUTTON */
.subscribe-btn {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--white-color);
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.subscribe-btn:hover {
  background: var(--brand-orange);
}

.subscribe-btn::after {
  content: ' →';
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: absolute;
  right: 20px;
  font-weight: bold;
  color: var(--white-color);
  font-size: 20px;
  transform: translateX(-10px);
}

.subscribe-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* MODAL STYLES */
.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding-top: 40px;
}

.modal-content {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  position: relative;
  margin: 0 auto;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-card h2 {
  margin-bottom: 20px;
  color: var(--brand-blue);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--gray-border);
  font-size: 16px;
}

/* FORM BUTTONS */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

button[type="submit"],
.cancel-btn {
  padding: 15px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  width: 45%;
  transition: background 0.3s ease;
}

button[type="submit"] {
  background: var(--brand-orange);
  color: var(--white-color);
}

button[type="submit"]:hover {
  background: #a55d10;
}

.cancel-btn {
  background: #ccc;
  color: #333;
}

.cancel-btn:hover {
  background: #aaa;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  #packages h2 {
    font-size: 24px;
  }

  .pricing-card {
    padding: 24px 16px;
  }

  .pricing-card h3 {
    font-size: 20px;
  }

  .pricing-card ul li {
    font-size: 14px;
  }

  .pricing-card button {
    font-size: 15px;
  }

  .form-actions {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* our services */
section#services {
  padding: 60px 20px;
  text-align: center;
  background: var(--white-color);
}

section#services h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--brand-blue);
}

section#services h2 span {
  color: var(--brand-orange);
}

.services-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

/* FLIP CARD WRAPPER */
.flip-card {
  width: 260px;
  height: 290px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

/* FRONT AND BACK FACES */
.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* FRONT SIDE */
.flip-front {
  padding: 25px 15px;
  color: var(--white-color);
  background: linear-gradient(145deg, var(--brand-blue), #3a1cb2);
}

.flip-front i {
  font-size: 40px;
  color: var(--brand-orange);
  margin-bottom: 10px;
}

.flip-front h3 {
  font-size: 18px;
  margin: 5px 0;
}

.flip-front p {
  font-size: 14px;
  color: #f0f0f0;
}

.flip-front .btn {
  margin-top: 12px;
  background: var(--brand-orange);
  color: var(--white-color);
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.flip-front .btn:hover {
  background: #b96a12;
}

/* BACK SIDE */
.flip-back {
  background: #fff;
  color: #333;
  transform: rotateY(180deg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Background overlay text */
/*
.flip-back::before {
  content: "Service Info";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 42px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  text-transform: uppercase;
  pointer-events: none;
}
*/

.flip-back h3 {
  color: var(--brand-blue);
  margin-bottom: 10px;
  z-index: 2;
}

.flip-back p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
  z-index: 2;
}

.flip-back a {
  text-decoration: none;
  background: var(--brand-orange);
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s;
  z-index: 2;
}

.flip-back a:hover {
  background: #b96a12;
}

@media (max-width: 768px) {
  .flip-card {
    width: 100%;
    max-width: 320px;
  }
}

/* our team */
.team-section {
  padding: 4rem 2rem;
  text-align: center;
}

.team-section h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: auto;
  padding: 0;
  list-style: none;
}

/* Flip card */
.team-card {
  perspective: 1200px;
}

.team-inner {
  position: relative;
  width: 100%;
  height: 380px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.team-inner.flipped {
  transform: rotateY(180deg);
}

.team-front,
.team-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  transition: all 0.3s ease;
}

.team-front img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary);
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.team-front:hover img {
  border-color: var(--accent);
}

.team-front h3 {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.team-front p {
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-back {
  background: var(--primary);
  color: var(--white);
  transform: rotateY(180deg);
  text-align: center;
  padding: 30px 20px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.team-back h3 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.team-back p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.social-icons a {
  margin: 0 6px;
  color: var(--white);
  font-size: 18px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--accent);
}

.team-btn {
  margin-top: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 0.9rem;
}

.team-btn:hover {
  background: var(--primary);
}

@media (max-width: 992px) {
  .team-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-list {
    grid-template-columns: 1fr;
  }
}

/* our impact */
section#impact {
  padding: 60px 20px;
  text-align: center;
  background: var(--white-color);
}

section#impact h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--brand-blue);
}

section#impact h2 span {
  color: var(--brand-orange);
}

.impact-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.impact-card {
  background: var(--white-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 30px 20px;
  width: 220px;
  transition: 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-card i {
  font-size: 40px;
  color: var(--brand-orange);
  margin-bottom: 15px;
}

.impact-card h3 {
  font-size: 32px;
  margin: 0;
  color: var(--brand-blue);
}

.impact-card p {
  font-size: 16px;
  color: #333;
}

@media (max-width: 768px) {
  .impact-card {
    width: 100%;
    max-width: 300px;
  }
}

/* contact us */
 .contact-section {
      padding: 56px 18px;
    }

    .contact-header {
      text-align: center;
      margin-bottom: 30px;
    }

    .contact-header h2 {
      font-size: clamp(2rem, 4vw, 2.8rem);
      font-weight: 800;
      color: var(--brand-blue);
      margin-bottom: 10px;
    }

    .contact-header p {
      max-width: 760px;
      margin: 0 auto;
      font-size: clamp(0.98rem, 2vw, 1.08rem);
      color: var(--text-dark);
    }

    .contact-wrapper {
      max-width: 1180px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      align-items: stretch;
    }

    .contact-info-card,
    .contact-form-card {
      border-radius: 24px;
      overflow: hidden;
      min-height: 100%;
      display: flex;
      flex-direction: column;
    }

    .contact-info-card {
      background: linear-gradient(180deg, var(--brand-blue), #2a22a5);
      color: var(--white);
      padding: 28px 24px;
      box-shadow: 0 10px 30px rgba(28, 6, 140, 0.15);
      height: 100%;
    }

    .contact-form-card {
      background: var(--card-bg);
      padding: 28px 24px;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
      height: 100%;
    }

    .contact-info-card h3,
    .contact-form-card h3 {
      font-size: clamp(1.7rem, 3vw, 2.2rem);
      text-align: center;
      margin-bottom: 10px;
      font-weight: 700;
    }

    .contact-form-card h3 {
      color: var(--brand-blue);
    }

    .contact-intro {
      font-size: 1rem;
      color: rgba(255, 255, 255, 0.94);
      margin-bottom: 22px;
      max-width: 500px;
      text-align: center;
    }

    .response-time {
      font-size: 0.98rem;
      color: var(--text-muted);
      margin-bottom: 20px;
    }

    .info-block {
      display: flex;
      align-items: flex-start;
      gap: 15px;
      margin-bottom: 22px;
    }

    .info-icon {
      width: 52px;
      height: 52px;
      min-width: 52px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.25s ease, background 0.25s ease;
    }

    .info-block:hover .info-icon {
      transform: translateY(-4px);
      background: rgba(255, 255, 255, 0.2);
    }

    .info-icon i {
      font-size: 19px;
      color: var(--brand-orange);
    }

    .info-content {
      flex: 1;
      min-width: 0;
    }

    .info-content h4 {
      font-size: 1.12rem;
      margin-bottom: 4px;
      color: var(--white);
      font-weight: 700;
    }

    .info-content p {
      font-size: 0.97rem;
      margin-bottom: 4px;
      color: rgba(255, 255, 255, 0.95);
      word-break: break-word;
    }

    .info-content a.email-link {
      color: var(--white);
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: 0.3s ease;
      word-break: break-word;
    }

    .info-content a.email-link:hover {
      color: #ffd9a8;
    }

    .map-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-top: 14px;
      background: #f3f4f6;
      color: #1877f2;
      font-weight: 700;
      padding: 14px 26px;
      width: min(100%, 520px);
      min-height: 58px;
      border-radius: 999px;
      text-decoration: none;
      font-size: 0.98rem;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      text-align: center;
    }

    .map-btn:hover {
      background: #ffffff;
      color: #0f5fd6;
      transform: translateY(-2px);
    }

    .contact-action-buttons {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .action-btn {
      display: inline-block;
      padding: 10px 18px;
      border-radius: 999px;
      font-weight: 700;
      text-decoration: none;
      font-size: 0.95rem;
      transition: transform 0.25s ease, background 0.25s ease;
    }

    .call-btn {
      background: var(--brand-orange);
      color: var(--white);
    }

    .call-btn:hover {
      background: #b86c12;
      transform: translateY(-3px);
    }

    .whatsapp-btn {
      background: var(--whatsapp-green);
      color: var(--white);
    }

    .whatsapp-btn:hover {
      background: var(--whatsapp-green-hover);
      transform: translateY(-3px);
    }

    .modern-contact-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
      flex: 1;
    }

    .form-group {
      display: flex;
      flex-direction: column;
    }

    .form-group label {
      font-size: 0.98rem;
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--text-dark);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      border: 1px solid #d7dbe2;
      background: var(--input-bg);
      border-radius: 16px;
      padding: 14px 16px;
      font-size: 0.98rem;
      color: var(--text-dark);
      outline: none;
      transition: all 0.25s ease;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
      color: #9ca3af;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 4px rgba(28, 6, 140, 0.08);
    }

    .form-group textarea {
      min-height: 130px;
      resize: vertical;
    }

    .send-btn {
      margin-top: auto;
      align-self: flex-start;
      padding: 14px 28px;
      border: none;
      border-radius: 999px;
      background: var(--brand-blue);
      color: var(--white);
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      transition: 0.3s ease;
    }

    .send-btn:hover {
      background: var(--brand-orange);
      transform: translateY(-2px);
    }

    @media (max-width: 1024px) {
      .contact-wrapper {
        grid-template-columns: 1fr;
      }

      .contact-info-card,
      .contact-form-card {
        height: auto;
      }

      .send-btn {
        align-self: center;
      }
    }

    @media (max-width: 768px) {
      .contact-section {
        padding: 42px 14px;
      }

      .contact-wrapper {
        gap: 18px;
      }

      .contact-info-card,
      .contact-form-card {
        border-radius: 20px;
        padding: 22px 18px;
      }

      .info-block {
        gap: 12px;
        margin-bottom: 18px;
      }

      .info-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
      }

      .info-icon i {
        font-size: 17px;
      }

      .info-content h4 {
        font-size: 1.04rem;
      }

      .info-content p,
      .contact-intro,
      .response-time {
        font-size: 0.94rem;
      }

      .form-group input,
      .form-group select,
      .form-group textarea {
        border-radius: 14px;
        padding: 13px 14px;
      }

      .map-btn {
        width: 100%;
        min-height: 54px;
        padding: 12px 18px;
        font-size: 0.95rem;
      }

      .send-btn {
        width: 100%;
        text-align: center;
      }
    }

    @media (max-width: 480px) {
      .contact-header h2 {
        font-size: 1.8rem;
      }

      .contact-header p {
        font-size: 0.94rem;
      }

      .contact-info-card h3,
      .contact-form-card h3 {
        font-size: 1.5rem;
        
      }

      .contact-action-buttons {
        flex-direction: column;
        align-items: stretch;
      }

      .action-btn {
        width: 100%;
        text-align: center;
      }

      .info-content p {
        font-size: 0.92rem;
      }

      .form-group label {
        font-size: 0.95rem;
      }

      .form-group input,
      .form-group select,
      .form-group textarea {
        font-size: 0.95rem;
      }

      .map-btn {
        font-size: 0.93rem;
        padding: 12px 16px;
      }
    }
  .send-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* about us */
#about {
  padding: 60px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.container h2 {
  color: var(--brand-blue);
  font-size: 32px;
  font-weight: bold;
}

.container p.intro {
  font-style: italic;
  margin-bottom: 20px;
  color: #333;
}

.aboutus-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.aboutus-card {
  flex: 1 1 300px;
  background: var(--white-color);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.aboutus-card:hover {
  transform: translateY(-20px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.aboutus-card h3 {
  color: var(--brand-orange);
  margin-bottom: 10px;
}

.aboutus-card ul {
  padding-left: 20px;
  color: #444;
}

.aboutus-card ul li {
  margin-bottom: 10px;
}

.aboutus-card ul li strong {
  color: var(--brand-blue);
}

@media (max-width: 768px) {
  .aboutus-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Hide "Why Choose Us" card on large screens (≥1024px) */
/*
@media (min-width: 1024px) {
  .aboutus-card:last-child {
    display: none;
  }
}
*/

/* footer */
.studyroom-footer {
  background: var(--footer-bg);
  padding: clamp(28px, 4vw, 48px) 0 18px;
  color: var(--text-dark);
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.studyroom-footer .container {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(250px, 1.25fr)
    minmax(150px, 0.82fr)
    minmax(220px, 1fr)
    minmax(280px, 1.1fr);
  gap: clamp(20px, 2.6vw, 34px);
  align-items: start;
}

.footer-brand,
.footer-widget {
  min-width: 0;
}

.footer-brand h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--brand-blue);
  word-break: normal;
  overflow-wrap: normal;
  letter-spacing: -0.02em;
}

.footer-brand h2 span {
  color: var(--brand-orange);
}

.footer-brand .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  line-height: 1.5;
  font-size: clamp(0.92rem, 1.35vw, 0.98rem);
}

.footer-brand .contact-item i {
  color: var(--brand-orange);
  margin-top: 4px;
  min-width: 18px;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-brand .contact-item a {
  color: var(--brand-blue);
  text-decoration: none;
  word-break: break-word;
}

.footer-brand .contact-item a:hover,
.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--brand-orange);
}

.social-links {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
  flex-wrap: wrap;
}

.social-links a {
  width: 42px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: var(--white-color);
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s ease;
  flex-shrink: 0;
}

.social-links a:hover {
  background: var(--brand-blue);
  color: var(--white-color);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.footer-widget h4 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--brand-blue);
  margin: 0 0 16px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  word-break: break-word;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
  font-size: clamp(0.9rem, 1.3vw, 0.96rem);
  transition: 0.3s ease;
  line-height: 1.5;
  word-break: break-word;
}

.map-box {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 14px;
}

.map-box iframe {
  width: 100%;
  height: clamp(150px, 22vw, 185px);
  border: 0;
  display: block;
}

.hours p {
  margin: 6px 0;
  font-size: clamp(0.9rem, 1.35vw, 0.95rem);
  color: var(--text-dark);
  line-height: 1.55;
  word-break: break-word;
}

.hours strong {
  color: var(--brand-blue);
}

/* Newsletter section */
.footer-newsletter {
  margin-top: 30px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #e7e8ee;
  border-radius: 16px;
}

.footer-newsletter-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(320px, 1.45fr);
  gap: 18px;
  align-items: center;
}

.newsletter-copy h5 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--brand-blue);
  font-weight: 700;
}

.newsletter-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.subscribe-form input,
.subscribe-form input[type="email"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  flex: 1 1 240px;
  width: 100%;
  min-width: 0;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: normal !important;
  padding: 0 15px !important;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  font-size: 0.94rem;
  background: var(--white-color);
}

.subscribe-form input:focus,
.subscribe-form input[type="email"]:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(28, 6, 140, 0.08);
}

.subscribe-form button {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background: var(--brand-orange);
  color: var(--white-color);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: var(--brand-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  margin-top: 28px;
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  margin: 6px 0;
  font-size: clamp(0.86rem, 1.25vw, 0.92rem);
  color: #374151;
  line-height: 1.5;
}

.footer-bottom strong,
.footer-bottom a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 700;
}

/* Floating WhatsApp Icon */
#whatsapp-chat-button {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  z-index: 1000;
  cursor: pointer;
  background-color: var(--whatsapp-green);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.3s, transform 0.3s;
}

#whatsapp-chat-button:hover {
  background-color: var(--whatsapp-green-hover);
  transform: scale(1.05);
}

/* Chat Widget Box */
#whatsapp-chat-box {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  width: 300px;
  max-width: calc(100vw - 26px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background-color: #fff;
  display: none;
  z-index: 1001;
  border: 1px solid #ececec;
}

.chat-header {
  background-color: var(--brand-blue);
  color: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 3px solid var(--brand-orange);
}

.chat-header .user-info {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.profile-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.chat-header img,
.profile-wrapper img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
}

.chat-header .close-btn,
.close-btn {
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1;
}

.user-info > div {
  min-width: 0;
}

.user-info strong {
  font-size: 0.95rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info small {
  font-size: 0.74rem;
  line-height: 1.35;
  display: block;
  opacity: 0.95;
}

.chat-body {
  background: #f0f0f0 url('https://web.whatsapp.com/img/bg-chat-tile_c7d7f4206ad00d56db4ba24f0384d08f.png');
  padding: 15px;
  min-height: 100px;
}

.message-bubble {
  background: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  max-width: 90%;
  font-size: 14px;
  position: relative;
  line-height: 1.5;
  word-break: break-word;
}

.message-time {
  font-size: 11px;
  color: gray;
  text-align: right;
  margin-top: 5px;
}

.chat-footer {
  background: #fff;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.start-chat-btn {
  width: 100%;
  text-align: center;
  background-color: var(--whatsapp-green);
  color: white;
  padding: 10px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 15px;
  display: block;
  transition: background 0.3s;
}

.start-chat-btn:hover {
  background-color: var(--whatsapp-green-hover);
}

.profile-wrapper .active-dot {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background-color: #4CAF50;
  border: 2px solid white;
  border-radius: 50%;
}

.profile-wrapper .active-dot::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(76, 175, 80, 0.3);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@media (min-width: 992px) {
  .footer-brand h2 {
    white-space: nowrap;
  }
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-newsletter-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .studyroom-footer {
    padding-top: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand,
  .footer-widget {
    text-align: left;
  }

  .footer-brand {
    padding-left: 14px;
    padding-right: 14px;
  }

  .social-links {
    gap: 8px;
  }

  .footer-newsletter {
    padding: 18px 16px;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-form input,
  .subscribe-form input[type="email"],
  .subscribe-form button {
    width: 100%;
  }

  .map-box iframe {
    height: 130px;
  }

  #whatsapp-chat-button {
    width: 54px;
    height: 54px;
    font-size: 29px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }

  #whatsapp-chat-box {
    width: min(270px, calc(100vw - 30px));
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .chat-header {
    padding: 10px;
  }

  .chat-body {
    padding: 12px;
    min-height: 86px;
  }

  .chat-footer {
    padding: 9px;
  }

  .chat-header img,
  .profile-wrapper img {
    width: 36px;
    height: 36px;
  }

  .message-bubble {
    font-size: 13px;
    padding: 9px 10px;
  }

  .start-chat-btn {
    font-size: 14px;
    padding: 9px;
  }
}

@media (max-width: 576px) {
  .studyroom-footer .container {
    width: min(100%, calc(100% - 18px));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .footer-brand,
  .footer-location-col {
    grid-column: 1 / -1;
  }

  .footer-links-col,
  .footer-services-col {
    grid-column: auto;
    text-align: center;
  }

  .footer-brand {
    padding-left: 10px;
    padding-right: 10px;
  }

  .footer-brand h2,
  .footer-widget h4,
  .footer-bottom,
  .hours,
  .newsletter-copy {
    text-align: center;
  }

  .footer-brand h2 {
    white-space: normal;
    font-size: 1.75rem;
  }

  .footer-brand .contact-item {
    justify-content: center;
    text-align: left;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links a {
    font-size: 0.86rem;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .map-box iframe {
    height: 110px;
  }

  .footer-newsletter {
    margin-top: 24px;
    border-radius: 14px;
  }

  .newsletter-copy h5 {
    font-size: 1.08rem;
  }

  .newsletter-copy p {
    font-size: 0.88rem;
  }

  .subscribe-form input,
  .subscribe-form input[type="email"] {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

  .subscribe-form button {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }

  #whatsapp-chat-button {
    width: 52px;
    height: 52px;
    font-size: 27px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  #whatsapp-chat-box {
    width: min(250px, calc(100vw - 24px));
    right: 10px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    border-radius: 9px;
  }

  .chat-header {
    padding: 9px;
  }

  .chat-body {
    padding: 10px;
    min-height: 78px;
  }

  .chat-footer {
    padding: 8px;
  }

  .chat-header img,
  .profile-wrapper img {
    width: 34px;
    height: 34px;
  }

  .user-info strong {
    font-size: 0.86rem;
  }

  .user-info small {
    font-size: 0.68rem;
  }

  .message-bubble {
    font-size: 12.5px;
    padding: 8px 9px;
    max-width: 100%;
  }

  .start-chat-btn {
    font-size: 13px;
    padding: 8px;
  }
}

@media (max-width: 380px) {
  .studyroom-footer {
    padding-top: 26px;
  }

  .footer-grid {
    gap: 18px 10px;
  }

  .social-links a {
    width: 39px;
    height: 39px;
    font-size: 0.95rem;
  }

  .footer-widget h4 {
    font-size: 0.96rem;
  }

  .footer-brand h2 {
    font-size: 1.58rem;
  }

  .footer-brand .contact-item {
    font-size: 0.88rem;
    gap: 8px;
  }

  .footer-links a,
  .hours p,
  .footer-bottom p {
    font-size: 0.84rem;
  }

  .map-box iframe {
    height: 100px;
  }

  #whatsapp-chat-button {
    width: 48px;
    height: 48px;
    font-size: 24px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  #whatsapp-chat-box {
    width: min(232px, calc(100vw - 18px));
    right: 8px;
    bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .chat-header img,
  .profile-wrapper img {
    width: 32px;
    height: 32px;
  }

  .user-info strong {
    font-size: 0.82rem;
  }

  .user-info small {
    font-size: 0.66rem;
  }

  .message-bubble {
    font-size: 12px;
  }
}