/* ═══════════════════════════════════════════════════
   IPTA Website — Main Stylesheet
   Font: Poppins (Google Fonts)
   Palette: Cyan/Blue accent on white
   Grid: Custom, 1110px container (Bootstrap-compatible spacing)
   ═══════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Poppins', sans-serif; font-size: 14px; line-height: 1.714; color: #444; background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
main { padding-top: 15px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }

/* ─── LAYOUT ─── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { padding: 0 15px; display: flex; flex-direction: column; }
.col-4 { width: 33.333%; }
.col-6 { width: 50%; }
.col-12 { width: 100%; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; color: #222; font-weight: 700; line-height: 1.1; }
h1 { font-size: 56px; }
h2 { font-size: 38px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin-bottom: 1em; color: #444; }
.text-center { text-align: center; }
.text-white { color: #fff; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 52px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, #1fc3f2, #008dde);
  color: #fff;
  border: 2px solid transparent;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #222;
  border: 2px solid #222;
}
.btn-outline:hover { background: #222; color: #fff; }
.btn-outline-cyan {
  background: transparent;
  color: #2bbaec;
  border: 2px solid #2bbaec;
}
.btn-outline-cyan:hover { background: #2bbaec; color: #fff; }
.btn-highlight {
  background: linear-gradient(135deg, #1fc3f2, #008dde);
  color: #fff;
  border: 2px solid transparent;
}
.btn-highlight:hover { opacity: 0.9; }
.btn-ghost {
  background: #fff;
  color: #222;
  border: 2px solid #2bbaec;
}
.btn-ghost:hover {
  background: linear-gradient(135deg, #1fc3f2, #008dde);
  border-color: transparent;
  color: #fff;
}

/* Hero tab buttons */
.hero-cta-btn {
  background: #fff;
  color: #222;
  border: 2px solid #2bbaec;
}
.hero-cta-btn:hover,
.hero-cta-btn.active {
  background: linear-gradient(135deg, #1fc3f2, #008dde);
  border-color: transparent;
  color: #fff;
}

/* Tab content fade transition */
.tab-fade {
  transition: opacity 0.3s ease;
}
.tab-fade.fading {
  opacity: 0;
}


/* ═══════════════════════════════════════════════════
   HEADER / NAVBAR
   ═══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 15px;
  box-sizing: border-box;
  transition: padding 0.3s;
}
.navbar.scrolled .navbar-inner {
  padding: 10px 15px;
}
.navbar-logo img {
  width: 375px;
  height: auto;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
#nav-featured-btns {
  display: contents;
}
.navbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #222;
  padding: 10px 28px;
  border: 2px solid #2bbaec;
  border-radius: 100px;
  transition: all 0.3s;
  white-space: nowrap;
  background: #fff;
}
.navbar-btn:hover {
  background: linear-gradient(135deg, #1fc3f2, #008dde);
  border-color: transparent;
  color: #fff;
}
.navbar-btn .icon {
  width: 15px;
  height: 15px;
}
.teacher-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 16px;
  border-top: 1px solid #e8e8e8;
  background: #f8f8f8;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  width: 100%;
}
.teacher-bar:hover {
  background: linear-gradient(135deg, #1fc3f2, #008dde);
  color: #fff;
}
.teacher-bar .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}



/* ═══════════════════════════════════════════════════
   MOBILE NAV PANEL
   ═══════════════════════════════════════════════════ */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: #fff;
  z-index: 9998;
  padding: 60px 40px;
  overflow-y: auto;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-nav.active { right: 0; }
.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #222;
  line-height: 1;
}
.mobile-nav a {
  display: block;
  font-size: 22.4px;
  font-weight: 400;
  color: #2c2e30;
  padding: 10px;
  text-align: center;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: #2bbaec; }
.mobile-nav a.featured {
  font-weight: 700;
  color: #2bbaec;
}
.mobile-nav-social {
  display: flex;
  gap: 20px;
  margin: 24px 0;
}
.mobile-nav-social a { font-size: 22px; color: #222; padding: 0; }
.mobile-nav-social a:hover { color: #2bbaec; }
.mobile-nav-dues {
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}
.btn-dues,
.mobile-nav .btn-dues {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 100px;
  padding: 5px 16px;
  transition: all 0.3s ease;
}
.btn-dues:hover,
.mobile-nav .btn-dues:hover { border-color: #999; color: #444; }
.mobile-nav-dues-note {
  font-size: 13px;
  color: #aaa;
  margin-top: 8px;
}
.mobile-nav .btn {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 52px;
  color: #222;
  display: inline-block;
}
.mobile-nav .btn-ghost:hover {
  background: linear-gradient(135deg, #1fc3f2, #008dde);
  border-color: transparent;
  color: #fff;
}


/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 60px;
  background: url('/img/banner_hero.webp') no-repeat center 65%;
  background-size: cover;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  color: #fff;
  margin-bottom: 40px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
}
.hero-cta-label {
  flex-basis: 100%;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}


/* ═══════════════════════════════════════════════════
   FEATURES SECTION (3-column)
   ═══════════════════════════════════════════════════ */
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }
.section-heading { margin-bottom: 50px; }
.section-heading h2 {
  margin-bottom: 8px;
}
.section-heading p {
  margin-top: 8px;
}

.feature-card { margin-bottom: 30px; }
.feature-icon {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
/* Make the <i> a flex container so ::before centers perfectly */
.feature-icon [class^="flaticon-"],
.feature-icon [class*=" flaticon-"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
/* Override flaticon.css margin-left offset inside icon boxes */
.feature-icon [class^="flaticon-"]::before,
.feature-icon [class*=" flaticon-"]::before {
  margin-left: 0;
  font-size: 38px;
  color: #fff;
  line-height: 1;
}
.feature-icon.blue-1 { background: #1fc3f2; }
.feature-icon.blue-2 { background: #0099e4; }
.feature-icon.blue-3 { background: #007cdc; }
.feature-card h3 {
  margin-bottom: 12px;
}
.feature-card a {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  border-bottom: 1px solid #222;
  padding-bottom: 2px;
}
.feature-card a:hover { color: #2bbaec; border-color: #2bbaec; }


/* ═══════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════ */
.testimonials {
  background: linear-gradient(-45deg, #1fc3f2, #008dde);
  padding: 70px 0;
}
.testimonials h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
}
.testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 5px 14px rgba(45,49,54,0.09);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.testimonial-card .quote {
  font-size: 14px;
  font-style: italic;
  color: #444;
  line-height: 1.714;
  margin-bottom: 20px;
  position: relative;
  padding-top: 20px;
  flex: 1;
}
.testimonial-card .quote::before {
  content: '\201C';
  font-size: 60px;
  color: #e0e0e0;
  position: absolute;
  top: -10px;
  left: 0;
  line-height: 1;
}
.testimonial-card .author { font-weight: 600; color: #222; font-size: 15px; }
.testimonial-card .location { color: #888; font-size: 13px; }


/* ═══════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════ */
.contact-section { padding: 70px 0; }
.contact-heading {
  text-align: center;
}
.contact-heading h2 {
  margin-bottom: 20px;
}
.contact-heading p {
  max-width: 360px;
  margin: 0 auto;
}
.contact-heading .logo-img { max-width: 260px; margin-top: 60px; display: block; margin-left: auto; margin-right: auto; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #c1c1c1;
  border-radius: 8px;
  font-size: 14px;
  color: #222;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #2bbaec; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #999; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn-send {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #1fc3f2, #008dde);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.3s;
}
.contact-form .btn-send:hover { opacity: 0.85; }
.contact-form .recaptcha-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 12px;
}
.contact-form .email-fallback {
  font-size: 14px;
  color: #222;
  text-align: center;
  margin-top: 20px;
}
.contact-form .email-fallback a { color: #222; font-weight: 500; }


/* ═══════════════════════════════════════════════════
   SOCIAL / FOLLOW US
   ═══════════════════════════════════════════════════ */
.follow-section {
  padding: 60px 0;
  text-align: center;
  background: #f4f4f4;
}
.follow-section h3 {
  margin-bottom: 8px;
}
.follow-section p { margin-bottom: 16px; }
.social-icons { display: flex; justify-content: center; gap: 16px; }
.social-icons a {
  font-size: 24px;
  color: #222;
  transition: color 0.3s;
}
.social-icons a:hover { color: #2bbaec; }


/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  background: #f4f4f4;
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { font-size: 14px; color: #222; font-weight: 400; }
.footer-right { font-size: 14px; color: #222; font-weight: 400; }
.footer-right a { font-weight: 500; color: #222; }
.footer-right a:hover { color: #2bbaec; }


/* ═══════════════════════════════════════════════════
   EVENTS PAGE
   ═══════════════════════════════════════════════════ */
.page-title {
  padding: 120px 0 40px;
  text-align: center;
}
.event-card { margin-bottom: 20px; }
.event-header {
  background: linear-gradient(-45deg, #1fc3f2, #008dde);
  color: #fff;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
}
.event-body {
  padding: 32px;
  border: 1px solid #eee;
  border-top: none;
}
.event-body h3 {
  margin-bottom: 12px;
}
.event-body p {
  margin-bottom: 16px;
}
.event-location {
  font-weight: 700;
  color: #222;
  font-size: 14px;
}
.event-address {
  font-size: 14px;
  color: #444;
}
.events-message {
  text-align: center;
  color: #999;
  padding: 40px 0;
}
.events-message.no-events {
  font-size: 1.4rem;
  color: #555;
}
.event-presenter {
  margin-top: 16px;
}
.event-presenter-label {
  font-weight: 600;
  color: #008dde;
  margin-bottom: 8px;
}
.bio-read-more,
.bio-read-less {
  color: #008dde;
  font-weight: 500;
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════
   TEACHER SEARCH MODAL
   ═══════════════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.88);
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.search-overlay.active { display: flex; }
.search-open main,
.search-open header { filter: blur(8px); transition: filter 0.2s; }
.search-overlay-close {
  display: block;
  text-align: right;
  padding: 16px 24px;
  font-size: 56px;
  cursor: pointer;
  color: #222;
  line-height: 1;
  flex-shrink: 0;
}
.search-container { max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 15px 40px; flex: 1; overflow-y: auto; }
.search-title {
  text-align: center;
  margin-bottom: 24px;
}
.search-input-wrap {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}
.search-input {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  font-size: 26px;
  border-radius: 8px;
  color: #222;
}
.search-input::placeholder { color: #999; }

.teacher-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 14px rgba(45,49,54,0.09);
  padding: 24px;
  margin-bottom: 12px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.teacher-card-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.teacher-card-info { flex: 1; }
.teacher-card-name {
  font-size: 20px;
  font-weight: 700;
  color: #008dde;
  margin-bottom: 4px;
}
.teacher-card-detail {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}
.teacher-card-detail a { color: #444; }
.teacher-card-detail a:hover { color: #008dde; }
.teacher-card-area {
  margin-top: 8px;
  font-size: 14px;
  color: #444;
}


/* ═══════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════ */
.about-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 60px;
  background: url('/img/piano-teacher.jpg') no-repeat center top;
  background-size: cover;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
}
.about-hero .container {
  position: relative;
  z-index: 2;
}
.about-hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-hero-content h2 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.about-hero-content p {
  color: rgba(255,255,255,0.90);
  font-size: 18px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.about-hero-stats {
  margin-top: 36px;
}
.about-hero-stats .stat-number { color: #fff; }
.about-hero-stats .stat-label  { color: rgba(255,255,255,0.75); }

.stat-counter {
  display: inline-block;
  text-align: center;
  margin: 16px;
}
.stat-number {
  font-size: 47.6px;
  font-weight: 700;
  color: #008dde;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.board-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.board-member {
  width: 33.333%;
  padding: 0 15px;
  margin-bottom: 40px;
}
.board-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.board-member h4 {
  margin-top: 12px;
}
.board-member .role {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ═══════════════════════════════════════════════════
   MEMBERSHIP PAGE
   ═══════════════════════════════════════════════════ */
.membership-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 60px;
  background: url('/img/piano-colors.png') no-repeat center center;
  background-size: cover;
}
.membership-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
}
.membership-hero .container {
  position: relative;
  z-index: 2;
}
.membership-hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.membership-hero-content h2 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.membership-hero-content p {
  color: rgba(255,255,255,0.90);
  font-size: 18px;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  grid-template-rows: auto 1fr auto auto auto;
  gap: 0 30px;
  justify-content: center;
}
.pricing-card {
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.pricing-card::before {
  content: '';
  display: block;
  height: 6px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.pricing-card--associate::before { background: #7c5cbf; }
.pricing-card--professional::before { background: #00bcd4; }
.pricing-card h3 {
  margin-bottom: 16px;
}
.pricing-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.pricing-card li {
  font-size: 14px;
  color: #444;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.pricing-card li:first-child {
  border-top: 1px solid #eee;
}
.pricing-card .price {
  padding-top: 24px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #008dde;
}
.pricing-card .price-period {
  font-size: 16px;
  font-weight: 400;
  color: #888;
}
.pricing-card .price-note {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}
.pricing-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 20px;
}
.pricing-req {
  font-size: 13px;
  color: #666;
  margin-bottom: 0;
}
.pricing-card .btn {
  width: 100%;
  margin-top: 24px;
}


/* ═══════════════════════════════════════════════════
   CONTENT PAGE (general layout for API-driven pages)
   ═══════════════════════════════════════════════════ */
.content-page { padding-top: 105px; }
.content-page .pb-section:first-child { padding-top: 20px; }
.content-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 0;
}
.content-page-body {
  padding: 60px 0;
}
.content-page-body h1 {
  text-align: center;
  margin-bottom: 16px;
}
.content-page-body h2 {
  text-align: center;
  margin-bottom: 12px;
}

/* Markdown content blocks — enforced styling */
.content-block { margin-bottom: 40px; }
.content-block h1 { margin-bottom: 16px; text-align: center; }
.content-block h2 { margin-bottom: 12px; text-align: center; }
.content-block h3 { margin-bottom: 10px; }
.content-block p { margin-bottom: 1em; text-align: center; }
.content-block ul, .content-block ol { margin: 0 0 1em 1.5em; list-style: disc; }
.content-block li { font-size: 14px; color: #444; line-height: 1.4; padding: 2px 0; }
.content-block a,
.pb-text-content a,
.pb-image-text-body a { color: #008dde; font-weight: 700; }
.content-block a:hover,
.pb-text-content a:hover,
.pb-image-text-body a:hover { color: #2bbaec; text-decoration: underline; }
.content-block strong { font-weight: 600; color: #222; }
.content-block em { font-style: italic; }
.content-block img { border-radius: 4px; margin: 16px auto; }
.content-block blockquote { border-left: 3px solid #2bbaec; padding-left: 16px; margin: 16px 0; font-style: italic; color: #666; }


/* ═══════════════════════════════════════════════════
   WAVE / SECTION DIVIDERS
   ═══════════════════════════════════════════════════ */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}


/* ═══════════════════════════════════════════════════
   SCROLL-TO-TOP BUTTON
   ═══════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #2bbaec;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: #008dde; transform: translateY(-2px); }


/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤991px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Navbar */
  .navbar-btn { display: none; }
  .navbar-menu-btn { display: inline-flex; }
  .teacher-bar { display: flex; }

  /* Offset content for the extra teacher bar (~50px) */
  .page-title { padding-top: 170px; }
  .content-page { padding-top: 155px; }
  .content-page .pb-section:first-child { padding-top: 20px; }

  /* Hero — keep image visible on the right, text stays left */
  .hero,
  .about-hero,
  .membership-hero,
  .pb-hero { min-height: 380px; padding: 120px 0 40px; }
  .hero-content { max-width: 65%; }
  .hero-cta { gap: 10px 16px; }
  .hero-cta-label { font-size: 17px; }

  /* Grid */
  .col-4 { width: 100%; }
  .col-6 { width: 100%; }
  .row { flex-direction: column; }

  /* Sections */
  .section { padding: 50px 0; }
  /* Feature cards — center-align when stacked */
  .feature-card { margin-bottom: 40px; text-align: center; }
  .feature-icon { margin-left: auto; margin-right: auto; }

  /* Testimonials — equal height not needed when stacked; add gap */
  .testimonial-card { flex: none; margin-bottom: 20px; }

  /* Contact */
  .contact-heading { text-align: center; margin-bottom: 40px; }
  .contact-heading p { text-align: center; margin-left: auto; margin-right: auto; }
  .contact-heading .logo-img { margin: 20px auto; }

  /* About / Membership / PB hero content — no top margin needed; padding is on the section */

  /* Pricing / Board / Events */
  .pricing-grid { grid-template-columns: minmax(0, 420px); grid-template-rows: none; justify-content: center; }
  .pricing-card { grid-row: span 1; grid-template-rows: auto auto auto auto auto; }
  .board-member { width: 50%; }
  .event-header { flex-direction: column; gap: 4px; text-align: center; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤575px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 575px) {
  /* Layout */
  .container { padding: 0 20px; }
  h1 { font-size: 42px; }


  /* Navbar */
  .navbar-logo img { width: 220px; height: auto; }

  /* Hero */
  .hero,
  .about-hero,
  .membership-hero,
  .pb-hero { min-height: 320px; padding: 110px 0 30px; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero h1 { margin-bottom: 24px; margin-top: 24px; }
  .hero-cta { gap: 8px 16px; }
  .hero-cta-label { font-size: 15px; }
  .hero-cta .btn,
  .hero-cta-btn { padding: 12px 0; font-size: 15px; width: 220px; text-align: center; }

  /* Sections */
  .section { padding: 36px 0; }
  .section-heading { margin-bottom: 32px; }
  /* Feature cards */
  .feature-card { margin-bottom: 32px; }

  /* Testimonials */
  .testimonials { padding: 40px 0; }
  .testimonials h2 { margin-bottom: 32px; }
  .testimonial-card { padding: 24px; }

  /* Contact */
  .contact-section { padding: 40px 0; }
  .contact-heading .logo-img { max-width: 180px; margin-top: 32px; }
  .contact-form input,
  .contact-form textarea { padding: 12px 14px; font-size: 14px; }

  /* Follow section */
  .follow-section { padding: 40px 0; }

  /* Mobile nav */
  .mobile-nav { width: 100%; right: -100%; }
  .mobile-nav a { font-size: 18px; }

  /* Board */
  .board-member { width: 100%; }

  /* Content pages */
  .page-title { padding: 140px 0 20px; }
  .content-page-body { padding: 36px 0; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }

  /* Scroll-to-top */
  .scroll-top { bottom: 16px; right: 16px; width: 42px; height: 42px; font-size: 20px; }
}


/* ═══════════════════════════════════════════════════
   PAGE BUILDER SECTIONS
   ═══════════════════════════════════════════════════ */

/* ─── Loading / empty states ─── */
.pb-loading,
.pb-empty {
  padding: 80px 0;
  text-align: center;
  color: #999;
  font-size: 18px;
}

/* ─── Section wrapper ─── */
.pb-section {
  width: 100%;
  background: #fff;
}
.pb-section--grey  { background: #f0eeea; }
.pb-section--blue  { background: #5cc0ed; color: #fff; }
.pb-section--dark  { background: #1a1a2e; color: #fff; }
.pb-section--blue h1,
.pb-section--blue h2,
.pb-section--blue h3,
.pb-section--blue p,
.pb-section--blue li,
.pb-section--dark h1,
.pb-section--dark h2,
.pb-section--dark h3,
.pb-section--dark p,
.pb-section--dark li { color: inherit; }

/* ─── Hero ─── */
.pb-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 60px;
  background-size: cover;
  background-position: center;
}
.pb-hero--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
}
.pb-hero .container {
  position: relative;
  z-index: 2;
}
.pb-hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.pb-hero-content h1 {
  margin-bottom: 20px;
}
.pb-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.pb-hero--bg .pb-hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.pb-hero--bg .pb-hero-sub {
  color: rgba(255,255,255,0.90);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.pb-hero-cta { margin-top: 8px; }

/* ─── Text ─── */
.pb-text { padding: 60px 0; }
.pb-text-content {
  max-width: 820px;
  margin: 0 auto;
}
.pb-text-content h2 { margin-bottom: 16px; text-align: center; }
.pb-text-content h3 { margin-bottom: 12px; text-align: center; }
.pb-text-content p  { margin-bottom: 16px; }
.pb-text-content ul { padding-left: 24px; margin-bottom: 16px; list-style: disc; }
.pb-text-content li { margin-bottom: 3px; line-height: 1.4; }
.pb-text-content .ql-align-center  { text-align: center; }
.pb-text-content .ql-align-right   { text-align: right; }
.pb-text-content .ql-align-justify { text-align: justify; }
.pb-text-content .ql-align-left    { text-align: left; }
.md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.md-table th,
.md-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}
.md-table th { background: #f5f5f5; font-weight: 600; }
.pb-section--blue .md-table th  { background: rgba(0,0,0,0.15); }
.pb-section--dark .md-table th  { background: rgba(255,255,255,0.1); }
.pb-section--blue .md-table td,
.pb-section--blue .md-table th,
.pb-section--dark .md-table td,
.pb-section--dark .md-table th  { border-color: rgba(255,255,255,0.2); }

/* ─── Image + Text ─── */
.pb-image-text { padding: 60px 0; }
.pb-image-text-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.pb-image-text-inner.image-right { flex-direction: row-reverse; }
.pb-image-text-image {
  flex: 0 0 45%;
}
.pb-image-text-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.pb-image-text-body { flex: 1; }
.pb-image-text-body h2 { margin-bottom: 16px; }
.pb-image-text-body h3 { margin-bottom: 12px; }
.pb-image-text-body p  { margin-bottom: 14px; }
.pb-image-text-body ul { padding-left: 20px; margin-bottom: 14px; list-style: disc; }
.pb-image-text-body li { margin-bottom: 3px; line-height: 1.4; }

/* ─── Card Grid ─── */
.pb-card-grid { padding: 60px 0; }
.pb-card-grid-headline {
  text-align: center;
  margin-bottom: 40px;
}
.pb-cards {
  display: grid;
  gap: 24px;
}
.pb-cards--2 { grid-template-columns: repeat(2, 1fr); }
.pb-cards--3 { grid-template-columns: repeat(3, 1fr); }
.pb-cards--4 { grid-template-columns: repeat(4, 1fr); }
.pb-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}
.pb-section--grey .pb-card { background: #fff; }
.pb-section--blue .pb-card,
.pb-section--dark .pb-card { background: rgba(255,255,255,0.12); box-shadow: none; }
.pb-card-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
  display: block;
}
.pb-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.pb-card-title {
  margin-bottom: 10px;
}
.pb-card-text {
  flex: 1;
  margin-bottom: 16px;
}
.pb-card-cta { margin-top: auto; align-self: flex-start; }

/* ─── Link List ─── */
.pb-link-list { padding: 60px 0; }
.pb-link-list-headline {
  margin-bottom: 32px;
  text-align: center;
}
.pb-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pb-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.pb-link-item:hover { background: rgba(0,0,0,0.08); }
.pb-section--blue .pb-link-item,
.pb-section--dark .pb-link-item { background: rgba(255,255,255,0.12); }
.pb-section--blue .pb-link-item:hover,
.pb-section--dark .pb-link-item:hover { background: rgba(255,255,255,0.2); }
.pb-link-icon { font-size: 20px; flex-shrink: 0; }
.pb-link-desc {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: auto;
}

/* ─── CTA Banner ─── */
.pb-cta-banner { padding: 80px 0; }
.pb-cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.pb-cta-inner h2 {
  margin-bottom: 16px;
}
.pb-cta-inner p {
  margin-bottom: 32px;
}

/* ─── Board bio ─── */
.board-bio {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
  text-align: center;
}
.board-loading {
  text-align: center;
  color: #999;
  padding: 40px 0;
  width: 100%;
}

/* ─── Page Builder — Responsive ─── */
@media (max-width: 768px) {
  .pb-hero-content { max-width: 100%; }
  .pb-hero-sub { font-size: 16px; }
  .pb-image-text-inner,
  .pb-image-text-inner.image-right { flex-direction: column; }
  .pb-image-text-image { flex: none; width: 100%; }
  .pb-cards--2,
  .pb-cards--3,
  .pb-cards--4 { grid-template-columns: 1fr; }
  .md-table { font-size: 13px; }
  .md-table th,
  .md-table td { padding: 8px 10px; }
}
