*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins', sans-serif;
}

/* ===== HEADER ===== */
html, body{
  max-width:100%;
  overflow-x:hidden;
}



/* ================= TOP HEADER ================= */
.top-header{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:35px;
  padding:20px;
  background: linear-gradient(135deg, #F8DDE3, #F3C7D3);
  position:relative;
  flex-wrap:wrap;
  text-align:center;
}

/* SHINE EFFECT */
.top-header::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  animation:shine 6s infinite;
}

@keyframes shine{
  0%{ left:-100%; }
  100%{ left:100%; }
}

/* HEADER TEXT */
.header-center{
  text-align:center;
}

/* TITLE (similar to 5th image) */
.top-header h1{
  font-size:clamp(24px, 3vw, 52px);
  font-weight:700;
  color:#7B1E3A;
  letter-spacing:2px;
  font-family:'Cinzel', serif;
}

/* SUB TITLE */
.top-header h2{
  font-size:clamp(18px, 2.5vw, 26px);
  font-weight:600;
  color:#9A2E50;
  margin-top:5px;
font-family:'Cinzel', serif;
}

@media(max-width:768px){
  .top-header h2{
    font-size:26px !important;
  }
}


/* SUB TEXT */
.sub-text{
  font-size:clamp(14px, 2vw, 20px);
  font-weight:500;
  color:#6A2C45;
  margin-top:6px;
font-family:'Cinzel', serif;
}

/* LOGO */
.top-logo{
  width:clamp(90px, 10vw, 150px);
  height:auto;
}

/* ================= MAIN HEADER ================= */
.main-header{
  padding:14px 0;
  background: linear-gradient(135deg, #E9AFC0, #D98CA5);
  border-top:1px solid rgba(255,255,255,0.4);
}

/* NAV CONTAINER */
.container{
  width:95%;
  max-width:1300px;
  margin:auto;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}


/* NAV LINKS */
.navbar a{
  color:#6A1B37;
  text-decoration:none;
  margin:0 12px;
  font-weight:600;
  font-size:16px;
  font-family:'Poppins', sans-serif;
  transition:0.3s;
}

.navbar a:hover{
  color:#ffffff;
}

/* RESPONSIVE */
@media(max-width:768px){
  .top-header{
    flex-direction:column;
    gap:15px;
  }

  .top-header h1{
    font-size:22px;
  }

  .top-header h2{
    font-size:18px;
  }

  .sub-text{
    font-size: 18px;
        font-weight: 500;
  }
}


/* MENU CONTAINER */
.menu{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap; /* ✅ IMPORTANT */
  gap:10px;
  overflow:hidden;


  background: linear-gradient(135deg, #E9AFC0, #D98CA5);
  padding:10px;

}

/* MENU LINKS */
.menu a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  color:#2E1B25; /* dark readable text */
  text-decoration:none;

  font-size:17px;
  font-weight:600;

  padding:12px 14px;
  border-radius:20px;

  transition:0.3s;
  white-space:nowrap;

  background:rgba(255,255,255,0.3); /* soft pill background */
  backdrop-filter:blur(4px);
}

/* ICON INSIDE MENU (if any) */
.menu a i{
  color:#6A1B37; /* violet icon */
}

/* HOVER EFFECT */
.menu a:hover{
  background:#ffffff;
  color:#6A1B37;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(111,66,193,0.25);
}

/* HOVER ICON */
.menu a:hover i{
  color:#6A1B37;
}

/* MENU TOGGLE ICON */
.menu-toggle{
  display:none;
  font-size:26px;
  color:#6A1B37; /* dark violet */
  cursor:pointer;
  transition:0.3s;
}

.menu-toggle:hover{
  color:#6A1B37;
}



.banner {
  width: 100%;
  overflow: hidden;
}

.banner img{
  width:100%;
  height:450px;
  object-fit:cover;
}


@media (max-width:768px){
  .banner img{
    height:200px;   /* mobileக்கு perfect height */
    object-fit:cover; /* image stretch ஆகாமல் */
  }
}
 
/* ================= GRID ================= */
/* DESKTOP: 3 COLUMN = 4 ROWS (12 CARDS) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 60px 8%;
}

/* ================= CARD ================= */
.card {
  height: 160px;
  perspective: 1200px;

  opacity: 0;
  transform: translateY(25px);
  animation: appear 0.6s forwards;
}

/* animation delay */
.card:nth-child(2){animation-delay:0.05s;}
.card:nth-child(3){animation-delay:0.1s;}
.card:nth-child(4){animation-delay:0.15s;}
.card:nth-child(5){animation-delay:0.2s;}
.card:nth-child(6){animation-delay:0.25s;}
.card:nth-child(7){animation-delay:0.3s;}
.card:nth-child(8){animation-delay:0.35s;}
.card:nth-child(9){animation-delay:0.4s;}
.card:nth-child(10){animation-delay:0.45s;}
.card:nth-child(11){animation-delay:0.5s;}
.card:nth-child(12){animation-delay:0.55s;}

@keyframes appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= FLIP INNER ================= */
.inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.card:hover .inner {
  transform: rotateY(180deg);
}

/* FRONT / BACK */
.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 10px;

  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* FRONT */
.front {
  background: white;
}


.front i {
  font-size: 30px;
  color: #6f42c1;
  margin-bottom: 8px;
}

/* BACK */
.back {
    background: linear-gradient(135deg, #d069b5, #6f42c1);
  color: white;
  transform: rotateY(180deg);
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media(max-width:1024px){
  .grid{
    grid-template-columns: repeat(2, 1fr);
    padding: 50px 5%;
  }

  .card{
    height: 170px;
  }
}

/* MOBILE */
@media(max-width:768px){
  .grid{
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .card{
    height: 180px;
  }

  .title-content h1{
    font-size: 20px;
  }
}

/* SMALL MOBILE */
@media(max-width:480px){
  .card{
    height: 170px;
  }

  .front i{
    font-size: 22px;
  }

  .front h3{
    font-size: 16px;
  }

  .back p{
    font-size: 14px;
  }
}



.testimonial-balanced{
  padding:100px 20px;
  background:#f8fafc;
}

/* HEADER */
.testimonial-head{
  text-align:center;
  margin-bottom:55px;
}

.testimonial-head h2{
  font-size:36px;
  color:#0f172a;
}

.testimonial-head p{
  color:#64748b;
  font-size:15px;
}

/* GRID */
.testimonial-grid{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:30px;
}

/* CARD (BIG PREMIUM BOX) */
.t-card{
  background:#fff;
  border-radius:18px;
  padding:30px;
  display:flex;
  gap:25px;
  align-items:center;
  box-shadow:0 10px 28px rgba(0,0,0,0.10);
  transition:0.3s ease;
  min-height:220px;
}

.t-card:hover{
  transform:translateY(-6px);
}

/* IMAGE (VERY LARGE 👇) */
.t-img{
  width:160px;   /* 👈 BIG */
  height:190px;  /* 👈 BIG */
  flex-shrink:0;
  border-radius:16px;
  overflow:hidden;
  border:4px solid #6f42c1;
  box-shadow:0 6px 15px rgba(111,66,193,0.25);
}

.t-img img{
  width:100%;
  height:121%;
  object-fit:cover;
}

/* TEXT */
.t-text h3{
  font-size:20px;
  margin:0;
  color:#1d4ed8;
}

.t-text span{
  font-size:13px;
  color:#64748b;
  display:block;
  margin-bottom:10px;
}

.t-text p{
  font-size:15px;
  color:#334155;
  line-height:1.7;
}

/* MOBILE */
@media(max-width:768px){
  .testimonial-grid{
    grid-template-columns:1fr;
  }

  .t-card{
    flex-direction:column;
    text-align:center;
  }

  .t-img{
    width:180px;
    height:180px;
  }
}

.faculty-heading h2{
  color:#6f42c1;
  text-align: center;
  font-size: 35px;
  font-weight: 700;
}

.faculty-heading p{
  color:#ff4ecd;
  text-align: center;

}


/* ================= MOBILE MENU ================= */

/* show toggle button */
@media(max-width:768px){

  .menu-toggle{
    display:block;
    position:absolute;
    right:20px;
    top:15px;
    z-index:1000;
  }

.menu{
  position:absolute;
  top:60px;
  left:0;
  width:100%;
  flex-direction:column;
  background: linear-gradient(135deg, #E9AFC0, #D98CA5);
  display:none;
  padding:15px 0;
  border-radius:0;
  overflow:hidden; /* ✅ add this */
}


  .menu a{
    width:90%;
    margin:5px auto;
    text-align:center;
  }

  .menu.active{
    display:flex; /* show when clicked */
  }
}

