@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================
   ROOT VARIABLES
============================ */
:root {
  --base-clr: #f5f7fb;
  --surface-clr: #ffffff;

  --text-clr: #1d1d1f;
  --secondary-text-clr: #5f6368;

  --accent-clr: #2a7f62;
  --accent-hover: #22664f;

  --border-clr: #e4e7eb;

  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);

  --radius-sm: 10px;
  --radius-md: 18px;

  --content-width: 850px;

  --transition: 0.25s ease;
}


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

html {
  font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--base-clr);
  color: var(--text-clr);
  padding-top: 20vh;
  font-size: 19px;
  line-height: 1.5;
}


.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

/* Arrow styling */
.back-button .arrow {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

/* Hover */
.back-button:hover {
  background: #f4f8f6;
  border-color: #2a7f62;
  color: #2a7f62;
  transform: translateY(-2px);
}

/* Arrow slide effect */
.back-button:hover .arrow {
  transform: translateX(-3px);
}

/* Active (click) */
.back-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .back-button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}

/* ============================
   SECTIONS (VISIBLE BY DEFAULT)
============================ */
.section {
  padding: 5vh;
  font-size: 40px;
  font-weight: 600;
  max-width: 70%;
  line-height: 45px;
  opacity: 1;
  transform: none;
}

.sections p {
  padding-left: 5vh;
  max-width: 70%;
}

.sections li {
  padding-left: 9vh;
}

.sections span {
  font-weight: 600;
  font-size: 40px;
  padding-left: 5vh;
  
}

#medicationname {
  font-size: 70px;
  padding: 5vh;
}

.medical-info-box {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px 25px;
  background: #f8fbfd;
  border-left: 5px solid #005b8f;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.medical-info-box p {
  margin: 0 0 12px 0;
}

.medical-info-box p:last-child {
  margin-bottom: 0;
}

.medical-info-box strong {
  color: #005b8f;
}

.medical-info-box a {
  color: #005b8f;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.medical-info-box a:hover {
  color: #0071b8;
  text-decoration: underline;
}

.popular-modules {
  width: 60%;              /* control card width */
  margin: 60px 0 60px 5vh; /* push from left */
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.popular-modules h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1f3d3a;
}

.popular-modules p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.popular-modules strong {
  color: #2a7f62;
}

.btn-action {
  display: inline-block;
  padding: 12px 28px;
  background-color: #2a7f62;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-action:hover {
  background-color: #22664f;
  transform: translateY(-2px);
}


/* ============================
   SUBHEADINGS NAV
============================ */
.subheadings-nav {
  position: fixed;
  top: 20vh;
  right: 6vh;
  width: 200px;
  box-shadow: 0 20px 25px rgba(0,0,0,0.15);
}

.subheadings-nav ul {
  list-style: none;
}

.subheadings-nav a {
  display: block;
  padding: 15px 20px;
  background: #4b4e5a;
  color: #fff;
  text-decoration: none;
  
}

.subheadings-nav a.highlighted {
  background: #e43ec6;
}

/* ============================
   PROGRESS BUTTON
============================ */
#progress {
  position: fixed;
  bottom: 50px;
  right: 20px;
  height: 70px;
  width: 70px;
  display: grid;
  place-items: center;
  border-radius: 30%;
  box-shadow: 0 0 10px rgba(0,0,0,0.9);
  cursor: pointer;
}

#progress img {
  height: 58px;
  width: 58px;
}

#progress-value {
  height: calc(100% - 100px);
  width: calc(100% - 100px);
  background: #fff;
  border-radius: 50%;
}

/* ============================
   PDF BUTTON
============================ */
.pdf-button {
  display: block;
  margin: 25px auto;
  padding: 12px 28px;
  background: linear-gradient(135deg, #f8c400, #d4a000);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
}

.pdf-button:hover {
  transform: translateY(-2px);
}

/* ============================
   FAQ ACCORDION
============================ */
.faq-item {
  padding: 5vh;
  border-bottom: 1px solid #ccc;
}

.faq-question {
  background: none;
  border: none;
  font-size: 1.05em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.4s ease;
}

.faq-question.active + .faq-answer {
  max-height: 250px;
  opacity: 1;
}


/* ============================
   RESPONSIVE
============================ 
.menuicon,
.closeicon {
  display: none;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    right: -260px;
    top: 0;
    height: 100vh;
    width: 260px;
    background: coral;
    flex-direction: column;
    padding-top: 70px;
    transition: 0.5s;
  }

  .nav-links.open {
    right: 0;
  }

  .menuicon,
  .closeicon {
    display: block;
  }

  .row2 {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .subheadings-nav {
    display: none;
  }

  .section {
    max-width: 100%;
    font-size: 28px;
  }
}









*/


