* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #14213d;
  --secondary: #fca311;
  --light: #f7f7f7;
  --white: #ffffff;
  --muted: #5f6b7a;
  --border: #e5e7eb;
  --success: #1b998b;
  --shadow: 0 16px 40px rgba(20, 33, 61, 0.12);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--primary);
  background: var(--light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  background: var(--primary);
  color: var(--white);
  padding: 22px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--secondary), #ffd166);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(252, 163, 17, 0.3);
}

.logo-text h1 {
  font-size: 22px;
  line-height: 1.1;
}

.logo-text p {
  color: #d9dee8;
  font-size: 13px;
}

.main-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

.hero {
  padding: 80px 6%;
  background: radial-gradient(circle at top right, rgba(252, 163, 17, 0.28), transparent 32%), linear-gradient(135deg, #14213d, #22345d);
  color: var(--white);
}

.hero-content {
  max-width: 900px;
}

.eyebrow {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h2 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1;
  margin-bottom: 22px;
}

.hero p {
  font-size: 18px;
  color: #e7ebf3;
  max-width: 760px;
  margin-bottom: 30px;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-search {
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--secondary);
  color: var(--primary);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.section {
  padding: 58px 6%;
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
}

.card-grid,
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card,
.subject-card,
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
cursor: pointer;
}

.card h3,
.subject-card h3,
.resource-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.card p,
.subject-card p,
.resource-card p {
  color: var(--muted);
}

.subject-card {
  transition: 0.2s ease;
}

.subject-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
}

.badge {
  display: inline-block;
  background: rgba(252, 163, 17, 0.15);
  color: #9a5d00;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.page-hero {
  padding: 52px 6%;
  background: linear-gradient(135deg, #14213d, #263b6a);
  color: var(--white);
}

.page-hero h2 {
  font-size: clamp(30px, 5vw, 52px);
  margin-bottom: 12px;
}

.page-hero p {
  color: #e7ebf3;
  max-width: 760px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 14px;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.resource-card ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
}

.notice {
  border-left: 5px solid var(--success);
  background: #effaf8;
  padding: 18px;
  border-radius: 14px;
  color: #fd0202;
  margin-top: 26px;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 32px 6%;
  text-align: center;
}

.site-footer strong {
  color: var(--white);
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding: 58px 6%;
  }
}

@media print {
  .main-nav,
  .btn-row {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .subject-card,
  .resource-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* --- Search bar --- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin-bottom: 10px;
}

.search-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--primary);
  background: transparent;
}

.search-bar input::placeholder {
  color: #9aa3b2;
}

.search-bar button#pdf-search-clear {
  border: none;
  background: var(--light);
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.search-bar button#pdf-search-clear:hover {
  background: var(--border);
  color: var(--primary);
}

.results-count {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}

/* --- PDF resource categories --- */
.pdf-category {
  margin-bottom: 38px;
}

.pdf-category-head {
  margin-bottom: 14px;
}

.pdf-category-head h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.pdf-category-head p {
  color: var(--muted);
  font-size: 14px;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  transition: 0.2s ease;
}

.pdf-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pdf-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(20, 33, 61, 0.06);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pdf-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdf-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary);
  overflow-wrap: anywhere;
}

.pdf-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.pdf-open {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #9a5d00;
  white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state p {
  margin-bottom: 18px;
  font-size: 16px;
}

.empty-state .btn {
  cursor: pointer;
}
.warn{
 border-radius: 10px;
 cursor:pointer;
 box-shadow: black;
  padding: 18px;
  border-radius: 14px;
  color: #fd0202;
  margin-top: 26px;
   background:rgba(255,255,255,0.1);
    backdrop-filter: blur(10px), size(fit-content);
     display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.notice-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 30px;
    flex-wrap: wrap;
}

.text-content{
    flex: 1;
    min-width: 300px;
}

.image-content{
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.image{
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
}

.notice{
    line-height: 1.8;
}

@media (max-width: 700px) {
  .search-bar {
    max-width: none;
  }
}
