/* ============================
   Global Typography System
   Bootstrap-Compatible
   Adjusted to Erik Kennedy’s
   Responsive Font Guidelines
   ============================ */

/* Base body text */
body {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); 
  /* ~16px (mobile) → ~20px (desktop) */
  line-height: 1.6;
  color: #212529;
}
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}



/* Headings (h1–h6) */
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: #000;
}

/* Page Title / H1 (28–40px mobile → 35–50px desktop) */
h1 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 3.125rem);
  /* ~28px → ~50px */
}

/* H2 (24–32px mobile → 28–40px desktop) */
h2 {
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  /* ~24px → ~40px */
}

/* H3 (20–28px mobile → 24–32px desktop) */
h3 {
  font-size: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  /* ~20px → ~32px */
}

/* H4 (18–24px mobile → 20–28px desktop) */
h4 {
  font-size: clamp(1.125rem, 0.8rem + 1vw, 1.75rem);
  /* ~18px → ~28px */
}

/* H5 (16–20px mobile → 18–24px desktop) */
h5 {
  font-size: clamp(1rem, 0.7rem + 0.5vw, 1.5rem);
  /* ~16px → ~24px */
}

/* H6 (14–18px mobile → 16–20px desktop) */
h6 {
  font-size: clamp(0.875rem, 0.6rem + 0.3vw, 1.25rem);
  /* ~14px → ~20px */
}

/* Secondary text / captions (≈2px smaller than body) */
small, .text-small {
  font-size: clamp(0.875rem, 0.75rem + 0.2vw, 1rem);
  /* ~14px → ~16px */
  color: rgba(0,0,0,0.7); /* lighter to show lower hierarchy */
  
}
.tiny{
  font-size: clamp(0.75rem, 0.65rem + 0.2vw, 0.875rem);
  /* ~12px → ~14px */
  color: rgba(0,0,0,0.7); /* lighter to show lower hierarchy */
}
/* Paragraph spacing */
p {
  margin-bottom: 1rem;
}
.medium{
  font-weight: 500;
}
.bold{
  font-weight: 600;
}

.navbar-nav .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;              /* Medium for good readability */
  font-size: 1rem;               /* 16px base size */
  letter-spacing: 0.3px;         /* Slight spacing for clarity */
  color: #ffffff;                /* White for transparent state */
  transition: color 0.3s ease;
}

/* Hover / Active States */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #1a1a1a;  
  transform: scale(1.08); 
  font-weight: 600;              /* Example accent color (yellow) */
}

/* Scroll state (colored navbar) */
header.navbar-scrolled .navbar-nav .nav-link {
  color: #333333;                /* Dark gray for readability */
}
.navbar-scrolled .navbar-nav .nav-link:focus{
    color: #022781;
    transform: scale(1.08); 
    font-weight: 600;
}
header.navbar-scrolled .navbar-nav .nav-link:hover {
  color: #022781;                /* Bootstrap blue, or your brand color */
}

/* Mobile offcanvas links */
.offcanvas .nav-link {
  font-size: 1.1rem;             /* Slightly larger for tap targets */
  font-weight: 500;
  padding: 0.6rem 0;  
  color: #000;           /* Spacing for better touch usability */
  border-bottom: 1px solid #eee; /* Divider between items */
}

.offcanvas .nav-link:last-child {
  border-bottom: none;
}
/* ================================
   Dropdown Course Typography
   ================================ */

.dropdown-mega h2 {
  color: #022781;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  white-space: normal;
  word-wrap: break-word;
}

.dropdown-mega h3 {
  color:#212529;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}
.dropdown-mega h3 a {
  color:#212529;

}

.dropdown-mega p.italic-text {
  font-style: italic;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 0.25rem;
  word-wrap: break-word;
}

.dropdown-mega ul li {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

/* Counselor section */
.dropdown-mega .talk-counselor h2 {
  font-weight: 800;
  font-size: 18px;
  color: black;
  margin-bottom: 1.5rem;
  white-space: normal;
  word-wrap: break-word;
}

/* Links */
.dropdown-mega .link-request {
  color: #022781;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-mega .link-request:hover {
  text-decoration: underline;
}

.dropdown-mega .link-whatsapp {
  color: #6bff00;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-mega .link-whatsapp:hover {
  text-decoration: underline;
}

/* Bottom Bar */
.dropdown-mega .bottom-bar {
  background-color: #022781;
  height: 20px;
  margin-top: 0;
}
.dropdown-mega h3 a {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  /*color: inherit;              /* keeps same color as h3 */
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease;
}


.dropdown-mega h3 a:hover {
  transform: scale(1.08);      /* zoom effect */
  color: #0d0d0d;              /* highlight color */
}
@media (max-width: 576px) {
  .dropdown-mega h3 a:hover {
    transform: scale(1.04);
  }
}
.text-primary {
  color: #022781 !important;
}
