/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */
:root {
  --primary-blue: #1a3c6d;
  --gold-accent: #d4a017;
  --light-beige: #f5f0e1;
  --light-orange: #f4a261;
  --dark-brown: #5c4033;
  --white: #ffffff;
  --gray-light: #d3d3d3;
}

/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */
html {
  scroll-padding-top: 76px;
  scroll-behavior: smooth;
}
.img-container.equal-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px; /* chỉnh chiều cao theo ý */
    overflow: hidden;
}

.img-container.equal-img img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--light-beige);
  color: var(--dark-brown);
  padding-top: 80px;
}

p {
  text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
  color: var(--primary-blue);
  font-weight: 700;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */
.btn-primary {
  background-color: var(--light-orange);
  border-color: var(--gold-accent);
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: scale(1.1);
  background-color: var(--gold-accent);
  border-color: var(--primary-blue);
}

/* ==========================================================================
   HEADER/NAVBAR SECTION
   ========================================================================== */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  color: var(--primary-blue);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  font-size: 1.25rem;
}

.navbar-nav .nav-link:hover {
  color: var(--gold-accent);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-accent);
  transition: width 0.3s;
}

.navbar-nav .nav-link.active {
  color: var(--gold-accent);
}

.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--light-beige);
}

.carousel-caption {
  text-align: left;
  top: 50%;
  transform: translateY(-50%);
  right: 2%;
  left: auto;
  max-width: 800px;
  bottom: auto;
  padding: 2rem;
  border-radius: 10px;
}

.carousel-caption h1 {
  font-size: 2.4rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.25rem;
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--gray-light);
}

.carousel-indicators .active {
  background-color: var(--light-orange);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
#about {
  background-color: var(--primary-blue);
  color: var(--white);
}

#about h2,
#about p {
  color: var(--white);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.feature-card {
  background-color: var(--light-beige);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem !important;
}

.feature-card p {
  text-align: center;
}

#benefits .feature-card {
  background-color: var(--white);
}

/* Thumbnail Styles */
.thumbnail-container {
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.thumbnail-container:hover {
  transform: scale(1.05);
}

.thumbnail-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.thumbnail-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 60, 109, 0.8);
  color: var(--white);
  padding: 10px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  font-size: 0.9rem;
}

.thumbnail-container:hover .thumbnail-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Button Comparison Styles */
.btn-comparison {
  background-color: var(--primary-blue);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 0.2s, background-color 0.3s;
}

.btn-comparison:hover {
  transform: scale(1.1);
  background-color: var(--white);
  border-color: var(--primary-blue);
}

/* Modal Styles */
.modal-content {
  border-radius: 10px;
  border: 2px solid var(--gold-accent);
}

.modal-header {
  border-bottom: 1px solid var(--gold-accent);
}

.modal-body {
  padding: 1rem;
}

.modal-body .image-ai {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.modal-body .img-caption {
  color: var(--dark-brown);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */
.benefit-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  align-items: stretch;
  margin-bottom: 1rem;
  min-height: 120px;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 80px;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-blue);
  transition: background-color 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background-color: var(--gold-accent);
}

.benefit-icon i {
  font-size: 1.8rem;
  color: var(--white);
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon i {
  transform: scale(1.2);
}

.benefit-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  background-color: var(--white);
}

.benefit-content h5 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

.benefit-card:hover .benefit-content h5 {
  color: var(--gold-accent);
}

.benefit-content p {
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--dark-brown);
  line-height: 1.5;
}

.benefits-img-container {
  height: 100%;
  display: flex;
  align-items: center;
}

.benefits-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 100%;
}

/* ==========================================================================
   PROCESS SECTION (TIMELINE)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 0;
  counter-reset: step-counter;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: linear-gradient(180deg, var(--gold-accent), var(--light-orange));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
  z-index: -1;
}

.timeline .step {
  padding: 10px 40px;
  position: relative;
  width: calc(50% - 20px);
  margin-bottom: 30px;
}

.timeline .step:nth-child(odd) {
  left: 0;
  padding: 10px 20px;
}

.timeline .step:nth-child(even) {
  left: 50%;
}

.timeline .step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: var(--white);
  border: 10px solid var(--primary-blue);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.timeline .step:nth-child(odd)::before {
  right: -46px;
}

.timeline .step:nth-child(even)::before {
  left: -22px;
}

.timeline .content {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timeline .content::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 15px solid transparent;
}

.timeline .step:nth-child(odd) .content::after {
  border-left-color: var(--white);
  right: -30px;
}

.timeline .step:nth-child(even) .content::after {
  border-right-color: var(--white);
  left: -30px;
}

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */
.bg-light {
  background: var(--gray-light);
  position: relative;
  overflow: hidden;
}

.bg-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(26, 60, 109, 0.04) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(212, 160, 23, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.trust-card {
  background: var(--white);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(26, 60, 109, 0.1);
  box-shadow: 0 3px 12px rgba(212, 160, 23, 0.06);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 160, 23, 0.12),
    transparent
  );
  transition: left 0.8s ease;
}

.trust-card:hover::before {
  left: 100%;
}

.trust-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.1);
  border-color: rgba(212, 160, 23, 0.3);
}

.trust-card:nth-child(1) {
  background: linear-gradient(145deg, var(--white) 0%, var(--light-beige) 100%);
}

/* Card đặc biệt cho "TIN TƯỞNG CUSC" - Thiết kế ấn tượng */
.trust-card:nth-child(1) {
  background: radial-gradient(
      circle at top right,
      rgba(212, 160, 23, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(26, 60, 109, 0.03) 0%,
      transparent 50%
    ),
    linear-gradient(145deg, var(--white) 0%, var(--light-beige) 100%);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.trust-card:nth-child(1)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--gold-accent),
    var(--light-orange),
    var(--primary-blue)
  );
  background-size: 300% 300%;
  animation: gradientMove 4s ease infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  z-index: -1;
}

@keyframes gradientMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.card-inner {
  border-radius: 17px;
  overflow: hidden;
  background: transparent;
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Thiết kế text ấn tượng cho card 1 */
.gradient-text {
  font-size: 2.2rem;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--gold-accent) 50%,
    var(--light-orange) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2rem;
  position: relative;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: -1px;
}

.gradient-text::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(
    135deg,
    rgba(26, 60, 109, 0.1),
    rgba(212, 160, 23, 0.1)
  );
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trust-card:hover .gradient-text::before {
  opacity: 1;
}

.gradient-text::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gold-accent),
    var(--light-orange),
    var(--gold-accent)
  );
  border-radius: 2px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(1.2);
    opacity: 0.8;
  }
}

.highlight-text {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 30%,
    var(--gold-accent) 70%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlight-text::before {
  content: attr(data-number);
  position: absolute;
  top: 3px;
  left: 3px;
  background: linear-gradient(
    135deg,
    rgba(92, 64, 51, 0.3),
    rgba(212, 160, 23, 0.2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: -1;
}

/* Container cho thông tin trust - Thiết kế ấn tượng */
.trust-info {
  position: relative;
}

.trust-info > div {
  background: rgba(245, 240, 225, 0.4);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-left: 6px solid var(--gold-accent);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.trust-info > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 60, 109, 0.03),
    rgba(212, 160, 23, 0.05)
  );
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.trust-info > div::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, var(--gold-accent), var(--light-orange));
  border-radius: 50%;
  opacity: 0.1;
  transform: scale(0);
  transition: all 0.4s ease;
}

.trust-info > div:hover {
  background: rgba(245, 240, 225, 0.7);
  transform: translateX(12px) scale(1.02);
  box-shadow: 0 8px 32px rgba(26, 60, 109, 0.12);
  border-left-color: var(--primary-blue);
}

.trust-info > div:hover::before {
  opacity: 1;
}

.trust-info > div:hover::after {
  transform: scale(1);
  opacity: 0.3;
}

.trust-info > div:last-child {
  margin-bottom: 0;
}

.trust-info p {
  color: var(--dark-brown);
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Styling cho image containers - Full card cho card 2,3 */
.img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  padding: 0;
  border: none;
}

.img-container img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
  box-shadow: none;
}

.img-container:hover::before {
  display: none;
}

.img-container:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.1);
  box-shadow: 0 12px 36px rgba(26, 60, 109, 0.15);
}

/* Specific adjustments for Card 2 and 3 */
.trust-card:nth-child(2) .img-container,
.trust-card:nth-child(3) .img-container {
  flex: 1;
  min-height: 250px;
  padding: 0;
}

.trust-card:nth-child(2) .card-inner,
.trust-card:nth-child(3) .card-inner {
  padding: 1.5rem;
}

.trust-card:nth-child(2) .card-inner h5,
.trust-card:nth-child(3) .card-inner h5 {
  margin-bottom: 1rem;
  text-align: center;
}

/* Tab navigation với màu chủ đạo */
.nav-tabs {
  border-bottom: none;
  margin-bottom: 2rem;
  background: rgba(245, 240, 225, 0.5);
  border-radius: 30px;
  padding: 0.7rem;
  border: 1px solid rgba(26, 60, 109, 0.1);
  box-shadow: 0 4px 16px rgba(26, 60, 109, 0.05);
}

.nav-tabs .nav-link {
  background: transparent;
  border: none;
  color: var(--primary-blue);
  position: relative;
  padding: 1rem 2rem;
  transition: all 0.4s ease;
  border-radius: 25px;
  font-weight: 700;
  margin: 0 0.5rem;
  font-size: 1.1rem;
}

.nav-tabs .nav-link:hover {
  background: rgba(212, 160, 23, 0.15);
  color: var(--dark-brown);
  transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--dark-brown) 100%
  );
  color: var(--white);
  box-shadow: 0 6px 20px rgba(26, 60, 109, 0.25);
  transform: translateY(-3px);
}

.tab-content {
  margin-top: 2rem;
}

.tab-pane {
  background: rgba(245, 240, 225, 0.3);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(26, 60, 109, 0.08);
  position: relative;
  overflow: hidden;
}

/* Thiết kế laptop frame cho hình ảnh trong tab */
.tab-pane {
  background: linear-gradient(145deg, #2c3e50, #34495e);
  border-radius: 20px;
  padding: 20px 20px 40px 20px;
  position: relative;
}

.tab-pane::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #34495e;
  border-radius: 2px;
}

.tab-pane::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6px;
  background: #2c3e50;
  border-radius: 3px;
}

.tab-pane img {
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  width: 100%;
  border: 2px solid #34495e;
}

.tab-pane img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.2);
}

/* Card titles với màu chủ đạo - Ấn tượng hơn */
.card-inner h5 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--gold-accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
  text-align: center;
}

.card-inner h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-accent), var(--light-orange));
  border-radius: 2px;
  transition: all 0.3s ease;
}

.trust-card:hover .card-inner h5::after {
  width: 80px;
}

.card-inner h5 span {
  background: linear-gradient(
    135deg,
    var(--dark-brown) 0%,
    var(--light-orange) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* ==========================================================================
   SUPPORT SECTION
   ========================================================================== */
.support-section {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.support-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.support-title {
  flex: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.support-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.support-title p {
  font-size: 1.2rem;
  color: var(--dark-brown);
  opacity: 0.9;
}

.support-faq {
  flex: 7;
  width: 100%;
}

/* Accordion Styles */
.accordion {
  width: 100%;
}

.accordion-item {
  border: 1px solid rgba(26, 60, 109, 0.1);
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-button {
  background: var(--white);
  color: var(--primary-blue);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  padding: 1.2rem;
  transition: all 0.3s ease;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A3C6D'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-brown));
  color: var(--white);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.2rem;
  background: var(--white);
  color: var(--dark-brown);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  position: relative;
}

.footer-logo {
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--light-orange);
  margin-top: 0.25rem;
}

.footer-contact-item a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: var(--light-orange);
}

.footer-title {
  color: var(--light-orange);
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--light-orange);
}

/* Footer Social Links */
.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link .social-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link:hover .social-icon {
  filter: brightness(1.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer counter */
.footer-counter {
  color: var(--white);
}

.footer-counter .counter-stats {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.counter-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 1rem;
}

.counter-item:last-child {
  margin-bottom: 0;
}

.counter-item i {
  width: 30px;
  color: var(--light-orange);
  margin-right: 4px;
}

.counter-number {
  color: var(--gold-accent);
  font-weight: 600;
  margin-left: auto;
}

/* ==========================================================================
   CONTACT MODAL
   ========================================================================== */
.contact-layout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.business-card {
  background: linear-gradient(135deg, #1a4f8f 0%, #2d71c4 100%);
  border: none;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.business-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.3) 0%,
    rgba(255, 152, 0, 0.1) 100%
  );
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.contact-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  opacity: 0.3;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Avatar Column */
.contact-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-accent), var(--light-orange));
  padding: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.avatar-container:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 8px;
  transition: all 0.3s ease;
}

.avatar-status {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #4caf50;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Info Column */
.contact-info {
  flex: 1;
  min-width: 0;
}

.business-card .contact-name {
  color: var(--gold-accent);
  font-size: 1.4rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.business-card .contact-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.business-card .contact-details {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--light-orange);
}

.business-card .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.business-card .contact-item:hover {
  transform: translateX(5px);
  color: var(--light-orange);
}

.business-card .contact-item a {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.business-card .contact-item a:hover {
  color: var(--light-orange);
  transform: translateX(5px);
}

.business-card .contact-item i {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 8px;
  font-size: 1rem;
  color: var(--gold-accent);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.business-card .contact-item:hover i,
.business-card .contact-item a:hover i {
  background: var(--light-orange);
  color: var(--primary-blue);
  transform: scale(1.1) rotate(360deg);
}

.business-card .contact-item span {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.business-card .contact-item a:hover span {
  color: var(--light-orange);
}

/* QR Code Column */
.qr-code-container {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.business-card .qr-code-container img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.business-card .qr-code-container:hover {
  transform: translateY(-5px) rotate(3deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.business-card .qr-code-container p {
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--gold-accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Large Desktops - 2000px and down */
@media (max-width: 2000px) {
  /* Hero Section */
  .carousel-caption {
    max-width: 40%;
    right: 1%;
    padding: 1.5rem;
  }
}

/* Extra Large Devices - 1870px and down */
@media (max-width: 1870px) {
  /* Hero Section */
  .carousel-caption {
    padding: 0.5rem;
  }
  .carousel-caption h1 {
    font-size: 2.2rem;
  }
}

/* Large Devices - 1635px and down */
@media (max-width: 1635px) {
  /* Hero Section */
  .carousel-caption {
    padding: 1rem;
  }
  .carousel-caption h1 {
    font-size: 2.35rem;
  }
}

/* Medium Large Devices - 1345px and down */
@media (max-width: 1345px) {
  /* Hero Section */
  .carousel-caption {
    padding: 0.5rem;
  }
  .carousel-caption h1 {
    font-size: 2.1rem;
  }
}

/* Desktop - 1200px and down */
@media (max-width: 1200px) {
  /* Hero Section */
  .carousel-caption {
    max-width: 450px;
    right: 1%;
    padding: 0.5rem;
  }
  .carousel-caption h1 {
    font-size: 2rem;
  }

  /* Footer Section */
  .footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Footer Social Links */
  .footer-social {
    align-items: flex-start;
  }
  .social-link {
    margin-bottom: 1rem;
  }
}

/* Tablets and small desktops - 1000px and down */
@media (max-width: 1000px) {
  /* Hero Section */
  .carousel-caption {
    max-width: 100%;
    left: 5%;
    right: 5%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
  }
  .carousel-caption h1 {
    font-size: 1.8rem;
  }
  .carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  /* Process Section */
  .timeline::after {
    left: 31px;
  }
  .timeline .step {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline .step::before {
    left: 20px;
  }
  .timeline .step:nth-child(odd) {
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline .step:nth-child(even) {
    left: 0;
  }
  .timeline .step:nth-child(odd)::before {
    right: auto;
    left: 5px;
  }
  .timeline .step:nth-child(even)::before {
    left: 5px;
  }
  .timeline .content::after {
    display: none;
  }

  /* Support Section */
  .support-section .support-content {
    flex-direction: column;
  }
  .contact-form .form-row {
    flex-direction: column;
  }
  .contact-form .form-group {
    margin-bottom: 1rem;
  }
  .contact-form .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }
}

/* Tablets - 991px and down */
@media (max-width: 991px) {
  /* Modal Styles */
  .modal-body .row {
    flex-direction: column;
  }
  .modal-body .col-md-6 {
    width: 100%;
  }
  .modal-body .image-ai {
    max-height: none;
    margin-bottom: 0.5rem;
  }
  .modal-body .img-caption {
    margin-bottom: 1.5rem;
  }
  .col-md-12.text-md-center,
  .col-12.text-md-center {
    text-align: center !important;
  }
  .thumbnail-container img {
    width: 100%;
  }

  /* Contact Modal */
  #contactModal .modal-dialog {
    max-width: 95%;
    margin: 1rem auto;
  }
}

/* Small tablets - 768px and down */
@media (max-width: 768px) {
  /* Benefits Section */
  .benefit-card {
    margin-bottom: 1rem;
    min-height: 100px;
  }
  .benefit-icon {
    width: 60px;
    min-width: 60px;
  }
  .benefit-icon i {
    font-size: 1.5rem;
  }
  .benefit-content {
    padding: 1rem;
  }
  .benefit-content h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  .benefit-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .benefits-img-container {
    margin-top: 2rem;
  }
  .benefits-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }

  /* Trust Section */
  .card-inner {
    padding: 2rem;
  }
  .gradient-text {
    font-size: 2rem;
  }
  .highlight-text {
    font-size: 2.5rem;
  }
  .trust-info > div {
    padding: 1.5rem;
  }
  .nav-tabs {
    padding: 0.5rem;
  }
  .nav-tabs .nav-link {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0 0.2rem;
  }
  .trust-card:nth-child(2) .img-container,
  .trust-card:nth-child(3) .img-container {
    min-height: 200px;
  }
  .tab-pane {
    padding: 15px 15px 30px 15px;
  }

  /* Contact Modal */
  #contactModal .modal-dialog {
    max-width: 98%;
    margin: 0.5rem auto;
  }
  .contact-layout {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
  .contact-avatar {
    order: 1;
  }
  .contact-info {
    order: 2;
    width: 100%;
  }
  .qr-code-container {
    order: 3;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }
  .avatar-container {
    width: 85px;
    height: 85px;
  }
  .avatar-status {
    width: 24px;
    height: 24px;
    bottom: 6px;
    right: 6px;
  }
  .business-card .contact-name {
    font-size: 1.2rem;
    text-align: center;
  }
  .business-card .contact-title {
    font-size: 0.9rem;
    text-align: center;
  }
  .business-card .contact-details {
    border-left: none;
    border-top: 3px solid var(--light-orange);
    padding-left: 0;
    padding-top: 1rem;
    margin-top: 1rem;
  }
  .business-card .contact-item {
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  .business-card .contact-item a {
    justify-content: center;
    width: 100%;
  }
  .business-card .contact-item i {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  .business-card .qr-code-container img {
    width: 80px;
    height: 80px;
  }
  .business-card .qr-code-container p {
    font-size: 0.8rem;
  }
}

/* Mobile - 618px and down */
@media (max-width: 618px) {
  /* Hero Section */
  .carousel-caption {
    max-width: 100%;
    left: 2%;
    right: 2%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
  }
  .carousel-caption h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  /* Trust Section */
  .gradient-text {
    font-size: 1.8rem;
  }

  .highlight-text {
    font-size: 2.2rem;
  }

  .card-inner {
    padding: 1.5rem;
  }

  .trust-info > div {
    padding: 1.2rem;
  }

  .trust-card:nth-child(2) .card-inner,
  .trust-card:nth-child(3) .card-inner {
    padding: 1rem;
  }

  .trust-card:nth-child(2) .img-container,
  .trust-card:nth-child(3) .img-container {
    min-height: 180px;
  }
}

/* Small Mobile - 480px and down */
@media (max-width: 480px) {
  /* Hero Section */
  .carousel-caption {
    left: 0.5%;
    right: 0.5%;
    padding: 0.5rem;
  }
  .carousel-caption h1 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  .carousel-caption span {
    display: block;
  }
  .carousel-caption p {
    display: none;
  }
  .carousel-caption a {
    display: block;
    font-size: 0.8rem;
  }

  /* Contact Modal */
  .contact-layout {
    gap: 0.8rem;
  }
  .avatar-container {
    width: 75px;
    height: 75px;
  }
  .avatar-status {
    width: 20px;
    height: 20px;
    bottom: 4px;
    right: 4px;
  }
  .business-card .contact-name {
    font-size: 1.1rem;
  }
  .business-card .contact-title {
    font-size: 0.85rem;
  }
  .business-card .contact-item {
    font-size: 0.8rem;
  }
  .business-card .contact-item i {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .business-card .qr-code-container img {
    width: 70px;
    height: 70px;
  }
  .business-card .qr-code-container p {
    font-size: 0.75rem;
  }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
  .contact-layout {
    gap: 2rem;
  }
  .avatar-container {
    width: 120px;
    height: 120px;
  }
  .avatar-status {
    width: 28px;
    height: 28px;
    bottom: 10px;
    right: 10px;
  }
  .business-card .contact-name {
    font-size: 1.5rem;
  }
  .business-card .contact-title {
    font-size: 1.1rem;
  }
  .business-card .qr-code-container img {
    width: 120px;
    height: 120px;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .contact-layout {
    gap: 1.5rem;
  }
  .avatar-container {
    width: 90px;
    height: 90px;
  }
  .avatar-status {
    width: 26px;
    height: 26px;
    bottom: 8px;
    right: 8px;
  }
  .business-card .contact-name {
    font-size: 1.3rem;
  }
  .business-card .contact-title {
    font-size: 0.95rem;
  }
  .business-card .contact-details {
    margin-top: 0.8rem;
  }
  .business-card .contact-item {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  .business-card .qr-code-container img {
    width: 90px;
    height: 90px;
  }
}
