:root {
  --primary: #8b1538;
  --primary-dark: #6f0f2c;
  --text-main: #1d1d1f;
  --text-muted: #555;
  --bg-light: #fffaf9;
  --bg-section: #ffffff;
  --border-soft: #e6e6e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* CONTAINER */
.container {
  max-width: 1140px;
  margin: auto;
  padding: 20px;
}

/* HEADINGS */
h1,
h2 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 25px;
  margin-bottom: 24px;
}

p {
  font-size: 17px;
  color: var(--text-muted);
}

/* LISTS */
ul {
  padding-left: 20px;
}

li {
  margin-bottom: 12px;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1140px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header img {
  /* height: 46px; */
  height: 80px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.nav > a {
  margin-left: 28px;
}

.nav a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff !important;
}

/* Group both CTAs */
.nav-cta-group {
  display: flex;
  flex-direction: column;
  margin-left: 28px;
  gap: 8px;
}

/* Scholar button (Outline Style) */
.scholar-btn {
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: transparent;
  color: var(--primary) !important;
  text-align: center;
  transition: 0.3s ease;
}

/* Learner button (Primary Filled) */
.learner-btn {
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff !important;
  text-align: center;
}

.scholar-btn:hover {
  background: var(--primary);
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Rotate lines when active (cross icon) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    justify-content: space-between;
    position: relative;
  }

  .nav {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #8b1538 0%, #b32142 100%);
    border-radius: 0 0 12px 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 30px 0;
    display: none;
    animation: slideDown 0.3s ease forwards;
  }

  /* Show menu when active */
  .nav.active {
    display: flex;
  }

  /* Slight animation for dropdown */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hamburger {
    display: flex;
  }

  .logo {
    height: 40px;
  }

  .nav a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
  }

  .nav-cta {
    padding: 8px 16px;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #fff;
    color: #8b1538 !important;
  }
}

.marquee {
  background-color: #8b1538;
  padding: 10px 0;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
.marquee p {
  color: #fff;
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  font-family: "Montserrat", system-ui, sans-serif;
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.hero {
  background: linear-gradient(120deg, #8b1538, #b32142);
  color: #ffffff;
  padding: 120px 20px 100px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 19px;
  opacity: 0.95;
  color: #fff;
}

.accent {
  color: var(--primary);
}

.section-light {
  background: var(--bg-section);
}

.section-light p {
  text-align: justify;
}

.section-muted {
  background: #f7f4f3;
}

.section-muted p {
  text-align: justify;
}

.rule-list {
  margin-top: 32px;
}

.rule-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-number {
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
  text-align: right;
}

.rule-item p {
  margin: 0;
  line-height: 1.7;
}

.cta-section {
  background: linear-gradient(120deg, #8b1538, #b32142);
  color: #ffffff;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
}

.cta-section p {
  color: #fff;
  opacity: 0.95;
}

.cta-buttons {
  margin-top: 30px;
}

.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  margin: 8px;
}

.btn-primary {
  background: #ffffff;
  color: var(--primary);
}

.btn-outline {
  border: 1px solid #ffffff;
  color: #fff;
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--primary);
}

.footer {
  background-color: #ffffff;
  color: #222;
  padding: 80px 30px 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1140px;
  margin: 0 auto;
}

/* Column 1: About */
.footer-about {
  /* flex: 1 1 300px; */
  max-width: 400px;
  text-align: justify;
}
.footer-logo {
  width: 160px;
  margin-bottom: 20px;
}
.footer-about p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Column 3: Contact */

.footer-contact h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
  text-align: center;
}
.footer-contact p {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.footer-contact i {
  color: #800000;
  margin-right: 8px;
}

/* Social icons */
.social-icons {
  margin-top: 15px;
  text-align: center;
}
.social-icons a {
  color: #222;
  margin-right: 15px;
  font-size: 1.3rem;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}
.social-icons a:hover {
  color: #184fa1;
  transform: translateY(-3px);
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  margin-top: 40px;
}
.footer-bottom p {
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .social-icons {
    justify-content: center;
  }
  .footer-about {
    text-align: center;
  }
}

@media print {
  .cta-section,
  button {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
    line-height: 1.6;
  }

  h1,
  h2 {
    page-break-after: avoid;
  }

  section {
    padding: 0;
    margin: 0 0 24px 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .rule-item {
    page-break-inside: avoid;
  }

  footer {
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 10pt;
    color: #444;
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 6px;
  }
}
