/* Duck-il Industry Subpages CSS (subpage.css) - Premium Light Mode Edition */

/* 1. Subpage Hero/Banner */
.subpage-hero {
  position: relative;
  padding: 160px 0 80px 0;
  background: var(--bg-dark, #F8F9FA);
  border-bottom: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  overflow: hidden;
  text-align: center;
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.subpage-category {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--cobalt-glow, #2BB34B);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(43, 179, 75, 0.08);
  padding: 6px 16px;
  border-radius: var(--pill-radius, 100px);
  border: 1px solid rgba(43, 179, 75, 0.15);
}

.subpage-title {
  font-size: 3rem;
  color: var(--text-primary, #111111);
  margin-bottom: 16px;
  font-weight: 800;
  display: block !important;
}

.subpage-desc {
  font-size: 1.1rem;
  color: var(--text-secondary, #48484A);
  line-height: 1.6;
}

/* 2. Subpage Tab Navigation */
.subnav-wrapper {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.subnav-tabs {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px;
  border-radius: var(--pill-radius, 100px);
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.subnav-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.subnav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--pill-radius, 100px);
  color: var(--text-secondary, #48484A);
  font-family: var(--font-sans, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-smooth, all 0.4s cubic-bezier(0.16, 1, 0.3, 1));
}

.subnav-tab:hover {
  color: var(--text-primary, #111111);
  background: rgba(0, 0, 0, 0.03);
}

.subnav-tab.active {
  background: var(--cobalt-primary, #002165);
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(0, 33, 101, 0.25);
}

/* 3. Layout Main Content Section */
.subpage-content {
  padding: 80px 0 120px 0;
  background-color: var(--bg-dark, #F8F9FA);
}

/* 4. Subpage Grid Cards */
.subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.sub-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.85));
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  border-radius: var(--card-radius, 12px);
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.sub-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover, rgba(43, 179, 75, 0.4));
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06), 0 5px 15px rgba(0, 0, 0, 0.02);
}

.sub-card-icon {
  font-size: 2.5rem;
  color: var(--cobalt-glow, #2BB34B);
  margin-bottom: 20px;
}

.sub-card-title {
  font-size: 1.3rem;
  color: var(--text-primary, #111111);
  margin-bottom: 12px;
  font-weight: 700;
}

.sub-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary, #48484A);
  line-height: 1.6;
}

/* 5. Custom Table Layouts */
.premium-table-wrapper {
  background: var(--bg-card, rgba(255, 255, 255, 0.85));
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  border-radius: var(--card-radius, 12px);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.premium-table th {
  background: rgba(0, 33, 101, 0.04);
  color: var(--cobalt-primary, #002165);
  padding: 18px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  font-family: var(--font-display, sans-serif);
}

.premium-table td {
  padding: 16px 24px;
  color: var(--text-secondary, #48484A);
  border-bottom: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  font-size: 0.95rem;
}

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

.premium-table tr:hover td {
  color: var(--text-primary, #111111);
  background: rgba(0, 33, 101, 0.01);
}

/* 6. Timeline Styling */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--cobalt-primary, #002165);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  z-index: 2;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-badge {
  position: absolute;
  top: 25px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark, #F8F9FA);
  border: 3px solid var(--cobalt-glow, #2BB34B);
  box-shadow: 0 0 8px rgba(43, 179, 75, 0.3);
  z-index: 3;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -8px;
}

.timeline-item:nth-child(odd) .timeline-badge {
  right: -8px;
}

.timeline-content {
  background: var(--bg-card, rgba(255, 255, 255, 0.85));
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  border-radius: var(--card-radius, 12px);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  border-color: var(--cobalt-glow, #2BB34B);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 0 10px rgba(43, 179, 75, 0.15);
  transform: translateY(-2px);
}

.timeline-date {
  font-family: var(--font-display, sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cobalt-glow, #2BB34B);
  margin-bottom: 8px;
}

.timeline-item-title {
  font-size: 1.2rem;
  color: var(--text-primary, #111111);
  margin-bottom: 10px;
  font-weight: 700;
}

.timeline-item-desc {
  font-size: 0.9rem;
  color: var(--text-secondary, #48484A);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 20px 20px 20px 60px;
    text-align: left !important;
  }
  
  .timeline-badge {
    left: 22px !important;
    right: auto !important;
  }
}

/* 7. Image and Text Split Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.split-image-wrapper {
  position: relative;
  border-radius: var(--card-radius, 12px);
  overflow: hidden;
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}



.split-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-image-wrapper:hover .split-image {
  transform: scale(1.05);
}

.split-text {
  display: flex;
  flex-direction: column;
}

.split-tag {
  color: var(--cobalt-glow, #2BB34B);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.split-title {
  font-size: 2.2rem;
  color: var(--text-primary, #111111);
  margin-bottom: 20px;
}

.split-desc {
  font-size: 1.05rem;
  color: var(--text-secondary, #48484A);
  line-height: 1.7;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* 8. Laboratory Tabs */
.lab-tabs-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-top: 50px;
}

.lab-tabs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lab-tab-btn {
  background: var(--bg-card, rgba(255, 255, 255, 0.85));
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  border-radius: var(--card-radius, 12px);
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.01);
  transition: var(--transition-smooth);
  color: var(--text-secondary, #48484A);
}

.lab-tab-btn:hover {
  border-color: rgba(43, 179, 75, 0.3);
  color: var(--text-primary, #111111);
  background: #FFFFFF;
}

.lab-tab-btn.active {
  border-color: var(--cobalt-glow, #2BB34B);
  color: var(--cobalt-primary, #002165);
  background: #FFFFFF;
  box-shadow: 0 4px 15px rgba(43, 179, 75, 0.1);
}

.lab-tab-btn-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-display, sans-serif);
}

.lab-tab-btn-desc {
  font-size: 0.8rem;
  opacity: 0.7;
}

.lab-tab-content-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  border-radius: var(--card-radius, 12px);
  padding: 40px;
  min-height: 450px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: none;
}

.lab-tab-content-panel.active {
  display: block;
}

.lab-content-img-wrapper {
  border-radius: var(--card-radius, 12px);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
}

.lab-content-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.lab-content-title {
  font-size: 1.8rem;
  color: var(--text-primary, #111111);
  margin-bottom: 16px;
}

.lab-content-desc {
  font-size: 1rem;
  color: var(--text-secondary, #48484A);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .lab-tabs-container {
    grid-template-columns: 1fr;
  }
}

/* 9. News / Press Releases Portal */
.news-search-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 45px;
  justify-content: flex-end;
  max-width: 600px;
  margin-left: auto;
}

.news-search-input {
  background: #FFFFFF;
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  border-radius: var(--pill-radius, 100px);
  padding: 12px 24px;
  color: var(--text-primary, #111111);
  flex-grow: 1;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.01);
  transition: var(--transition-smooth);
}

.news-search-input:focus {
  border-color: var(--cobalt-glow, #2BB34B);
  box-shadow: 0 0 10px rgba(43, 179, 75, 0.15);
  outline: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.85));
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  border-radius: var(--card-radius, 12px);
  padding: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--cobalt-glow, #2BB34B);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06), 0 0 10px rgba(43, 179, 75, 0.15);
}

.news-card-title {
  font-size: 1.15rem;
  color: var(--text-primary, #111111);
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  padding-top: 15px;
}

.news-card-date {
  font-size: 0.85rem;
  color: var(--text-muted, #64748B);
}

.news-card-more {
  font-size: 0.85rem;
  color: var(--cobalt-glow, #2BB34B);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.news-page-btn {
  background: var(--bg-card, rgba(255, 255, 255, 0.85));
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary, #48484A);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.news-page-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary, #111111);
}

.news-page-btn.active {
  background: var(--cobalt-primary, #002165);
  color: #FFFFFF !important;
  border-color: var(--cobalt-primary, #002165);
  box-shadow: 0 4px 10px rgba(0, 33, 101, 0.2);
}

/* 10. News Modal Overrides */
.modal-overlay.active {
  background: rgba(5, 14, 23, 0.4);
  backdrop-filter: blur(12px);
}

.modal-container {
  background: #FFFFFF;
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.1));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.05);
}

.news-modal-comment {
  max-height: 50vh;
  overflow-y: auto;
  margin: 20px 0;
  padding: 10px;
  color: var(--text-secondary, #48484A);
  line-height: 1.8;
  font-size: 1rem;
}

.news-modal-comment::-webkit-scrollbar {
  width: 6px;
}

.news-modal-comment::-webkit-scrollbar-thumb {
  background: var(--border-glass, rgba(0, 0, 0, 0.15));
  border-radius: var(--pill-radius, 100px);
}

.news-modal-comment iframe {
  max-width: 100%;
  margin-top: 15px;
  border-radius: var(--card-radius, 12px);
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.08));
}

/* 11. Text Gradient Utility */
.text-gradient {
  color: var(--cobalt-primary, #002165);
  display: inline-block;
}

