/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f6f6f6;
  color: #333;
}


/* =========================
   HEADER
========================= */
.header-top {
  background: #8B0000;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 80px;
  position: relative;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  height: 100px;
  width: auto;
  transform: translateY(10px);
}

.header-title {
  font-family: 'Inria Serif', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.header-right {
  position: absolute;
  top: 15px;
  right: 40px;
  font-size: 14px;
  text-align: right;
}

/* =========================
   NAVIGATION
========================= */
nav {
  background: linear-gradient(90deg, #5c0000, #8B0000, #5c0000);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 90px;
  flex-wrap: wrap;
}
nav ul li a {
    text-decoration: none; 
    color: white;          
}
nav ul li {
  color: white;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  transition: 0.3s ease;
  
}

nav ul li:hover {
  color: #ffe5e5;
}

nav ul li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}

nav ul li:hover::after {
  width: 100%;
}

.dropdown-content {
    background-color: #ffffff;    
    min-width: 250px;            
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2); 
    border-radius: 8px;        
}


.dropdown-content a {
    color: #333333 !important;   
    padding: 12px 16px;
    text-decoration: none;        
    display: block;
    text-align: left;            
    font-size: 14px;             
    transition: 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;    
    color: #990000 !important;   
}

.dropdown-content {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 0;
  min-width: 260px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown-content div {
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;          
  color: #111111;           
  letter-spacing: 0.3px;     
  transition: all 0.25s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.dropdown-content div:hover {
  background: #f3f3f3;
  border-left: 4px solid #8B0000;
  color: #000000;            
  padding-left: 28px;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 60vh;
  background: url('pic/IoTE_pic8.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.hero-content {
  position: relative;
  color: white;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
}

.hero h2 {
  font-size: 22px;
  font-weight: 300;
  margin-top: 10px;
}


/* =========================
   MAIN CARD
========================= */
.main-section {
  padding: 100px 0;
  background: #f6f6f6;
}

.main-card {
  max-width: 1200px;
  margin: auto;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}


/* =========================
   ABOUT
========================= */
.about-container {
  padding: 70px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 30px;
  color: #990000;
  margin-bottom: 30px;
}

.about-text p {
  margin-bottom: 30px;
  line-height: 1.7;
  color: #555;
  font-size: 15px;
}


/* =========================
   SLIDER
========================= */
.slider {
  flex: 1;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.slides {
  display: flex;
  transition: 0.6s ease-in-out;
}

.slides img {
  width: 100%;
  object-fit: cover;
}


/* =========================
   BUTTON
========================= */
.btn-primary {
  display: inline-block;
  padding: 15px 28px;
  background: linear-gradient(45deg, #e90000, #990000);
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-right: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-left {
  margin-left: -5px;
}


/* =========================
   CURRICULUM
========================= */
.curriculum-section {
  padding: 80px 60px;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}

.curriculum-card {
  width: 100%;
  max-width: 1100px;
  background: white;
  border-radius: 20px;
  padding: 40px 30px 50px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.curriculum-title {
  display: inline-block;
  background: linear-gradient(45deg, #c40000, #8B0000);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 30px;
}

.curriculum-image img {
  width: 100%;
  border-radius: 15px;
}


/* =========================
   TUITION
========================= */
.tuition-wrapper {
  display: flex;
  flex-wrap: wrap;
  min-height: 320px;
}

.tuition-image {
  flex: 1;
  height: 360px;
  position: relative;
  overflow: hidden;
}

.tuition-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tuition-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(139, 0, 0, 0.25);
}

.tuition-content {
  flex: 1;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #c70202 0%, #a90303 45%, #8b0000 100%);
  color: white;
}

.tuition-item {
  background: white;
  padding: 20px;
  border-radius: 14px;
  max-width: 430px;
}

.tuition-item h4 {
  color: #333;
}

.tuition-item p {
  font-size: 20px;
  font-weight: 700;
  color: #b30000;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  nav ul { gap: 40px; }
  .about-container { flex-direction: column; padding: 60px 40px; }
  .tuition-wrapper { flex-direction: column; }
}

@media (max-width: 768px) {

  .header-top {
    flex-direction: column;
    padding: 25px 20px;
    text-align: center;
    gap: 20px;
  }

  .header-left {
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    height: 75px;
    transform: none;
  }

  .header-right {
    position: static;
    text-align: center;
    margin-top: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .hero {
    height: 45vh;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero h2 {
    font-size: 16px;
  }

  .about-container {
    padding: 40px 25px;
  }

  .btn-primary {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
  }

  .tuition-image {
    height: 250px;
  }

  .tuition-content {
    text-align: center;
    padding: 35px 25px;
  }

}

@media (max-width: 480px) {

  .hero {
    height: 40vh;
  }

  .hero h1 {
    font-size: 20px;
  }

  .hero h2 {
    font-size: 14px;
  }

}


/* ---------- Large Tablet ---------- */
@media (max-width: 1100px) {

  .header-top {
    padding: 30px 50px;
  }

  nav ul {
    gap: 35px;
  }

  .curriculum-section {
    padding: 60px 40px;
  }

  .curriculum-card {
    padding: 35px 25px 45px 25px;
  }

}


/* ---------- Tablet ---------- */
@media (max-width: 992px) {

  .header-title {
    font-size: 18px;
  }

  nav {
    padding: 18px 0;
  }

  nav ul li {
    font-size: 16px;
  }

  .hero {
    height: 50vh;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    font-size: 18px;
  }

  .main-section {
    padding: 70px 20px;
  }

  .about-container {
    gap: 40px;
  }

  .curriculum-section {
    gap: 50px;
  }

  .tuition-content {
    padding: 40px;
  }

}


/* ---------- Mobile ---------- */
@media (max-width: 768px) {

  body {
    font-size: 14px;
  }

  nav ul li {
    font-size: 15px;
  }

  .hero {
    height: 42vh;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero h2 {
    font-size: 15px;
  }

  .main-section {
    padding: 50px 15px;
  }

  .main-card {
    border-radius: 20px;
  }

  .about-text h2 {
    font-size: 22px;
  }

  .about-text p {
    font-size: 14px;
  }

  .curriculum-section {
    padding: 50px 20px;
  }

  .curriculum-title {
    font-size: 13px;
    padding: 10px 20px;
  }

  .tuition-item {
    max-width: 100%;
  }

  .tuition-item p {
    font-size: 18px;
  }

}


/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {

  .header-title {
    font-size: 16px;
  }

  nav ul li {
    font-size: 14px;
  }

  .hero {
    height: 35vh;
  }

  .hero h1 {
    font-size: 20px;
  }

  .hero h2 {
    font-size: 13px;
  }

  .about-text h2 {
    font-size: 20px;
  }

  .about-text p {
    font-size: 13px;
  }

  .tuition-content {
    padding: 25px 20px;
  }

}
