/* ---------------- Buttons ---------------- */
.btn {
  background: linear-gradient(135deg, #2c3e50, #1abc9c);
  border-radius: 30px;
  color: white;
  padding: 0.8rem 1.6rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
}

/* ---------------- Cards & Content ---------------- */
.category-card, .content-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ---------------- Forms ---------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

input, textarea, select.form-select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
}

/* ---------------- Dropdown Arrow Bounce Animation ---------------- */
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.dropdown-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.group:hover .dropdown-arrow {
  animation: arrow-bounce 0.5s ease-in-out;
}
.bounce {
  animation: arrow-bounce 0.5s ease-in-out;
}

/* ---------------- Card Bounce Animation ---------------- */
@keyframes card-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-20px); }
  50% { transform: translateY(8px); }
  70% { transform: translateY(-10px); }
}
.card-bounce:hover {
  animation: card-bounce 1s cubic-bezier(.28,.84,.42,1) both;
}

/* ---------------- Modals ---------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal.show {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 20px;
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 10px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}


/* ---------------- AI Governance / Agile Blueprint card ---------------- */
.ai-governance-card ol,
.ai-governance-card ul {
  margin: 1rem 0 1rem 2rem;
  padding-left: 1rem;
}
.ai-governance-card ol li,
.ai-governance-card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.ai-governance-card ol { list-style-type: decimal; }
.ai-governance-card ul { list-style-type: disc; }

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  font-size: 20px;
  z-index: 5;
  background-color: #bbc2ccf6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 30rem;
}
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.logo img {
  height: 40px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
}
.nav-links li {
  position: relative; /* needed for dropdowns */
}

.nav-links a.active {
  font-weight: bold;
  color: #2563eb;
  pointer-events: none;
  cursor: default;
  text-decoration: underline;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  display: block;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--accent);
}

/* Dropdown menu */
.nav-links li ul {
  display: none;
  position: absolute;
  background-color: #1e40af;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  top: 100%;
  left: 0;
  min-width: 180px;
  border-radius: 0.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.nav-links li ul li a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
.nav-links li:hover ul {
  display: block;
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background-color: #124bb4f6;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    display: none;
    padding: 1rem;
  }
  .nav-links li {
    margin: 0.5rem 0;
  }
  .nav-links.show {
    display: flex; /* toggled with JS */
  }
}

/* ---------------- Box Grid ---------------- */
.box-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
}
.box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1.5rem;
  font-size: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.box:hover {
  animation: bounce 0.8s ease;
  box-shadow: var(--shadow-lg);
}
@keyframes bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.05); }
  60%  { transform: scale(0.98); }
  100% { transform: scale(1.03); }
}
.box h3 {
  font-size: 20px;
  color: #0b36adff;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.box p {
  font-size: 18px;
  margin-bottom: 1rem;
  color: #333;
}
.box a.btn { margin-top: auto; }

/* ---------------- Modal Enhancements ---------------- */
.modal-content {
  background: #fff;
  padding: 20px;
  width: 80%;
  max-width: 900px;
  height: 80%;
  overflow: auto;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  border-radius: var(--radius);
}

.page-banner {
  width: 300px;
  height: auto;
  border-radius: 8px;
}

/* ----- Image size utilities ----- */
.img-small { width: 100px; height: auto; }
.img-medium { width: 300px; height: auto; }
.img-large { width: 500px; height: auto; }

/* ---------------- Status Messages ---------------- */
.status-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  display: none;
}
.status-box.success {
  display: block;
  background-color: #e6f9ec;
  border: 1px solid #28a745;
  color: #1d7a32;
}
.status-box.error {
  display: block;
  background-color: #fdecea;
  border: 1px solid #dc3545;
  color: #a71d2a;
}
.status-box.loading {
  display: block;
  background-color: #fff9e6;
  border: 1px solid #ffc107;
  color: #856404;
  position: relative;
  padding-left: 2rem;
}
.status-box.loading::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  border: 2px solid #ffc107;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------------- Content Grid ---------------- */
.content-grid {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}
.content-box {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-box:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.content-box h2 {
  color: #255cb9;
  margin-bottom: 0.75rem;
}
.content-box table {
  width: 100%;
  border-collapse: collapse;
}
.content-box th,
.content-box td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}
/* --- Back Button Component --- */
.btn-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: #1e3a8a;              /* Deep blue */
  transition: all 0.2s ease-in-out;
}

.btn-link:hover {
  color: #0d0f94;              /* Teal on hover */
}

/* Specific variation for back buttons */
.back-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #1e3a8a;
  border-radius: 0.375rem;      /* rounded-md */
  background-color: #f9fafb;    /* light gray */
}

.back-btn:hover {
  background-color: #e0f2fe;    /* light cyan */
  border-color: #0d9488;
}

.ai-platforms h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1e40af; /* blue tone for clarity */
}
.ai-platforms ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}
.ai-platforms ul ul {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  list-style-type: circle; /* different bullet style for sub-points */
}

/* ----------------Table on togaf page---------------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #193866; /* light gray border */
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
}

.comparison-table th {
  background-color: #d1d1dd; /* light gray header */
  font-weight: 600;
  text-align: center;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #f9fafb; /* alternating row shading */
}

.comparison-table tbody tr:hover {
  background-color: #eef2ff; /* subtle hover effect */
}

.blueprint-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af; /* optional: blue to match diagram */
}

.blueprint-diagram {
  display: flex;
  justify-content: center;
  text-align: center;       /* center the SVG container */
  margin: 2rem 0; 
  max-width: 1000px; /* keeps it from being too wide */
}
.blueprint-diagram svg {
  width: 100%;
  height: auto;
  display: inline-block;  
}

.back-link {
  text-decoration: none;
  color: inherit;
}
.back-link:hover {
  text-decoration: underline;
}

  /* Excel-like table styling */
  .excel-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    font-family: "Segoe UI", Tahoma, sans-serif;
  }

  .excel-table th,
  .excel-table td {
    border: 1px solid #d9d9d9;
    padding: 8px 12px;
    text-align: left;
  }

  .excel-table th {
    background-color: #f2f2f2; /* Excel-like header */
    font-weight: bold;
  }

  .excel-table tr:nth-child(even) {
    background-color: #fafafa; /* Alternating row shading */
  }

  .excel-table tr:hover {
    background-color: #e6f3ff; /* Hover highlight */
  }

   /* Make entire card clickable */
    .content-box-link {
      display: block;
      text-decoration: none;
      color: inherit;
      height: 100%;
    }

    /* Grid layout */
    .content-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      align-items: stretch;
    }

    /* Card base styling */
    .content-box {
      background: #fff;
      padding: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    /* Hover effect */
    .content-box-link:hover .content-box {
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      transform: translateY(-2px);
      transition: all 0.2s ease;
      cursor: pointer;
    }

    /* Card spacing */
    .content-box h2 {
      margin-bottom: 1rem;
      color: #255cb9;
    }
    .content-box p {
      flex-grow: 1;
      color: #444;
    }

  .g-bot-header-home {
  background: linear-gradient(135deg, #8a1e1e, #931dd8);
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g-bot-hidden-home {
  display: none;
}

.blog-entry {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.blog-entry h3 {
  color: #255cb9;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-entry p {
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.blog-entry a.read-more-btn {
  display: inline-block;
  margin-top: 0.75rem;
  background-color: #255cb9;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.blog-entry a.read-more-btn:hover {
  background-color: #1a3f8a;
}

 /* === Layout === */
    main.container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 2rem;
      background-color: rgba(255, 255, 255, 0.88);
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    main.container h1, main.container h2, main.container h3 {
      color: #1a2a5b;
      margin-bottom: 0.6rem;
    }

    main.container h2 {
      border-bottom: 2px solid #ccc;
      padding-bottom: 0.3rem;
      margin-top: 2rem;
    }

    main.container p {
      line-height: 1.7;
      margin-bottom: 1rem;
      color: #222;
    }

    main.container ul, main.container ol {
      margin-left: 2rem;
      padding-left: 1rem;
      list-style-position: outside;
    }

    main.container li {
      margin-bottom: 0.4rem;
      line-height: 1.6;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin: 1rem 0;
    }

    table th, table td {
      border: 1px solid #ddd;
      padding: 0.6rem;
      text-align: left;
    }

    table th {
      background-color: #f5f5f5;
      font-weight: bold;
    }

    .phase-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin-top: 1rem;
    }

    @media (max-width: 900px) {
      .phase-columns {
        grid-template-columns: 1fr;
      }
    }

    /* === Clickable Heading === */
    #technical-ops-link {
      color: #255cb9;
      cursor: pointer;
      transition: color 0.3s ease;
    }

    #technical-ops-link:hover {
      color: #1b3d80;
    }

    .modal-trigger {
  cursor: pointer;
  transition: color 0.3s ease;
}
.modal-trigger:hover {
  color: #1b3d80;
  text-decoration: underline;
}
 /* ============================================================
   Inspect & Adapt Event Framework Styles
   Scoped to avoid overlap with other Ea-2-Sa pages
   ============================================================ */

/* Layout container specific to Inspect & Adapt */
main.container.inspect-adapt {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Typography refinements for this framework page */
main.container.inspect-adapt h1,
main.container.inspect-adapt h2,
main.container.inspect-adapt h3 {
  color: #002855;
  margin-bottom: 0.6rem;
}

main.container.inspect-adapt h2 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3rem;
  margin-top: 2rem;
}

main.container.inspect-adapt p {
  line-height: 1.7;
  color: #222;
  margin-bottom: 1rem;
}

/* Lists within I&A container */
main.container.inspect-adapt ul,
main.container.inspect-adapt ol {
  margin-left: 1.5rem;
  padding-left: 1rem;
  list-style-position: outside;
}
main.container.inspect-adapt li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* Table styling for quantitative & qualitative data */
.ia-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.ia-table th {
  background-color: #f0f4fa;
  color: #002855;
  text-align: left;
  padding: 10px;
  font-weight: 600;
}
.ia-table td {
  border-bottom: 1px solid #ccc;
  padding: 10px;
  vertical-align: top;
}
.ia-table tr:nth-child(even) {
  background-color: #fafafa;
}
.ia-table tr:hover {
  background-color: #eef2ff;
}

/* Collapsible summary headers */
summary {
  font-weight: 600;
  color: #255cb9;
  cursor: pointer;
  transition: color 0.2s ease;
}
summary:hover {
  color: #1b3d80;
}

/* Informational callout boxes */
.info-box {
  background-color: #f8faff;
  border-left: 5px solid #255cb9;
  padding: 1rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}


/* === Interactive Details Styling === */
details {
  border: 1px solid #dbe4f3;
  border-radius: 8px;
  margin: 1.2rem 0;
  background: #f9fbff;
  transition: all 0.3s ease;
}

details[open] {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #002855;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

summary:hover {
  background-color: #e9f0ff;
  color: #1a4fb3;
}

summary i {
  color: #255cb9;
  font-size: 1.3rem;
  min-width: 25px;
}

details > div {
  padding: 1rem 1.25rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Key Insight Box === */
.insight-box {
  background-color: #f8faff;
  border-left: 5px solid #255cb9;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

/* Lists inside details sections */
details ul {
  margin-left: 1rem;
  line-height: 1.6;
}


.info-box strong {
  color: #002855;
}

/* Banner image container */
.image-container.banner-center {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.image-container.banner-center img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Quick navigation box */
.nav-quick {
  margin: 1rem 0;
  background: #f0f4fa;
  padding: 1rem;
  border-radius: 8px;
}
.nav-quick strong {
  display: block;
  margin-bottom: 0.5rem;
}
.nav-quick ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-quick li {
  margin: 0.3rem 0;
}
.nav-quick a {
  color: #255cb9;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-quick a:hover {
  color: #1b3d80;
  text-decoration: underline;
}
