/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 30px;
}

/* Logo */
.logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* Nav centered */
.nav {
  display: flex;
  justify-content: flex-end; /* ALWAYS right */
  gap: 26px;
  align-items: center;
  white-space: nowrap;
  flex: 1; /* takes remaining space */
}
.nav__link {
  text-decoration: none;
  color: #222;
  font-size: 15px;
  padding: 10px 6px;
}
.nav__link:hover {
  color: #000;
}
.nav__link.active {
  font-weight: 600;
}

.icon-btn:hover {
  background: #f7f7f7;
}

.btn--outline:hover {
  background: #222;
  color: #fff;
}

/* Short Banner with title overlay */
.banner {
  background: linear-gradient(90deg, #123a63, #1f6fb2);
  padding: 28px 0;
}

.banner__overlay {
  display: none;
}

.banner__inner {
  display: flex;
  align-items: center; /* vertical centering */
}

.banner__title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
}

/* Page placeholder */
.page {
  padding: 34px 0;
  font-size: 16px;
  line-height: 1.7;
  max-width: 980px;
}

.about-image {
  max-width: 1000px;
  margin: 30px auto 0 0; /* push left */
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.yellow-divider::before,
.yellow-divider::after {
  content: none !important;
}

.third-image {
  max-width: 1000px; /* SAME width as the text */
  margin: 30px 0 0 0; /* align left like the text */
}

.what-we-do {
  max-width: 1000px; /* matches the screenshot */
  margin-top: 60px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

.what-we-do h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 12px;
}

.what-we-do p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.footer {
  background-color: #ffffff;
  border-top: 1px solid #e6e6e6;
  padding: 22px 0;
}

.footer-container {
  max-width: 1200px; /* keeps it centered, not edge-to-edge */
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-right {
  font-size: 14px;
  color: #666;
}

.nav__link.active {
  font-weight: 700;
  position: relative;
}

.nav__link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: #f2c200; /* yellow underline like Educart */
}

.service-block {
  margin-top: 40px;
}

.service-media {
  max-width: 1000px; /* makes the image smaller */
  margin: 0 auto; /* centers it nicely */
}

.service-media img {
  width: 100%;
  height: auto;
  display: block;
}

.services-text {
  max-width: 1000px; /* same width you wanted */
  margin: 60px auto 0;
}

.services-text .section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.services-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.services-text p {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 16px;
}
.service-lead {
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 6px;
}

.contact-text {
  max-width: 1000px;
  margin-bottom: 30px;
}

.contact-details {
  max-width: 1000px;
}

.contact-details p {
  margin: 0 0 10px;
  font-size: 16px;
}

.contact-cards {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: #f6f7f9; /* soft grey like screenshot */
  flex: 0 0 44px;
}

.contact-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.contact-text {
  margin: 0 0 6px;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.contact-link {
  color: #1f6fb2; /* matches your blue theme */
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.publication-block {
  max-width: 1000px;
  margin: 60px auto 0;
}

.publication-meta {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 6px;
}

.publication-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
}

.publication-block p {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 16px;
}

.pub {
  max-width: 1000px;
  margin: 70px auto 0;
}

.pub-toplink {
  display: inline-block;
  font-size: 14px;
  color: #6d6d6d;
  text-decoration: none;
  margin-bottom: 26px;
}

.pub-toplink:hover {
  text-decoration: underline;
}

.pub-edition {
  margin: 0 0 22px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
}

.pub-title {
  margin: 0 0 22px;
  font-size: 44px;
  font-weight: 700;
  color: #111;
}

.pub-paragraph {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  max-width: 500px; /* like screenshot: text narrower than the full section */
}

.pub-image {
  margin-top: 26px;
}

.pub-image img {
  width: 100%;
  max-width: 500px; /* image not full width, similar to screenshot */
  height: auto;
  display: block;
}

.pub-image {
  margin-top: 26px;
}

.pub-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  /* margin: 0 auto; centered like screenshot */
}

/* second image spacing */
.pub-image-secondary {
  margin-top: 20px;
  max-width: 600px;
}



.textbooks-list{
  max-width: 1000px;
  margin: 70px auto 0;
}

.textbook{
  padding: 10px 0;
}

.textbook__title{
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111;
}

.textbook__meta{
  font-size: 14px;
  font-weight: 600;
  color: #1f6fb2;
  margin: 0 0 14px;
}

.textbook__desc,
.textbook__usage{
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 12px;
  color: #333;
}

.textbook-divider{
  border: none;
  border-top: 1px solid #e6e6e6;
  margin: 40px 0;
}

.textbooks-grid{
  max-width: 1000px;
  margin: 70px auto 0;
  display: grid;
  gap: 22px;
}

.book-card{
  display: flex;
  gap: 18px;
  padding: 18px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.book-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.book-cover{
  width: 140px;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ececec;
  flex: 0 0 140px;
}

.book-info{
  flex: 1;
  min-width: 0;
}

.book-title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #111;
}

.book-meta{
  font-size: 14px;
  font-weight: 700;
  color: #1f6fb2;
  margin: 0 0 12px;
}

.book-desc,
.book-usage{
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 10px;
  color: #333;
}

/* Mobile */
@media (max-width: 700px){
  .book-card{
    flex-direction: column;
  }
  .book-cover{
    width: 100%;
    height: 260px;
    flex: none;
  }
}


/* =========================
   MOBILE & SMALL DEVICES
========================= */
@media (max-width: 768px) {

  /* Header */
  .header__inner {
    grid-template-columns: 1fr;
    height: auto;
    padding: 12px 0;
  }

  .logo {
    justify-self: center;
    margin-bottom: 10px;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav__link {
    font-size: 14px;
  }

  /* Banner */
  .banner__title {
    font-size: 28px;
  }

  /* Page width */
  .page {
    padding: 24px 0;
    max-width: 100%;
  }

  /* Images */
  .about-image,
  .third-image,
  .service-media,
  .pub,
  .services-text,
  .what-we-do,
  .contact-cards {
    max-width: 100%;
  }

  /* Publication layout */
  .pub-edition {
    font-size: 26px;
  }

  .pub-title {
    font-size: 30px;
  }

  .pub-paragraph {
    max-width: 100%;
  }

  .pub-image img {
    max-width: 100%;
  }

  /* Contact cards */
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-icon {
    margin-bottom: 10px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
