/* ---------------------------------------
   আলোর পথ — Home page
   Scoped to index.html only. Builds on the
   AlorPoth theme (styles/style.css variables)
   so light / dark / bright modes keep working.
----------------------------------------- */

body {
  background: var(--bg);
}

/* Header: switch to flex so the menu button, logo and
   mode toggle line up cleanly (only affects this page). */
.header {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px;
}

.header-menu-btn,
.header-logo {
  flex: 0 0 auto;
}

.header-logo {
  float: none !important;
  margin: 0 !important;
  display: block !important;
}

.righth {
  float: none !important;
  margin: 0 0 0 auto !important;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-menu-btn {
  margin: 0 0 0 4px;
  padding: 8px 11px;
  font-size: 16px;
  line-height: 1;
}

/* .scroll-line is a reading-progress bar whose width is driven by JS on
   every scroll event (0% -> 100%). It used to just sit in normal flow
   below the other header content, but now that .header is a flex
   container it was ALSO a flex item sharing that row - so as its width
   grew while scrolling, it visibly squeezed the mode toggle further
   and further left. Taking it out of flex flow with position:absolute
   (anchored to .header, which still has position:fixed) fixes that. */
.scroll-line {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 !important;
}

/* ---- Hero ---- */

.home-hero {
  padding: 32px 20px 8px;
  text-align: center;
}

.home-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.home-hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--textp);
}

.home-hero p {
  margin: 0 auto;
  max-width: 480px;
  font-size: 15px;
  line-height: 23px;
  color: var(--drpha);
}

/* ---- Quick actions ---- */

.quick-actions {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 22px 16px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar {
  display: none;
}

.quick-actions a {
  flex: 0 0 auto;
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.quick-actions .qa-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bxbbg);
  border: 1px solid var(--bxbb);
  color: var(--bxbb);
  font-size: 20px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.quick-actions .qa-label {
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  color: var(--textp) !important;
}

/* ---- Section heading ---- */

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px 18px 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--textp);
}

.section-heading small {
  font-weight: 400;
  font-size: 12px;
  color: var(--drpha);
}

/* ---- Topic grid ---- */

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px 14px 26px;
}

@media (min-width: 620px) {
  .home-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .home-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.home-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--bxbbg);
  border-left: 3px solid var(--bxbb);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.home-card img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 10px;
}

.home-card .hc-text {
  min-width: 0;
}

.home-card .hc-title {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--textp) !important;
  margin-bottom: 2px;
}

.home-card .hc-desc {
  font-size: 12.5px;
  line-height: 16px;
  color: var(--drpha);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-card .fa-chevron-right {
  margin-left: auto;
  color: var(--drpha);
  font-size: 13px;
  flex: 0 0 auto;
}

/* ---- Sidenav: theme-aware ---- */

#mySidenav {
  background: var(--bg);
}

.sidenavContentHeader {
  color: var(--text) !important;
}

.sidenavContent,
.sidenavRow,
.sidenavRow div {
  color: var(--textp) !important;
}

.sidenavContent:hover,
.sidenavRow:hover {
  background-color: var(--bxbfbg);
}

#mySidenav hr {
  background-color: var(--shadow2);
  opacity: 0.4;
}

/* .sidenavHeader has a fixed height:81px in the base stylesheet, sized
   for the logo alone. With the tagline added underneath, logo (70px)
   + tagline was taller than that box, so the tagline was getting
   clipped/overflowing the teal header bar. Let it size to its content
   instead, with some breathing room. */
#mySidenav .sidenavHeader {
  height: auto !important;
  padding: 14px 0 12px;
}

.sidenav-tagline {
  color: #eafdfc;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.85;
}

/* ---- Footer ---- */

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 4px 10px 12px;
}

.footer-links a {
  font-size: 13px;
  opacity: 0.92;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline !important;
}
