/* Importing Google fonts - Inter */
/*
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(#EFEFFF, #CCCBFF);
}
*/
.wrapper {
  max-width: 100%;
  padding: 20px 10px;
  margin: 0 0 35px;
  overflow: hidden;
}

.wrapper .card {
  background: #fff;
  display: flex;
  height: auto;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.wrapper .card:hover {
  transform: translateY(-10px);
}

.card .card-image {
  position: relative;
}

.card .card-image img {
  width: 100%;
  padding: 10px;
  border-radius: 22px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.card .card-image .card-tag {
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 0.75rem;
  color: #6366f1;
  padding: 5px 15px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 25px 25px;
}

.card .card-content .card-title {
  color: #111111;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.card .card-content .card-text {
  color: #747474;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card .card-footer {
  display: flex;
  margin-top: auto;
  align-items: center;
  padding-top: 15px;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.card .card-footer .card-profile {
  display: flex;
  align-items: center;
}

.card .card-profile .card-profile-info {
  display: flex;
  flex-direction: column;
}

.card .card-profile .card-profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #202020;
}

.card .card-profile .card-profile-role {
  font-size: 0.8rem;
  color: #7A7A7A;
}

.card .card-profile img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card .card-button {
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.card .card-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.3);
}

.wrapper .swiper-pagination-bullet {
  height: 15px;
  width: 15px;
  opacity: 1;
  overflow: hidden;
  position: relative;
  background: #B1B3F8;
}

.wrapper .swiper-pagination-bullet-active {
  background: #a4a7fd;
}

/* Auto-play loading indicator */
.wrapper .swiper-pagination-bullet-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #6366f1;
  transform-origin: left center;
  transform: scaleX(0);
  animation: autoplay-loading 5s linear forwards;
}

.container:hover .wrapper .swiper-pagination-bullet-active::before {
  animation-play-state: paused;
}

@keyframes autoplay-loading {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

.wrapper :where(.swiper-button-prev, .swiper-button-next) {
  color: #6366f1;
  margin-top: -35px;
  transition: all 0.3s ease;
  width: 2px;
}

.wrapper :where(.swiper-button-prev, .swiper-button-next):hover {
  color: #8b5cf6;
}

/* Responsive media query code for small screens */
@media (max-width: 768px) {
  .wrapper {
    margin: 0 0 25px;
  }

  .wrapper :where(.swiper-button-prev, .swiper-button-next) {
    display: none;
  }
}
/* ---- the articles element (site-articles): heading, three-line text, "All articles" link ---- */
.sa-articles { max-width: 100%; margin: 40px auto; padding: 0 16px; box-sizing: border-box; }
.sa-articles .section-title { text-align: center; color: #01658c; font: 700 24px Arial, sans-serif; margin: 0 0 6px; }
html[lang=bn] .sa-articles .section-title, html[lang=bn] .sa-articles .card, html[lang=bn] .sa-grid .card { font-family: "NSB Digit", "Noto Serif Bengali Digit", "Noto Serif Bengali", serif; }
.sa-articles .container { max-width: 1280px; margin: 0 auto; }
.sa-articles .card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sa-articles .card-title, .sa-grid .card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sa-articles .card-text, .sa-grid .card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sa-articles .swiper-slide { height: auto; }
.sa-all { text-align: center; margin-top: -10px; }
.sa-all a { color: #01658c; font-weight: 700; text-decoration: none; }
.sa-all a:hover { text-decoration: underline; }
.sa-grid .card { background: #fff; display: flex; flex-direction: column; border-radius: 20px; box-shadow: 0 10px 10px rgba(0, 0, 0, .05); overflow: hidden; }
.sa-grid .card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* articles: room above (like the students row) and a small "Articles" tag at the top left */
section.sa-articles.cards-section { margin-top: 70px; }
.sa-eyebrow { max-width: 1280px; margin: 0 auto 4px; }
.sa-eyebrow span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px; background: #eef2ff; color: #4f46e5; font: 600 12px/1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
html[lang=bn] .sa-eyebrow span { font-family: "NSB Digit", "Noto Serif Bengali Digit", "Noto Serif Bengali", serif; letter-spacing: 0; text-transform: none; font-size: 13px; }

/* "All Articles" tag: a link at the right of the heading's row (below it on a phone) */
.sa-head { position: relative; max-width: 1280px; margin: 0 auto; }
.sa-head .sa-eyebrow { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 5px 11px; border-radius: 999px; background: #eef2ff; color: #4f46e5; font: 600 12px/1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.sa-head .sa-eyebrow:hover { background: #e0e7ff; }
html[lang=bn] .sa-head .sa-eyebrow { font-family: "NSB Digit", "Noto Serif Bengali Digit", "Noto Serif Bengali", serif; letter-spacing: 0; text-transform: none; font-size: 13px; }
@media (max-width: 640px) { .sa-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 8px; } .sa-head .sa-eyebrow { position: static; transform: none; } }

/* "All Articles": a small raised tag right after the title word, like a superscript (overrides the row layout above) */
.sa-articles .section-title { position: relative; display: block; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; padding-right: 0; }
.sa-articles .section-title .sa-eyebrow { position: static; display: inline-block; transform: none; margin: 0 0 0 6px; padding: 3px 9px; vertical-align: super; font-size: 10px; line-height: 1; white-space: nowrap; position: relative; top: -2px; }
.sa-articles .section-title .sa-eyebrow svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
html[lang=bn] .sa-articles .section-title .sa-eyebrow { font-size: 11px; }
@media (max-width: 640px) { .sa-articles .section-title .sa-eyebrow { margin-left: 4px; } }
.sa-articles .section-title .sa-eyebrow { background: #eef2ff; color: #4f46e5; border-radius: 999px; text-decoration: none; font-family: Arial, sans-serif; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: 10.5px; }
.sa-articles .section-title .sa-eyebrow:hover { background: #e0e7ff; }
html[lang=bn] .sa-articles .section-title .sa-eyebrow { font-family: "NSB Digit", "Noto Serif Bengali Digit", "Noto Serif Bengali", serif; letter-spacing: 0; text-transform: none; font-size: 12px; }
/* the "All Articles" tag: icon and text on one line, icon in front */
.sa-articles .section-title .sa-eyebrow { display: inline-flex; align-items: center; gap: 4px; }
.sa-articles .section-title .sa-eyebrow svg { display: inline-block; flex: 0 0 auto; margin: 0; vertical-align: middle; }
/* four cards across are narrow: keep the button on one line and let the author drop beneath if needed */
.sa-articles .card-footer, .sa-grid .card-footer { flex-wrap: wrap; gap: 8px 10px; }
.sa-articles .card-button, .sa-grid .card-button { white-space: nowrap; flex: 0 0 auto; }
.sa-articles .card-profile, .sa-grid .card-profile { min-width: 0; flex: 1 1 auto; }
/* cards a little narrower: a slimmer scroller block (about 360px per card at three across) */
.sa-articles .container { max-width: 1160px; }
/* four across on wide screens: a wider block so each card stays about 345px */
.sa-articles .container { max-width: 1500px; }
/* widest the cards can be at four across: use the full screen width with small side margins */
section.sa-articles.cards-section { padding-left: 8px; padding-right: 8px; }
.sa-articles .container { max-width: 1800px; }
.sa-articles .wrapper { padding-left: 4px; padding-right: 4px; }
/* "Read more" button text is white */
.sa-articles .card .card-button, .sa-articles .card .card-button:hover, .sa-grid .card .card-button, .sa-grid .card .card-button:hover { color: #fff !important; text-decoration: none; }
/* "Read more" button: normal weight (bold looks poor in Bangla) */
.sa-articles .card .card-button, .sa-grid .card .card-button { font-weight: 400 !important; }
