/* Individual / Business toggle — the very first thing under the header */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  background-color: #0054fc;
  padding: 2rem;
}

@media (max-width: 500px) {
  .cta-buttons {
    flex-direction: column;
  }
}

.cta-buttons button {
  border: 2px solid white;
  border-radius: 15px;
  padding: 14px 50px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s;
  background-color: #0054fc00;
  color: white;
}

.cta-buttons button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Sliding news ticker — slow, constant auto-scroll */
.ticker-section {
  background: linear-gradient(135deg, #dee9ff, #ffffff);
  border-bottom: 2px solid #c7d9ff;
  padding: 1.5rem 0;
}

.ticker-wrapper {
  position: relative;
  width: 100%;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #dee9ff, transparent);
}

.ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}

.ticker-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ticker-scroll::-webkit-scrollbar {
  display: none;
}

.ticker-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 1.5rem;
}

/* Ticker cards: thick blue left accent border, plain white fill */
.ticker-card {
  flex-shrink: 0;
  width: 300px;
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 12px 15px 15px;
  border-left: 5px solid #0054fc;
  background: #ffffff;
}

.ticker-tag {
  display: inline-block;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.ticker-card h2 {
  font-size: 1rem;
  color: #0054fc;
  font-weight: 900;
  text-decoration: underline;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticker-card .meta {
  color: #4b5f8f;
  font-size: 0.8rem;
}

/* Dashboard: left column stacks the two news picks, right column stacks
   Cyber Impact stats above Cyber Impact charts */
.news-dashboard {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "news1 stats"
    "news2 charts";
  align-items: start;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.news-box-1 { grid-area: news1; }
.news-box-2 { grid-area: news2; }
.stats-box { grid-area: stats; }
.charts-box { grid-area: charts; }

@media (max-width: 700px) {
  .news-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "news1"
      "news2"
      "stats"
      "charts";
  }
}

.dashboard-box {
  background: #dee9ff;
  padding: 1.5rem;
}

.dashboard-box h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0054fc;
  margin: 0 0 0.5rem;
}

/* Top news box: solid blue background, white text */
.news-box {
  background: #0054fc;
  padding: 0;
  overflow: hidden;
}

.news-box .news-label {
  color: white;
  border-left: 5px solid white;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0;
  font-size: 0.95rem;
}

.news-box .news-label a {
  color: white;
  font-weight: 700;
}

.news-box .news-item {
  border-left: 5px solid white;
  padding: 2.25rem 2.25rem 2.25rem 20px;
}

.news-item-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 4px solid white;
  margin-bottom: 1rem;
  display: block;
}

.beginner-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  margin-bottom: 0.75rem;
}

.news-box .news-item h2 {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}

.news-box .news-item h2 a {
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.news-box .news-item h2 a:hover {
  text-decoration: underline;
}

.news-box .news-item p {
  font-size: 1rem;
  color: #eaf1ff;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.news-box .news-item .meta {
  color: #c9d9ff;
  font-size: 0.8rem;
}

/* Stats sidebar — dynamic, daily-changing figures */
.stats-box p {
  font-size: 0.85rem;
  color: #374151;
  margin: 0 0 1rem;
}

#daily-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.daily-stat {
  background: #ffffff;
  padding: 1rem 1.25rem;
  box-shadow: -6px 6px 0px rgba(0, 0, 0, .15);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.daily-stat:hover {
  transform: translate(-3px, 3px);
  box-shadow: -3px 3px 0px rgba(0, 0, 0, .15);
}

.daily-stat h2 {
  font-size: 1.6rem;
  color: #0054fc;
  margin: 0 0 0.25rem;
}

.daily-stat p {
  font-size: 0.85rem;
  color: #374151;
  margin: 0;
  line-height: 1.3;
}

#stats-footnote {
  display: block;
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 1rem;
  line-height: 1.4;
}

/* Resources table, grouped by category — wide, and lively */
.resources-section {
  max-width: 1500px;
  margin: 1rem auto 3rem;
  padding: 0 1.5rem;
}

.resources-section h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #111827;
  text-align: center;
  margin: 0 0 1.5rem;
}

.resources-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
}

.resources-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 720px;
}

.resources-table thead {
  background-color: #0054fc;
}

.resources-table th {
  color: white;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 18px;
}

.resources-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.92rem;
  color: #374151;
  vertical-align: top;
  transition: background-color 0.15s ease;
}

.resources-table tbody tr:hover td {
  background-color: #f5f8ff;
}

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

.resources-table .category-cell {
  font-weight: 900;
  vertical-align: middle;
}

.resources-table td a {
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease;
}

.resources-table td a:hover {
  text-decoration: underline;
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .resources-table th,
  .resources-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* Cyber impact charts box — bottom-right of the dashboard, under the stats box */
.charts-box {
  text-align: center;
}

.charts-box .chart-container {
  width: 100%;
  max-width: 280px;
  height: 220px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.chart-footnote {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}
