/* OSINT Books Section Styles */
.books-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  padding: 28px 24px 18px 24px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.books-title {
  color: #cc0000;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid #cc0000;
  padding-bottom: 6px;
}
.books-description {
  color: #222;
  font-size: 1.15em;
  margin-bottom: 16px;
  line-height: 1.5;
}
.books-external-link {
  margin-top: 10px;
}
.books-external-link a {
  color: #1976d2;
  font-weight: bold;
  font-size: 1.15em;
  text-decoration: underline;
  transition: color 0.2s;
}
.books-external-link a:hover {
  color: #cc0000;
}
    /* Unified tab button styles for both pages */
    .main-option-btn {
      padding: 14px 38px;
      border-radius: 18px;
      font-weight: 700;
      text-decoration: none;
      box-shadow: 0 2px 10px rgba(31,38,135,0.13);
      border: 2px solid #1e3c72;
      font-size: 1.35em;
      transition: background 0.2s, color 0.2s;
      background: #fff;
      color: #1e3c72;
      display: inline-block;
    }
    .main-option-btn:hover {
      background: #e3f0ff;
      color: #1e3c72;
      cursor: pointer;
    }
    .main-option-btn.active {
      background: #1e3c72;
      color: #fff;
    }
     .videos-grid {
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       gap: 14px;
       margin: 12px 0;
     }
     @media (max-width: 1200px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
     @media (max-width: 768px) { .videos-grid { grid-template-columns: 1fr; } }
     .video-container {
       position: relative;
       padding-bottom: 56.25%;
       height: 0;
       overflow: hidden;
       border-radius: 6px;
       box-shadow: 0 2px 8px rgba(0,0,0,0.10);
       background: #000;
     }
     .video-container iframe {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       border: none;
       border-radius: 6px;
     }
    /* Unified card style for videos/books */
    .video-section, .books-section {
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.10);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      margin-bottom: 18px;
    }
    .video-section:hover, .books-section:hover {
      transform: translateY(-4px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
     .video-title {
       color: #cc0000;
       margin-bottom: 5px;
       font-size: 1em;
       min-height: 22px;
       font-weight: 500;
       letter-spacing: .3px;
     }
     .video-description {
       color: #666;
       margin-bottom: 5px;
       line-height: 1.2;
       font-size: .8em;
     }
     .instructor-name {
       color: #1e3c72;
       font-weight: bold;
       font-size: .95em;
     }
     .info-section {
       grid-column: 1 / -1;
       margin-bottom: 12px;
       background: #fff;
       padding: 12px;
       border-radius: 7px;
       box-shadow: 0 1px 6px rgba(0,0,0,0.07);
     }
     .osint-video-list {
       margin: 6px 0 0 0;
       padding-left: 16px;
       list-style: disc inside;
       font-size: .9em;
     }
     .osint-video-list li {
       margin-bottom: 4px;
       font-size: .95em;
     }
     .osint-video-list a {
       color: #2a5298;
       text-decoration: underline;
       font-weight: 500;
       transition: color 0.2s;
       font-size: .95em;
     }
     .osint-video-list a:hover {
       color: #cc0000;
     }
    .videos-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin: 20px 0;
    }
    @media (max-width: 1200px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 768px) { .videos-grid { grid-template-columns: 1fr; } }
    .video-container {
      position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
      border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); background: #000;
    }
    .video-container iframe {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      border: none; border-radius: 8px;
    }
    .video-section {
      background: #fff; padding: 20px; border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      margin-bottom: 18px;
    }
    .video-section:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
    .video-title { color: #cc0000; margin-bottom: 10px; font-size: 1.05em; min-height: 30px; font-weight: 600; letter-spacing: .5px; }
    .video-description { color: #666; margin-bottom: 15px; line-height: 1.6; font-size: .85em; }
    .video-link-btn {
      display: inline-block;
      background: #2a5298;
      color: #fff;
      padding: 12px 24px;
      border-radius: 5px;
      text-decoration: none;
      margin-top: 10px;
      font-weight: bold;
      transition: background .3s;
    }
    .video-link-btn:hover {
      background: #cc0000;
    }
    .instructor-name { color: #1e3c72; font-weight: bold; }
    .info-section {
      grid-column: 1 / -1; margin-bottom: 20px; background: #fff; padding: 20px;
      border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .osint-video-list {
      margin: 10px 0 0 0;
      padding-left: 20px;
      list-style: disc inside;
    }
    .osint-video-list li {
      margin-bottom: 6px;
      font-size: 1em;
    }
    .osint-video-list a {
      color: #2a5298;
      text-decoration: underline;
      font-weight: 600;
      transition: color 0.2s;
    }
    .osint-video-list a:hover {
      color: #cc0000;
    }
    /* Stanford OSINT Video Grid Styles - Responsive Fix */
    .stanford-main-container {
      text-align: center;
      max-width: 1000px;
      width: 100%;
      margin: 40px auto;
      padding: 20px;
      background: #f9f9f9;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .stanford-main-heading {
      display: inline-block;
      text-align: center;
      font-size: 2.5em;
      font-weight: 600;
      color: #cc0000;
      border-bottom: 3px solid #cc0000;
      margin-bottom: 10px;
      padding-bottom: 5px;
    }
    .stanford-main-description {
      display: block;
      text-align: center;
      font-size: 1.25em;
      color: #34495e;
      margin: 24px auto 32px auto;
      max-width: 800px;
      font-family: inherit;
      font-weight: 400;
      line-height: 1.6;
      background: none;
      border: none;
    }
    @media (max-width: 900px) {
      .stanford-video-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    @media (max-width: 600px) {
      .stanford-video-grid {
        grid-template-columns: 1fr;
      }
    }
    .stanford-video-grid a {
      display: block;
      background: #2a5298 !important;
      color: #fff !important;
      padding: 18px 0 !important;
      border-radius: 10px !important;
      text-align: center !important;
      font-size: 1.25em !important;
      font-weight: bold !important;
      text-decoration: none !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
      transition: background .3s, box-shadow .3s !important;
    }
    .stanford-video-grid a:hover {
      background: #cc0000 !important;
      color: #fff !important;
      box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    }
    /* Stanford OSINT Video Grid Styles - 4 Row Layout */
    .stanford-video-grid {
      margin-top: 32px;
      width: 100%;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }
    .stanford-video-row {
      display: flex;
      flex-direction: row;
      justify-content: center;
      gap: 32px;
      margin-bottom: 32px;
      align-items: flex-end;
    }
    .stanford-video-label {
      font-size: 1.1em;
      font-weight: 600;
      color: #2a5298;
      margin-bottom: 10px;
      text-align: center;
      line-height: 1.3;
      min-width: 180px;
      background: none;
    }
    .video-link-btn {
      display: block;
      background: #2a5298;
      color: #fff;
      padding: 18px 0;
      border-radius: 12px;
      text-align: center;
      font-size: 1.25em;
      font-weight: bold;
      text-decoration: none;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      transition: background .3s, box-shadow .3s;
      margin-bottom: 0;
    }
    .video-link-btn:hover {
      background: #cc0000;
      color: #fff;
      box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    /* Responsive for tablets */
    @media (max-width: 1024px) {
      .stanford-video-grid-4 {
        max-width: 98vw;
        padding-left: 10px;
        padding-right: 10px;
      }
      .stanford-video-row {
        gap: 18px;
      }
      .stanford-video-label {
        min-width: 120px;
        font-size: 1em;
      }
      .video-link-btn {
        font-size: 1.1em;
        padding: 14px 0;
      }
    }
    /* Responsive for mobile */
    @media (max-width: 700px) {
      .stanford-video-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
      }
      .stanford-video-label {
        min-width: 0;
        font-size: 1em;
        margin-bottom: 6px;
      }
      .video-link-btn {
        font-size: 1em;
        padding: 12px 0;
        width: 90vw;
        max-width: 350px;
      }
      .stanford-video-grid-4 {
        padding-left: 0;
        padding-right: 0;
      }
    }
    /* Responsive for very small screens */
    @media (max-width: 400px) {
      .video-link-btn {
        font-size: 0.9em;
        padding: 8px 0;
        max-width: 98vw;
      }
    }
