:root{
  --text:#111;
  --accent:#1f2933;
  --light:#f5f5f4;
  --muted:#6b7280;
  --max:1200px;
  --section-gap:0px;
  --section-padding:0;
  --title-size:36px;
  --title-margin:20px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:Inter, sans-serif;
  color:var(--text);
  line-height:1.6;
  background:white;
}

.container{
  max-width:var(--max);
  margin:auto;
  padding:0 24px;
  width:100%;
}

/* HEADER */
header{
  position:fixed;
  width:100%;
  top:0;
  background:white;
  border-bottom:1px solid #eee;
  z-index:10;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:72px;
}

.logo{
  font-family:"Playfair Display", serif;
  font-size:22px;
}

.logo a{
  text-decoration:none;
  color:inherit;
}

nav ul{
  display:flex;
  list-style:none;
  gap:32px;
  font-size:14px;
}

nav a{
  text-decoration:none;
  color:var(--text);
}

nav a:hover{
  opacity:.7;
}

/* MAIN */
main{
  width:100%;
}

/* SECTIONS */
.section{
  width:100%;
  padding:var(--section-gap) 0;
  display:flex;
  flex-direction:column;
  gap:var(--section-gap);
}

.section.courses{
  padding-top:10px;
  padding-left:20px;
}

.section-title{
  font-family:"Playfair Display", serif;
  font-size:var(--title-size);
  margin-bottom:var(--title-margin);
  padding-left:0;
}

.services-hero{
  width:100%;
  padding:100px 0 30px;
  display:flex;
  flex-direction:column;
  gap:var(--section-gap);
}

.services-hero h1{
  font-family:"Playfair Display",serif;
  font-size:48px;
  margin-bottom:10px;
}

.services-detail{
  padding-left:20px;
  display:flex;
  flex-direction:column;
  gap:var(--section-gap);
}

.services-detail h2{
  font-family:"Playfair Display",serif;
  font-size:var(--title-size);
  margin-bottom:0;
}

.service-block{
  width:100%;
  margin-bottom:10px;
  padding-left:30px;
}

.service-block ul{
  padding-left:20px;
}

.service-block li{
  color:var(--muted);
  line-height:1.7;
  text-align:justify;
  hyphens:auto;
  margin-bottom:6px;
}

/* COURSES GALLERY */
.courses-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:20px;
  margin-top:20px;
}

.course-link{
  display:block;
  text-decoration:none;
}

.course-link img{
  width:100%;
  display:block;
  aspect-ratio:16/9;
  object-fit:cover;
  border:1px solid #eee;
  transition:transform .4s, box-shadow .4s;
}

.course-link:hover img{
  transform:scale(1.04);
  box-shadow:0 12px 24px rgba(0,0,0,.08);
}

.lightbox{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  z-index:1000;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.lightbox.active{
  display:flex;
}

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.85);
}

.lightbox-content{
  position:relative;
  z-index:1;
  width:min(100%, 1000px);
  max-height:90vh;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 64px;
  align-items:center;
  gap:20px;
  padding:24px;
  background:rgba(255,255,255,0.06);
  border-radius:24px;
  overflow:hidden;
}

.lightbox-frame{
  position:relative;
  overflow:hidden;
}

.lightbox-image{
  width:100%;
  height:auto;
  max-height:80vh;
  object-fit:contain;
  border-radius:14px;
}


.lightbox-close,
.lightbox-prev,
.lightbox-next{
  background:white;
  border:none;
  color:#111;
  width:44px;
  height:44px;
  font-size:24px;
  cursor:pointer;
  border-radius:999px;
  box-shadow:0 8px 18px rgba(0,0,0,.15);
}

.lightbox-close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:2;
}

.lightbox-prev,
.lightbox-next{
  display:flex;
  align-items:center;
  justify-content:center;
}

@media (max-width:700px){
  .lightbox-content{
    grid-template-columns:1fr;
  }

  .lightbox-prev,
  .lightbox-next{
    width:40px;
    height:40px;
  }
}

/* FOOTER */
footer{
  padding:50px 0;
  font-size:14px;
  color:var(--muted);
  border-top:1px solid #eee;
  margin-top:60px;
}

@media (max-width:900px){
  .nav{
    flex-direction:column;
    height:auto;
    padding:14px 0;
    gap:12px;
  }

  nav ul{
    flex-wrap:wrap;
    justify-content:center;
    gap:16px;
  }

  .services-hero h1{
    font-size:36px;
  }

  .services-detail h2{
    font-size:22px;
  }

  .service-block{
    padding-left:10px;
  }

  .service-block li{
    font-size:15px;
  }

  .courses-gallery{
    gap:16px;
  }

  .course-link{
    width:100%;
  }

  .container{
    padding:0 18px;
  }
}


