:root{
  --navy:#0b1f3a;
  --navy-dark:#071528;
  --gold:#b8860b;
  --gold-light:#d4a637;
  --white:#ffffff;
  --off:#f5f6f8;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:'Georgia',serif;
  background:var(--white);
  color:var(--navy-dark);
  line-height:1.6;
}
h1,h2,h3{font-family:'Georgia',serif;font-weight:700;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}
.container{max-width:1100px;margin:0 auto;padding:0 24px;}

/* Header */
header{
  background:var(--navy);
  color:var(--white);
  position:sticky;top:0;z-index:50;
  box-shadow:0 2px 10px rgba(0,0,0,0.2);
}
nav{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;max-width:1100px;margin:0 auto;}
.logo{display:flex;align-items:center;gap:10px;font-size:1.4rem;font-weight:700;letter-spacing:0.5px;}
.logo img{height:36px;width:36px;}
.logo span{color:var(--gold-light);}
.navlinks{display:flex;gap:28px;font-size:0.95rem;}
.navlinks a{opacity:0.9;transition:opacity 0.2s,color 0.2s;}
.navlinks a:hover{opacity:1;color:var(--gold-light);}
.menu-toggle{display:none;background:none;border:none;color:var(--white);font-size:1.6rem;cursor:pointer;}

/* Hero */
.hero{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-dark) 100%);
  color:var(--white);
  padding:80px 24px 90px;
  text-align:center;
  position:relative;
}
.hero::after{
  content:"";
  display:block;
  height:4px;
  width:90px;
  background:var(--gold);
  margin:28px auto 0;
}
.hero h1{font-size:2.6rem;margin-bottom:16px;}
.hero p{font-size:1.15rem;max-width:560px;margin:0 auto;opacity:0.9;}
.btn{
  display:inline-block;
  margin-top:32px;
  padding:14px 34px;
  background:var(--gold);
  color:var(--navy-dark);
  font-weight:700;
  border-radius:3px;
  letter-spacing:0.5px;
  border:none;
  cursor:pointer;
  font-family:inherit;
  font-size:1rem;
  transition:background 0.2s,transform 0.2s;
}
.btn:hover{background:var(--gold-light);transform:translateY(-2px);}
.btn-outline{
  border:2px solid var(--white);
  color:var(--white);
  background:transparent;
  margin-left:14px;
}
.btn-outline:hover{background:var(--white);color:var(--navy);}

section{padding:70px 24px;}
.section-title{text-align:center;margin-bottom:12px;color:var(--navy);font-size:2rem;}
.section-sub{text-align:center;color:#555;max-width:600px;margin:0 auto 48px;}
.gold-underline{width:60px;height:3px;background:var(--gold);margin:14px auto 0;}

/* Courses */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.card{
  background:var(--off);
  border-top:4px solid var(--gold);
  padding:32px 26px;
  border-radius:4px;
  transition:transform 0.2s,box-shadow 0.2s;
}
.card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(11,31,58,0.12);}
.card h3{color:var(--navy);margin-bottom:10px;font-size:1.2rem;}
.card p{color:#555;font-size:0.95rem;}
.card .price{color:var(--gold);font-weight:700;font-size:1.3rem;margin-top:14px;}

/* Why us */
.why{background:var(--navy);color:var(--white);}
.why .section-title,.why .section-sub{color:var(--white);}
.why .section-sub{opacity:0.85;}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:20px;}
.why-item{text-align:center;padding:20px;}
.why-icon{
  width:56px;height:56px;border-radius:50%;
  border:2px solid var(--gold);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;
  color:var(--gold-light);font-size:1.4rem;font-weight:700;
}
.why-item h3{font-size:1.05rem;margin-bottom:8px;color:var(--gold-light);}
.why-item p{font-size:0.9rem;opacity:0.85;}

/* Testimonials */
.testimonials{background:var(--off);}
.tgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.tcard{
  background:var(--white);
  padding:28px;
  border-radius:4px;
  border-left:4px solid var(--gold);
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
}
.tcard p{font-style:italic;color:#444;font-size:0.95rem;}
.tcard .name{margin-top:14px;font-weight:700;color:var(--navy);font-style:normal;}

/* Gallery */
.gallery{background:var(--white);}
.ggrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.ggrid .gitem{
  overflow:hidden;border-radius:4px;
  border:2px solid var(--off);
  aspect-ratio:4/3;
}
.ggrid .gitem img{width:100%;height:100%;object-fit:cover;transition:transform 0.3s;}
.ggrid .gitem:hover img{transform:scale(1.05);}

/* Contact */
.contact{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-dark) 100%);
  color:var(--white);
  text-align:center;
}
.contact .section-title,.contact .section-sub{color:var(--white);}
.contact .section-sub{opacity:0.85;}
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px;text-align:center;}
.contact-item h3{color:var(--gold-light);margin-bottom:8px;font-size:1rem;}
.contact-item p{opacity:0.9;font-size:0.95rem;}

.contact-form{max-width:520px;margin:40px auto 0;text-align:left;}
.contact-form label{display:block;font-size:0.85rem;margin-bottom:6px;opacity:0.85;}
.contact-form input,.contact-form textarea{
  width:100%;padding:12px 14px;margin-bottom:18px;
  border:1px solid rgba(255,255,255,0.3);
  background:rgba(255,255,255,0.08);
  color:var(--white);
  border-radius:3px;
  font-family:inherit;font-size:0.95rem;
}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:rgba(255,255,255,0.5);}
.contact-form textarea{resize:vertical;min-height:100px;}
.form-status{margin-top:14px;font-size:0.9rem;color:var(--gold-light);min-height:20px;}

/* Footer */
footer{
  background:var(--navy-dark);
  color:var(--white);
  text-align:center;
  padding:28px 24px;
  font-size:0.85rem;
  opacity:0.75;
}
footer span{color:var(--gold-light);}

/* Back to top */
#backToTop{
  position:fixed;bottom:24px;right:24px;
  background:var(--gold);color:var(--navy-dark);
  width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.2rem;font-weight:700;
  border:none;cursor:pointer;
  opacity:0;visibility:hidden;
  transition:opacity 0.3s,visibility 0.3s,background 0.2s;
  z-index:60;
}
#backToTop.show{opacity:1;visibility:visible;}
#backToTop:hover{background:var(--gold-light);}

@media(max-width:800px){
  .grid3,.grid4,.tgrid,.contact-grid,.ggrid{grid-template-columns:1fr;}
  .navlinks{
    position:absolute;top:100%;left:0;right:0;
    background:var(--navy);
    flex-direction:column;
    padding:0;max-height:0;overflow:hidden;
    transition:max-height 0.3s ease;
  }
  .navlinks.open{max-height:300px;padding:12px 24px;}
  .navlinks a{padding:10px 0;}
  .menu-toggle{display:block;}
  .hero h1{font-size:2rem;}
}
