 
:root {
  --blue-800: #083b8a;
  --blue-600: #0b4eb8;
  --muted: #556167;
  --card-bg: #ffffff;
  --soft: #eaf4ff;
  --radius: 12px;
}

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

html,
body {
  height: 100%
}

body {
  font-family: "Inter", "Poppins", system-ui, Arial, sans-serif;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

 
.background-pattern {
  position: fixed;
  inset: 0;
  z-index: -2;
  
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.06;
  filter: grayscale(20%) contrast(0.95) saturate(0.7);
}

 
.background-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(226, 240, 255, 0.25), rgba(255, 255, 255, 0.15));
  pointer-events: none;
}

 
.page {
  position: relative;
  z-index: 0
}

 
.header {
  margin-top: 60px;
  padding: 5.25rem 1rem 3.5rem;
  text-align: center;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header h1 {
  color: var(--blue-800);
  font-size: 2.6rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.underline {
  width: 80px;
  height: 4px;
  background: var(--blue-800);
  margin: 0.75rem auto 1.25rem;
  border-radius: 4px;
}

.sub {
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem
}

 
.section {
  padding: 3.25rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  color: var(--blue-800);
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem
}

 
.narrow {
  max-width: 900px
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

 
.philosophy {
  padding: 2rem 2.25rem;
  background: linear-gradient(90deg, #f0f7ff, #ffffff)
}

 
.muted {
  color: var(--muted);
  margin-top: 0.5rem
}

 
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--blue-800);
  background: #eef6ff;
}

.badge.green {
  background: #e6f7ea;
  color: #0b6b2e;
}

.badge.small {
  padding: 4px 8px;
  font-size: .78rem
}

 
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

 
.subject-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-800);
  flex-shrink: 0
}

.icon-box i {
  width: 26px;
  height: 26px
}

 
.subject-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%
}

.subject-head h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #111
}

.resource-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2fbff;
  color: var(--blue-800);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem
}

.pill i {
  width: 14px;
  height: 14px;
  opacity: 0.9
}

 
.course-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1.25rem;
  border-top: 6px solid var(--blue-800)
}

.course-top {
  display: flex;
  align-items: center;
  gap: 10px
}

.course-code {
  margin: 0;
  color: var(--blue-800)
}

.course-title {
  margin: 0;
  font-size: 1.05rem;
  color: #111
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: white;
  background: var(--blue-800)
}

.btn.full {
  width: 100%;
  justify-content: center
}

.btn i {
  width: 18px;
  height: 18px
}

 
.badge.small.green {
  background: #e7f9ee;
  color: #0b6b2e
}

 
.center-card {
  text-align: center;
  padding: 1.5rem
}

.big-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem
}

 
.light {
  background: linear-gradient(180deg, #f8fbff, #ffffff)
}

 
.section+.section {
  margin-top: 0.5rem
}

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

  .grid-3 {
    grid-template-columns: repeat(1, 1fr)
  }

  .header h1 {
    font-size: 2.2rem
  }

  .page {
    padding-bottom: 2rem
  }
}

@media (min-width: 993px) and (max-width:1200px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* small visual polish */
a {
  color: inherit
}

a:focus {
  outline: 3px solid rgba(11, 78, 184, 0.15);
  border-radius: 6px
}

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

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid {
    padding: 1rem;
  }
  .subject-card {
    padding: 1rem;
  }
}

 
.subject-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #083b8a;
}

/* Icon box */
.subject-card .icon-box {
  font-size: 2.5rem;
  color: #083b8a;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e0ecff 0%, #e8f1ff 100%);
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.subject-card:hover .icon-box {
  transform: scale(1.15);
  background: linear-gradient(135deg, #2563eb 0%, #083b8a 100%);
  color: white;
}

/* Subject Head */
.subject-card .subject-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.subject-card .subject-head h3 {
  flex: 1;
  margin: 0;
  font-size: 1.2rem;
  color: #111827;
  font-weight: 700;
  line-height: 1.4;
}

.subject-card .badge {
  background: linear-gradient(135deg, #083b8a 0%, #0b4eb8 100%);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(8, 59, 138, 0.15);
}

/* Description text */
.subject-card .muted {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Resource links */
.subject-card .resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.subject-card .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f7ff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.85rem;
  color: #083b8a;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #d0e0f5;
}

.subject-card .pill:hover {
  background: linear-gradient(135deg, #083b8a 0%, #0b4eb8 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(8, 59, 138, 0.2);
}

.student-resources {
  background: #f9fafb;
  padding: 4rem 2rem;
}

.student-resources .section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  font-family: 'Merriweather', serif;
  color: #1e40af;
}

.student-resources .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resource-card .icon-box {
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 1rem;
}

.resource-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Roboto', sans-serif;
  color: #111827;
}

.resource-card .muted {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.resource-card .btn-download {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #1e40af;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.resource-card .btn-download:hover {
  background-color: #3b82f6;
}

.card {
  border-top: 4px solid #1e40af;
}

/* Premium Student Resources Section */
.student-resources-premium {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom right, #f8fafc, #eef2ff);
}

.student-resources-premium .section-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 3rem;
  letter-spacing: -1px;
  font-family: 'Merriweather', serif;
}

/* Grid Layout */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
}

/* Premium Card */
.resource-premium-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(170, 183, 255, 0.35);
  box-shadow: 0px 8px 22px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover Effect (3D Lift) */
.resource-premium-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.12);
}

/* Icons */
.resource-premium-card .icon-box {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: #1e40af;
  transition: 0.3s ease;
}

.resource-premium-card:hover .icon-box {
  color: #3b82f6;
  transform: scale(1.2);
}

/* Headings */
.resource-premium-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #111827;
}

/* Text */
.resource-premium-card p {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Premium Button */
.btn-premium {
  display: inline-block;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-premium:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  transform: scale(1.05);
}