/* Insights & Articles Page Styles */

/* General Section Spacing */
.insights-section {
  padding: 60px 0;
}

/* Hero Section */
.insights-hero-section {
  margin: 0 24px 24px 24px;
  border-radius: 24px;
  overflow: hidden;
  padding: 120px 0;
  background-image: linear-gradient(to right, rgba(11, 19, 40, 0.95) 0%, rgba(11, 19, 40, 0.8) 50%, rgba(11, 19, 40, 0.2) 100%),
    url('../Images/defense-network.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.insights-hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.insights-hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin: 0 0 24px 0;
  letter-spacing: -1px;
}

.insights-hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

/* Filter Bar */
.insights-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.insight-pill {
  padding: 10px 24px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: #0b1328;
  color: white;
}

.insight-pill.active {
  background-color: var(--primary-orange);
}

.insight-pill:not(.active):hover {
  background-color: #1a2744;
}

/* Featured Perspective Section */
.featured-perspective-section {
  background-color: #0b1328;
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 80px;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.section-label.dark { color: white; }
.section-label.light { color: #111827; }

.section-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange) 0%, rgba(232,93,36,0) 100%);
}

.featured-perspective-layout {
  display: flex;
  gap: 44px;
  align-items: center;
}

.featured-image {
  flex: 0 0 48%;
  max-width: 48%;
  min-width: 0;
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  display: block;
}

.featured-content {
  flex: 1;
  min-width: 0;
  color: white;
}

.featured-meta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.featured-meta .cat { color: var(--primary-orange); }
.featured-meta .time { color: #9ca3af; font-weight: 500; }

.featured-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.featured-desc {
  font-size: 15px;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 32px;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.featured-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.featured-author-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.featured-author-info p {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.featured-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
}
.featured-link:hover { text-decoration: underline; }

/* Recent Analysis Section */
.analysis-header {
  margin-bottom: 48px;
}
.analysis-title {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}


.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 991px) {
  .analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }
}

.analysis-card {
  background-color: #0b1328;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: white;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.analysis-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(232, 93, 36, 0.4);
}

.analysis-card-image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #070d1d;
  position: relative;
}

.analysis-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.analysis-card:hover .analysis-card-image {
  transform: scale(1.04);
}

.analysis-card-content {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ac-meta {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ac-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  min-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ac-title a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ac-title a:hover {
  color: var(--primary-orange);
}

.ac-desc {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ac-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ac-footer {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.ac-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, text-decoration 0.2s ease;
}

.ac-link:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* Curated Stacks / Ecosystem Directories */
.directories-section {
  padding: 80px 0;
}

.directory-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directory-item {
  background-color: #0b1328;
  border-radius: 14px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.directory-item:hover,
.directory-item.active {
  border-color: var(--primary-orange);
  box-shadow: 0 10px 30px rgba(232, 93, 36, 0.12);
}

.directory-header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.25s ease;
}

.directory-header:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.dir-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-orange);
  min-width: 24px;
}

.dir-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-grow: 1;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.dir-toggle-icon {
  margin-left: auto;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease, background-color 0.25s ease;
}

.directory-item:hover .dir-toggle-icon,
.directory-item.active .dir-toggle-icon {
  transform: rotate(180deg);
  color: var(--primary-orange);
  background: rgba(232, 93, 36, 0.12);
}

/* CSS Grid 0fr -> 1fr for buttery-smooth slide down animation */
.directory-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.directory-item:hover .directory-content-wrapper,
.directory-item.active .directory-content-wrapper {
  grid-template-rows: 1fr;
}

.directory-content {
  overflow: hidden;
  display: flex;
  gap: 64px;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s, padding 0.35s ease;
  border-top: 1px solid transparent;
}

.directory-item:hover .directory-content,
.directory-item.active .directory-content {
  opacity: 1;
  transform: translateY(0);
  padding: 24px 32px 36px 32px;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.dir-desc-col {
  flex: 0 0 380px;
}

.dir-desc-col p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.65;
  margin: 0 0 24px 0;
}

.dir-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, text-decoration 0.2s ease;
}

.dir-link:hover {
  text-decoration: underline;
  transform: translateX(3px);
}

.dir-links-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dir-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #e5e7eb;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dir-link-item:hover {
  color: var(--primary-orange);
  transform: translateX(4px);
}

.dir-link-item:last-child {
  border-bottom: none;
}

.dir-link-title {
  font-size: 14px;
  font-weight: 600;
}

.dir-link-date {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  margin-left: 16px;
}

@media (max-width: 860px) {
  .directory-content {
    flex-direction: column;
    gap: 28px;
  }
  .dir-desc-col {
    flex: auto;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .featured-perspective-layout {
    flex-direction: column;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .analysis-card.large {
    grid-row: auto;
  }
  .directory-item.open .directory-content {
    flex-direction: column;
    gap: 32px;
  }
  .dir-desc-col {
    flex: none;
  }
}

/* CTA Section */
.insights-cta-section {
  background-color: #0b1328;
  border-radius: 24px;
  padding: 100px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insights-cta-title {
  font-size: 40px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.insights-cta-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.insights-cta-btn {
  display: inline-block;
  background-color: var(--primary-orange);
  color: white;
  padding: 16px 32px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.insights-cta-btn:hover {
  background-color: #d14d17;
}

/* Reports Library Grid & Cards */
.reports-library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 991px) {
  .reports-library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .reports-library-grid {
    grid-template-columns: 1fr;
  }
}

.report-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 16px rgba(11, 19, 40, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(11, 19, 40, 0.1);
  border-color: var(--primary-orange);
}

.report-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.report-meta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-orange);
}

.report-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff7ed;
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.report-card:hover .report-badge-icon {
  background: var(--primary-orange);
  color: white;
  transform: rotate(5deg);
}

.report-title {
  font-size: 19px;
  font-weight: 700;
  color: #0b1328;
  line-height: 1.35;
  margin: 0 0 14px 0;
  min-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.report-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.report-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #fff7ed;
  color: var(--primary-orange);
  border: 1.5px solid rgba(232, 93, 36, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}

.report-btn:hover {
  background: var(--primary-orange);
  color: white;
  border-color: var(--primary-orange);
  box-shadow: 0 6px 20px rgba(232, 93, 36, 0.35);
  transform: translateY(-1px);
}
