:root {
  --cream: #fff7d7;
  --accent: #f57c00;
  --blue: #00376d;
  --gold: #ffd700;
  --text: #333;
}


/* Hero Section */
.hero {
  position: relative;
  height: 320px; /* half-page height */
  width: 100%;
  background: url('../image/hero_image2.png') center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: rgba(0,0,0,0.2); /* dark overlay for text visibility */
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero title and subtitle */
.hero-title {
  font-size: 60px;
  color: #FF6F0A;
  text-shadow: 0 3px 6px rgba(0,0,0,0.5);
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500px;
max-width: 1000px;
  color: #f1f1f1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-family: 'Poppins', sans-serif;
  

  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease 0.3s; /* delay for subtitle */
}

/* Trigger animation */
.hero-loaded .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-loaded .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 40px; }
  .hero-subtitle { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }
}





/*services*/
.services {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffcd8c;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  cursor: pointer;

  /* Initial hidden state */
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Scroll In (smooth fade + slide-in) */
.service-card.animate {
  opacity: 1;
  transform: translateY(0);
  transition: transform 1s ease, opacity 1s ease; /* scroll in slow */
}

/* Scroll Out (slow fade + slide-out) */
.service-card.remove-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: transform 1.5s ease, opacity 1.5s ease; /* scroll out slow */
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.09);
  background: #ffcc5f;
}

.service-card .icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.service-card:hover .icon img {
  transform: scale(1.2);
}

.service-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: #00376d;
}

.service-card p {
  font-size: 14px;
  color: #5a4f3a;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: #7f6b45;
}


/* =========================
   Highlight Animation for Click Scroll
========================= */
.highlight-section {
  box-shadow: 0 0 0 6px rgba(255, 140, 0, 0.4);
  animation: glowFade 2s ease forwards;
}

@keyframes glowFade {
  0% {
    box-shadow: 0 0 0 8px rgba(255, 140, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 140, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
}




/* =========================
   Campus Section
========================= */
.campus-container {
  max-width: 1200px;
  margin: 50px auto 80px;
  padding: 40px;
  border-radius: 20px;
  background: #ffdfa0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  overflow: hidden;

  /* default hidden state */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* when visible */
.campus-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Inner Section ===== */
.campus-section {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ===== Text Section ===== */
.campus-text {
  flex: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.campus-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* child elements animate step by step */
.campus-text h1,
.campus-text p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* sequential animation */
.campus-text.visible h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.campus-text.visible p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.campus-text h1 {
  font-size: 22px;
  margin-bottom: 20px;
  color:#ff6600;
}

.campus-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* ===== Images ===== */
.campus-images {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: -60px;
  perspective: 1000px;
  position: relative;

  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.campus-images.visible {
  opacity: 1;
  transform: translateY(0);
}

.campus-images img {
  width: 180px;
  border-radius: 12px;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.6s ease-out;
}

/* stacked rotation */
.campus-images img:nth-child(1){z-index:3;transform:rotate(-5deg);}
.campus-images img:nth-child(2){z-index:2;transform:rotate(2deg);}
.campus-images img:nth-child(3){z-index:1;transform:rotate(-2deg);}

/* hover enlarge */
.campus-images img:hover {
  transform: scale(1.3) rotate(0deg);
  z-index: 10;
}

/* responsive */
@media (max-width:768px){
  .campus-section{flex-direction:column;text-align:center;}
  .campus-images{gap:-30px;margin-top:20px;}
  .campus-images img{width:130px;}
}









/* =========================
   Online Examination Apply
========================= */
.exam-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 30px;
  border-radius: 20px;
  background: #ffdfa0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;

  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.exam-container.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Layout
========================= */
.exam-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* =========================
   Text + Image (common animation)
========================= */
.exam-text,
.exam-image {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.exam-container.show .exam-text,
.exam-container.show .exam-image {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Text
========================= */
.exam-text {
  flex: 1;
  transition-delay: 0.2s;
}

.exam-text h2 {
  font-size: 22px;
  color: #ff6600;
  margin-bottom: 20px;
  font-weight: 700;
}

.exam-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  max-width: 500px;
}

/* =========================
   Image
========================= */
.exam-image {
  flex: 1;
  height: 250px;
  border-radius: 20px;
  background: url('../image/service_page-online-2.png') center/cover no-repeat;
  transition-delay: 0.4s;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover zoom */
.exam-image:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.15);
}

/* =========================
   Responsive: Tablet
========================= */
@media (max-width: 768px) {
  .exam-section {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .exam-text p {
    margin: 0 auto;
  }

  .exam-image {
    width: 100%;
    height: 250px;
  }
}

/* =========================
   Responsive: Mobile
========================= */
@media (max-width: 480px) {
  .exam-container {
    padding: 30px 20px;
    margin: 40px 10px;
  }

  .exam-text h2 {
    font-size: 20px;
  }

  .exam-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .exam-image {
    height: 200px;
    border-radius: 16px;
  }

  .exam-section {
    gap: 20px;
  }
}







.other-loan-section {
  max-width: 1200px;
  margin: 80px auto 70px;
  text-align: center;
}

/* Heading */
.other-loan-section h2 {
  font-size: 24px;
  color: #ff6600;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;

  opacity: 1; /* always visible */
  transform: translateY(0);
  transition: none;
}

/* Description */
.other-loan-description {
  background: #c9c9ca;
  padding: 20px 25px;
  border-radius: 10px;
  margin-bottom: 0;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  opacity: 1; /* always visible */
  transform: translateY(0);
  transition: none;
}

/* List Box */
.other-loan-list-box {
  background: url("../image/service_page-loan-3.jpg") no-repeat center/cover;
  padding: 30px 25px;
  border-radius: 0 0 10px 10px;
  text-align: left;

  opacity: 1; /* always visible */
  transform: translateY(0);
  transition: none;
}

/* List Items */
.other-loan-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.other-loan-list li {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fdfdfd;
  text-shadow: 0 1px 2px rgb(247, 243, 243);
}



/*  Courses Section */
.courses-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 30px;
  border-radius: 20px;
  background: #c9c9ca;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  overflow: hidden;
}

.courses-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 25px;
  flex-wrap: wrap;
  flex-direction: row-reverse; /* Default layout reversed */
}

.computer.Course {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* === Text === */
.courses-text {
  margin-right: 10px;
  flex: 1;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.courses-section.show .courses-text {
  opacity: 1;
  transform: translateY(0);
}

.courses-text h2 {
  font-size: 24px;
  color: #f57c00;
  margin-bottom: 15px;
}

/* Arrow link */
.courses-text .arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 24px;
  color: #f57c00;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.courses-text .arrow:hover {
  color: #ff8c00;
  transform: translateX(4px) scale(1.2);
}

/* Paragraph */
.courses-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-top: 10px;
}

/* === Image === */
.courses-image {
  flex: 1;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease 0.6s, transform 1s ease 0.6s; /* delayed */
}

.courses-section.show .courses-image {
  opacity: 1;
  transform: translateY(0);
}

.courses-image img {
  width: 450px;
  height: 200px;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.courses-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 32px rgba(0,0,0,0.15);
}

/* === Responsive === */
@media (max-width: 768px) {
  .courses-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .courses-image img {
    width: 100%;
    height: auto;
  }
}

/* =========================
   Feedback Section
========================= */
.feedback-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
}

.feedback-section h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 40px;
}

/* Slider wrapper */
.feedback-slider {
  overflow: hidden;
  position: relative;
}

/* Track */
.feedback-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease;
}

/* Card */
.feedback-card {
  background: #cccbcb;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  flex: 0 0 32%; /* 3 cards per view */
  min-width: 32%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Top Section */
.feedback-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.feedback-top img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.feedback-user h4 {
  font-size: 16px;
  color: #222;
  margin: 0;
}

.feedback-user span {
  font-size: 13px;
  color: #4e4a4a;
}

.feedback-text {
  font-size: 14px;
  line-height: 1.5;
  color: #3c3b3b;
  font-style: italic;
  margin-top: 8px;
}

/* Desktop: 3 cards per row */
@media (min-width: 1025px) {
  .feedback-card {
    flex: 0 0 32%;
    min-width: 32%;
  }
}

/* Tablet: 2 cards per row */
@media (max-width: 1024px) and (min-width: 769px) {
  .feedback-card {
    flex: 0 0 48%;
    min-width: 48%;
  }
}

/* Mobile: 1 card per view */
@media (max-width: 768px) {
  .feedback-card {
    flex: 0 0 90%;
    min-width: 90%;
  }
}
















