/**
 * NextGen TechEdge Solutions — Security & AI Assurance Stylesheet
 * Covers Homepage Security Feature, Dedicated Service Page, AI Educational Panel,
 * and NexGuard Labs Illustrative Sample Report Gallery.
 */

/* ==========================================================================
   1. HOMEPAGE SECURITY FEATURE SECTION (Asymmetric Two-Column)
   ========================================================================== */
.homepage-security-section {
  position: relative;
  padding: var(--section-pad-y, clamp(56px, 5.5vw, 76px)) 0;
  background: #110c1c;
  color: #f5f2fc;
  overflow: hidden;
  border-top: 1px solid rgba(132, 38, 176, 0.2);
  border-bottom: 1px solid rgba(132, 38, 176, 0.2);
}

/* Subtle background glows */
.homepage-security-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 28, 140, 0.12) 0%, rgba(17, 12, 28, 0) 70%);
  pointer-events: none;
}

.homepage-security-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, rgba(17, 12, 28, 0) 70%);
  pointer-events: none;
}

.security-asymmetric-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Left Column: Editorial Copy */
.security-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00d4aa;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.24);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.security-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4aa;
  box-shadow: 0 0 8px #00d4aa;
}

.security-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.security-body-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #c4b9db;
  margin-bottom: 32px;
}

.security-body-lead strong {
  color: #ffffff;
}

/* 4 Capability Mini-Cards */
.security-mini-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.sec-mini-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 38, 176, 0.25);
  border-radius: 14px;
  padding: 18px 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.sec-mini-card:hover {
  transform: translateY(-3px);
  border-color: #00d4aa;
  background: rgba(255, 255, 255, 0.07);
}

.sec-mini-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-mini-card-title svg {
  color: #b81c8c;
  flex-shrink: 0;
}

.sec-mini-card:hover .sec-mini-card-title svg {
  color: #00d4aa;
}

.sec-mini-card-desc {
  font-size: 0.84rem;
  color: #a499be;
  line-height: 1.5;
  margin: 0;
}

/* Security CTAs */
.security-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-nexguard-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8426b0 0%, #b81c8c 50%, #df414c 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 24px -4px rgba(184, 28, 140, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-nexguard-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(184, 28, 140, 0.55);
  color: #ffffff;
}

.btn-nexguard-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-nexguard-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #00d4aa;
  color: #00d4aa;
}

/* Right Column: Security Report Preview Panel */
.security-report-preview {
  background: #191228;
  border: 1px solid rgba(132, 38, 176, 0.35);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(132, 38, 176, 0.15);
  position: relative;
  overflow: hidden;
}

/* Subtle moving scanline indicator */
.security-report-preview::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4aa, #b81c8c, transparent);
  animation: scanlineMove 6s linear infinite;
  opacity: 0.65;
}

@keyframes scanlineMove {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

.report-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.report-panel-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-panel-shield {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8426b0, #b81c8c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.report-panel-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.report-panel-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.12);
  color: #00d4aa;
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.report-panel-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.report-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.report-metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.report-metric-val.crit { color: #df414c; }
.report-metric-val.high { color: #f59e0b; }
.report-metric-val.med { color: #38bdf8; }
.report-metric-val.pass { color: #00d4aa; }

.report-metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #8c82a3;
}

/* Finding items inside report preview */
.report-panel-findings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.report-finding-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid #df414c;
  border-radius: 6px;
  padding: 10px 14px;
}

.report-finding-item.warn {
  border-left-color: #f59e0b;
}

.report-finding-item.info {
  border-left-color: #00d4aa;
}

.finding-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.finding-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.finding-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(223, 65, 76, 0.15);
  color: #df414c;
}

.finding-tag.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.finding-tag.info {
  background: rgba(0, 212, 170, 0.15);
  color: #00d4aa;
}

.finding-desc {
  font-size: 0.78rem;
  color: #a499be;
  margin: 0;
  line-height: 1.4;
}

.report-panel-disclaimer {
  font-size: 0.72rem;
  color: #796e91;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  margin: 0;
  font-style: italic;
}

/* ==========================================================================
   2. DEDICATED SERVICE PAGE STYLES (application-security-ai-assurance.html)
   ========================================================================== */
.sec-service-hero {
  background: linear-gradient(180deg, #120c1e 0%, #1a122c 100%);
  color: #ffffff;
  padding: 130px 0 85px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(132, 38, 176, 0.2);
}

.sec-service-hero .container {
  position: relative;
  z-index: 2;
}

.sec-service-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  max-width: 860px;
  margin: 0 0 20px;
}

.sec-service-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #c4b9db;
  max-width: 780px;
  margin-bottom: 32px;
}

.sec-initiative-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(184, 28, 140, 0.12);
  border: 1px solid rgba(184, 28, 140, 0.35);
  color: #fce7f3;
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.sec-initiative-badge strong {
  color: #00d4aa;
}

/* Section Containers on Service Page */
.sec-section {
  padding: 95px 0 100px;
  border-bottom: 1px solid rgba(132, 38, 176, 0.08);
}

.sec-section.dark {
  background: #130d21;
  color: #f5f2fc;
}

.sec-section.light {
  background: #ffffff;
  color: #171126;
}

.sec-section-title-wrap {
  margin-bottom: 50px;
  max-width: 800px;
}

.sec-section-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.2;
  color: var(--text-main);
}

.sec-section.dark .sec-section-h2,
.sec-section.dark h2,
.sec-section.dark .sec-section-title-wrap h2 {
  color: #ffffff !important;
}

.sec-section-p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #5c536e;
}

.sec-section.dark .sec-section-p,
.sec-section.dark p.sec-section-p,
.sec-section.dark .sec-section-title-wrap p {
  color: #c4b9db !important;
}

/* Service Detail Cards Grid */
.sec-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sec-card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.sec-card-grid.cols-5 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* 3-Card Deliverables Grid: Actionable Findings */
.sec-actionable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sec-actionable-card {
  background: #faf8fd;
  border: 1px solid rgba(132, 38, 176, 0.16);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sec-actionable-card:hover {
  transform: translateY(-3px);
  border-color: #8426b0;
  box-shadow: 0 12px 24px -8px rgba(132, 38, 176, 0.12);
}

.sec-actionable-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.sec-actionable-desc {
  font-size: 0.9rem;
  color: #5a526b;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: break-word;
}


.sec-detail-card {
  background: #faf8fd;
  border: 1px solid rgba(132, 38, 176, 0.14);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sec-section.dark .sec-detail-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(132, 38, 176, 0.25);
}

.sec-detail-card:hover {
  transform: translateY(-4px);
  border-color: #8426b0;
  box-shadow: 0 14px 28px -10px rgba(132, 38, 176, 0.12);
}

.sec-section.dark .sec-detail-card:hover {
  border-color: #00d4aa;
  box-shadow: 0 14px 28px -10px rgba(0, 212, 170, 0.12);
}

.sec-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(132, 38, 176, 0.08);
  border: 1px solid rgba(132, 38, 176, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8426b0;
  margin-bottom: 16px;
}

.sec-section.dark .sec-card-icon {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.25);
  color: #00d4aa;
}

.sec-card-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--text-main);
}

.sec-section.dark .sec-card-h3,
.sec-section.dark h3.sec-card-h3,
.sec-section.dark h3,
#secure-code-review .sec-card-h3,
#llm-security .sec-card-h3 {
  color: #00d4aa !important;
}

.sec-section.dark .sec-detail-card:hover .sec-card-h3 {
  color: #38efc6 !important;
}

.sec-card-desc {
  font-size: 0.88rem;
  color: #635b73;
  line-height: 1.6;
  margin: 0;
}

.sec-section.dark .sec-card-desc {
  color: #c4b9db !important;
}

.sec-section.dark h1,
.sec-section.dark h2,
.sec-section.dark h4 {
  color: #ffffff !important;
}

/* ==========================================================================
   3. AI SECURITY EDUCATIONAL PANEL (5 Visual Scenarios)
   ========================================================================== */
.ai-edu-section {
  padding: 95px 0 105px;
  background: #0d0818;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ai-edu-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 55px;
}

.ai-edu-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.2;
}

.ai-edu-lead {
  font-size: 1.1rem;
  color: #b9aed0;
  line-height: 1.7;
}

.ai-edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}

.ai-edu-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 28, 140, 0.25);
  border-radius: 16px;
  padding: 24px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ai-edu-card:hover {
  transform: translateY(-4px);
  border-color: #00d4aa;
}

.ai-edu-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #df414c;
  background: rgba(223, 65, 76, 0.12);
  border: 1px solid rgba(223, 65, 76, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 14px;
}

.ai-edu-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.ai-edu-desc {
  font-size: 0.86rem;
  color: #a499be;
  line-height: 1.6;
  margin: 0;
}

.ai-edu-closing-box {
  background: linear-gradient(135deg, rgba(132, 38, 176, 0.12) 0%, rgba(0, 212, 170, 0.08) 100%);
  border: 1px solid rgba(132, 38, 176, 0.35);
  border-radius: 16px;
  padding: 24px 30px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.ai-edu-closing-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1edfa;
  margin: 0;
  line-height: 1.6;
}

.ai-edu-closing-text strong {
  color: #00d4aa;
}

/* ==========================================================================
   4. SAMPLE REPORT GALLERY & LIGHTBOX
   ========================================================================== */
.sample-report-section {
  padding: 95px 0 105px;
  background: #fdfbfd;
  border-top: 1px solid rgba(132, 38, 176, 0.08);
}

.report-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.report-gallery-card {
  background: #ffffff;
  border: 1px solid rgba(132, 38, 176, 0.16);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.report-gallery-card:hover {
  transform: translateY(-4px);
  border-color: #8426b0;
  box-shadow: 0 16px 36px -10px rgba(132, 38, 176, 0.14);
}

/* Illustrative Preview Sheet */
.report-sheet-mockup {
  background: #161024;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.report-watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.sheet-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.sheet-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(132, 38, 176, 0.2);
  color: #c084fc;
  border: 1px solid rgba(132, 38, 176, 0.35);
}

.sheet-metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.sheet-metric-cell {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.sheet-metric-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.sheet-metric-lbl {
  font-size: 0.65rem;
  color: #8c82a3;
  text-transform: uppercase;
}

.sheet-sample-finding {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #df414c;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.sheet-finding-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1edfa;
}

.sheet-finding-scope {
  font-size: 0.72rem;
  color: #9287a8;
  font-family: monospace;
}

.report-caption {
  font-size: 0.78rem;
  color: #796e91;
  font-style: italic;
  margin: 0 0 16px;
  line-height: 1.4;
}

.report-gallery-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #171126;
  margin: 0 0 8px;
}

.report-gallery-desc {
  font-size: 0.92rem;
  color: #5a526b;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.report-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.report-highlights-list li {
  font-size: 0.84rem;
  color: #484158;
  line-height: 1.5;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.report-highlights-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #8426b0;
  font-weight: bold;
}

.btn-inspect-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #8426b0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-inspect-report:hover {
  color: #df414c;
}

/* Lightbox Modal */
.report-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 6, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.report-modal.is-open {
  display: flex;
}

.report-modal-dialog {
  background: #171126;
  border: 1px solid rgba(132, 38, 176, 0.35);
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  color: #ffffff;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.report-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease;
}

.report-modal-close:hover {
  background: rgba(223, 65, 76, 0.3);
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .security-asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sec-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .homepage-security-section {
    padding: 70px 0 85px;
  }
  .security-mini-cards {
    grid-template-columns: 1fr;
  }
  .sec-card-grid {
    grid-template-columns: 1fr;
  }
    .sec-actionable-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sec-actionable-card {
    padding: 20px 18px;
  }
  .report-panel-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) {
  .sec-actionable-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
  .sec-actionable-card {
    padding: 18px 14px !important;
  }
  .sec-actionable-title {
    font-size: 0.98rem !important;
  }
  .sec-actionable-desc {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }
}

/* ==========================================================================
   6. PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .security-report-preview::after {
    animation: none !important;
    display: none !important;
  }
  .sec-mini-card,
  .sec-detail-card,
  .ai-edu-card,
  .report-gallery-card,
  .btn-nexguard-primary,
  .btn-nexguard-secondary {
    transition: none !important;
    transform: none !important;
  }
}
