:root {
  --cream: #fff7d7;
  --accent: #f57c00;
  --blue: #00376d;
  --gold: #ffd700;
  --text: #333;
}


/* Hero Section */
.hero {
  position: relative;
  height: 320px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background image via <img> tag */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.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: 500;
  max-width: 1000px;
  color: #f1f1f1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease 0.3s;
}

/* Animation trigger */
.hero-loaded .hero-title,
.hero-loaded .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}


/* ========================
   Responsive Adjustments
======================== */

/* Tablets */
@media (max-width: 768px) {
  .hero-title { 
    font-size: 40px; 
    text-align: center; /* center text */
  }
  .hero-subtitle { 
    font-size: 14px; 
    text-align: center;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  .hero-title { 
    font-size: 28px; 
    text-align: center;
  }
  .hero-subtitle { 
    font-size: 12px; 
    text-align: center;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .hero-title { 
    font-size: 24px; 
  }
  .hero-subtitle { 
    font-size: 11px; 
  }
}





/*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);
  }
}

/* =========================
   Mobile / Tablet Responsive Card Width
========================= */

/* Tablets */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
  }
  .service-card {
    max-width: 220px; /* limit card width */
    margin: 0 auto;   /* center cards */
    padding: 18px;
  }
}

/* Small Tablets / Large Phones */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
  }
  .service-card {
    max-width: 180px;
    margin: 0 auto;
    padding: 16px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr; /* single column */
    gap: 12px;
  }
  .service-card {
    max-width: 95%; /* almost full width with some padding */
    margin: 0 auto;
    padding: 14px;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .service-card {
    max-width: 100%;
    margin: 0 auto;
    padding: 12px;
  }
}





/* =========================
   GLOBAL VARIABLES & GAPS
========================= */
:root {
  --gap-xlarge: 80px;  /* for large screens */
  --gap-large: 60px;   /* medium-large screens */
  --gap-medium: 40px;  /* tablets */
  --gap-small: 30px;   /* mobile */
}


/* =========================
   CAMPUS SECTION
========================= */
.campus-container {
  max-width: 1200px;
  margin: var(--gap-xlarge) auto;
  padding: 40px;
  border-radius: 20px;
  background: #ffdfa0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  overflow: hidden;

  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.campus-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.campus-section {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.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);
}
.campus-text h1,
.campus-text p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.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;
}

.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;
}
.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);}
.campus-images img:hover {
  transform: scale(1.3) rotate(0deg);
  z-index: 10;
}

/* =========================
   ONLINE EXAMINATION APPLY
========================= */
.exam-container {
  max-width: 1200px;
  margin: var(--gap-xlarge) 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);
}

.exam-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.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 Section */
.exam-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}
.exam-text h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  color: #ff6600;
  margin-bottom: 18px;
  font-weight: 700;
}
.exam-text p {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
  color: #555;
  max-width: 500px;
}

/* Image Section */
.exam-image {
  flex: 1;
  min-width: 260px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* HTML Image styling (same look as background before) */
.exam-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* Hover animation */
.exam-image:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.15);
}


/* =========================
   LOAN SECTION
========================= */
.other-loan-section {
  max-width: 1200px;
  margin: var(--gap-xlarge) auto;
  text-align: center;
}

/* Heading */
.other-loan-section h2 {
  font-size: 24px;
  color: #ff6600;
  margin-bottom: 15px;
}

/* Description box */
.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);
}

/* Loan List Box */
.other-loan-list-box {
  position: relative;
  padding: 30px 25px;
  border-radius: 0 0 10px 10px;
  text-align: left;
  overflow: hidden;
}

/* Image behind the list */
.loan-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(50%);
  border-radius: 0 0 10px 10px;
}

/* List content above image */
.other-loan-list {
  position: relative;
  z-index: 1;
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

/* List Items */
.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: var(--gap-xlarge) 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;
}
.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;
  display: inline-block;
}
.courses-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-top: 10px;
}

/* Courses heading link */
.courses-text h2 a.computer-Course {
  text-decoration: none; /* removes underline */
  color: #f57c00;
  font-weight: 600;
  transition: color 0.3s ease;
}
.courses-text h2 a.computer-Course:hover {
  color: #ff8c00;
}

/* Courses arrow */
.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);
}

.courses-image {
  flex: 1;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}
.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 DESIGN
========================= */

/* Large screens below 1200px */
@media (max-width: 1200px) {
  .campus-container,
  .exam-container,
  .other-loan-section,
  .courses-section {
    margin-top: var(--gap-large);
    margin-bottom: var(--gap-large);
    width: 90%;
    padding: 40px 25px;
  }
  .campus-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .campus-text {
    text-align: justify;
  }
  .campus-images {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .campus-images img {
    width: 160px;
    transform: rotate(0deg);
  }
}

/* Tablets & small laptops */
@media (max-width: 992px) {
  .campus-container,
  .exam-container,
  .other-loan-section,
  .courses-section {
    margin-top: var(--gap-medium);
    margin-bottom: var(--gap-medium);
    width: 90%;
    padding: 30px 20px;
  }
  .campus-text h1 {
    font-size: 22px;
    text-align: center;
  }
  .campus-text p {
    font-size: 15px;
  }
  .campus-images img {
    width: 140px;
  }
}

/* Tablets & large mobiles */
@media (max-width: 768px) {
  .campus-container,
  .exam-container,
  .other-loan-section,
  .courses-section {
    margin-top: var(--gap-small);
    margin-bottom: var(--gap-small);
    width: 92%;
    padding: 25px 20px;
  }
  .campus-section {
    gap: 25px;
    text-align: center;
  }
  .campus-text h1 {
    font-size: 20px;
    line-height: 1.3;
  }
  .campus-text p {
    font-size: 14px;
    line-height: 1.5;
  }
  .campus-images {
    gap: 10px;
  }
  .campus-images img {
    width: 110px;
  }
  .courses-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .courses-image img {
    width: 300px; /* smaller image on tablets */
    height: auto;
  }
}

/* Small mobiles */
@media (max-width: 480px) {
  .campus-container,
  .exam-container,
  .other-loan-section,
  .courses-section {
    margin-top: var(--gap-small);
    margin-bottom: var(--gap-small);
    width: 95%;
    padding: 20px 15px;
  }
  .courses-image img {
    width: 100%; /* full width on small mobiles */
    height: auto;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .campus-container,
  .exam-container,
  .other-loan-section,
  .courses-section {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 95%;
    padding: 10px 8px;
  }
  .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: #ff6600;
  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%;
  }
}
















