.hero {
  position: relative;
  margin-top: -80px;
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: 560px;
  background-color: var(--colour-4);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}


/* ==========================================================================
   Blog archive (blog.html)
   ========================================================================== */
.blog__first_fold {
  padding: 64px min(5vw, 50px) 8px;
  text-align: center;
}

.blog__first_fold h1 {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-dark-blue);
}

.blog__second_fold {
  padding: 40px min(5vw, 50px);
}

.blog__second_fold > .content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.blog__second_fold .featured-media {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px var(--shadow-navy-md);
}

.blog__second_fold .featured-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.blog__second_fold .badge--featured {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--color-yellow);
  color: var(--colour-4);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog__second_fold .featured-copy h2 {
  margin: 0 0 1rem;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-dark-blue);
}

.blog__second_fold .featured-copy p {
  margin: 0 0 1.25rem;
  color: var(--color-light-blue);
  line-height: 1.7;
}

.blog__second_fold .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-red);
}

.blog__second_fold .read-more:hover {
  color: var(--color-dark-blue);
}

.blog__third_fold {
  padding: 24px min(5vw, 50px);
  border-top: 1px solid var(--colour-6);
  border-bottom: 1px solid var(--colour-6);
}

.blog__third_fold > .content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.blog__third_fold .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.blog__third_fold .tab {
  padding: 10px 20px;
  border: 1px solid var(--colour-6);
  border-radius: 999px;
  background-color: var(--colour-4);
  color: var(--colour-5);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.blog__third_fold .tab.is-active {
  background-color: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
  color: var(--colour-4);
}

.blog__third_fold .search-wrap {
  position: relative;
  width: 100%;
}

.blog__third_fold .search-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.55;
  pointer-events: none;
}

.blog__third_fold .search-wrap input[type="search"] {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--colour-6);
  border-radius: 999px;
  background-color: var(--colour-4);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--colour-5);
}

.blog__third_fold .search-wrap input[type="search"]::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

.blog__fourth_fold {
  padding: 40px min(5vw, 50px) 64px;
}

.blog__fourth_fold > .content {
  max-width: 1100px;
  margin: 0 auto;
}

.blog__fourth_fold .article-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.blog__fourth_fold .article-cards > .card {
  display: flex;
  flex-direction: column;
}

.blog__fourth_fold .article-cards > .card[hidden] {
  display: none;
}

.blog__fourth_fold .card-media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.blog__fourth_fold .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.blog__fourth_fold .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog__fourth_fold .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog__fourth_fold .tag {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--colour-4);
  background-color: var(--color-dark-blue);
}

.blog__fourth_fold .tag--general { background-color: var(--color-red); }
.blog__fourth_fold .tag--tips { background-color: var(--color-light-blue); }
.blog__fourth_fold .tag--english { background-color: var(--color-dark-blue); }

.blog__fourth_fold .date {
  font-size: 0.8rem;
  color: var(--color-light-blue);
  white-space: nowrap;
}

.blog__fourth_fold .card-body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.6em;
}

.blog__fourth_fold .card-body h3 a {
  color: var(--color-dark-blue);
}

.blog__fourth_fold .card-body h3 a:hover {
  color: var(--color-red);
}

.blog__fourth_fold .card-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-light-blue);
}

.blog__fifth_fold {
  padding: 0 min(5vw, 50px) 80px;
}

.blog__fifth_fold > .content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  border-radius: 28px;
  background-color: var(--color-dark-blue);
  text-align: center;
}

.blog__fifth_fold h2 {
  margin: 0 0 1.5rem;
  color: var(--colour-4);
  font-size: 2rem;
  font-weight: 800;
}

.blog__fifth_fold .newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
}

.blog__fifth_fold .newsletter-form input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  background-color: var(--colour-4);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--colour-5);
}

.blog__fifth_fold .newsletter-form input[type="email"]::placeholder {
  color: #9CA3AF;
  opacity: 1;
}

.blog__fifth_fold .newsletter-form button {
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background-color: var(--color-yellow);
  color: var(--color-dark-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.blog__fifth_fold .newsletter-form button:hover {
  background-color: var(--colour-4);
}

/* ==========================================================================
   Pagination (shared: blog.html, resources.html)
   ========================================================================== */
.pagination {
  display: flex;
  flex-basis: 100%; 
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 3rem;
}

.pagination[hidden] {
  display: none;
}

.pagination .page-num,
.pagination .page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--colour-6);
  border-radius: 12px;
  background-color: var(--colour-4);
  color: var(--colour-5);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.pagination .page-num:hover,
.pagination .page-arrow:hover {
  border-color: var(--color-light-blue);
  color: var(--color-light-blue);
}

.pagination .page-num.is-active {
  background-color: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
  color: var(--colour-4);
}

.pagination .page-arrow:disabled {
  opacity: 0.4;
  cursor: default;
  border-color: var(--colour-6);
  color: var(--colour-5);
}

.no-results {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--colour-5);
}

/* ==========================================================================
   Product archive (resources.html)
   ========================================================================== */
 .hero1 {
   position: relative;
   z-index: 1;
   max-width: 1400px;
   margin: 0 auto;
   padding: 0 min(5vw, 50px);
   display: flex;
   align-items: center;
   min-height: 420px;
 }

 .hero1 .text {
   text-align: left;
   max-width: 260px;
   padding: 2rem 0;
 }

.hero--resources .hero1 .text h1 {
  color: var(--color-dark-blue);
}

.hero--resources .hero1 .text h1 span {
  color: var(--color-red);
}

.resources__second_fold {
  padding: 48px min(5vw, 50px) 80px;
}

.resources__second_fold > .content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.resources__second_fold .filters {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resources__second_fold .filter-group .filter-label {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colour-5);
}

.resources__second_fold .check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--colour-5);
  cursor: pointer;
}

/* Checked state is a solid fill, not a tick — so the native control is replaced. */
.resources__second_fold .check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--colour-6);
  border-radius: 4px;
  background-color: var(--colour-4);
  cursor: pointer;
}

.resources__second_fold .check input[type="checkbox"]:checked {
  background-color: var(--color-light-blue);
  border-color: var(--color-light-blue);
}

.resources__second_fold .catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--colour-6);
}

.resources__second_fold .result-count {
  margin: 0;
  font-size: 0.9rem;
  color: var(--colour-5);
}

.resources__second_fold .result-count strong {
  color: var(--color-dark-blue);
}

.resources__second_fold .sort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9CA3AF;
}

.resources__second_fold .sort select {
  border: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  cursor: pointer;
}

.resources__second_fold .product-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.resources__second_fold .product-cards > .card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--colour-4);
  box-shadow: 0 4px 24px var(--shadow-navy-lg);
}

.resources__second_fold .product-cards > .card[hidden] {
  display: none;
}

.resources__second_fold .card-media {
  position: relative;
}

.resources__second_fold .card-media a>img,
.resources__second_fold .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.resources__second_fold .card-media .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--colour-4);
}

.resources__second_fold .badge--bestseller { background-color: var(--color-red); }
.resources__second_fold .badge--popular { background-color: var(--color-red); }
.resources__second_fold .badge--new { background-color: var(--color-dark-blue); }

.resources__second_fold .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.5rem;
}

.resources__second_fold .card-body .eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
}

.resources__second_fold .card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark-blue);
}

.resources__second_fold .card-body .desc {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--colour-5);
}

.resources__second_fold .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.resources__second_fold .price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark-blue);
}

.resources__second_fold .stars {
  display: inline-flex;
  gap: 2px;
  font-size: 0.85rem;
  color: var(--color-red);
}

@media screen and (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero1 {
    min-height: auto;
    align-items: flex-start;
  }

  .hero1 .text {
    max-width: none;
    width: 100%;
  }

  .hero1 .text h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
  }

  .hero1 .text h1,
  .hero1 .text .standfirst,
  .hero.hero--team .hero1 .text .hero-subtitle {
    text-shadow: none;
  }

  .hero::before {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.72) 50%,
      rgba(255, 255, 255, 0.55) 100%
    );
  }

  .schedule__first_fold .calendar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .schedule__first_fold .day-col {
    flex: 0 0 min(78vw, 220px);
    scroll-snap-align: start;
  }

  .schedule__first_fold .list-head {
    display: none;
  }

  .schedule__first_fold .list-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.25rem;
  }

  .schedule__first_fold .cell.action {
    text-align: left;
    margin-top: 0.5rem;
  }

  .schedule__first_fold .cell.action .book-btn {
    width: 100%;
  }
}

/* Responsive */
@media screen and (min-width: 501px) {
  .hero.hero--team .hero1 .text .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media screen and (min-width: 600px) {
  .our_team__second_fold .solution-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule__first_fold .filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog__fourth_fold .article-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources__second_fold .product-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 769px) {
  .hero {
    background-position: center top;
    min-height: 580px;
  }

  .hero1 {
    min-height: 480px;
  }

  .hero1 .text {
    max-width: 540px;
  }

  .hero.hero--team .hero1 {
    align-items: flex-start;
    padding-top: 1.5rem;
  }

  .hero.hero--team .hero1 .text {
    max-width: 42%;
    padding: 0 1rem 0 0;
  }

  .hero.hero--team .hero1 .text h1,
  .hero.hero--team .hero1 .text .hero-subtitle,
  .hero.hero--team .hero1 .text .standfirst {
    text-shadow: none;
  }

  .hero1 .text h1 {
    font-size: 2.75rem;
  }

  .hero.hero--team .hero1 .text h1 {
    font-size: 3rem;
  }

  .hero.hero--team .hero1 .text .hero-subtitle {
    font-size: 1.35rem;
  }

  .methodology__second_fold .solution-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .our_team__fifth_fold h2 {
    font-size: 2.5rem;
  }

  .our_team__second_fold .intro {
    max-width: none;
  }

  .schedule__first_fold .intro-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .schedule__first_fold .text {
    flex: 1;
    min-width: 0;
    padding-right: 1.5rem;
  }

  .schedule__first_fold .text p {
    max-width: none;
  }

  .schedule__first_fold .view-toggle {
    align-self: auto;
    flex-shrink: 0;
  }

  .schedule__first_fold .filters {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
  }

  .schedule__first_fold .filter-group.subject-filter {
    grid-column: span 1;
  }

  .blog__first_fold h1 {
    font-size: 3.25rem;
  }

  .blog__second_fold > .content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .blog__second_fold .featured-copy h2 {
    font-size: 2.2rem;
  }

  .blog__third_fold > .content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .blog__third_fold .search-wrap {
    width: auto;
    min-width: 280px;
  }

  .blog__fourth_fold .article-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog__fifth_fold > .content {
    padding: 64px 40px;
  }

  .blog__fifth_fold h2 {
    font-size: 2.5rem;
  }

  .resources__second_fold > .content {
    grid-template-columns: 230px 1fr;
    gap: 3rem;
  }

  .resources__second_fold .product-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tutor bios — stacked + centered image below desktop */
@media screen and (max-width: 1023px) {
  .our_team__fourth_fold_type1 .profile-header,
  .our_team__fourth_fold_type2 .profile-header {
    text-align: center;
  }

  .our_team__fourth_fold_type1 .profile-media,
  .our_team__fourth_fold_type2 .profile-media {
    max-width: 420px;
  }

  .our_team__fourth_fold_type1 .profile-media img,
  .our_team__fourth_fold_type2 .profile-media img {
    height: auto;
    width: 100%;
  }

  .schedule__first_fold .calendar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .schedule__first_fold .day-col {
    flex: 0 0 min(78vw, 220px);
    scroll-snap-align: start;
  }
}

@media screen and (min-width: 1024px) {
  .hero1 .text h1 {
    font-size: 3rem;
  }

  .hero.hero--team .hero1 .text h1 {
    font-size: 3.5rem;
  }

  .hero.hero--team .hero1 .text .hero-subtitle {
    font-size: 1.5rem;
  }

  .our_team__second_fold .solution-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .our_team__fourth_fold_type1 > .content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      ". profile-header"
      "profile-media profile-copy";
    column-gap: 3rem;
    row-gap: 0.75rem;
    align-items: stretch;
  }

  .our_team__fourth_fold_type2 > .content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "profile-header ."
      "profile-copy profile-media";
    column-gap: 3rem;
    row-gap: 0.75rem;
    align-items: stretch;
  }

  .our_team__fourth_fold_type1 .profile-header,
  .our_team__fourth_fold_type2 .profile-header {
    grid-area: profile-header;
    text-align: left;
  }

  .our_team__fourth_fold_type1 .profile-media,
  .our_team__fourth_fold_type2 .profile-media {
    grid-area: profile-media;
    width: 100%;
    max-width: 500px;
    justify-self: center;
    display: flex;
  }

  .our_team__fourth_fold_type1 .profile-copy,
  .our_team__fourth_fold_type2 .profile-copy {
    grid-area: profile-copy;
  }

  .our_team__fourth_fold_type1 .profile-media img,
  .our_team__fourth_fold_type2 .profile-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
  }

  .our_team__fourth_fold_type1 .profile-copy > .designation,
  .our_team__fourth_fold_type2 .profile-copy > .designation {
    font-size: 1rem;
  }

  .our_team__fifth_fold h2 {
    font-size: 2.75rem;
  }

  .schedule__first_fold .text h1 {
    font-size: 2.5rem;
  }

  .schedule__second_fold > .content {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    justify-content: center;
  }

  .schedule__second_fold .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .schedule__second_fold > .content > .card {
    margin-top: 0;
  }

  .schedule__second_fold .text h2 {
    font-size: 2.35rem;
  }

  .schedule__second_fold .text p {
    font-size: 1.05rem;
  }
}
