/* ==========================================================================
   JEOMATEE NIGERIA LIMITED - MODAL & INTERACTIVE POP-UP SYSTEM
   Brand Colors: Primary Blue #0056B3, Deep Navy #071D3A, Industrial Yellow #FFCD11
   ========================================================================== */

:root {
  --jnl-primary: #0056B3;
  --jnl-primary-dark: #004085;
  --jnl-navy: #071D3A;
  --jnl-yellow: #FFCD11;
  --jnl-yellow-dark: #e5b20d;
  --jnl-slate: #1e293b;
  --jnl-gray-bg: #f8fafc;
  --jnl-gray-border: #e2e8f0;
  --jnl-text-dark: #0f172a;
  --jnl-text-muted: #64748b;
  --jnl-shadow-lg: 0 25px 50px -12px rgba(7, 29, 58, 0.35);
  --jnl-shadow-md: 0 10px 25px -5px rgba(0, 86, 179, 0.15);
  --jnl-radius: 8px;
  --jnl-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Overlay Backdrop */
#jnl-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 29, 58, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

#jnl-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog Container */
.jnl-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  border-radius: var(--jnl-radius);
  box-shadow: var(--jnl-shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

#jnl-modal-backdrop.active .jnl-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header with Industrial Styling */
.jnl-modal-header {
  background: linear-gradient(135deg, var(--jnl-navy) 0%, #0d284c 100%);
  color: #ffffff;
  padding: 24px 30px 20px;
  position: relative;
  border-bottom: 5px solid var(--jnl-yellow);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.jnl-modal-header-text {
  flex: 1;
  padding-right: 25px;
}

.jnl-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--jnl-yellow);
  margin-bottom: 6px;
}

.jnl-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.jnl-modal-subtitle {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

/* Close Button */
.jnl-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--jnl-transition);
  flex-shrink: 0;
}

.jnl-modal-close-btn:hover {
  background: var(--jnl-yellow);
  color: var(--jnl-navy);
  border-color: var(--jnl-yellow);
  transform: rotate(90deg);
}

/* Modal Navigation Tabs */
.jnl-modal-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--jnl-gray-border);
  padding: 0 24px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.jnl-modal-tabs::-webkit-scrollbar {
  display: none;
}

.jnl-tab-btn {
  background: none;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--jnl-text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--jnl-transition);
}

.jnl-tab-btn i {
  font-size: 14px;
}

.jnl-tab-btn:hover {
  color: var(--jnl-primary);
}

.jnl-tab-btn.active {
  color: var(--jnl-primary);
  font-weight: 700;
}

.jnl-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--jnl-primary);
  border-radius: 3px 3px 0 0;
}

/* Modal Body / Scrollable Content */
.jnl-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
  color: var(--jnl-text-dark);
  line-height: 1.6;
  font-size: 14px;
}

/* Tab Panels */
.jnl-tab-panel {
  display: none;
}

.jnl-tab-panel.active {
  display: block;
  animation: jnlFadeIn 0.3s ease;
}

@keyframes jnlFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section within Modal */
.jnl-modal-hero {
  position: relative;
  border-radius: var(--jnl-radius);
  overflow: hidden;
  margin-bottom: 24px;
  height: 240px;
  background-color: var(--jnl-navy);
  box-shadow: var(--jnl-shadow-md);
}

.jnl-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jnl-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 29, 58, 0.2) 0%, rgba(7, 29, 58, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  color: #ffffff;
}

.jnl-modal-hero-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.jnl-modal-hero-tagline {
  font-size: 13px;
  color: var(--jnl-yellow);
  font-weight: 500;
  margin: 0;
}

/* Content Grids */
.jnl-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.jnl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* Feature Cards */
.jnl-card {
  background: var(--jnl-gray-bg);
  border: 1px solid var(--jnl-gray-border);
  border-radius: var(--jnl-radius);
  padding: 20px;
  transition: var(--jnl-transition);
}

.jnl-card:hover {
  border-color: var(--jnl-primary);
  background: #ffffff;
  box-shadow: var(--jnl-shadow-md);
  transform: translateY(-2px);
}

.jnl-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--jnl-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.jnl-card.accent-yellow .jnl-card-icon {
  background: var(--jnl-yellow);
  color: var(--jnl-navy);
}

.jnl-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--jnl-navy);
  margin: 0 0 8px 0;
}

.jnl-card-desc {
  font-size: 13px;
  color: var(--jnl-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Specifications Table */
.jnl-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #ffffff;
  border: 1px solid var(--jnl-gray-border);
  border-radius: var(--jnl-radius);
  overflow: hidden;
}

.jnl-specs-table th {
  background: var(--jnl-navy);
  color: #ffffff;
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.jnl-specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--jnl-gray-border);
  font-size: 13px;
}

.jnl-specs-table tr:last-child td {
  border-bottom: none;
}

.jnl-specs-table tr:nth-child(even) {
  background-color: var(--jnl-gray-bg);
}

/* Bullet Checklist */
.jnl-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.jnl-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: #334155;
}

.jnl-checklist li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: #10b981;
  font-size: 16px;
}

/* Action Callout Bar */
.jnl-action-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--jnl-radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
}

.jnl-action-text h4 {
  margin: 0 0 4px 0;
  color: var(--jnl-navy);
  font-size: 16px;
  font-weight: 700;
}

.jnl-action-text p {
  margin: 0;
  font-size: 13px;
  color: var(--jnl-text-muted);
}

.jnl-btn-primary {
  background: var(--jnl-primary);
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--jnl-transition);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
  white-space: nowrap;
}

.jnl-btn-primary:hover {
  background: var(--jnl-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.35);
  color: #ffffff;
}

.jnl-btn-yellow {
  background: var(--jnl-yellow);
  color: var(--jnl-navy);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--jnl-transition);
  box-shadow: 0 4px 14px rgba(255, 205, 17, 0.4);
  white-space: nowrap;
}

.jnl-btn-yellow:hover {
  background: var(--jnl-yellow-dark);
  transform: translateY(-1px);
  color: var(--jnl-navy);
}

/* Inquiry Form Styling */
.jnl-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.jnl-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.jnl-form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--jnl-navy);
}

.jnl-form-group input,
.jnl-form-group select,
.jnl-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--jnl-gray-border);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--jnl-text-dark);
  background: #ffffff;
  outline: none;
  transition: var(--jnl-transition);
  box-sizing: border-box;
}

.jnl-form-group input:focus,
.jnl-form-group select:focus,
.jnl-form-group textarea:focus {
  border-color: var(--jnl-primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.jnl-form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Form Confirmation Card */
.jnl-confirm-card {
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border-radius: var(--jnl-radius);
  border: 1px solid var(--jnl-gray-border);
}

.jnl-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  animation: jnlScaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes jnlScaleUp {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.jnl-confirm-title {
  font-size: 22px;
  color: var(--jnl-navy);
  font-weight: 700;
  margin: 0 0 8px 0;
}

.jnl-confirm-ref {
  display: inline-block;
  background: #e2e8f0;
  color: #334155;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Search Dropdown Results */
.jnl-search-results-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid #cbd5e1;
  border-top: 3px solid var(--jnl-primary);
  max-height: 380px;
  overflow-y: auto;
  z-index: 10000;
  display: none;
}

.jnl-search-results-box.active {
  display: block;
}

.jnl-search-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.jnl-search-item:hover {
  background: #f8fafc;
}

.jnl-search-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e0f2fe;
  color: var(--jnl-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.jnl-search-meta h5 {
  margin: 0 0 2px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--jnl-navy);
}

.jnl-search-meta span {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  #jnl-modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .jnl-modal-dialog {
    max-height: 94vh;
    border-radius: 12px 12px 0 0;
  }

  .jnl-modal-header {
    padding: 18px 20px 16px;
  }

  .jnl-modal-title {
    font-size: 19px;
  }

  .jnl-modal-body {
    padding: 20px 16px;
  }

  .jnl-grid-2,
  .jnl-grid-3,
  .jnl-form-row {
    grid-template-columns: 1fr;
  }

  .jnl-modal-hero {
    height: 180px;
  }

  .jnl-action-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .jnl-action-bar .jnl-btn-yellow,
  .jnl-action-bar .jnl-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   LIVE SCRAPED OIL & GAS NEWS STYLING
   ========================================================================== */

.jnl-live-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #f1f5f9;
  border-left: 4px solid var(--jnl-primary);
  border-radius: 4px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--jnl-navy);
}

.jnl-live-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jnl-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: jnlPulse 1.8s infinite;
}

@keyframes jnlPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.jnl-refresh-btn {
  background: #ffffff;
  border: 1px solid var(--jnl-gray-border);
  color: var(--jnl-primary);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--jnl-transition);
}

.jnl-refresh-btn:hover {
  background: var(--jnl-primary);
  color: #ffffff;
  border-color: var(--jnl-primary);
}

.jnl-refresh-btn.spinning i {
  animation: jnlSpin 1s linear infinite;
}

@keyframes jnlSpin {
  100% { transform: rotate(360deg); }
}

/* Scraped News Modal Cards */
.jnl-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.jnl-news-card {
  background: #ffffff;
  border: 1px solid var(--jnl-gray-border);
  border-radius: var(--jnl-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--jnl-transition);
}

.jnl-news-card:hover {
  box-shadow: var(--jnl-shadow-md);
  border-color: var(--jnl-primary);
  transform: translateY(-2px);
}

.jnl-news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--jnl-navy);
}

.jnl-news-card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.jnl-news-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--jnl-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.jnl-news-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--jnl-navy);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.jnl-news-card-desc {
  font-size: 13px;
  color: var(--jnl-text-muted);
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex: 1;
}

.jnl-news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
}

.jnl-news-link-btn {
  color: var(--jnl-primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--jnl-transition);
}

.jnl-news-link-btn:hover {
  color: var(--jnl-primary-dark);
  text-decoration: underline;
}

.jnl-news-filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.jnl-news-filter-pills::-webkit-scrollbar {
  display: none;
}

.jnl-pill-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--jnl-transition);
}

.jnl-pill-btn:hover,
.jnl-pill-btn.active {
  background: var(--jnl-primary);
  color: #ffffff;
  border-color: var(--jnl-primary);
}

@media (max-width: 768px) {
  .jnl-news-grid {
    grid-template-columns: 1fr;
  }
}


/* Horizontal Scroll Service Cards Interactive Styling */
.tilesmall.horizontal_scroll .tiles_column,
.tiles_small_list .tiles_column {
  cursor: pointer !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease !important;
  border-radius: 6px;
  position: relative;
}

.tilesmall.horizontal_scroll .tiles_column:hover,
.tiles_small_list .tiles_column:hover {
  transform: translateY(-5px) !important;
}

.tilesmall.horizontal_scroll .tiles_content a,
.tiles_small_list .tiles_content a {
  cursor: pointer !important;
  display: block;
  text-decoration: none;
}

.tilesmall.horizontal_scroll .tiles_title,
.tiles_small_list .tiles_title {
  transition: color 0.2s ease !important;
}

.tilesmall.horizontal_scroll .tiles_column:hover .tiles_title,
.tiles_small_list .tiles_column:hover .tiles_title {
  color: var(--jnl-primary) !important;
}

.tilesmall.horizontal_scroll .tiles_image,
.tiles_small_list .tiles_image {
  transition: transform 0.3s ease, filter 0.3s ease !important;
}

.tilesmall.horizontal_scroll .tiles_column:hover .tiles_image,
.tiles_small_list .tiles_column:hover .tiles_image {
  filter: brightness(1.05) !important;
}
