/* ==========================================================================
   STEMEZ - 100% Faithful Replica Stylesheet
   Fonts: Poppins, Verdana, Ubuntu, Roboto, Proza Libre, Source Sans 3
   Theme Colors:
     - Primary Teal/Green: #00A785
     - Dark Navy: #1b2f4c
     - Royal Blue: #0B0785
     - Blue Hover: #3A73C2
     - Hero Red: #FF0000 / #D81E1E
     - Yellow Overlay: #F2FF16
   ========================================================================== */

/* --- CSS Reset & Global Settings --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #00A785;
  --color-primary-hover: #008f72;
  --color-navy: #1b2f4c;
  --color-blue-dark: #0B0785;
  --color-blue-hover: #3A73C2;
  --color-red: #FF0000;
  --color-red-icon: #D81E1E;
  --color-dark: #222222;
  --color-light-gray: #f8f9fa;
  --color-footer-bg: #000000;
  --color-footer-text: #C6C6C6;
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Verdana', Geneva, Tahoma, sans-serif;
  --font-ubuntu: 'Ubuntu', sans-serif;
  --font-proza: 'Proza Libre', sans-serif;
  --font-source: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  --container-max-width: 1140px;
  --transition-fast: 0.3s ease;
}

/* Custom Scrollbar - Identical to original stemez.in */
* {
  scrollbar-width: thin;
  scrollbar-color: #00A885 transparent;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #22c55e;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #16a34a;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background-color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

.section-container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  z-index: 1000;
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-col {
  flex: 0 0 auto;
}

.site-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.header-nav-col {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu .menu-item a {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-primary);
  padding: 8px 14px;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-menu .menu-item a:hover,
.nav-menu .menu-item.active a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  font-size: 26px;
  color: var(--color-primary);
  padding: 6px;
  line-height: 1;
}

.mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-menu-toggle.is-active .icon-open {
  display: none;
}

.mobile-menu-toggle.is-active .icon-close {
  display: block;
}

/* Mobile Dropdown */
.mobile-nav-dropdown {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav-dropdown.is-open {
  display: block;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  padding: 15px 25px;
}

.mobile-nav-menu .mobile-menu-item a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-menu .mobile-menu-item:last-child a {
  border-bottom: none;
}

.mobile-nav-menu .mobile-menu-item a:hover {
  color: var(--color-primary-hover);
  padding-left: 6px;
}

/* Header Shape Divider Bottom */
.header-shape-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
}

.header-shape-bottom svg {
  display: block;
  width: 100%;
  height: 6px;
}

.header-shape-fill {
  fill: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #ffffff;
  background-image: url('../images/dot-bg-mono.jpg');
  background-position: center right;
  background-repeat: repeat;
  background-size: cover;
  padding: 50px 0 60px 0;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #F2FF16;
  opacity: 0.91;
  z-index: 1;
}

.hero-container {
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 1.3em;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 40px;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content-col {
  flex: 1 1 55%;
}

.hero-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  flex-shrink: 0;
  color: var(--color-red-icon);
  font-size: 20px;
  line-height: 1;
}

.feature-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4em;
  color: var(--color-red);
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.hero-image-col {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  max-width: 410px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast);
}

.hero-image-wrapper:hover {
  transform: scale(1.02);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Subjects & Pricing Section
   ========================================================================== */
.subjects-section {
  position: relative;
  background-color: #ffffff;
  background-image: url('../images/dot-bg-mono.jpg');
  background-position: bottom center;
  background-size: cover;
  padding: 60px 0 100px 0;
  overflow: hidden;
}

.subjects-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(300deg, #43b5c1 0%, #3060d1 100%);
  opacity: 0.9;
  z-index: 1;
}

.subjects-container {
  z-index: 2;
}

.subjects-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.subjects-heading {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 34px;
  color: #000000;
}

.btn-login-plan {
  display: inline-block;
  background-color: var(--color-blue-dark);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 32px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(11, 7, 133, 0.3);
  transition: all var(--transition-fast);
}

.btn-login-plan:hover {
  background-color: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 115, 194, 0.4);
}

/* 4 Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.plan-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.plan-card-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.plan-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  transition: transform 0.5s ease;
}

.plan-card:hover .plan-card-image img {
  transform: scale(1.05);
}

.plan-card-body {
  padding: 15px 15px 25px 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.plan-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  color: #000000;
  text-align: center;
  min-height: 52px;
  margin-bottom: 12px;
}

.plan-card-description {
  font-family: var(--font-main);
  font-size: 13.5px;
  line-height: 1.55;
  color: #222222;
  text-align: left;
  padding: 0 10px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.plan-card-description strong {
  color: #000000;
  font-weight: 700;
}

.plan-price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 10px 0 18px 0;
}

.plan-price-btn {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 24px;
  color: #000000;
  background-color: #FFFFFF;
  border: 2px solid #f0f0f0;
  padding: 6px 16px;
  border-radius: 8px;
  width: 90%;
  text-align: center;
}

.plan-price-btn-annual {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: #000000;
  background-color: #FFFFFF;
  border: 2px solid #f0f0f0;
  padding: 6px 12px;
  border-radius: 8px;
  width: 90%;
  text-align: center;
}

.plan-action-wrapper {
  text-align: center;
}

.btn-start-trial {
  display: inline-block;
  background-color: var(--color-blue-dark);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 20px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(11, 7, 133, 0.25);
}

.btn-start-trial:hover {
  background-color: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 115, 194, 0.35);
}

/* ==========================================================================
   Video Explainer Section
   ========================================================================== */
.video-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

.video-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.video-info-col {
  flex: 1 1 50%;
}

.video-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 1.2em;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.video-description {
  font-family: var(--font-ubuntu);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6em;
  color: var(--color-navy);
  text-align: justify;
}

.video-media-col {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
}

.video-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-embed-wrapper:hover .video-poster-img {
  transform: scale(1.03);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background-color: rgba(0, 167, 133, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 24px;
  box-shadow: 0 0 25px rgba(0, 167, 133, 0.8);
  transition: all var(--transition-fast);
  padding-left: 4px; /* visually center play triangle */
}

.video-embed-wrapper:hover .video-play-button {
  background-color: #00A785;
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 35px rgba(0, 167, 133, 1);
}

/* ==========================================================================
   Video Lightbox Modal
   ========================================================================== */
.video-lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-lightbox-modal.is-active {
  display: flex;
}

.video-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.video-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 2;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.video-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #FFFFFF;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.video-lightbox-close:hover {
  color: var(--color-primary);
  transform: scale(1.15);
}

.video-wrapper-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.video-wrapper-inner video {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--color-footer-bg);
  background-image: url('../images/footer-bg.jpg');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 75px 0 25px 0;
  color: var(--color-footer-text);
  overflow: hidden;
}

.footer-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  opacity: 0.88;
  z-index: 1;
}

.footer-container {
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: var(--font-proza);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1em;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-heading-divider {
  width: 25px;
  height: 2px;
  background-color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-text {
  font-family: var(--font-source);
  font-size: 15px;
  line-height: 1.6;
  color: #C6C6C6;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-source);
  font-size: 15px;
  color: #C6C6C6;
  transition: all var(--transition-fast);
}

.footer-links-list li a i {
  font-size: 12px;
  transition: transform var(--transition-fast);
}

.footer-links-list li a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-links-list li a:hover i {
  color: var(--color-primary);
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 167, 133, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 25px;
  text-align: center;
}

.copyright-text {
  font-family: var(--font-main);
  font-size: 14px;
  color: #C6C6C6;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 167, 133, 0.5);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-menu .menu-item a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .header-container {
    padding: 10px 20px;
  }

  .site-logo img {
    height: 46px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-grid {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .hero-title {
    font-size: 26px;
  }

  .feature-text {
    font-size: 16px;
  }

  .subjects-heading {
    font-size: 24px;
    text-align: center;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .plan-card-description {
    min-height: auto;
  }

  .video-grid {
    flex-direction: column;
    gap: 30px;
  }

  .video-heading {
    font-size: 24px;
    text-align: center;
  }

  .video-description {
    font-size: 16px;
    text-align: left;
  }

  .video-lightbox-close {
    top: -38px;
    right: 5px;
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }

  .feature-text {
    font-size: 15px;
  }

  .subjects-heading {
    font-size: 22px;
  }

  .btn-login-plan {
    font-size: 14px;
    padding: 8px 24px;
  }
}

/* ==========================================================================
   Inner Pages Common Styles (About Us, FAQ, Blog, Contact Us)
   ========================================================================== */
.page-hero {
  position: relative;
  background-color: #f8fbfb;
  border-bottom: 1px solid #eef3f2;
  padding: 40px 0 35px 0;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.page-breadcrumbs {
  font-family: var(--font-main);
  font-size: 14px;
  color: #777;
}

.page-breadcrumbs a {
  color: var(--color-primary);
  font-weight: 500;
}

.page-breadcrumbs a:hover {
  text-decoration: underline;
}

.page-content-section {
  padding: 60px 0 80px 0;
  background-color: #ffffff;
}

/* ==========================================================================
   About Us Page Styles
   ========================================================================== */
.about-card {
  background-color: #ffffff;
  border: 1px solid #edf2f2;
  border-radius: 16px;
  padding: 45px 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
}

.about-card h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}

.about-card h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 28px 0 14px 0;
}

.about-card p {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 20px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-highlight-box {
  background: #f0fdf9;
  border-left: 4px solid var(--color-primary);
  padding: 20px 25px;
  border-radius: 0 12px 12px 0;
  margin: 25px 0;
}

.about-highlight-box p {
  color: #1a4d43;
  font-weight: 500;
  margin-bottom: 0;
}

/* ==========================================================================
   FAQ Page Styles
   ========================================================================== */
.faq-intro-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 30px;
  text-align: center;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background-color: #ffffff;
  border: 1px solid #e5eceb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.faq-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(0, 167, 133, 0.08);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question-btn:hover {
  color: var(--color-primary);
}

.faq-icon-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f7f5;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.faq-card.open .faq-icon-arrow {
  transform: rotate(180deg);
  background-color: var(--color-primary);
  color: #ffffff;
}

.faq-answer-content {
  display: none;
  padding: 0 24px 22px 24px;
  font-family: var(--font-main);
  font-size: 15.5px;
  line-height: 1.7;
  color: #4a5568;
  border-top: 1px solid #f0f5f4;
  margin-top: 4px;
}

.faq-card.open .faq-answer-content {
  display: block;
  animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer-content ol {
  padding-left: 20px;
  margin-top: 10px;
}

.faq-answer-content li {
  list-style: decimal;
  margin-bottom: 6px;
}

.faq-info-card {
  background: #f3faf8;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 12px 0;
  font-size: 15px;
  color: #215e52;
}

/* ==========================================================================
   Blog Page Styles
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #edf2f2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
}

.blog-card-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45em;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.blog-card-title a {
  color: var(--color-navy);
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--color-primary);
}

.blog-card-excerpt {
  font-family: var(--font-main);
  font-size: 14.5px;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap 0.2s ease;
}

.blog-card-readmore:hover {
  color: var(--color-primary-hover);
  gap: 10px;
}

.blog-card-footer {
  border-top: 1px solid #f1f5f9;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
}

/* ==========================================================================
   Contact Us Page Styles
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-col h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.contact-divider {
  width: 45px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 22px;
}

.contact-info-text {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 35px;
}

.contact-social-section h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.contact-social-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-social-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-main);
  font-size: 15px;
  color: #334155;
}

.contact-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: #f0f7f5;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid #edf2f2;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.contact-form-card h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 167, 133, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-send-message {
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 167, 133, 0.25);
  margin-top: 6px;
}

.btn-send-message:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 167, 133, 0.35);
}

.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  margin-top: 15px;
}

.form-alert.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   Login Page Styles (WordPress / StemEZ Authentication)
   ========================================================================== */
.login-body-wrapper {
  background-color: #f1f1f1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.login-card-container {
  width: 100%;
  max-width: 360px;
}

.login-brand-logo {
  text-align: center;
  margin-bottom: 25px;
}

.login-brand-logo a {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  color: #2271b1;
  text-decoration: none;
}

.login-brand-logo img {
  max-width: 260px;
  height: auto;
  margin: 0 auto;
}

.login-box-card {
  background: #ffffff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 26px 24px 34px 24px;
  border-radius: 4px;
}

.login-box-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-input-group label {
  font-size: 14px;
  line-height: 1.5;
  color: #1d2327;
  font-weight: 400;
}

.login-input-field {
  width: 100%;
  font-size: 16px;
  line-height: 1.33333333;
  padding: 6px 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  color: #2c3338;
  outline: none;
}

.login-input-field:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.login-password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-password-field-wrap .login-input-field {
  padding-right: 40px;
}

.login-pw-toggle {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #646970;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 15px;
}

.login-pw-toggle:hover {
  color: #135e96;
}

.login-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #50575e;
}

.login-remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2271b1;
}

.btn-wp-login {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
  font-size: 14px;
  min-height: 36px;
  line-height: 2;
  padding: 4px 16px;
  border-radius: 3px;
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
  width: 100%;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-wp-login:hover {
  background: #135e96;
  border-color: #135e96;
}

.login-footer-nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #50575e;
}

.login-footer-nav a {
  color: #50575e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-footer-nav a:hover {
  color: #135e96;
}

.login-privacy-link {
  text-align: center;
  margin-top: 25px;
  font-size: 12px;
}

.login-privacy-link a {
  color: #646970;
  text-decoration: none;
}

.login-privacy-link a:hover {
  color: #135e96;
}

/* Responsive updates for inner pages */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 600px) {
  .about-card {
    padding: 30px 22px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 26px 20px;
  }
}

/* ==========================================================================
   Register Page Styles
   ========================================================================== */
.register-container-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.register-card {
  background: #ffffff;
  border: 1px solid #edf2f2;
  border-radius: 16px;
  padding: 45px 50px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.register-header {
  text-align: center;
  margin-bottom: 35px;
}

.register-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: #1A2538;
  margin-bottom: 8px;
}

.register-subtitle {
  font-family: var(--font-main);
  font-size: 15px;
  color: #64748b;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.register-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.register-field-wrap label {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.register-field-wrap label .req-star {
  color: var(--color-red);
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container .form-control {
  padding-right: 42px;
}

.pw-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: color 0.2s ease;
}

.pw-toggle-btn:hover {
  color: var(--color-primary);
}

.register-terms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  font-family: var(--font-main);
  font-size: 14.5px;
  color: #475569;
}

.register-terms-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.register-terms-row a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.register-submit-wrapper {
  text-align: center;
  margin-top: 15px;
}

.btn-register-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  background-color: var(--color-blue-dark);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 36px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(11, 7, 133, 0.25);
  transition: all 0.3s ease;
}

.btn-register-submit:hover {
  background-color: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 115, 194, 0.35);
}

.register-footer-text {
  text-align: center;
  margin-top: 25px;
  font-family: var(--font-main);
  font-size: 14.5px;
  color: #64748b;
}

.register-footer-text a {
  color: #005AEE;
  font-weight: 600;
}

.register-footer-text a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .register-card {
    padding: 30px 20px;
  }
}
