/* ============================================================
   CLUSTER-PAGES.CSS — Cluster & Sub-pages Components
   Requires: base.css, components.css
   Design: Neobrutalism — matches Elmnoor brand identity
   ============================================================ */

/* ─────────────────────────────────────────────
   1. CLUSTER HERO (mini dark hero for sub-pages)
   ───────────────────────────────────────────── */
.cluster-hero {
  background-color: var(--color-dark);
  border-bottom: 5px solid #000;
  padding: 2.5rem 0 2rem;
  color: var(--color-beige);
  position: relative;
  overflow: hidden;
}

.cluster-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(0,169,157,0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   2. BREADCRUMB NAV
   ───────────────────────────────────────────── */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s;
}

.breadcrumb-nav a:hover { opacity: 0.75; }

.breadcrumb-sep {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: rgba(255,255,255,0.6);
}

.cluster-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.9rem;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.cluster-subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────
   3. CLUSTER BADGES
   ───────────────────────────────────────────── */
.cluster-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 2.5px solid #000;
  font-weight: bold;
  font-size: 0.82rem;
  line-height: 1;
}

.badge-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 3px 3px 0 0 rgba(0,0,0,0.4);
}

.badge-accent {
  background: var(--color-secondary);
  color: #000;
  box-shadow: 3px 3px 0 0 rgba(0,0,0,0.4);
}

.badge-white {
  background: rgba(255,255,255,0.15);
  color: var(--color-beige);
  border-color: rgba(255,255,255,0.3);
}

/* ─────────────────────────────────────────────
   4. STATS STRIP
   ───────────────────────────────────────────── */
.stats-strip {
  background: var(--color-primary);
  border-bottom: 4px solid #000;
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0;
}

.stat-item {
  text-align: center;
  color: #fff;
  padding: 0.5rem 1rem;
  border-left: 2px solid rgba(255,255,255,0.2);
}

.stat-item:first-child { border-left: none; }

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.25);
}

.stat-label {
  font-size: 0.78rem;
  opacity: 0.88;
  line-height: 1.3;
}

/* ─────────────────────────────────────────────
   5. CLUSTER CONTENT SECTIONS
   ───────────────────────────────────────────── */
.cluster-section {
  padding: 3.5rem 0;
}

.cluster-section-alt {
  padding: 3.5rem 0;
  background-color: #f0f9f8;
}

.cluster-section-dark {
  padding: 3.5rem 0;
  background-color: var(--color-dark);
  color: var(--color-beige);
  border-top: 5px solid #000;
  border-bottom: 5px solid #000;
}

.cluster-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: bold;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cluster-section-title i {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.cluster-section-dark .cluster-section-title {
  color: var(--color-beige);
}

.cluster-section-divider {
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 1.75rem;
  border: 2px solid #000;
}

/* ─────────────────────────────────────────────
   6. INFO CARDS GRID
   ───────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.info-card {
  background: var(--color-beige);
  border: 4px solid #000;
  border-radius: 14px;
  box-shadow: 6px 6px 0 0 #000;
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 0 #000;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border: 3px solid #000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.info-card-icon i {
  font-size: 1.4rem;
  color: #fff;
}

.info-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}

.info-card-body {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   7. HIGHLIGHT BOXES
   ───────────────────────────────────────────── */
.highlight-box {
  border: 4px solid #000;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 5px 5px 0 0 #000;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-box.info {
  background: #e0f7f5;
  border-right-width: 7px;
  border-right-color: var(--color-primary);
}

.highlight-box.warning {
  background: #fff8e6;
  border-right-width: 7px;
  border-right-color: #f59e0b;
}

.highlight-box.danger {
  background: #fff1f0;
  border-right-width: 7px;
  border-right-color: #ef4444;
}

.highlight-box.success {
  background: #f0fff4;
  border-right-width: 7px;
  border-right-color: #22c55e;
}

.highlight-box-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info .highlight-box-icon { color: var(--color-primary); }
.warning .highlight-box-icon { color: #f59e0b; }
.danger .highlight-box-icon { color: #ef4444; }
.success .highlight-box-icon { color: #22c55e; }

.highlight-box-content { flex: 1; }

.highlight-box-content h4 {
  font-weight: bold;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--color-dark);
}

.highlight-box-content p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* ─────────────────────────────────────────────
   8. CLUSTER TABLES
   ───────────────────────────────────────────── */
.cluster-table-wrap {
  overflow-x: auto;
  border: 4px solid #000;
  border-radius: 14px;
  box-shadow: 6px 6px 0 0 #000;
  margin: 1.5rem 0;
}

.cluster-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 500px;
}

.cluster-table thead tr {
  background: var(--color-dark);
}

.cluster-table th {
  color: #fff;
  padding: 0.9rem 1.1rem;
  text-align: right;
  font-size: 0.9rem;
  font-weight: bold;
  border-bottom: 3px solid #000;
}

.cluster-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 2px solid #e5e7eb;
  font-size: 0.92rem;
  vertical-align: middle;
  text-align: right;
}

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

.cluster-table tr:nth-child(even) td { background: #f8fafc; }

.cluster-table td:first-child {
  font-weight: bold;
  color: var(--color-dark);
}

.cluster-table .highlight-cell {
  background: rgba(0,169,157,0.12) !important;
  color: var(--color-primary);
  font-weight: bold;
}

.cluster-table .warning-cell {
  background: rgba(245,158,11,0.1) !important;
  color: #92400e;
}

/* ─────────────────────────────────────────────
   9. NUMBERED STEPS LIST
   ───────────────────────────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--color-beige);
  border: 4px solid #000;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 5px 5px 0 0 #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 0 #000;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border: 3px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content { flex: 1; }

.step-content h3 {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 0.35rem;
  color: var(--color-dark);
}

.step-content p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* ─────────────────────────────────────────────
   10. RICH BULLET LIST
   ───────────────────────────────────────────── */
.rich-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rich-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #444;
}

.rich-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-primary);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.rich-list.check li::before { color: #22c55e; }
.rich-list.warning li::before { content: '\f071'; color: #f59e0b; }
.rich-list.danger li::before { content: '\f057'; color: #ef4444; }

/* ─────────────────────────────────────────────
   11. FAQ ACCORDION
   ───────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: #fff;
  border: 4px solid #000;
  border-radius: 12px;
  box-shadow: 4px 4px 0 0 #000;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: 6px 6px 0 0 #000; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: bold;
  font-size: 1rem;
  color: var(--color-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(44,62,80,0.04);
  transition: background 0.2s;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-icon {
  color: var(--color-primary);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item[open] summary {
  background: rgba(0,169,157,0.08);
}

.faq-item[open] summary .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 1.1rem 1.4rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: #444;
  border-top: 3px solid #e5e7eb;
}

/* ─────────────────────────────────────────────
   12. TAGS / CHIPS
   ───────────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: 2px solid #000;
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
  font-weight: bold;
}

.tag.secondary {
  background: var(--color-secondary);
  color: #000;
}

.tag.outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ─────────────────────────────────────────────
   13. CLUSTER CTA SECTION
   ───────────────────────────────────────────── */
.cluster-cta {
  background: var(--color-dark);
  color: var(--color-beige);
  padding: 4rem 0;
  text-align: center;
  border-top: 5px solid #000;
}

.cluster-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: bold;
  margin-bottom: 0.9rem;
  text-shadow: 3px 3px 0 #000;
}

.cluster-cta p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: 0.88;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────────────────────────────
   14. UNIVERSITY PREVIEW CARDS (for universities.html)
   ───────────────────────────────────────────── */
.univ-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.univ-preview-card {
  background: var(--color-beige);
  border: 4px solid #000;
  border-radius: 16px;
  box-shadow: 6px 6px 0 0 #000;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.univ-preview-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 0 #000;
}

.univ-card-header {
  background: var(--color-dark);
  color: var(--color-beige);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 4px solid #000;
}

.univ-card-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border: 3px solid #000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.univ-card-title-wrap { flex: 1; }

.univ-card-name {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.2;
}

.univ-card-location {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.univ-card-rank {
  background: var(--color-secondary);
  color: #000;
  border: 2px solid rgba(0,0,0,0.5);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  white-space: nowrap;
}

.univ-card-body {
  padding: 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.univ-card-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  flex: 1;
}

.univ-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.univ-card-tag {
  background: #f0f9f8;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: bold;
}

/* ─────────────────────────────────────────────
   15. GUIDES SECTION (for index.html)
   ───────────────────────────────────────────── */
.guides-section {
  padding: 4.5rem 0;
  background: var(--color-dark);
  border-top: 5px solid #000;
  border-bottom: 5px solid #000;
}

.guides-section .section-title {
  color: var(--color-beige) !important;
}

.guides-section .section-subtitle {
  color: rgba(253,252,245,0.75) !important;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.guide-preview-card {
  background: rgba(255,255,255,0.05);
  border: 4px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.guide-preview-card:hover {
  background: rgba(0,169,157,0.15);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35), 6px 6px 0 0 var(--color-primary);
}

.guide-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border: 3px solid rgba(0,0,0,0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.guide-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-beige);
  margin-bottom: 0.45rem;
}

.guide-card-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.guide-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 0.88rem;
  text-decoration: none;
  transition: gap 0.2s;
  align-self: flex-start;
}

.guide-card-link:hover { gap: 0.75rem; }

/* ─────────────────────────────────────────────
   16. COMPARISON TABLE (index / univ pages)
   ───────────────────────────────────────────── */
.comparison-section {
  padding: 4rem 0;
  background: var(--color-beige);
}

/* ─────────────────────────────────────────────
   17. RESPONSIVE — CLUSTER PAGES
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .cluster-hero { padding: 2rem 0 1.75rem; }
  .cluster-hero h1 { font-size: 1.75rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-left: none; border-bottom: 2px solid rgba(255,255,255,0.2); }

  .step-item { flex-direction: row; }

  .highlight-box { flex-direction: column; gap: 0.75rem; }

  .univ-preview-grid { grid-template-columns: 1fr; }

  .guides-grid { grid-template-columns: 1fr; }

  .cluster-table th, .cluster-table td {
    padding: 0.65rem 0.8rem;
    font-size: 0.85rem;
  }

  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cluster-hero h1 { font-size: 1.5rem; }
  .cluster-section, .cluster-section-alt { padding: 2.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----- 18. UTILITY CLASSES (replacing all inline styles) ----- */

/* Section intro paragraph */
.section-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  max-width: 800px;
}

/* Sub-heading inside a section (e.g. hidden-fees sub-table title) */
.section-subheading {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

/* Spacing helpers */
.mt-sm { margin-top: 1.5rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 2.5rem; }

/* Danger icon colour override */
.icon-danger { color: #ef4444; }


/* ============================================================
   19. UNIVERSITIES PAGE (universities.html)
   ============================================================ */

/* ── Universities Page Specific Styles ── */
.univ-page-hero {
  background: var(--color-dark);
  border-bottom: 5px solid #000;
  padding: 3.5rem 0 2.5rem;
  color: var(--color-beige);
  position: relative;
  overflow: hidden;
}
.univ-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 60%, rgba(0,169,157,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 85% 20%, rgba(241,196,15,0.08) 0%, transparent 45%);
  pointer-events: none;
}
.univ-hero-content { position: relative; }
.univ-hero-label {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--color-primary); color: #fff;
  border: 2.5px solid #000; border-radius: 8px;
  padding: .3rem .9rem; font-size: .8rem; font-weight: bold;
  box-shadow: 3px 3px 0 #000; margin-bottom: 1.25rem;
}
.univ-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: bold; line-height: 1.15;
  text-shadow: 4px 4px 0 rgba(0,0,0,.55);
  margin-bottom: .9rem;
}
.univ-hero-title span { color: var(--color-primary); }
.univ-hero-sub {
  font-size: 1.1rem; opacity: .82; max-width: 640px;
  line-height: 1.65; margin-bottom: 2rem;
}
.univ-hero-pills {
  display: flex; flex-wrap: wrap; gap: .55rem;
}
.univ-hero-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: .35rem .9rem;
  font-size: .82rem; color: var(--color-beige);
}
.univ-hero-pill i { color: var(--color-primary); }

/* Stats bar */
.univ-stats {
  background: var(--color-primary);
  border-bottom: 4px solid #000;
  padding: 1.2rem 0;
}
.univ-stats-row {
  display: flex; align-items: stretch;
  justify-content: center; flex-wrap: wrap; gap: 0;
}
.univ-stat {
  flex: 1; min-width: 140px; text-align: center;
  padding: .6rem 1.2rem; color: #fff;
  border-left: 2px solid rgba(255,255,255,.25);
}
.univ-stat:first-child { border-left: none; }
.univ-stat-num {
  font-size: 1.7rem; font-weight: bold;
  display: block; line-height: 1;
  text-shadow: 2px 2px 0 rgba(0,0,0,.2);
}
.univ-stat-lbl { font-size: .75rem; opacity: .88; margin-top: .25rem; }

/* Filter tabs */
.univ-filters {
  background: var(--color-beige);
  border-bottom: 4px solid #000;
  padding: 1.1rem 0;
  position: sticky; top: 64px; z-index: 90;
}
.univ-filter-row {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
}
.univ-filter-lbl {
  font-size: .82rem; font-weight: bold;
  color: var(--color-dark); opacity: .65;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 2.5px solid #000; border-radius: 8px;
  padding: .38rem .9rem; font-size: .82rem; font-weight: bold;
  background: #fff; color: var(--color-dark);
  cursor: pointer; transition: all .18s ease;
  box-shadow: 3px 3px 0 #000; font-family: inherit;
}
.filter-btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 #000; }
.filter-btn.active {
  background: var(--color-dark); color: var(--color-beige);
  box-shadow: 3px 3px 0 var(--color-primary);
}

/* Grid section */
.univ-grid-section { padding: 3.5rem 0; background: #f5f5ef; }
.univ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

/* University card */
.uni-card {
  background: #fff;
  border: 4px solid #000;
  border-radius: 18px;
  box-shadow: 7px 7px 0 0 #000;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  text-decoration: none; color: inherit;
}
.uni-card:hover {
  transform: translate(-4px,-4px);
  box-shadow: 11px 11px 0 0 #000;
}
.uni-card-top {
  background: var(--color-dark);
  border-bottom: 4px solid #000;
  padding: 1.5rem 1.6rem;
  display: flex; align-items: center; gap: 1.1rem;
  position: relative;
}
.uni-logo-box {
  width: 64px; height: 64px; flex-shrink: 0;
  background: #fff;
  border: 3px solid #000;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.uni-logo-box svg { width: 52px; height: 52px; display: block; }
.uni-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.uni-title-group { flex: 1; }
.uni-name {
  font-size: 1.22rem; font-weight: bold;
  color: var(--color-beige); line-height: 1.2;
}
.uni-fullname {
  font-size: .78rem; color: rgba(255,255,255,.6);
  margin-top: .2rem;
}
.uni-rank-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--color-secondary); color: #000;
  border: 2px solid rgba(0,0,0,.5);
  border-radius: 6px; padding: .18rem .55rem;
  font-size: .72rem; font-weight: bold;
  white-space: nowrap;
}
.uni-card-body { padding: 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.uni-desc {
  font-size: .9rem; color: #555; line-height: 1.65;
  margin-bottom: 1.1rem; flex: 1;
}
.uni-tags {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem;
}
.uni-tag {
  background: #e8f9f8; color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 6px; padding: .18rem .55rem;
  font-size: .75rem; font-weight: bold;
}
.uni-tag.eng { background:#e8eaf6; color:#3f51b5; border-color:#3f51b5; }
.uni-tag.med { background:#fde8e8; color:#e53e3e; border-color:#e53e3e; }
.uni-tag.biz { background:#fef9e7; color:#d97706; border-color:#d97706; }
.uni-tag.sci { background:#e8f8e8; color:#22863a; border-color:#22863a; }
.uni-tag.int { background:#f3e8ff; color:#7c3aed; border-color:#7c3aed; }

.uni-highlights {
  list-style: none; padding: 0; margin: 0 0 1.35rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.uni-highlights li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .85rem; color: #444; line-height: 1.5;
}
.uni-highlights li i { color: var(--color-primary); font-size: .9rem; margin-top: .1rem; flex-shrink:0; }

.uni-card-footer {
  border-top: 3px solid #000;
  padding: 1rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: rgba(0,0,0,.02);
}
.uni-fee-line { font-size: .82rem; color: #666; }
.uni-fee-line strong { color: var(--color-dark); font-size: .92rem; }
.uni-detail-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--color-primary); color: #fff;
  border: 2.5px solid #000; border-radius: 9px;
  padding: .5rem 1.1rem; font-size: .85rem; font-weight: bold;
  text-decoration: none; transition: all .18s ease;
  box-shadow: 3px 3px 0 #000; font-family: inherit;
  white-space: nowrap;
}
.uni-detail-btn:hover {
  background: var(--color-dark);
  transform: translate(-2px,-2px); box-shadow: 5px 5px 0 #000;
}

/* MMU card — special "coming soon" style */
.uni-card.mmu-card .uni-card-top { background: #1a1a2e; }
.uni-coming-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #f59e0b; color: #000;
  border: 2px solid #000; border-radius: 6px;
  padding: .25rem .65rem; font-size: .75rem; font-weight: bold;
  margin-bottom: 1rem;
}

/* CTA section */
.univ-cta {
  background: var(--color-dark);
  border-top: 5px solid #000;
  padding: 4.5rem 0; text-align: center; color: var(--color-beige);
}
.univ-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: bold; margin-bottom: 1rem;
  text-shadow: 3px 3px 0 #000;
}
.univ-cta p { font-size: 1.05rem; opacity: .82; max-width: 560px; margin: 0 auto 2rem; }

/* Compare strip */
.compare-strip {
  background: #fff; border-top: 4px solid #000; border-bottom: 4px solid #000;
  padding: 3rem 0;
}
.compare-table-wrap { overflow-x: auto; border: 4px solid #000; border-radius: 14px; box-shadow: 6px 6px 0 #000; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare-table th {
  background: var(--color-dark); color: #fff;
  padding: .9rem 1.1rem; text-align: right;
  font-size: .88rem; border-bottom: 3px solid #000;
}
.compare-table td {
  padding: .8rem 1.1rem; border-bottom: 2px solid #e5e7eb;
  font-size: .88rem; text-align: right; vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: #f8fafc; }
.compare-table td:first-child { font-weight: bold; color: var(--color-dark); }
.compare-table .cell-yes { color: #22c55e; font-weight: bold; }
.compare-table .cell-no  { color: #ef4444; }
.compare-table .cell-hl  { background: rgba(0,169,157,.1) !important; color: var(--color-primary); font-weight: bold; }

@media (max-width: 768px) {
  .univ-filter-row { gap: .4rem; }
  .filter-btn { padding: .32rem .7rem; font-size: .78rem; }
  .univ-grid { grid-template-columns: 1fr; }
  .univ-stat { min-width: 120px; }
  .uni-card-footer { flex-direction: column; align-items: flex-start; gap: .6rem; }
}
  

/* ── University logo styles (cluster-hero + uni-card logo box) ── */
.cluster-hero-logo {
  margin-bottom: 1.1rem;
}
.cluster-hero-logo img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,.55));
}

/* Logo box in universities grid cards — image variant */
.uni-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}


/* ── Guide page utility classes (malaysia-study-guide.html) ── */
.guide-sub-heading-lg {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--color-dark);
  font-weight: bold;
}
.guide-sub-heading {
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
  color: var(--color-dark);
  font-weight: bold;
}
.bg-dark { background: var(--color-dark); }
.text-primary { color: var(--color-primary); }
.text-gold { color: gold; }
.text-silver { color: #C0C0C0; }
.py-md { padding: 2rem 0; }

/* step-title icon in malaysia-study-guide */
.step-title i {
  color: var(--color-primary);
  margin-left: 0.4rem;
}

/* ============================================================
   20. LANDING PAGE ENHANCEMENTS (ar/index.html)
   ============================================================ */

/* ── Hero Stats Strip ── */
.hero-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 169, 157, 0.12);
  border: 2.5px solid #000;
  border-radius: 10px;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  font-weight: bold;
  color: var(--color-dark);
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-stat:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}

.hero-stat i {
  color: var(--color-primary);
  font-size: 1rem;
}

/* ── Section Badge (label above h2) ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: #fff;
  border: 2.5px solid #000;
  border-radius: 8px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 3px 3px 0 #000;
  margin-bottom: 0.9rem;
}

/* ── CTA Benefit Items (with icons) ── */
.cta-benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-benefit-item i {
  color: var(--color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── 3-Column Footer ── */
.site-footer {
  background: var(--color-dark);
  color: var(--color-beige);
  border-top: 5px solid #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

/* Brand column */
.footer-brand { }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-beige);
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.footer-logo i {
  color: var(--color-primary);
  font-size: 1.6rem;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(253, 252, 245, 0.68);
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-beige);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.footer-social-link:hover {
  background: var(--color-primary);
  border-color: #000;
  box-shadow: 4px 4px 0 #000;
  transform: translate(-2px, -2px);
}

.footer-social-link.whatsapp:hover {
  background: #25d366;
}

/* Quick links column */
.footer-col-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-beige);
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col-title::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: rgba(253, 252, 245, 0.72);
  text-decoration: none;
  transition: color 0.18s ease, gap 0.18s ease;
}

.footer-links li a i {
  font-size: 0.7rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-links li a:hover {
  color: var(--color-primary);
  gap: 0.7rem;
}

/* Contact column */
.footer-contact-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(253, 252, 245, 0.68);
  margin-bottom: 1.1rem;
}

.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #25d366;
  color: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-bottom: 1rem;
}

.footer-whatsapp-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.footer-whatsapp-btn i {
  font-size: 1.1rem;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(253, 252, 245, 0.68);
}

.footer-email i {
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-email a {
  color: rgba(253, 252, 245, 0.72);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-email a:hover {
  color: var(--color-primary);
}

/* Copyright bar */
.footer-copyright {
  background: rgba(0, 0, 0, 0.3);
  border-top: 3px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  text-align: center;
}

.footer-copyright p {
  font-size: 0.82rem;
  color: rgba(253, 252, 245, 0.5);
  margin: 0;
}

/* ── Responsive: Landing Page Enhancements ── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .hero-stats-strip {
    gap: 0.5rem;
  }

  .hero-stat {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.5rem 0 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }
}



/* ============================================================
   21. SWIPEABLE ARTICLE & GUIDE PAGES
   Covers: articles.html + computer-science-guide.html
   ============================================================ */

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, #2C3E50 0%, #00615A 100%);
  color: #fff;
  padding: 5rem 0 3.5rem;
  border-bottom: 4px solid #000;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 0.5rem;
}

.page-hero p i {
  color: #00A99D;
  margin-left: 0.3rem;
  margin-right: 0.1rem;
}

/* ── TOC Sidebar ── */
.toc-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #FDFCF5;
  border-left: 4px solid #000;
  box-shadow: -6px 0 0 0 #000;
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.toc-sidebar.open {
  right: 0;
}

html[dir="ltr"] .toc-sidebar {
  right: auto;
  left: -320px;
  border-left: none;
  border-right: 4px solid #000;
  box-shadow: 6px 0 0 0 #000;
}

html[dir="ltr"] .toc-sidebar.open {
  left: 0;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #2C3E50;
  color: #fff;
  border-bottom: 3px solid #000;
  position: sticky;
  top: 0;
}

.toc-header h2 {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-header h2 i {
  color: #00A99D;
}

.toc-close-btn {
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .2s;
}

.toc-close-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.toc-items {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  cursor: pointer;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2C3E50;
  transition: all .2s;
  box-shadow: 2px 2px 0 #000;
  width: 100%;
}

.toc-item:hover {
  background: #f0f9f8;
  transform: translateX(-2px);
}

.toc-item.active {
  background: #00A99D;
  color: #fff;
  border-color: #000;
}

html[dir="ltr"] .toc-item {
  text-align: left;
}

html[dir="ltr"] .toc-item:hover {
  transform: translateX(2px);
}

.toc-icon {
  width: 28px;
  height: 28px;
  background: rgba(0,169,157,0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #00A99D;
}

.toc-item.active .toc-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ── TOC Toggle Button ── */
.toc-toggle-btn {
  position: fixed;
  top: 80px;
  right: 0;
  background: #00A99D;
  color: #fff;
  border: 3px solid #000;
  border-radius: 10px 0 0 10px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: -3px 3px 0 #000;
  font-size: 1rem;
  transition: all .2s;
}

.toc-toggle-btn:hover {
  background: #008f84;
  transform: translateX(-3px);
}

html[dir="ltr"] .toc-toggle-btn {
  right: auto;
  left: 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 3px 3px 0 #000;
}

html[dir="ltr"] .toc-toggle-btn:hover {
  transform: translateX(3px);
}

/* ── Swipeable Section ── */
.swipeable-section {
  padding: 3rem 0 4rem;
  background: #f8fffe;
  min-height: 70vh;
}

.cards-wrapper {
  position: relative;
}

/* ── Swipeable Card ── */
.swipeable-card {
  display: none;
  background: #fff;
  border: 4px solid #000;
  border-radius: 20px;
  box-shadow: 8px 8px 0 0 #000;
  overflow: hidden;
  min-height: 500px;
  animation: cardSlideIn 0.3s ease;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.swipeable-card.active {
  display: block;
}

.card-inner {
  padding: 2.5rem 2.5rem 2rem;
}

.card-icon-large {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #00A99D, #008f84);
  border: 3px solid #000;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 4px 4px 0 #000;
}

.swipeable-card h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: #2C3E50;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #00A99D;
}

.card-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.card-content p {
  margin-bottom: 0.9rem;
}

.card-content h3 {
  font-size: 1.2rem;
  color: #2C3E50;
  font-weight: bold;
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-content h4 {
  font-size: 1.05rem;
  color: #00615A;
  font-weight: bold;
  margin: 1.25rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-content h4 i,
.card-content h3 i {
  color: #00A99D;
}

.card-scroll-hint {
  text-align: center;
  color: #00A99D;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ── Info / Success / Tip Boxes ── */
.success-box,
.info-box,
.tip-box,
.alert-box {
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  border: 3px solid;
}

.success-box {
  background: #e8f8f7;
  border-color: #00A99D;
  box-shadow: 4px 4px 0 #00A99D;
}

.info-box {
  background: #eef2ff;
  border-color: #6366f1;
  box-shadow: 4px 4px 0 #6366f1;
}

.tip-box {
  background: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 4px 4px 0 #f59e0b;
}

.alert-box {
  background: #fff1f2;
  border-color: #ef4444;
  box-shadow: 4px 4px 0 #ef4444;
}

.success-box h5,
.info-box h5,
.tip-box h5,
.alert-box h5 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2C3E50;
}

.success-box h5 i { color: #00A99D; }
.info-box h5 i    { color: #6366f1; }
.tip-box h5 i     { color: #f59e0b; }
.alert-box h5 i   { color: #ef4444; }

/* ── Lead Text ── */
.lead-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2C3E50;
  border-right: 4px solid #00A99D;
  padding-right: 1rem;
  margin-bottom: 1.25rem;
}

html[dir="ltr"] .lead-text {
  border-right: none;
  border-left: 4px solid #00A99D;
  padding-right: 0;
  padding-left: 1rem;
}

/* ── Inline Tables (articles.html) ── */
.swipeable-card table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid #000;
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: 4px 4px 0 #000;
}

.swipeable-card table th {
  background: #2C3E50;
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: right;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
}

html[dir="ltr"] .swipeable-card table th {
  text-align: left;
}

.swipeable-card table td {
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e5e7eb;
  color: #374151;
  font-size: 0.95rem;
  text-align: right;
}

html[dir="ltr"] .swipeable-card table td {
  text-align: left;
}

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

.swipeable-card table tr:nth-child(even) td {
  background: #f0f9f8;
}

.swipeable-card table tr:hover td {
  background: #e0f5f3;
}

/* ── Fees Table (CS guide) ── */
.table-responsive {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 12px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.fees-table th {
  background: #2C3E50;
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: right;
  font-weight: bold;
  font-size: 0.88rem;
  white-space: nowrap;
}

html[dir="ltr"] .fees-table th {
  text-align: left;
}

.fees-table td {
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e5e7eb;
  color: #374151;
  font-size: 0.9rem;
  text-align: right;
}

html[dir="ltr"] .fees-table td {
  text-align: left;
}

.fees-table tr:last-child td { border-bottom: none; }
.fees-table tr:nth-child(even) td { background: #f0f9f8; }
.fees-table .total-row td {
  background: #2C3E50;
  color: #fff;
  font-weight: bold;
}

.fees-table .highlight-row td {
  background: #e8f8f7;
  font-weight: 600;
}

/* ── University Cards (CS guide) ── */
.university-card {
  background: #fff;
  border: 3px solid #000;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 4px 4px 0 #000;
  transition: transform .2s, box-shadow .2s;
}

.university-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 7px 0 #000;
}

.university-card.featured-uni {
  border-color: #00A99D;
  box-shadow: 4px 4px 0 #00A99D;
}

.university-card.featured-uni:hover {
  box-shadow: 6px 7px 0 #00A99D;
}

.uni-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.uni-header i {
  font-size: 1.4rem;
  color: #00A99D;
}

.uni-header h4 {
  font-size: 1.05rem;
  font-weight: bold;
  color: #2C3E50;
  margin: 0;
  flex: 1;
}

.uni-rank {
  background: #2C3E50;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  border: 2px solid #000;
  white-space: nowrap;
}

.featured-uni .uni-rank {
  background: #00A99D;
}

.uni-content p {
  font-size: 0.92rem;
  color: #374151;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.uni-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: #00A99D;
  font-weight: bold;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

.uni-link:hover {
  border-bottom-color: #00A99D;
}

/* ── University Type Box ── */
.university-type-box {
  background: #fff;
  border: 3px solid #000;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 #000;
}

.university-type-box h5 {
  font-size: 0.95rem;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.university-type-box h5 i {
  color: #00A99D;
}

.university-type-box p {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.3rem;
}

/* ── Checklist Box (CS guide) ── */
.checklist-box {
  background: #f0f9f8;
  border: 3px solid #000;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 4px 4px 0 #000;
}

.checklist-box h5 {
  font-size: 1rem;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checklist-box h5 i {
  color: #00A99D;
}

.checklist-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 2px dashed #d1faf7;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item i {
  color: #00A99D;
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.checklist-item strong {
  display: block;
  color: #2C3E50;
  margin-bottom: 0.3rem;
}

.checklist-item div p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.2rem;
}

/* ── CTA Box (CS guide) ── */
.cta-box {
  background: linear-gradient(135deg, #2C3E50, #00615A);
  border: 4px solid #000;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: 6px 6px 0 #000;
  color: #fff;
}

.cta-box h4 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}

.cta-box div {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #00A99D;
  color: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 #000;
  transition: all .2s;
}

.cta-button:hover {
  background: #008f84;
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 #000;
}

/* ── Navigation Dots ── */
.navigation-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.dot {
  width: 12px;
  height: 12px;
  background: #d1d5db;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}

.dot.active {
  background: #00A99D;
  width: 28px;
  border-radius: 6px;
}

.dot:hover:not(.active) {
  background: #9ca3af;
}

/* ── Card Navigation Arrows ── */
.card-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FDFCF5;
  border: 3px solid #000;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #2C3E50;
  box-shadow: 3px 3px 0 #000;
  z-index: 10;
  transition: all .2s;
}

.card-nav-btn:hover {
  background: #00A99D;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.card-nav-prev {
  right: -24px;
}

.card-nav-next {
  left: -24px;
}

html[dir="ltr"] .card-nav-prev { right: auto; left: -24px; }
html[dir="ltr"] .card-nav-next { left: auto; right: -24px; }

/* ── Conclusion Section (articles.html) ── */
.conclusion-section {
  padding: 3rem 0;
  background: #2C3E50;
}

.conclusion-section h2,
.conclusion-section h3 {
  color: #fff;
}

.conclusion-section p {
  color: rgba(255,255,255,0.85);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .card-inner {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .swipeable-card {
    border-radius: 16px;
    box-shadow: 5px 5px 0 #000;
    min-height: auto;
  }

  .card-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .card-nav-prev { right: -18px; }
  .card-nav-next { left: -18px; }

  html[dir="ltr"] .card-nav-prev { right: auto; left: -18px; }
  html[dir="ltr"] .card-nav-next { left: auto; right: -18px; }

  .toc-toggle-btn {
    top: 70px;
    padding: 0.6rem 0.75rem;
  }

  .page-hero {
    padding: 4rem 0 2.5rem;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .cta-box div {
    flex-direction: column;
  }

  .uni-header {
    flex-wrap: wrap;
  }

  .uni-rank {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .toc-sidebar {
    width: 280px;
  }

  .card-inner {
    padding: 1.25rem 1rem 1.25rem;
  }

  .card-icon-large {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .swipeable-card h2 {
    font-size: 1.2rem;
  }
}

/* 22. EVENTS PAGE */
.events-gallery {
  padding: 3rem 0 4rem;
  background: #f8fffe;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.event-photo-card {
  background: #fff;
  border: 4px solid #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 6px 6px 0 #000;
  transition: transform .2s, box-shadow .2s;
}

.event-photo-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}

.event-photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.event-photo-caption {
  padding: 1rem 1.25rem;
  font-weight: bold;
  color: #2C3E50;
  font-size: 0.95rem;
  border-top: 3px solid #000;
  background: #FDFCF5;
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
  .event-photo-card img {
    height: 220px;
  }
}

/* 23. SERVICES PAGE */
.svc-section {
  padding: 4rem 0 5rem;
  background: #f8fffe;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.svc-card {
  background: #fff;
  border: 3px solid #000;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 5px 5px 0 #000;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.svc-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
}

.svc-card--featured {
  border-color: #00A99D;
  box-shadow: 5px 5px 0 #00A99D;
  background: linear-gradient(135deg, #f0fdfc 0%, #fff 100%);
  grid-column: span 1;
}

.svc-card--featured:hover {
  box-shadow: 8px 8px 0 #00A99D;
}

.svc-card--soon {
  opacity: 0.75;
  background: #f9f9f9;
}

.svc-badge-top {
  position: absolute;
  top: -1px;
  left: -1px;
  background: #00A99D;
  color: #fff;
  font-size: 0.78rem;
  font-weight: bold;
  padding: 0.3rem 0.9rem;
  border-radius: 0 0 12px 0;
  border: 2px solid #000;
}

html[dir="rtl"] .svc-badge-top {
  left: auto;
  right: -1px;
  border-radius: 0 0 0 12px;
}

.svc-badge-soon {
  background: #6b7280;
}

.svc-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #00A99D, #008f84);
  border: 3px solid #000;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 3px 3px 0 #000;
  flex-shrink: 0;
  margin-top: 1.25rem;
}

.svc-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2C3E50;
  margin: 0;
}

.svc-desc {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.svc-list li {
  font-size: 0.88rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.svc-list li i {
  color: #00A99D;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #00A99D;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
  margin-top: auto;
}

.svc-link:hover {
  border-bottom-color: #00A99D;
}

.hero-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}

.hero-stat i {
  color: #00A99D;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .svc-card--featured {
    grid-column: span 1;
  }
  .hero-stats-strip {
    gap: 0.6rem;
  }
  .hero-stat {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}
/* 22. EVENTS PAGE */
.events-gallery {
  padding: 3rem 0 4rem;
  background: #f8fffe;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.event-photo-card {
  background: #fff;
  border: 4px solid #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 6px 6px 0 #000;
  transition: transform .2s, box-shadow .2s;
}

.event-photo-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}

.event-photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.event-photo-caption {
  padding: 1rem 1.25rem;
  font-weight: bold;
  color: #2C3E50;
  font-size: 0.95rem;
  border-top: 3px solid #000;
  background: #FDFCF5;
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
  .event-photo-card img {
    height: 220px;
  }
}

/* 23. SERVICES PAGE */
.svc-section {
  padding: 4rem 0 5rem;
  background: #f8fffe;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.svc-card {
  background: #fff;
  border: 3px solid #000;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 5px 5px 0 #000;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.svc-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
}

.svc-card--featured {
  border-color: #00A99D;
  box-shadow: 5px 5px 0 #00A99D;
  background: linear-gradient(135deg, #f0fdfc 0%, #fff 100%);
  grid-column: span 1;
}

.svc-card--featured:hover {
  box-shadow: 8px 8px 0 #00A99D;
}

.svc-card--soon {
  opacity: 0.75;
  background: #f9f9f9;
}

.svc-badge-top {
  position: absolute;
  top: -1px;
  left: -1px;
  background: #00A99D;
  color: #fff;
  font-size: 0.78rem;
  font-weight: bold;
  padding: 0.3rem 0.9rem;
  border-radius: 0 0 12px 0;
  border: 2px solid #000;
}

html[dir="rtl"] .svc-badge-top {
  left: auto;
  right: -1px;
  border-radius: 0 0 0 12px;
}

.svc-badge-soon {
  background: #6b7280;
}

.svc-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #00A99D, #008f84);
  border: 3px solid #000;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 3px 3px 0 #000;
  flex-shrink: 0;
  margin-top: 1.25rem;
}

.svc-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2C3E50;
  margin: 0;
}

.svc-desc {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.svc-list li {
  font-size: 0.88rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.svc-list li i {
  color: #00A99D;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #00A99D;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
  margin-top: auto;
}

.svc-link:hover {
  border-bottom-color: #00A99D;
}

@media (max-width: 900px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .svc-card--featured {
    grid-column: span 1;
  }
}

/* COMIC DOTS PATTERNS (NEOBRUTALISM) */
.pattern-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 2px) !important;
  background-size: 20px 20px !important;
}

.pattern-light {
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 2px, transparent 2px) !important;
  background-size: 20px 20px !important;
}
