:root{ --accent:#1E90FF; --radius:16px; }

.study-sec{ max-width:1280px; margin:0 auto; padding:8px 28px 0; }
@media (max-width:1024px){ .study-sec{ padding-inline:24px; } }
@media (max-width:768px) { .study-sec{ padding-inline:20px; } }
@media (max-width:480px) { .study-sec{ padding-inline:12px; } }

.section-title{ text-align:center; font-size:40px; font-weight:800; margin:0 0 12px; }
.section-title::after{ content:""; display:block; width:64px; height:4px; margin:12px auto 0; border-radius:4px; background:var(--accent); }

.study-swiper{ position:relative; padding:8px 0 32px; overflow:visible; }
.study-swiper .swiper-wrapper{ align-items:stretch; }
.study-swiper:not(.swiper-initialized) .swiper-wrapper{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:20px; }

.study-swiper .swiper-slide{ width:340px; display:flex; }
@media (max-width:1200px){ .study-swiper .swiper-slide{ width:300px; } }
@media (max-width:992px) { .study-swiper .swiper-slide{ width:270px; } }
@media (max-width:820px) { .study-swiper .swiper-slide{ width:75vw; } }
@media (max-width:480px){ .study-swiper .swiper-slide{ width:86vw; } }

.study-card{ position:relative; width:100%; border-radius:var(--radius); overflow:hidden; box-shadow:0 6px 18px rgba(16,24,40,.12); }
.study-card img{ width:100%; height:220px; object-fit:cover; display:block; }
@media (max-width:1024px){ .study-card img{ height:210px; } }
@media (max-width:767px){ .study-card img{ height:200px; } }

.dot{ position:absolute; top:12px; right:12px; width:8px; height:8px; border-radius:50%; background:var(--accent); z-index:3; }

.overlay{ position:absolute; inset:0; z-index:2; background:linear-gradient(180deg, rgba(10,12,28,0) 40%, rgba(10,12,28,.5) 70%, rgba(10,12,28,.8) 100%); }
.top{ position:absolute; left:16px; top:16px; }
.country{ font-size:20px; font-weight:800; color:#fff; text-shadow:0 2px 6px rgba(0,0,0,.35); }

/* === Bottom-centered actions (Apply + Explore), evenly placed === */
.bottom-actions{
  position:absolute; left:16px; right:16px; bottom:16px;
  width:auto; display:flex; gap:12px;
  justify-content:center; align-items:center; flex-wrap:wrap;
  text-align:center;
}
.btn{
  box-sizing:border-box;
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; font-size:14px; font-weight:700; border-radius:999px; text-decoration:none;
  line-height:1; min-height:42px;
  flex:0 1 auto;       /* allow to grow to content but not overflow */
  white-space:nowrap;  /* keep text in one line */
  max-width:100%;      /* never exceed container */
}
.btn.primary{ background:var(--accent); color:#fff; }
.btn.primary:hover{ filter:brightness(1.06); }
.btn.ghost{ background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.35); color:#fff; }
.btn.ghost:hover{ background:rgba(255,255,255,.18); }

@media (max-width:640px){
  .btn{ min-width:140px; } /* make both buttons more even visually */
}

#ggsd4-swiper .swiper-button-prev, #ggsd4-swiper .swiper-button-next{
  top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%; background:#fff; color:#0a0a0a; box-shadow:0 4px 14px rgba(0,0,0,.12);
}
#ggsd4-swiper .swiper-button-prev:after, #ggsd4-swiper .swiper-button-next:after{ font-size:16px; }
@media (max-width:820px){
  #ggsd4-swiper .swiper-button-prev, #ggsd4-swiper .swiper-button-next{ width:36px; height:36px; }
  #ggsd4-swiper .swiper-button-prev:after, #ggsd4-swiper .swiper-button-next:after{ font-size:14px; }
}
