/* ==========================================================================
   ISE Europe Academy Stylesheet
   ========================================================================== */

/* Gateway Pathway Section (Homepage) */
.academy-gateway-section {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  position: relative;
  overflow: hidden;
}

.academy-gateway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .academy-gateway-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gateway-card {
  border: 1px solid #ebe6e7;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.gateway-card.international {
  background: radial-gradient(circle at top right, rgba(169, 35, 41, 0.03) 0%, #ffffff 60%);
  border-top: 4px solid var(--primary-color);
}

.gateway-card.academy {
  background: radial-gradient(circle at top right, rgba(243, 148, 35, 0.03) 0%, #ffffff 60%);
  border-top: 4px solid var(--secondary-color);
}

.gateway-card.international:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 60px rgba(169, 35, 41, 0.12), 0 8px 20px rgba(0, 0, 0, 0.02);
  border-color: rgba(169, 35, 41, 0.2);
}

.gateway-card.academy:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 60px rgba(243, 148, 35, 0.12), 0 8px 20px rgba(0, 0, 0, 0.02);
  border-color: rgba(243, 148, 35, 0.2);
}

.gateway-card-header {
  margin-bottom: 25px;
}

.gateway-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gateway-card:hover .gateway-icon-wrapper {
  transform: scale(1.1) rotate(8deg);
}

.gateway-icon-wrapper.international {
  background-color: rgba(169, 35, 41, 0.08);
  color: var(--primary-color);
}

.gateway-icon-wrapper.academy {
  background-color: rgba(243, 148, 35, 0.08);
  color: var(--secondary-color);
}

.gateway-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.gateway-card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
}

.gateway-card-badge.international {
  background-color: rgba(169, 35, 41, 0.06);
  color: var(--primary-color);
  border: 1px solid rgba(169, 35, 41, 0.12);
}

.gateway-card-badge.academy {
  background-color: rgba(243, 148, 35, 0.06);
  color: var(--secondary-color);
  border: 1px solid rgba(243, 148, 35, 0.12);
}

.gateway-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-family: var(--global-fonts);
}

.gateway-card-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.gateway-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.gateway-features-list li {
  font-size: 14.5px;
  color: #555;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease;
}

.gateway-card:hover .gateway-features-list li {
  color: #1a1a1a;
}

.gateway-features-list li svg {
  color: var(--app-green);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.gateway-card:hover .gateway-features-list li svg {
  transform: scale(1.15);
}

.gateway-card-footer {
  margin-top: auto;
}

/* Academy Hero Section */
.academy-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 100px 0 140px 0;
}

.academy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.academy-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.academy-hero-badge {
  background: rgba(243, 148, 35, 0.2);
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.academy-hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

@media (min-width: 768px) {
  .academy-hero-title {
    font-size: 54px;
  }
}

.academy-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #e5e7eb;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .academy-hero-desc {
    font-size: 21px;
  }
}

.academy-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* Sections General */
.academy-section-padding {
  padding: 80px 0;
}

.academy-section-bg-light {
  background-color: #f9fafb;
}

.academy-section-header {
  max-width: 700px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.academy-section-pre {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.academy-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.academy-section-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* Mission & Values */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 25px;
}

@media (min-width: 576px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .mission-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mission-card {
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
}

.mission-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(169, 35, 41, 0.06);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mission-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.mission-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* Areas of Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expertise-card {
  background: #ffffff;
  border: 1px solid #ebe6e7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.expertise-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.expertise-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
}

.expertise-card-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.expertise-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.expertise-card-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.expertise-list li {
  font-size: 14px;
  color: #4b5966;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.expertise-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--primary-color);
  font-size: 12px;
}

.expertise-card-footer {
  margin-top: auto;
}

/* News & Projects Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 25px;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.news-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-card-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: var(--secondary-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

.news-card-body {
  padding: 24px;
}

.news-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Why Partner Cards */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  text-align: center;
  height: 100%;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(169, 35, 41, 0.06);
  border-bottom-color: var(--primary-color);
}

.partner-card-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
}

.partner-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .partner-card-title {
    font-size: 20px;
  }
}

.partner-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Testimonial / Gallery Grid */
.academy-gallery-wrap {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Enquiry Form Styling */
.enquiry-form-card {
  background: #ffffff;
  border: 1px solid #ebe6e7;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .enquiry-form-card {
    padding: 50px;
  }
}

.form-group-custom {
  margin-bottom: 24px;
}

.form-group-custom label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.form-control-custom {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: #495057;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(169, 35, 41, 0.15);
}

.form-control-custom.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.invalid-feedback-custom {
  display: none;
  width: 100%;
  margin-top: 5px;
  font-size: 13px;
  color: #dc3545;
}

.form-control-custom.is-invalid + .invalid-feedback-custom {
  display: block;
}

.alert-custom {
  display: none;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 15px;
}

.alert-custom-success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  color: #155724;
}

.alert-custom-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #721c24;
}

.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: .15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
  margin-right: 8px;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

/* Icon details helper */
.intro-check-list {
  list-style: none;
  padding: 0;
}

.intro-check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #4b5966;
}

.intro-check-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  color: var(--app-green);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 18px;
}
