/* ===== INNER BANNER ===== */
.inner-banner {
  display: block;
  padding: 60px 0;
  min-height: 290px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/bg-blog.png) no-repeat center top / cover;
  position: relative;
}

.inner-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.inner-banner .container {
  position: relative;
  z-index: 1;
}

.inner-banner h1 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 15px;
}

.inner-banner p {
  color: #fff;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

hr {
  width: 40%;
  height: 3px;
  border: none;
  background-color: #fff;
  margin: 20px auto;
  border-radius: 2px;
}

.container1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 25px 35px;
  margin-bottom: 50px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border: 0.5px solid #e5e5e5;
  position: relative;
  overflow: hidden;
}

.header.tab:hover {
  border: 1px solid #f7ca17;
}

.header h1 {
  margin-bottom: 15px;
  color: #212121;
}

.header p {
  color: #666;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: -30px;
  margin-bottom: 20px;
}

.tab {
  padding: 8px 26px;
  border-radius: 12px;
  border: none;
  background: #f7f7f7;
  color: #cecece;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  margin: 5px;
}

.tab.active {
  background-color: #f7ca17;
  color: #212121;
  border: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.webinar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 70px;
}

.webinar-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 105%;
  position: relative;
}

.webinar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 12px;
  background: linear-gradient(90deg, #f7ca17 0%, #ffd700 100%);
  border-radius: 0 0 16px 16px;
}

.webinar-card.yellow-border {
  border-color: #ffd700;
}

.webinar-card:hover {
  box-shadow: 0 8px 25px #f7ca17;
}

.webinar-card h5 {
  margin-bottom: 12px;
  color: #212121;
  line-height: 1.4;
  font-size: 18px;
  font-weight: 700;
}

.webinar-card p {
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 14px;
}

.card-header {
  background: #ffffff;
  padding: 20px 24px 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  margin-top: 0;
  position: relative;
}

.card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #f7ca17 0%, #ffd700 100%);
  border-radius: 12px;
}

.card-header::after {
  content: "";
  position: absolute;

  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px;
  width: 90%;
  height: 3px;
  background-color: #e0e0e0;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #666;
  font-size: 14px;
  flex: 1;
}

.card-body {
  background: #fff;
  padding: 16px 24px 24px 24px;
  padding-top: 10px;
}

.date-badge {
  color: #212121;
  font-weight: 600;
  padding: 0;
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-badge i {
  font-size: 18px;
}

.time-info {
  color: #b3b3b3;
}

.time-range-info {
  color: #212121;
  font-weight: 500;
  padding: 0;
  margin: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-range-info i {
  font-size: 16px;
  color: #212121;
}

.status-badge {
  display: inline-flex;
  padding: 0 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: fit-content;
}

.status-badge.available {
  background-color: #4ade80;
  color: #ffffff;
}

.status-badge.full {
  background-color: #00aaffff;
  color: #fff;
}

.status-badge.waiting {
  background-color: #c51515ff;
  color: #ffffff;
}

.instructor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  background: transparent;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.instructor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.instructor-info {
  flex: 1;
}

.instructor-avatar i {
  font-size: 24px;
  color: #212121;
}

.instructor-info h6 {
  color: #212121;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 15px;
}

.instructor-info p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

.register-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0;
  background: linear-gradient(90deg, #f7ca17 0%, #ffd700 100%);
  color: #212121;
  box-shadow: 0 2px 8px rgba(247, 202, 23, 0.3);
}

.register-btn i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.register-btn:hover i {
  transform: translateX(4px);
}

.register-btn.yellow {
  background-color: #e7e7e7;
  color: #212121;
}

.register-btn.gray {
  background: #e5e7eb;
  color: #666;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247, 202, 23, 0.5);
}

.register-btn:active {
  transform: translateY(0);
}

.register-btn.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.register-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* --- CTA & BENEFIT SECTIONS --- */

.benefits-grid-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding: 0;
  box-sizing: border-box;
  justify-content: center;
  justify-items: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.benefit-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px #f7ca17;
}

.benefit-img {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

.benefit-card h3 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #212121;
}

.benefit-card p {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
}

.cta-section {
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  background: rgba(247, 202, 23, 0.2);
  color: #f7ca17;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  border: 1px solid #f7ca17;
}

.cta-section h1 {
  margin-bottom: 15px;
  color: #212121;
}

.cta-section p {
  color: #666;
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.cta-btn {
  padding: 15px 35px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-btn.primary {
  background-color: #f7ca17;
  color: #212121;
}

.cta-btn.secondary {
  background: white;
  color: #212121;
  border: 2px solid #e5e7eb;
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-btn.primary:hover {
  box-shadow: 0 4px 12px rgba(247, 202, 23, 0.7);
  transform: translateY(-2px);
}

.cta-btn.secondary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-section1 {
  text-align: center;
  background: #f2f2f2;
  padding-top: 40px;
}

.cta-section1 h2 {
  margin-bottom: 30px;
  color: #212121;
  position: relative;
}

.cta-section1 h2::after {
  content: "";
  position: absolute;
  margin-top: 60px;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 270px;
  height: 4px;
  background-color: #f7ca17;
  border-radius: 2px;
}

.cta-section1 h1 {
  font-size: 36;
  margin-bottom: 15px;
  color: #212121;
  font-weight: 700;
}

.cta-section1 p {
  color: #666;
  font-size: 16px;
  margin-bottom: 0px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- MODAL STYLE --- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: 4px;
  max-width: 1100px;
  width: 95%;
  height: 95%;
  max-height: 85vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Layout 2 Kolom */
.modal-wrapper {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 100%;
  max-height: 80vh;
  gap: 0;
}

/* Kolom Kiri: Poster Card */
.modal-image-col {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px;
  position: relative;
}

.modal-image-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.modal-poster-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* Kolom Kanan: Detail Card */
.modal-details-col {
  display: flex;
  flex-direction: column;
  padding: 40px;
  overflow-y: auto;
  background: #ffffff;
  min-height: 0;
  max-height: 100%;
}

/* Custom Scrollbar - Enhanced */
.modal-details-col::-webkit-scrollbar {
  width: 8px;
}

.modal-details-col::-webkit-scrollbar-track {
  background: #f9f9f9;
  border-radius: 10px;
  margin: 10px 0;
}

.modal-details-col::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f7ca17 0%, #e0b400 100%);
  border-radius: 10px;
  border: 2px solid #f9f9f9;
}

.modal-details-col::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e0b400 0%, #c9a200 100%);
}

/* Header Modal - Enhanced */
.modal-header-detail {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px;
}

.modal-header-detail h2 {
  font-weight: 700;
  color: #212121;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Body Modal - Card Style */
.modal-body-detail {
  flex-grow: 1;
  margin-bottom: 5px;
  margin-top: 0px;
}

.detail-group {
  background: #ffffff;
  padding: 10px 10px;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  border-left: 3px;
  transition: all 0.2s ease;
  text-align: left;
}

.modal-body-detail .detail-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-group:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-weight: 700;
  color: #212121;
  letter-spacing: 1.2px;
  margin-bottom: 5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-value {
  color: #8c8c8c;
    font-weight: 500;
    line-height: 1.6;
  margin-bottom: 0;
}

.modal-description .detail-value {
  color: #555;
  line-height: 1.7;
  text-align: justify;
}

/* Footer Modal - Enhanced Buttons */
.modal-footer-detail {
  display: flex;
  gap: 15px;
  padding-top: 25px;
  border-top: 2px solid #f0f0f0;
}

.modal-btn {
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  flex: 1;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.modal-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.modal-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modal-btn.primary {
  background: linear-gradient(135deg, #f7ca17 0%, #ffd700 100%);
  color: #212121;
  box-shadow: 0 6px 20px rgba(247, 202, 23, 0.4);
  position: relative;
  z-index: 1;
}

.modal-btn.secondary {
  background: #ffffff;
  color: #666;
  border: 2px solid #f1f1f1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-btn.primary:hover:not(:disabled) {
  box-shadow: 0 8px 25px rgba(247, 202, 23, 0.5);
}

.modal-btn.secondary:hover {
  background: #f7f7f7;
  color: #f7ca17;
  border-color: #f7ca17;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-btn:active {
  transform: translateY(0);
}

.modal-btn.primary:disabled,
.modal-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #cccccc;
  box-shadow: none;
  transform: none;
}

/* Tombol Close - Enhanced */
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #ffffff;
  color: #212121;
  border: 1px solid #f7ca17;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(247, 202, 23, 0.25);
}

.modal-close i { font-size: 20px; }

.modal-close:hover {
  background: #f7ca17;
  color: #212121;
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(247, 202, 23, 0.45);
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
  .header h1 {
    font-size: 24px;
  }

  .webinar-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .webinar-card {
    transform: none;
  }

  .tabs {
    flex-direction: column;
  }

  .tab {
    width: 100%;
  }

  .benefits-grid-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 25px;
    gap: 25px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
  }

  /* Modal Responsive */
  .modal-content {
    width: 95%;
    max-width: 95%;
    max-height: 95vh;
  }

  .modal-wrapper {
    flex-direction: column;
  }

  .modal-image-col {
    width: 100%;
    flex: 0 0 250px;
    height: 250px;
  }

  .modal-details-col {
    padding: 25px;
    max-height: calc(95vh - 250px);
  }

  .modal-header-detail h2 {
    font-size: 18px;
  }

  .modal-footer-detail {
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-details-col {
    padding: 20px;
  }

  .modal-header-detail h2 {
    font-size: 16px;
  }

  .detail-value {
    font-size: 14px;
  }
}
