/* ========================================
Our Thematic Areas Section
======================================== */

.ota-section {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 50px;
  background: #fff;
}

.ota-header {
  text-align: left;
  margin-bottom: 48px;
}

.ota-header h2 {
  font-size: 2.2rem;
  color: var(--s-main);
  margin-bottom: 12px;
  font-weight: 700;
}

.ota-header p {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 900px;
}

/* Card Grid */

.ota-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

/* Individual Cards */

.ota-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.ota-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--s-secondary);
}

.ota-card-icon {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--s-secondary);
  background: rgba(79, 154, 178, 0.1);
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.ota-card-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

.ota-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  /* color: var(--s-main); */
  color: #000;
  line-height: 1.4;
  /* margin-bottom: 0; */
}

.ota-card-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
  /* margin-bottom: 0; */
}

.ota-card-link {
  font-size: 0.9rem;
  color: var(--s-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-top: auto;
}

.ota-card-link:hover {
  text-decoration: underline;
  color: var(--s-bg);
}

/* ========================================
Simple Popup - Based on Reference Image
======================================== */

.ota-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9999;
  padding: 18px;
}

.ota-popup.open {
  display: flex;
}

.ota-popup-content {
  background: #fff;
  width: 100%;
  max-width: 700px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  position: relative;
  border: 12px solid var(--s-secondary);
}

/* Popup Header with Blue Border */

.ota-popup-inner {
  /* border: 12px solid var(--s-secondary); */
  border-radius: 8px;
  padding: 36px;
  background: #fff;
  overflow-y: auto;
  max-height: 85vh;
}

.ota-popup-title {
  font-size: 1.6rem;
  font-weight: 700;
  /* color: var(--s-main); */
  color: #000;
  margin-bottom: 8px;
  text-align: center;
}

.ota-popup-subtitle {
  font-size: 0.95rem;
  color: var(--s-secondary);
  margin-bottom: 24px;
  text-align: center;
  font-weight: 500;
}

.ota-popup-description {
  color: #444;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.ota-popup-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--s-secondary);
  margin-bottom: 14px;
}

.ota-popup-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.ota-popup-list li {
  padding: 8px 0 8px 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
  display: flex;
  gap: 8px;
}

.ota-popup-list li::before {
  content: "•";
  color: var(--s-secondary);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ota-popup-highlight {
  background: rgba(79, 154, 178, 0.08);
  padding: 18px 20px;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid var(--s-secondary);
}

.ota-popup-highlight p {
  color: #444;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

/* Popup Close Button */

.ota-popup-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--s-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--s-secondary);
  transition: all 0.2s ease;
  z-index: 10000;
  font-weight: 700;
}

.ota-popup-close:hover {
  background: var(--s-secondary);
  color: #fff;
  transform: rotate(90deg);
}

/* ========================================
Responsive Styles
======================================== */

@media (max-width: 991px) {
  .ota-section {
    padding: 40px 30px;
  }

  .ota-header h2 {
    font-size: 1.8rem;
  }

  .ota-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .ota-popup-content {
    max-height: 95vh;
  }

  .ota-popup-inner {
    padding: 28px;
    border-width: 10px;
  }

  .ota-popup-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .ota-section {
    padding: 30px 20px;
  }

  .ota-header h2 {
    font-size: 1.6rem;
  }

  .ota-header p {
    font-size: 0.95rem;
  }

  .ota-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ota-card {
    padding: 24px 20px;
  }

  .ota-popup-inner {
    padding: 24px;
    border-width: 8px;
  }

  .ota-popup-title {
    font-size: 1.3rem;
  }

  .ota-popup-close {
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .ota-section {
    padding: 20px 15px;
  }

  .ota-header h2 {
    font-size: 1.4rem;
  }

  .ota-card-title {
    font-size: 1.1rem;
  }

  .ota-popup-list li {
    font-size: 0.9rem;
  }

  .ota-popup-inner {
    padding: 20px;
    border-width: 6px;
  }
}
