/* ===================================
   Master English — Custom Styles
   Primary: #f29326 | Font: Poppins
   Bootstrap-first: minimal overrides
=================================== */

/* --- Global --- */
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}

h1{
  font-size: 4rem;
}
h2{
  font-size: 3rem;
}
h3{
  font-size: 2.5rem;
}

/* --- Bootstrap primary colour override --- */
:root {
  --bs-primary:              #f29326;
  --bs-primary-rgb:          242, 147, 38;
  --bs-link-color:           #f29326;
  --bs-link-color-rgb:       242, 147, 38;
  --bs-link-hover-color:     #d97d15;
}

.text-primary   { color:            #f29326 !important; }
.bg-primary     { background-color: #f29326 !important; }
.border-primary { border-color:     #f29326 !important; }

.btn-primary {
  --bs-btn-bg:                 #fff;
  --bs-btn-border-color:       #fff;
  --bs-btn-color:              #f29326;
  --bs-btn-hover-bg:           #f29326;
  --bs-btn-hover-border-color: #f29326;
  --bs-btn-hover-color:        #fff;
  --bs-btn-active-bg:          #d97d15;
  --bs-btn-active-border-color:#d97d15;
  --bs-btn-active-color:       #fff;
}

.btn-secondary {
  --bs-btn-bg:                 #f29326;
  --bs-btn-border-color:       #f29326;
  --bs-btn-color:              #fff;
  --bs-btn-hover-bg:           #fff;
  --bs-btn-hover-border-color: #f29326;
  --bs-btn-hover-color:        #f29326;
  --bs-btn-active-bg:          #fff;
  --bs-btn-active-border-color:#f29326;
  --bs-btn-active-color:       #f29326;
}

.btn-outline-primary {
  --bs-btn-color:              #f29326;
  --bs-btn-border-color:       #f29326;
  --bs-btn-hover-bg:           #f29326;
  --bs-btn-hover-border-color: #f29326;
  --bs-btn-hover-color:        #fff;
}

/* --- Section spacing --- */
.py-section    { padding: 80px 0; }
.py-section-sm { padding: 56px 0; }

/* --- Section title underline --- */
.section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: #f29326;
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-title.text-start::after { margin-left: 0; }

/* --- Navbar social icons --- */
.nav-social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f29326;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, color .2s;
  text-decoration: none;
}
.nav-social:hover {
  background-color: #d97d15;
  color: #fff;
}

/* --- Navbar --- */
#main-nav .nav-link {
  color: #333;
  transition: color .2s;
}
#main-nav .nav-link:hover,
#main-nav .nav-link.active { color: #f29326 !important; }

/* --- Hero --- */
#hero {
  position: relative;
  line-height: 0;
}
#hero .hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  line-height: normal;
}

/* --- Feature icons --- */
.feature-icon {
  width: 100px;
  object-fit: contain;
}
.feature-text { color: #333333; }

/* --- Course section divider --- */
.course-divider {
  width: 150px;
  border-top: 4px solid #333;
  opacity: 1;
}

/* --- Course images --- */
.course-img {
}
#courses h4{
  min-height: 58px;
}

/* --- About logo --- */
#about{
  background: #F29326;
  background: linear-gradient(180deg,rgba(242, 147, 38, 1) 0%, rgba(255, 255, 255, 1) 100%);
}
#about h2{
  color: #ffffff;
}
.about-logo { max-width: 340px; }

/* --- Testimonials video thumb --- */
.video-thumb {
  position: relative;
  cursor: pointer;
}
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.32);
  transition: background .2s;
}
.play-btn i {
  font-size: 4rem;
  color: #fff;
  opacity: .9;
  transition: transform .2s;
}
.video-thumb:hover .play-btn { background: rgba(0,0,0,.42); }
.video-thumb:hover .play-btn i { transform: scale(1.1); }

/* --- Avatar circle (testimonials / happy students) --- */
.avatar-circle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Gallery --- */
.gallery-item {
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.gallery-item:hover img { transform: scale(1.06); }

/* --- Happy Students testimonial cards --- */
.testimonial-card {
  border: 1px solid #f29326;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}
.testimonial-card p{
  color: #666666;
  font-size: 1.15rem;
  line-height: 2;
}
.testimonial-quote img{
  width: 60px;
}

/* --- CTA Banner --- */
#cta-banner {
  background-image: url('images/join-us-background.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.ls-wide { letter-spacing: .15em; }

/* --- Achievement / Stats --- */
#achievement {
  background-image: url('images/achievement-background.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.stat-icon {
  width: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* --- Join Us CTA --- */
#join-us {
  background-image: url('images/join-us-background.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
#join-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* --- Contact section --- */
#contact .contact-input {
  background-color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
}
#contact .contact-input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.4);
}
#contact .contact-input::placeholder { color: #aaa; }

.contact-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f29326;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color .2s;
}
.contact-social:hover { background-color: #d97d15; color: #fff; }


/* --- Counter numbers --- */
.counter-num { font-variant-numeric: tabular-nums; }

/* --- Responsive --- */
@media (max-width: 991px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 2rem; }
}

@media (max-width: 767px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.5rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 1rem; }

  /* Hero: fix image height, overlay readable */
  #hero .hero-img {
    height: 480px;
    object-fit: cover;
    object-position: center top;
  }
  .hero-overlay { background: rgba(0,0,0,.35); }
  .hero-overlay .btn { font-size: 0.85rem; padding: 0.4rem 1.2rem; }

  .py-section    { padding: 56px 0; }
  .py-section-sm { padding: 40px 0; }
  .gallery-item img { height: 140px; }
  .video-thumb img  { height: 240px; }
}

@media (max-width: 575px) {
  #courses h4 { min-height: auto; }
  .contact-logo img{
    width: 100px;
  }
}