
:root {
  --background: #F7F5EF;
  --text: #142D4E;
  --muted: #59677A;
  --accent: #B49A60;
  --card: #FFFFFF;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 7%;
  border-bottom: 1px solid #e0ded5;
}

.logo {
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}


/* NAVIGATION MENU */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent);
}


.hero {
  max-width: 1050px;
  margin: auto;
  padding: 120px 7%;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: bold;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.2;
  margin: 24px 0;
}

.intro {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 25px;
  background: #142D4E;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.button:hover {
  background: #254E78;
}


.section {
  max-width: 1100px;
  margin: auto;
  padding: 65px 7%;
}

h2 {
  font-size: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  padding: 28px;
  border: 1px solid #e5e2d8;
  border-radius: 9px;
}

.card h3 {
  margin-top: 0;
}

footer {
  text-align: center;
  padding: 28px;
  border-top: 1px solid #e0ded5;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 650px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* ===== WEBSITE DESIGN IMPROVEMENTS ===== */

/* Header */
.site-header {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(20, 45, 78, 0.05);
}

/* Better navigation */
nav a {
  font-family: Arial, sans-serif;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Hero section */
.hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  max-width: 950px;
  letter-spacing: -1.5px;
}

.hero .button {
  align-self: flex-start;
}

/* Section headings */
.section h2 {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55px;
  height: 3px;
  background: var(--accent);
}

/* Alternate section backgrounds */
#credentials,
#articles,
#contact {
  background: #FFFFFF;
  max-width: none;
  padding-left: max(7%, calc((100% - 950px) / 2));
  padding-right: max(7%, calc((100% - 950px) / 2));
}

/* Cards */
.card {
  transition: transform 0.2s ease,
              box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(20, 45, 78, 0.09);
}

.card h3 {
  color: #142D4E;
}

/* Scrolling navigation */
section[id] {
  scroll-margin-top: 110px;
}

/* Mobile improvements */
@media (max-width: 650px) {
  .site-header {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    letter-spacing: -0.5px;
  }

  #credentials,
  #articles,
  #contact {
    padding-left: 7%;
    padding-right: 7%;
  }
}

/* ===== STUDY BACKUP BUTTONS ===== */

.study-backup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.study-backup-actions .button {
  margin-top: 10px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

#backup-message {
  color: var(--muted);
  font-size: 14px;
}

/* ===== QUIZ QUESTION ALIGNMENT FIX ===== */

.quiz-question {
  background: #FFFFFF;
  border: 1px solid #E5E2D8;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-sizing: border-box;
}

.quiz-question p,
.quiz-question strong,
.quiz-question h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

.quiz-question label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  padding: 10px;
  cursor: pointer;
}

.quiz-question input[type="radio"] {
  margin: 4px 0 0;
  flex-shrink: 0;
}

@media (max-width: 650px) {
  .quiz-question {
    padding: 18px;
  }
}
