html,
body {
  height: 100%;
}

body {
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.form-academy {
  max-width: 330px;
  padding: 15px;
}

.form-academy .form-floating:focus-within {
  z-index: 2;
}

.form-academy input[type="text"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.title-section {
  max-width: 460px;
}

.text-headline-primary {
  background-color: #a45fef !important;
  color: white !important;
  padding: 3px;
  border-radius: 5px;
}

.text-sub-headline-primary {
  background-color: #eedef8;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-headline-secondary {
  background-color: #30b8fe;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-sub-headline-secondary {
  background-color: #dbeeff;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-headline-third {
  background-color: #fb8b1b;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-sub-headline-third {
  background-color: #fed6d3;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-headline-forth {
  background-color: #fecf32;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

/* ===========================
   Academy Home Page (ach-)
   Brand Tokens
   =========================== */

.ach-page {
  --ach-orange: #fb8b1b;
  --ach-blue: #37b0fe;
  --ach-purple: #a45eef;
  --ach-soft-orange: #fed5d3;
  --ach-soft-blue: #dbedff;
  --ach-soft-purple: #eddef8;
  --ach-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.08);
  --ach-radius-2xl: 1.25rem;
  font-feature-settings: "cv11", "ss01";
}

/* Typography */
.ach-heading {
  letter-spacing: -0.02em;
  font-weight: 700;
}

.ach-text-purple {
  color: var(--ach-purple);
}

/* Gradient brand surface */
.ach-brand-gradient {
  background: linear-gradient(
    135deg,
    var(--ach-soft-orange) 0%,
    var(--ach-soft-blue) 50%,
    var(--ach-soft-purple) 100%
  );
}

/* Hero banner */
.ach-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--ach-shadow-soft);
}

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

/* Cards */
.ach-card {
  border: 0;
  background: #fff;
  box-shadow: var(--ach-shadow-soft);
  border-radius: var(--ach-radius-2xl);
  height: 100%;
}

.ach-card-body {
  padding: 1.5rem;
}

/* Buttons — Bootstrap 5.3 CSS variable pattern */
.ach-page .btn {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ach-btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ach-orange);
  --bs-btn-border-color: var(--ach-orange);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #e67c16;
  --bs-btn-hover-border-color: #e67c16;
  --bs-btn-focus-shadow-rgb: 251, 139, 27;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #cf6f12;
  --bs-btn-active-border-color: #cf6f12;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--ach-orange);
  --bs-btn-disabled-border-color: var(--ach-orange);
  border: none;
}

.ach-btn-alt {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ach-blue);
  --bs-btn-border-color: var(--ach-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1594ea;
  --bs-btn-hover-border-color: #1594ea;
  --bs-btn-focus-shadow-rgb: 55, 176, 254;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0f7fc9;
  --bs-btn-active-border-color: #0f7fc9;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--ach-blue);
  --bs-btn-disabled-border-color: var(--ach-blue);
  border: none;
}

.ach-page .btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), 0.35);
}

/* Badge */
.ach-badge {
  font-size: 0.8rem;
  background: #fff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.3em 0.7em;
  border-radius: 0.25rem;
}

/* Step items */
.ach-step {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.ach-step-num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ach-orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Sections */
.ach-hero-section {
  padding: 1.5rem 0;
}

.ach-quick-section {
  padding: 2rem 0;
}

.ach-how-section {
  padding: 3rem 0;
  background-color: #fff;
  border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (min-width: 992px) {
  .ach-hero {
    border-radius: 1.5rem;
  }
}

@media (min-width: 768px) {
  .ach-hero-section {
    padding: 2.5rem 0;
  }

  .ach-quick-section {
    padding: 3rem 0;
  }

  .ach-card-body {
    padding: 2rem 2.5rem;
  }
}

/* Teacher styles */

html,
body {
  height: 100%;
}

body {
  /* padding-top: 40px; */
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.form-academy {
  max-width: 360px;
  padding: 15px;
}

.form-academy .form-floating:focus-within {
  z-index: 2;
}

.form-academy input[type="text"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.title-section {
  max-width: 460px;
}

.text-headline-primary {
  background-color: #a45fef !important;
  color: white !important;
  padding: 3px;
  border-radius: 5px;
}

.text-sub-headline-primary {
  background-color: #eedef8;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-headline-secondary {
  background-color: #30b8fe;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-sub-headline-secondary {
  background-color: #dbeeff;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-headline-third {
  background-color: #fb8b1b;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-sub-headline-third {
  background-color: #fed6d3;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.text-headline-forth {
  background-color: #fecf32;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

/* ===========================
   Academy Navbar (.ach-navbar)
   =========================== */

.ach-navbar {
  height: 60px;
  background-color: #fff;
}

.ach-navbar-brand {
  font-family: SukhumvitSet-bold;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.ach-back-btn {
  white-space: nowrap;
}

.ach-nav-link {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ach-nav-link:hover,
.ach-nav-link.active,
.ach-nav-link.show {
  color: #fb8b1b;
  background-color: #fff7ec;
}

.ach-dropdown-menu {
  border: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 0.5rem;
  min-width: 220px;
}

.ach-dropdown-menu .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-family: SukhumvitSet-light;
  display: flex;
  align-items: center;
}

.ach-dropdown-menu .dropdown-item:hover,
.ach-dropdown-menu .dropdown-item:focus {
  background-color: #eddef8;
  color: #a45eef;
}

.btn-outline-purple {
  color: #a45eef;
  background-color: transparent;
  border: 1px solid #a45eef;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.btn-outline-purple:hover {
  background-color: #eddef8;
  color: #a45eef;
  border-color: #a45eef;
}

.btn-outline-purple:focus,
.btn-outline-purple:active {
  background-color: #eddef8 !important;
  color: #a45eef !important;
  border-color: #a45eef !important;
  box-shadow: 0 0 0 0.2rem rgba(164, 94, 239, 0.15);
}

.ach-toggler {
  color: #a45eef;
}

.ach-offcanvas {
  width: 320px;
}

.ach-mobile-section {
  border-top: 1px solid #f0f0f0;
  padding: 0.75rem 0;
}

.ach-mobile-section-title {
  font-family: SukhumvitSet-bold;
  color: #a45eef;
  padding: 0.25rem 0.5rem;
  font-size: 0.95rem;
}

.ach-mobile-link {
  display: block;
  padding: 0.6rem 1rem;
  color: #333;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ach-mobile-link:hover {
  background-color: #eddef8;
  color: #a45eef;
}

/* spacer that reserves room below the fixed navbar — paired 1:1 with .ach-navbar */
.ach-navbar-spacer {
  height: 60px;
}

/* teacher login card — state-based UI on /academy/teacher/index */
.ach-teacher-card {
  max-width: 520px;
  background: #fff;
  border-color: #f0e3fb !important;
}

/* Google login button — ported from public_html/user/css/user-login.css */
.btn-google.block { display: flex; justify-content: center; width: 100%; }

.btn-google {
  --g-border: #dadce0;
  --g-text: #3c4043;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--g-border);
  border-radius: 4px;
  background: #fff;
  color: var(--g-text);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-google:hover { background: #f8faff; border-color: #d2d5da; color: var(--g-text); }
.btn-google:active { background: #eef1f4; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .06); }
.btn-google:focus-visible { outline: 2px solid #4285f4; outline-offset: 2px; }
.btn-google[aria-disabled="true"], .btn-google.disabled {
  opacity: .6; pointer-events: none;
}

.btn-google .g-logo { display: flex; align-items: center; justify-content: center; }
.btn-google .g-logo svg { width: 20px; height: 20px; }
.btn-google .g-text { display: flex; align-items: center; line-height: 1; }

.btn-primary-custom {
  background-color: #a45fef !important;
  border-color: #a45fef !important;
}

.btn-primary-custom:hover {
  background-color: #923af2 !important;
  border-color: #923af2 !important;
}

.text-headline-danger {
  background-color: red;
  color: white;
  padding: 3px;
  border-radius: 5px;
}

.blockquote-message {
  background-color: #efefef;
  font-style: italic;
  border-left: 6px solid;
}

.quote-section {
  font-size: 40px;
  width: 60%;
  margin: 0 auto;
}
.quote-section h1 {
  font-size: 4rem;
}
.quote-section p {
  font-style: italic;
  margin-bottom: 0;
}

.quote-section p::before,
.quote-section p::after {
  color: #38b0fe;
  content: "“";
  font-family: Georgia;
  font-size: 4rem;
  margin: -2rem 0 0 -4rem;
  position: absolute;
  opacity: 0.5;
  width: 40px;
}

.quote-section p::after {
  content: "”";
  margin: 0rem 0 0 1rem;
}
