/* ================================================================
   WEBINARS & LECTURES DIRECTORY SPECIFIC STYLES
   ================================================================ */

.hero {
  min-height: 380px !important;
  padding-block: 120px var(--space-8) !important;
  position: relative;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  padding-block: 0 !important;
  z-index: 1;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2.5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: var(--space-4) !important;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem) !important;
  margin-bottom: var(--space-3.5) !important;
  line-height: 1.2 !important;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--gold-light);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm) !important;
  max-width: 620px !important;
  margin-bottom: 0 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.6;
}

/* Webinar Directory Section Layout */
.webinar-section {
  background: #F8FAFC;
  padding-block: var(--space-10) var(--space-16);
}

.section-intro-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  border-bottom: 2px solid var(--grey-100);
  padding-bottom: var(--space-3);
}

.section-subtitle-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0;
}

.webinar-count-badge {
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1.5) var(--space-3.5);
  border-radius: var(--radius-full);
}

/* Grid Layout */
.webinar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Premium Webinar Card */
.webinar-card {
  background: var(--white);
  border: 1px solid rgba(15, 32, 61, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(13, 32, 61, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
  position: relative;
}

.webinar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(13, 32, 61, 0.08);
  border-color: rgba(13, 32, 61, 0.12);
}

/* Card Banner */
.webinar-card-banner {
  height: 80px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-bottom: 3px solid var(--gold-light);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
}

/* Date tag styling */
.webinar-date-tag {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Card Body */
.webinar-card-body {
  padding: var(--space-5);
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

/* Speaker Avatar Image (Overlapping Banner) */
.speaker-avatar {
  position: absolute;
  top: -40px;
  left: var(--space-5);
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(13, 32, 61, 0.12);
  z-index: 2;
  background: var(--off-white);
  transition: transform var(--trans-base);
}

.webinar-card:hover .speaker-avatar {
  transform: scale(1.05);
}

/* Speaker Info Wrapper */
.webinar-speaker-info {
  margin-left: 92px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.speaker-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0;
}

.speaker-aff {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--grey-500);
  margin: 2px 0 0 0;
  line-height: 1.3;
}

/* Title Styling */
.webinar-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-light);
  line-height: 1.5;
  margin: 0;
  margin-bottom: var(--space-5);
  flex-grow: 1;
  transition: color var(--trans-base);
}

.webinar-card:hover .webinar-title {
  color: var(--navy);
}

/* Card Footer and Action Button */
.webinar-card-footer {
  border-top: 1px solid var(--grey-100);
  padding-top: var(--space-3.5);
  margin-top: auto;
}

.webinar-action-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-light);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--trans-base);
  cursor: pointer;
  padding: 0;
}

.webinar-action-btn i {
  font-size: 14px;
  transition: transform var(--trans-base);
}

.webinar-card:hover .webinar-action-btn {
  color: var(--gold);
}

.webinar-card:hover .webinar-action-btn i {
  transform: scale(1.1);
  color: var(--gold);
}

/* ================================================================
   WEBINARS DETAIL MODAL STYLES
   ================================================================ */

.webinar-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 300ms var(--ease);
}

.webinar-modal.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.webinar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 32, 61, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.webinar-modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  box-shadow: 0 24px 64px rgba(13, 32, 61, 0.16);
  border: 1px solid rgba(15, 32, 61, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 10;
  transform: translateY(20px) scale(0.97);
  transition: transform 300ms var(--ease);
  overflow: hidden;
}

.webinar-modal.is-active .webinar-modal-content {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  background: rgba(15, 32, 61, 0.05);
  border: none;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-light);
  cursor: pointer;
  z-index: 12;
  transition: background var(--trans-fast), color var(--trans-fast);
}

.modal-close-btn:hover {
  background: var(--navy-deep);
  color: var(--white);
}

/* Modal Header Section */
.modal-header-section {
  padding: var(--space-6) var(--space-6) var(--space-5) var(--space-6);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  border-bottom: 3px solid var(--gold-light);
}

.modal-speaker-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
}

.modal-speaker-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-date-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-speaker-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.modal-speaker-aff {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.3;
}

/* Modal Body Section */
.modal-body-section {
  padding: var(--space-6);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.modal-webinar-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.45;
  margin: 0;
  margin-bottom: var(--space-5);
}

/* Modal Tabs Navigation */
.modal-tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--grey-100);
  margin-bottom: var(--space-4);
  padding-bottom: 2px;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--grey-500);
  cursor: pointer;
  position: relative;
  transition: color var(--trans-base);
}

.modal-tab-btn:hover {
  color: var(--navy-light);
}

.modal-tab-btn.is-active {
  color: var(--navy-deep);
}

.modal-tab-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
}

/* Modal Tab Panels */
.modal-tab-panels {
  flex-grow: 1;
  position: relative;
}

.modal-panel {
  display: none;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--grey-700);
  line-height: 1.6;
}

.modal-panel.is-active {
  display: block;
  animation: fadeIn 200ms ease;
}

.modal-panel p {
  margin: 0;
  white-space: pre-line; /* Preserves linebreaks like Paper/Code links */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
  .modal-header-section {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .modal-speaker-avatar {
    width: 64px;
    height: 64px;
  }
  .modal-body-section {
    padding: var(--space-5);
  }
}


/* =================================================================
   Webinars & Lectures IHFC Overlay & Text Styling
   ================================================================= */
.webinar-hero {
  background-color: #0c0f1d !important;
  min-height: 480px !important;
  padding-block: 150px 80px !important;
  position: relative;
  overflow: hidden;
  border-bottom: none !important;
}

/* Left-fading dark gradient overlay: matches Media Coverage page hero */
.webinar-hero .banner-image-bg::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, rgba(12, 15, 29, 0.82) 0%, rgba(12, 15, 29, 0.5) 45%, rgba(12, 15, 29, 0.1) 75%, transparent 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.webinar-hero .banner-image-bg {
  opacity: 1 !important;
  filter: saturate(1.1) brightness(0.9) !important;
}

/* Typography Overrides: White title and glowing gold accent word */
.webinar-hero .hero-headline {
  color: var(--white) !important;
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  line-height: 1.25 !important;
  margin-bottom: var(--space-4) !important;
  text-shadow: 0 2px 10px rgba(12, 15, 29, 0.45) !important;
  z-index: 2;
  position: relative;
}

.webinar-hero .hero-headline em {
  font-style: normal !important;
  background: linear-gradient(135deg, #ffd54f 0%, #ffa000 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
}

.webinar-hero .hero-sub {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(var(--text-base), 2.2vw, var(--text-md)) !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
  max-width: 780px !important;
  text-shadow: 0 2px 6px rgba(12, 15, 29, 0.8), 0 1px 2px rgba(12, 15, 29, 0.9) !important;
  z-index: 2;
  position: relative;
}

.webinar-date-tag i, .modal-date-badge i {
  margin-right: 6px !important;
}


/* --- Extracted Inline Styles --- */
.webinar-banner-bg {
  background-image: url('../images/webinar.webp');
}
