/* Master container for centering the button and content */
.gcard-master-container {
  max-width: 800px;
  margin: 0 auto;
  font-family: Inter, sans-serif;
  background-color: #f4f4f4;
  padding: 0;
}

/* Toggle button */
.gcard-toggle-header {
  width: 50%;
  margin: 20px auto;
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #896B27;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(137, 107, 39, 0.2);
}

.gcard-toggle-header span:first-child {
  font-size: 24px;
  font-weight: 800;
  color: #000000;
  transition: all 0.3s ease;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

/* HOVER & ACTIVE STATE: Background stays white, Text gets Gradient */
.gcard-toggle-header:hover, 
.gcard-toggle-header.active {
  background-color: #FAF9F6; 
  border-color: #896B27;
  box-shadow: 0 4px 15px rgba(137, 107, 39, 0.2); 
  color: #fff;
}

/* Applying the Gradient to the text inside the span */
.gcard-toggle-header:hover span:first-child,
.gcard-toggle-header.active span:first-child {
  background: linear-gradient(to right, #896B27 0%, #B38F00 50%, #896B27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  color: #000;
  filter: drop-shadow(0px 1px 0px rgba(0, 0, 0, 0.15));
}

.gcard-toggle-header:focus {
  outline: unset !important;
  background-color: unset !important;
}

/* Arrow handling */
.gcard-toggle-arrow {
  font-size: 24px;
  transition: transform 0.3s ease;
  color: #896B27;
  display: inline-block;
}

.gcard-toggle-header.active .gcard-toggle-arrow {
  transform: rotate(90deg);
}

/* --- COLLAPSIBLE CONTENT --- */
.gcard-collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  padding: 0 10px;
}

.gcard-collapsible-content.active {
  max-height: 5000px;
  overflow: visible !important; /* CRITICAL: Allows mobile taps to "reach" the links */
  position: relative;
  z-index: 1; /* Sets a base layer for the links to sit on */
}

/* --- DIGITAL SOLUTIONS --- */
.gcard-solutions-wrapper {
  max-width: 600px;
  margin: 20px auto;
  padding: 60px 40px;
  background-color: #ffffff;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #333;
}

.gcard-title {
  font-size: 43px !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  line-height: 50px !important;
  letter-spacing: -0.1176470588rem !important;
}

.gcard-label-container {
  display: inline-block;
  border-radius: 4px;
  background-image: linear-gradient(147deg, #f5cb5c 0%, #ab8019 100%);
  padding: 1px;
}

.gcard-label-text {
  display: block;
  padding: 10px 20px;
  font-weight: bold;
  color: #000;
}

/* --- Grid --- */
.gcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.gcard-solution-item {
  padding: 15px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: auto;
}

.gcard-solution-icon {
  width: 90px;
  margin-bottom: 10px;
  margin: 0 auto 10px;
}

.gcard-sub-heading {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin: 0 0 5px !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
}

.gcard-desc {
  font-size: 14px !important;
  color: #666;
  margin: 0;
  line-height: 1.4 !important;
}

/* --- VISA PROCESS CARD --- */
.gcard-visa-wrapper {
  max-width: 600px;
  margin: 20px auto;
  padding: 60px 40px;
  background-color: #000000;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: Inter, sans-serif;
  text-align: center;
  color: #ffffff;
}

.gcard-tagline {
  font-size: 0.823529rem;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 500;
  letter-spacing: 2px;
  display: block;
  position: relative;
}

.gcard-tagline::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 46%;
  width: 46px;
  height: 1px;
  background-color: #ffffff;
}

.gcard-process-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gcard-process-item {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: left;
  vertical-align: middle;
}

.gcard-step-img {
  width: 120px;
  max-width: unset;
}

.gcard-step-content {
  color: #333333;
}

.gcard-desc {
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-bottom: 15px !important;
}

.gcard-btn {
  background-color: #0085cc !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  /* new */
  display: inline-block;
  position: relative;
  z-index: 50 !important;
  touch-action: manipulation;
}

.gcard-btn:hover,
.gcard-btn:focus,
.gcard-btn:active {
  background-color: #303f9f;
  text-decoration: underline !important;
}

/* --- FAQ --- */
.gcard-faq-wrapper {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 40px;
}

.gcard-accordion-item {
  border-bottom: 1px solid #eee;
}

.gcard-accordion-item.active {
  background-color: unset !important;
}

.gcard-accordion-item:last-child {
  border-bottom: none;
}

.gcard-faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  user-select: none;
}

.gcard-accordion-arrow {
  font-size: 16px;
  margin-left: 10px;
  color: #666;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.gcard-accordion-arrow.gcard-active {
  transform: rotate(90deg);
  color: #007bff !important;
}

.gcard-accordion-content {
  max-height: 100%;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 15px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  pointer-events: auto !important;
}

.gcard-accordion-content p {
  margin: 0 0 10px;
}

/* Ensure links inside the FAQ are also lifted and tappable */
.gcard-accordion-content a {
  position: relative;
  z-index: 60 !important;
  pointer-events: auto !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .gcard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gcard-process-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .gcard-faq-header {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .gcard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 475px) {
  .gcard-title{
    font-size: 32px !important;
    line-height: 40px;
  }
  .gcard-btn {
    width: 75%;
  }
}

@media (max-width: 425px) {
  .gcard-title {
    font-size: 28px !important;
    line-height: 35px !important;
  }
  
  .gcard-toggle-header, .gcard-toggle-arrow {
    font-size: 24px !important;
  }

  .gcard-toggle-header {
    width: 100%;
  }
}

@media (max-width: 375px) {
  .gcard-solutions-wrapper {
    padding: 40px 20px;
  }
  
  .gcard-faq-wrapper {
    padding: 40px 20px;
  }

  .gcard-toggle-header, .gcard-toggle-arrow {
    font-size: 20px !important;
  }
}
