/* ============================================================
   B Optus Helps - Custom Theme Styles
   Colors: #00aeb6 (teal), #ffdd00 (yellow), gray, white
   ============================================================ */

:root {
  --om-green: #00aeb6;
  --om-green-dark: #00828a;
  --om-green-light: #e3f7f8;
  --om-yellow: #ffdd00;
  --om-yellow-light: #fffbe0;
  --om-gray-900: #2b3035;
  --om-gray-700: #5a6268;
  --om-gray-500: #868e96;
  --om-gray-200: #e9ecef;
  --om-gray-100: #f6f7f8;
  --om-white: #ffffff;
  --om-radius: 14px;
  --om-shadow: 0 8px 30px rgba(0, 174, 182, 0.10);
  --om-shadow-lg: 0 18px 45px rgba(0, 174, 182, 0.16);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--om-gray-900);
  background: var(--om-white);
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--om-gray-900);
  line-height: 1.25;
}

p {
  color: var(--om-gray-700);
}

a {
  color: var(--om-green);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--om-green-dark);
}

/* ---------- Utility ---------- */
.section {
  padding: 88px 0;
}

.section-sm {
  padding: 60px 0;
}

.bg-soft-green { background: var(--om-green-light) !important; }
.bg-soft-yellow { background: var(--om-yellow-light) !important; }
.bg-soft-gray { background: var(--om-gray-100) !important; }

.text-green { color: var(--om-green) !important; }
.text-yellow { color: var(--om-yellow) !important; }

.section-title {
  font-size: 2.35rem;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-sub {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--om-gray-700);
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--om-green);
  background: var(--om-green-light);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.kicker-yellow {
  color: #7a6800;
  background: var(--om-yellow-light);
}

.divider {
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--om-yellow);
  margin: 0 0 20px;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--om-green);
  border: 2px solid var(--om-green);
  color: #fff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.btn-theme:hover,
.btn-theme:focus {
  background: var(--om-green-dark);
  border-color: var(--om-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 174, 182, 0.25);
}

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--om-yellow);
  border: 2px solid var(--om-yellow);
  color: #4a3500;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.btn-yellow:hover,
.btn-yellow:focus {
  background: #e0c200;
  border-color: #e0c200;
  color: #4a3500;
  transform: translateY(-2px);
}

.btn-outline-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--om-green);
  color: var(--om-green);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.btn-outline-theme:hover {
  background: var(--om-green);
  color: #fff;
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(43, 48, 53, 0.07);
  padding: 12px 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--om-green);
  white-space: nowrap;
}

.brand-name span {
  color: var(--om-gray-900);
}

.site-header .nav-link {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--om-gray-700);
  padding: 8px 14px !important;
  border-radius: 8px;
  position: relative;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--om-green);
  background: var(--om-green-light);
}

.navbar-toggler {
  border-color: var(--om-gray-200);
  padding: 6px 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--om-green-light);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eafafb 0%, #ffffff 55%, #fffce0 100%);
  padding: 92px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(0, 174, 182, 0.06);
  top: -200px;
  right: -120px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 221, 0, 0.10);
  bottom: -180px;
  left: -100px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.15rem;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--om-green);
}

.hero-lead {
  font-size: 1.12rem;
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-art {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 174, 182, 0.16));
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--om-gray-200);
  border-radius: 50px;
  padding: 7px 15px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--om-gray-700);
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.hero-badge svg { color: var(--om-green); }

/* ---------- Cards ---------- */
.feature-card,
.topic-card,
.step-card,
.article-card,
.info-card {
  background: #fff;
  border: 1px solid var(--om-gray-200);
  border-radius: var(--om-radius);
  padding: 30px 26px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.topic-card:hover,
.step-card:hover,
.article-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--om-shadow-lg);
  border-color: rgba(0, 174, 182, 0.35);
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--om-green-light);
  color: var(--om-green);
  margin-bottom: 18px;
}

.icon-box svg { width: 28px; height: 28px; }

.icon-box.yellow {
  background: var(--om-yellow-light);
  color: #9a8200;
}

.icon-box.gray {
  background: var(--om-gray-100);
  color: var(--om-gray-700);
}

.card-title-sm {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card-text-sm {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.read-link {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.read-link svg { transition: transform 0.2s ease; }
.read-link:hover svg { transform: translateX(4px); }

/* ---------- Steps ---------- */
.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--om-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ---------- Accordion ---------- */
.accordion-button {
  font-weight: 600;
  color: var(--om-gray-900);
  background: #fff;
  padding: 18px 20px;
}

.accordion-button:not(.collapsed) {
  background: var(--om-green-light);
  color: var(--om-green-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 174, 182, 0.15);
}

.accordion-item {
  border: 1px solid var(--om-gray-200);
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 12px;
}

.accordion-body {
  color: var(--om-gray-700);
  font-size: 0.96rem;
}

/* ---------- CTA ---------- */
.cta-panel {
  background: linear-gradient(120deg, var(--om-green) 0%, #00858d 100%);
  color: #fff;
  border-radius: 22px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 32px solid rgba(255, 221, 0, 0.18);
  right: -90px;
  top: -90px;
}

.cta-panel h2,
.cta-panel p {
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-panel p { opacity: 0.92; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--om-green-light) 0%, #ffffff 60%, var(--om-yellow-light) 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--om-gray-200);
}

.page-hero h1 {
  font-size: 2.7rem;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.breadcrumb { margin-bottom: 0; font-size: 0.88rem; }
.breadcrumb a { color: var(--om-green); }

/* ---------- Prose content ---------- */
.prose h2 {
  font-size: 1.7rem;
  margin-top: 34px;
  margin-bottom: 14px;
}

.prose h3 {
  font-size: 1.3rem;
  margin-top: 26px;
  margin-bottom: 12px;
}

.prose p,
.prose li {
  color: var(--om-gray-700);
  font-size: 1rem;
}

.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.prose strong { color: var(--om-gray-900); }

.content-card {
  background: #fff;
  border: 1px solid var(--om-gray-200);
  border-radius: var(--om-radius);
  padding: 40px 42px;
  box-shadow: var(--om-shadow);
}

.callout {
  background: var(--om-green-light);
  border-left: 4px solid var(--om-green);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.callout.yellow {
  background: var(--om-yellow-light);
  border-left-color: var(--om-yellow);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--om-gray-500);
  margin-bottom: 22px;
}

.meta-line span { display: inline-flex; align-items: center; gap: 6px; }

.toc-box {
  background: var(--om-gray-100);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

.toc-box h5 { font-size: 1rem; margin-bottom: 12px; }
.toc-box ul { list-style: none; padding: 0; margin: 0; }
.toc-box li { margin-bottom: 7px; font-size: 0.92rem; }
.toc-box a { color: var(--om-gray-700); }
.toc-box a:hover { color: var(--om-green); }

/* ---------- Blog listing ---------- */
.search-box {
  position: relative;
  max-width: 380px;
}

.search-box input {
  border-radius: 50px;
  padding: 11px 18px 11px 44px;
  border: 1px solid var(--om-gray-200);
  font-size: 0.94rem;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--om-gray-500);
  width: 18px;
  height: 18px;
}

.chip {
  display: inline-block;
  border: 1px solid var(--om-gray-200);
  background: #fff;
  color: var(--om-gray-700);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 6px 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover,
.chip.active {
  background: var(--om-green);
  border-color: var(--om-green);
  color: #fff;
}

.article-card .article-tag {
  display: inline-block;
  background: var(--om-yellow-light);
  color: #7a6800;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.article-card .article-title {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.article-card p { font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item .icon-box { margin-bottom: 0; flex: 0 0 auto; }

.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--om-gray-200);
  padding: 12px 15px;
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--om-green);
  box-shadow: 0 0 0 3px rgba(0, 174, 182, 0.13);
}

.form-label { font-weight: 600; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1c2b2e;
  color: #cbd3ce;
  padding: 72px 0 0;
  font-size: 0.92rem;
}

.site-footer h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--om-yellow);
  border-radius: 3px;
}

.site-footer a {
  color: #cbd3ce;
  display: inline-block;
  margin-bottom: 9px;
  font-size: 0.9rem;
}

.site-footer a:hover { color: var(--om-yellow); }

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: var(--om-yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 52px;
  padding: 22px 0;
  font-size: 0.85rem;
}

.footer-bottom p { color: #aab5ae; margin-bottom: 0; }

.footer-disclaimer-note {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: #aab5ae;
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--om-green);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--om-shadow-lg);
  z-index: 1040;
  transition: transform 0.2s ease, background 0.2s ease;
}

#backToTop:hover { background: var(--om-green-dark); transform: translateY(-3px); color: #fff; }

/* ---------- Reading progress ---------- */
#readProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--om-yellow);
  z-index: 1050;
  transition: width 0.1s linear;
}

/* ---------- Utility extras ---------- */
.stat-box { text-align: center; padding: 20px; }
.stat-box .num { font-size: 2.3rem; font-weight: 800; color: var(--om-green); line-height: 1.2; }
.stat-box .label { font-size: 0.9rem; color: var(--om-gray-500); }

.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--om-gray-700);
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--om-green-light);
  border: 3px solid var(--om-green);
}

.empty-state { display: none; text-align: center; padding: 40px 20px; color: var(--om-gray-500); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 68px 0; }
  .section-title { font-size: 2rem; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .content-card { padding: 28px 24px; }
  .cta-panel { padding: 42px 32px; }
}

@media (max-width: 767.98px) {
  body { font-size: 15.5px; }
  .hero { padding: 60px 0 64px; }
  .hero h1 { font-size: 2.05rem; }
  .hero-lead { font-size: 1rem; }
  .section { padding: 54px 0; }
  .section-title { font-size: 1.75rem; }
  .page-hero { padding: 44px 0 38px; }
  .page-hero h1 { font-size: 2.1rem; }
  .cta-panel { padding: 34px 24px; }
  .site-footer { padding-top: 54px; }
  .footer-bottom { text-align: center; }
  .stat-box .num { font-size: 1.9rem; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 1.1rem; }
  .brand-logo { width: 36px; height: 36px; }
  .hero h1 { font-size: 1.85rem; }
}
