/* supplement.css — generic readability safety-net (Step 9)
   Arihant Education Group — 4-generation archive (education / astra / imeality / static-template).
   The imeality (premium) and static-template generations lost their core stylesheets in the
   archive and are not open-source restorable. These rules give those bare pages a readable
   layout WITHOUT fighting the fully-styled education/astra pages (low specificity, no section
   backgrounds, no forced text colors on content). Accent #e79800, secondary #174873. */

img, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; border-collapse: collapse; }
table td, table th { padding: 6px 10px; }

/* Only bare-body pages (no theme wrapper) inherit these; styled themes set their own body rules. */
body { -webkit-text-size-adjust: 100%; }

/* Bare pages have no container — keep raw content columns from stretching edge-to-edge.
   Scoped to the plain document-flow fallbacks the dead generations leave behind. */
body > .wrapper,
body > .container,
body > #wrapper,
body > .content,
body > .main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Link accent for pages that lost their stylesheet (browser-default blue looks broken).
   Kept to plain anchors inside content; themed pages define stronger selectors that win. */
a { color: #174873; }
a:hover { color: #e79800; }

/* Education theme nav safety-net: Foundation hide-for/toggle needs JS. Without it the
   burger stays visible next to the desktop links and items look glued together. */
@media screen and (min-width: 64em) {
  .top-bar [data-hide-for="large"],
  .top-bar .top-bar-title {
    display: none !important;
  }
  .top-bar #responsive-menu > .menu.large-horizontal > li {
    display: table-cell;
    vertical-align: middle;
  }
  .top-bar #responsive-menu > .menu.large-horizontal > li > a {
    display: block;
    padding: 12px 10px;
    white-space: nowrap;
  }
}

/* Homepage hero (replaces broken Revolution Slider) */
.home-hero-module {
  margin: 0;
  padding: 0;
}
.home-hero,
.home-hero-carousel,
.home-hero-slide {
  width: 100%;
}
.home-hero-slide {
  min-height: 70vh;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 8%;
  background: linear-gradient(90deg, rgba(23,72,115,.72) 0%, rgba(23,72,115,.25) 55%, rgba(23,72,115,.05) 100%);
  color: #fff;
}
.home-hero-overlay h2 {
  color: #fff;
  font-size: 2.4rem;
  margin: 0 0 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.home-hero-overlay p {
  color: #fff;
  font-size: 1.15rem;
  margin: 0;
  max-width: 32rem;
}
.home-hero .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23,72,115,.65) !important;
  color: #fff !important;
  width: 44px;
  height: 44px;
  border-radius: 2px !important;
  font-size: 22px !important;
  line-height: 44px !important;
  margin: 0 !important;
}
.home-hero .owl-nav .owl-prev { left: 12px; }
.home-hero .owl-nav .owl-next { right: 12px; }
.home-hero .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
}
.home-hero .owl-dots .owl-dot span {
  background: rgba(255,255,255,.55);
}
.home-hero .owl-dots .owl-dot.active span,
.home-hero .owl-dots .owl-dot:hover span {
  background: #e79800;
}
@media (max-width: 640px) {
  .home-hero-slide { min-height: 52vh; }
  .home-hero-overlay h2 { font-size: 1.6rem; }
  .home-hero-overlay p { font-size: 1rem; }
}

/* Contact page polish on education theme */
.page-id-contact .icon-box {
  margin-bottom: 18px;
}
.page-id-contact .socialicons a {
  display: inline-block;
  margin-right: 10px;
  color: #174873;
  font-size: 20px;
}
.page-id-contact .socialicons a:hover {
  color: #e79800;
}
