/* ========================= */
/* RESET */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #08265c;
}

/* ========================= */
/* HERO */
/* ========================= */

.partners-hero {
  width: 100%;
  min-height: 390px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 70px 8%;
  background: linear-gradient(120deg, #061b46 0%, #0b3474 55%, #0b6d9b 100%);
}

/* ========================= */
/* HERO CONTENT */
/* ========================= */

.partners-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.partners-label {
  display: inline-block;
  margin-bottom: 18px;
  color: #20c4e8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
}

.partners-hero h1 {
  color: #ffffff;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 22px;
}

.partners-hero h1 span {
  color: #20c4e8;
}

.partners-hero p {
  max-width: 650px;
  color: #d8e7f7;
  font-size: 16px;
  line-height: 1.7;
}

/* ========================= */
/* HERO DECORATION */
/* ========================= */

.partners-hero-decoration {
  position: absolute;
  right: 7%;
  top: 0;
  width: 430px;
  height: 100%;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.circle-one {
  width: 350px;
  height: 350px;
  right: -100px;
  top: 20px;
}

.circle-two {
  width: 220px;
  height: 220px;
  right: 50px;
  top: 85px;
  border-color: rgba(32, 196, 232, 0.25);
}

.decoration-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  right: 120px;
  top: 75px;
  background: #f97316;
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(249, 115, 22, 0.1),
    0 0 35px rgba(249, 115, 22, 0.35);
}

/* ========================= */
/* WHY PARTNERS SECTION */
/* ========================= */

.why-partners-section {
  width: 100%;
  padding: 65px 7% 55px;
}

.why-partners-header {
  text-align: center;
  margin-bottom: 38px;
}

.why-partners-header .section-label {
  display: block;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
}

.why-partners-header h2 {
  color: #08265c;
  font-size: 34px;
  font-weight: 600;
}

.why-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-partner-card {
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid #e2eaf5;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.why-partner-card:hover {
  transform: translateY(-6px);
  border-color: #b9dcf8;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.09);
}

.why-partner-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 13px;
  font-size: 25px;
  font-weight: 700;
}

.why-partner-card:nth-child(2) .why-partner-icon {
  color: #06b6d4;
  background: #ecfeff;
}

.why-partner-card:nth-child(3) .why-partner-icon {
  color: #f97316;
  background: #fff7ed;
}

.why-partner-card:nth-child(4) .why-partner-icon {
  color: #2563eb;
  background: #eff6ff;
}

.why-partner-card h3 {
  margin-bottom: 12px;
  color: #08265c;
  font-size: 17px;
  font-weight: 600;
}

.why-partner-card p {
  color: #71829c;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* ========================= */
/* PARTNERS SECTION */
/* ========================= */

.partners-section {
  width: 100%;
  padding: 55px 7% 90px;
}

.partners-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  margin-bottom: 35px;
}

.section-label {
  display: block;
  margin-bottom: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
}

/* ========================= */
/* PARTNERS GRID */
/* ========================= */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ========================= */
/* PARTNER CARD */
/* ========================= */

.partner-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e2eaf5;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-7px);
  border-color: #b9dcf8;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12);
}

/* ========================= */
/* PARTNER LOGO */
/* ========================= */

.partner-logo {
  width: 100%;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  margin-bottom: 22px;
  background: #f7faff;
  border-radius: 16px;
}

.partner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 250px;
  max-height: 125px;
  object-fit: contain;
}

/* ========================= */
/* PARTNER NAME */
/* ========================= */

.partner-name {
  color: #08265c;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 22px;
}

/* ========================= */
/* DETAILS BUTTON */
/* ========================= */

.partner-details-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0 0;
  margin-top: auto;
  border: none;
  border-top: 1px solid #edf1f6;
  background: transparent;
  color: #2563eb;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.partner-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 17px;
  transition: 0.25s;
}

.partner-details-btn:hover .partner-arrow {
  background: #f97316;
  transform: translateX(4px);
}

/* ========================= */
/* PARTNER MODAL */
/* ========================= */

.partner-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.partner-modal.active {
  opacity: 1;
  visibility: visible;
}

.partner-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 48, 0.65);
  backdrop-filter: blur(5px);
}

.partner-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 35px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: 0.3s ease;
}

.partner-modal.active .partner-modal-content {
  transform: translateY(0);
}

.partner-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #08265c;
  font-size: 25px;
  cursor: pointer;
}

.partner-modal-logo {
  width: 200px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f7faff;
  border-radius: 15px;
  margin-bottom: 22px;
}

.partner-modal-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-modal-content h2 {
  color: #08265c;
  font-size: 27px;
  margin-bottom: 25px;
}

.partner-modal-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}

.partner-modal-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-info-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  font-size: 21px;
}

.partner-modal-row div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.partner-modal-row small {
  color: #71829c;
  font-size: 12px;
}

.partner-modal-row strong {
  color: #08265c;
  font-size: 14px;
}

.partner-modal-description {
  padding: 22px 0;
}

.partner-modal-description h3 {
  color: #08265c;
  font-size: 17px;
  margin-bottom: 10px;
}

.partner-modal-description p {
  color: #71829c;
  font-size: 14px;
  line-height: 1.8;
}

.partner-modal-website {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.25s;
}

.partner-modal-website:hover {
  background: #0b6d9b;
}

.partner-modal-website[hidden] {
  display: none;
}

/* ========================= */
/* CTA */
/* ========================= */

.partners-cta {
  width: 86%;
  margin: 0 auto 80px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(120deg, #08265c, #146b9b);
}

.cta-content {
  padding: 55px 65px;
}

.cta-content > span {
  color: #20c4e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.cta-content h2 {
  max-width: 650px;
  margin: 12px 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.25;
}

.cta-content p {
  max-width: 600px;
  margin-bottom: 25px;
  color: #d6e5f4;
  font-size: 14px;
  line-height: 1.6;
}

.cta-content a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: 0.25s;
}

.cta-content a:hover {
  background: #20c4e8;
  transform: translateY(-2px);
}

.cta-content a strong {
  font-size: 18px;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1000px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-hero h1 {
    font-size: 44px;
  }

  .why-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .partners-hero {
    min-height: 350px;
    padding: 55px 7%;
  }

  .partners-hero h1 {
    font-size: 36px;
  }

  .partners-hero p {
    font-size: 14px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partners-section {
    padding: 60px 6%;
  }

  .partners-cta {
    width: 90%;
    margin-bottom: 50px;
  }

  .cta-content {
    padding: 40px 30px;
  }

  .cta-content h2 {
    font-size: 25px;
  }

  .why-partners-section {
    padding: 45px 6%;
  }

  .why-partners-header h2 {
    font-size: 26px;
  }

  /* .why-partners-grid {
    grid-template-columns: 1fr;
  } */

  .partner-card {
    padding: 22px;
  }

  .partner-logo {
    height: 140px;
  }

  .partner-modal-content {
    padding: 25px;
  }

  .partner-modal-content h2 {
    font-size: 23px;
  }
}
