/* ------------------------
GLOBAL RESET
------------------------ */

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
font-family:system-ui;
margin:0;

background:
radial-gradient(circle at 10% 20%, #1e293b 0%, transparent 40%),
radial-gradient(circle at 90% 80%, #1d4ed8 0%, transparent 40%),
#0f172a;

color:#111;
}

/* ------------------------
HERO.he SECTION
------------------------ */

.hero{
padding:140px 20px 120px;
text-align:center;
color:white;
max-width:900px;
margin:auto;
}

.hero h1{
font-size:52px;
margin-bottom:20px;
}

.hero p{
font-size:20px;
color:#cbd5e1;
}

/* ------------------------
MAIN LAYOUT
------------------------ */

main{
  padding:40px 20px;
}

/* ------------------------
SECTION CARDS
------------------------ */

.section-card{

  background:white;

  border-radius:18px;

  padding:60px 50px;

  max-width:1200px;

  margin:60px auto;

  border:1px solid rgba(0,0,0,0.08);

  box-shadow:0 20px 60px rgba(0,0,0,0.15);

  opacity:1;
  transform:translateY(20px);
  transition:all .6s ease;
}

.section-card.show{
  opacity:1;
  transform:translateY(0);
}

.section-card h2{
  margin-bottom:20px;
}

/* ------------------------
COURSES LIST
------------------------ */

.course-list{
  display:flex;
  flex-wrap:wrap;
  gap:15px;
}

.course-list span{

  background:#f1f5f9;

  padding:10px 15px;

  border-radius:8px;

  font-size:14px;
}

/* ------------------------
COUNTRY CARDS
------------------------ */

.country-grid{

  display:grid;

  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));

  gap:20px;

}

.country-item{

  border-radius:12px;

  overflow:hidden;

  cursor:pointer;

  box-shadow:0 10px 20px rgba(0,0,0,0.15);

  transition:transform .3s ease;

}

.country-item:hover{
  transform:translateY(-5px);
}

.country-item img{

  width:100%;
  height:140px;

  object-fit:cover;

}

.country-item{
  transition:transform .3s ease;
}

.country-item:hover{
  transform:translateY(-8px);
}

.country-item p{

  display: none;

  padding:10px;

  text-align:center;

  background:rgb(255, 255, 255);

  font-weight:600;

}

/* ------------------------
FORM
------------------------ */

form{

  display:flex;

  flex-direction:column;

  gap:15px;

  max-width:500px;

}

input{

  padding:12px;

  border-radius:8px;

  border:1px solid #cbd5e1;

}

button{

  padding:12px;

  border:none;

  border-radius:8px;

  background:#2563eb;

  color:white;

  font-weight:600;

  cursor:pointer;

}

button:hover{
  opacity:.9;
}

/* ------------------------
FOOTER
------------------------ */

footer{

  text-align:center;

  padding:30px;

  color:#94a3b8;

}

html{
  scroll-behavior: smooth;
}

.course-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-top:25px;
}

.course-card{
background:#f8fafc;
padding:25px;
border-radius:12px;
border:1px solid rgba(0,0,0,0.05);
}

.features-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
margin-top:20px;
}

.cta-btn{
margin-top:30px;
padding:14px 28px;
background:#2563eb;
color:white;
border:none;
border-radius:10px;
font-size:16px;
cursor:pointer;
}

.country-item img{
  width:100%;
  height:100px;
  object-fit:cover;
  display:block;
}

img{
  max-width:80%;
  height:auto;
}

.country-item img{
  width:100%;
  height:160px;
  object-fit:cover;
  transition:transform .4s ease;
}

.country-item:hover img{
  transform:scale(1.05);
}

/* study destinations use .country-card; replicate behavior */
.country-card{
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(0,0,0,0.15);
  transition:transform .3s ease;
}

.country-card:hover{
  transform:translateY(-8px);
}

.country-card img{
  width:100%;
  height:160px;
  object-fit:cover;
  transition:transform .4s ease;
}

.country-card:hover img{
  transform:scale(1.05);
}

/* hide the textual label beneath the image */
.country-card h3{
  display:none;
}

body.country-page{

background: linear-gradient(
135deg,
#020617,
#1e293b,
#1d4ed8
);

min-height:100vh;

}

.country-hero{

text-align:center;

padding:120px 20px;

color:white;

}

.country-hero h1{
font-size:48px;
margin-bottom:20px;
}

.section-card{
  background:white;
  border-radius:16px;
  padding:40px;
  max-width:1100px;
  margin:40px auto;
  box-shadow:0 15px 40px rgba(0,0,0,0.2);
}

.uni-slider{
  display:flex;
  /* positive gap so cards sit side-by-side instead of overlapping */
  gap:20px;
  overflow-x:auto;
  padding:20px 10px 30px;
  scroll-snap-type:x mandatory;
}

.uni-card{
  min-width:320px;
  /* let the card grow with its contents rather than forcing a fixed height */
  height:auto;
  background:white;
  border-radius:16px;
  /* content should be visible; remove clipping unless you intentionally want to crop */
  overflow:visible;
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
  scroll-snap-align:center;
  transition:transform .35s ease;
  position:relative;
}

/* optional wrapper and arrows for slider navigation */
.slider-wrapper{
  position:relative;
}

.slider-wrapper .arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.5);
  color:white;
  border:none;
  width:40px;
  height:40px;
  border-radius:50%;
  cursor:pointer;
  z-index:2;
}

.slider-wrapper .arrow.left{ left:10px; }
.slider-wrapper .arrow.right{ right:10px; }


.uni-card:hover{
transform:translateY(-10px) scale(1.03);
}

.uni-card img{

width:100%;

height:220px;

object-fit:cover;

}

.uni-card h3{
padding:16px 18px 6px;
}

.uni-card p{
padding:0 18px 18px;
font-size:14px;
color:#64748b;
line-height: 1.5;
}

.uni-card img{

width:100%;
height:190px;

object-fit:cover;

}

.uni-info{

padding:18px;

}

.uni-info h3{
margin-bottom:8px;
}

.uni-info p{
color:#64748b;
font-size:14px;
}

/* =========================
   Popup / Apply Form
========================= */

.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}

.form-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.form-card {
  background: white;
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.form-card h2 {
  margin-top: 0;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  color: #334155;
}
