/* ==========================================================
   home.css
   Homepage-only styles: hero slider, stat counters, cards,
   focus areas, news, partners, team + scroll animations
   ========================================================== */

/* ---------- Hero slider ---------- */
.hero{
  position:relative;
  height:480px;
  overflow:hidden;
  background:var(--navy);
}
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
  background-size:cover;
  background-position:center;
}
.hero-slide::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(4,14,40,.82) 0%, rgba(4,14,40,.45) 55%, rgba(4,14,40,.15) 100%);
}
.hero-slide.active{
  opacity:1;
  transform:scale(1);
  z-index:2;
}
.hero-content{
  position:relative;
  z-index:5;
  max-width:640px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:0 20px;
  margin:0 auto;
  max-width:var(--max-width);
  color:#fff;
}
.hero-content h1{
  font-size:44px;
  line-height:1.15;
  font-weight:800;
  text-transform:uppercase;
  opacity:0;
  transform:translateY(30px);
  animation: heroUp .9s ease forwards .3s;
}
.hero-content h1 span{ color:var(--gold); }
.hero-content p{
  margin:18px 0 26px;
  max-width:480px;
  color:var(--text-muted);
  opacity:0;
  transform:translateY(30px);
  animation: heroUp .9s ease forwards .55s;
}
.hero-content .btn{
  align-self:flex-start;
  opacity:0;
  transform:translateY(30px);
  animation: heroUp .9s ease forwards .8s;
}
@keyframes heroUp{
  to{ opacity:1; transform:translateY(0); }
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  gap:8px;
  background:var(--gold);
  color:var(--navy-dark);
  font-weight:700;
  font-size:13px;
  letter-spacing:1px;
  padding:12px 22px;
  border-radius:3px;
  transition:background var(--transition), transform var(--transition);
}
.btn:hover{ background:var(--gold-dark); transform:translateY(-2px); }

.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:6;
  width:42px; height:42px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:background var(--transition);
}
.hero-arrow:hover{ background:var(--gold); color:var(--navy-dark); }
.hero-arrow.prev{ left:24px; }
.hero-arrow.next{ right:24px; }

.hero-dots{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  z-index:6;
  display:flex;
  gap:10px;
}
.hero-dots button{
  width:10px; height:10px; border-radius:50%;
  border:none; background:rgba(255,255,255,.5);
  cursor:pointer; transition:all var(--transition);
}
.hero-dots button.active{
  background:var(--gold);
  width:26px; border-radius:6px;
}

/* ---------- Intro info cards ---------- */
.intro-cards{
  padding:50px 0 30px;
}
.intro-cards .container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}
.info-card{
  text-align:center;
  padding:10px;
}
.info-card .icon-circle{
  width:70px; height:70px; border-radius:50%;
  background:var(--navy);
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px;
  font-size:26px;
}
.info-card h3{
  color:var(--navy);
  font-size:16px;
  letter-spacing:.5px;
  margin-bottom:12px;
}
.info-card p, .info-card ul{ color:#666; font-size:14px; }
.info-card ul{ text-align:left; }
.info-card ul li{ margin-bottom:6px; padding-left:14px; position:relative; }
.info-card ul li::before{
  content:"•"; position:absolute; left:0; color:var(--gold-dark);
}
.info-card .more-link{
  display:inline-flex; align-items:center; gap:6px;
  margin-top:14px; color:var(--gold-dark); font-weight:700; font-size:12px; letter-spacing:.5px;
}

/* ---------- Stats counter bar ---------- */
.stats-bar{
  background:var(--navy);
  margin:20px 0;
  padding:34px 0;
}
.stats-bar .container{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}
.stat-item{
  text-align:center;
  color:#fff;
}
.stat-item .icon {
    font-size: 26px;
    color: var(--white);
    margin-bottom: 8px;
}
.stat-item .stat-number{
  font-size:30px;
  font-weight:800;
  display:inline-block;
}
.stat-item .stat-number::after{
  content:"+";
}
.stat-item .stat-label{
  font-size:13px;
  color:var(--text-muted);
  margin-top:4px;
}

/* ---------- International projects ---------- */
.projects-section{
  padding:20px 0 40px;
}
.projects-box{
  background:var(--navy);
  color:#fff;
  border-radius:8px;
  padding:34px;
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:30px;
  align-items:center;
}
.projects-box h3{ font-size:22px; margin-bottom:12px; color:var(--gold); }
.projects-box p{ color:var(--text-muted); font-size:14px; margin-bottom:18px; }
.projects-images{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.projects-images img{
  border-radius:6px;
  height:130px;
  width:100%;
  object-fit:cover;
  transition:transform var(--transition);
}
.projects-images img:hover{ transform:scale(1.05); }

/* ---------- Section heading ---------- */
.section-heading{
  text-align:center;
  margin:10px 0 36px;
}
.section-heading h2{
  color:var(--navy);
  font-size:24px;
  letter-spacing:1px;
  position:relative;
  display:inline-block;
  padding-bottom:12px;
}
.section-heading h2::after{
  content:"";
  position:absolute;
  left:50%; bottom:0;
  transform:translateX(-50%);
  width:60px; height:3px;
  background:var(--gold);
}

/* ---------- Focus areas ---------- */
.focus-section{ padding:30px 0 50px; }
.focus-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:20px;
}
.focus-card{
  border:1px solid #eee;
  border-radius:8px;
  text-align:center;
  padding:26px 14px;
  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.focus-card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 24px rgba(11,31,77,.12);
  border-color:var(--gold);
}
.focus-card .icon-circle{
  width:56px; height:56px; border-radius:50%;
  background:#eef1fb; color:var(--navy);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 14px; font-size:22px;
}
.focus-card h4{ font-size:14px; color:var(--navy); margin-bottom:8px; }
.focus-card p{ font-size:12px; color:#777; }

/* ---------- News & events ---------- */
.news-section{ padding:10px 0 50px; background:#fafbfd; }
.news-header{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:26px;
}
.news-header h2{ color:var(--navy); font-size:22px; }
.news-header a{ color:var(--gold-dark); font-weight:700; font-size:13px; }
.news-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
.news-card{
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:transform var(--transition);
}
.news-card:hover{ transform:translateY(-6px); }
.news-thumb{ position:relative; height:150px; overflow:hidden; }
.news-thumb img{ height:100%; width:100%; object-fit:cover; transition:transform .5s; }
.news-card:hover .news-thumb img{ transform:scale(1.08); }
.news-date{
  position:absolute; top:10px; left:10px;
  background:var(--navy); color:var(--gold);
  padding:6px 10px; border-radius:4px; text-align:center; font-size:11px; line-height:1.1;
}
.news-date strong{ display:block; font-size:14px; }
.news-body{ padding:16px; }
.news-body h4{ font-size:14px; color:var(--navy); margin-bottom:8px; }
.news-body p{ font-size:12px; color:#777; margin-bottom:10px; }
.news-body a{ font-size:12px; font-weight:700; color:var(--gold-dark); }

/* ---------- Partners & team ---------- */

.bottom-section{
  padding:40px 0 60px;
}

.bottom-grid{
  display:grid;
  grid-template-columns:1.3fr 4fr;
  gap:30px;
}

/* ---------- Partners horizontal scroll ---------- */

.partners-grid{
  display:grid;

  /* 6 rows */
  grid-template-rows:repeat(6, 70px);

  /* Fill DOWN first, then create columns */
  grid-auto-flow:column;

  /* Width of each column */
  grid-auto-columns:calc((100% - 28px) / 3);
  gap:14px;
  margin-top:16px;

  /* Show exactly 6 rows */
  height:496px;

  /* Horizontal scrolling */
  overflow-x:auto;
  overflow-y:hidden;
  box-sizing:border-box;
  scrollbar-width:thin;
  scrollbar-color:#0b1f3a #eeeeee;
  -webkit-overflow-scrolling:touch;
}


/* ---------- Partner logo ---------- */

.partner-logo{
  border:1px solid #eee;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;

  /* YOUR ORIGINAL SIZE */
  height:70px;
  padding:10px;
  filter:grayscale(100%);
  transition: filter var(--transition),border-color var(--transition);
}

.partner-logo:hover{
  filter:grayscale(0%);
  border-color:var(--gold);
}

/* ---------- Logo images ---------- */

.partner-logo img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

/* ---------- Horizontal scrollbar ---------- */

.partners-grid::-webkit-scrollbar{
  height:8px;
}

.partners-grid::-webkit-scrollbar-track{
  background:#eeeeee;
  border-radius:10px;
}

.partners-grid::-webkit-scrollbar-thumb{
  background:#0b1f3a;
  border-radius:10px;
}

.partners-grid::-webkit-scrollbar-thumb:hover{
  background:#162f52;
}


/* Move individual logos continuously */
@keyframes partnerAutoScroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }

}

/* ---------- Scroll reveal animation ---------- */
.reveal{
  opacity:0;
  transform:translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view{
  opacity:1;
  transform:translateY(0);
}
.reveal.delay-1.in-view{ transition-delay:.1s; }
.reveal.delay-2.in-view{ transition-delay:.2s; }
.reveal.delay-3.in-view{ transition-delay:.3s; }
.reveal.delay-4.in-view{ transition-delay:.4s; }

/* ================= TESTIMONIAL SLIDER STYLES ================= */
.testimonial-section {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px 60px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 320px;
}

/* SLIDES CONTAINER & ANIMATION */
.testimonial-slide {
  display: none;
  grid-template-columns: 100px 1fr 220px;
  align-items: center;
  gap: 25px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
  display: grid;
  opacity: 1;
}

/* AVATAR & SIDE PHOTO */
.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid navy; /* University Maroon */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-photo {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* TEXT CONTENT */
.testimonial-text {
  position: relative;
  padding-right: 10px;
}

.testimonial-quote-icon {
  font-size: 24px;
  color: #d97706; /* Gold */
  margin-bottom: 10px;
  display: block;
}

.testimonial-text h3 {
  font-size: 20px;
  color: #1f2937;
  margin-bottom: 10px;
  font-weight: 700;
}

.testimonial-text p {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial-name {
  display: block;
  font-weight: 700;
  color: navy;
  font-size: 15px;
  font-style: normal;
}

/* ARROW BUTTONS */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  color: navy;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-arrow:hover {
  background-color: navy;
  color: #ffffff;
  border-color: navy;
}

.testimonial-arrow.prev { left: 15px; }
.testimonial-arrow.next { right: 15px; }

/* DOT INDICATORS */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background-color: navy;
  width: 24px;
  border-radius: 12px;
}

/* =================================
   TEAM CARDS
================================= */

.team-section {
    width: 100%;
    padding: 15px 0 20px;
    background: #ffffff;
    box-sizing: border-box;
}
/* Intro */
.team-intro {
    text-align: center;
    margin: 0 0 35px;
    font-size: 18px;
    line-height: 1.5;
    color: #26364a;
    font-weight: 500;
}
/* Three cards */
.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}
/* Card wrapper */
.team-card-wrapper {
    position: relative;
}
/* Navy line */
.team-top-line {
    width: 100%;
    height: 4px;
    background: #0b1f3a;
    margin-bottom: 45px;
    border-radius: 2px;
}
/* Card */
.team-card {
    position: relative;
    min-height: 245px;
    border: 1px solid #e2e6eb;
    border-radius: 7px;
    padding: 55px 1px 25px;
    text-align: center;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
/* Hover */
.team-card:hover {
    transform: translateY(-5px);
    border-color: #0b1f3a;
    box-shadow:  0 10px 30px rgba(11, 31, 58, 0.10);
}
/* Icon */
.team-icon {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1f3a;
    border-radius: 50%;
    color: #ffffff;
    font-size: 29px;
    border: 4px solid #ffffff;
    box-shadow:  0 2px 8px rgba(0, 0, 0, 0.12);
}
/* Heading */
.team-card h3 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman",  serif;
    font-size: 20px;
    font-weight: 700;
    color: #0b1f3a;
}
/* Description */
.team-card p {
    margin: 0 auto 25px;
    max-width: 330px;
    font-size: 15px;
    line-height: 1.6;
    color: #465364;
}
/* Members button */
.members-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 42px;
    border: 2px solid #0b1f3a;
    color: #0b1f3a;
    background: #ffffff;
    text-decoration: none;
    font-family: Georgia, "Times New Roman",serif;
    font-size: 17px;
    font-style: italic;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
/* Button hover */
.members-btn:hover {
    background: #0b1f3a;
    color: #ffffff;
}


/* Container to push the button to the right */
.btn-container-right {
    display: flex;
    justify-content: flex-end; /* Aligns content to the right side */
    width: 100%;
}

/* Navy Blue Button Styling */
.testimonial-corner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #002147; /* Navy Blue */
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.2);
    transition: all 0.3s ease;
}

.testimonial-corner-btn:hover {
    background-color: #003366;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 33, 71, 0.3);
}

.testimonial-corner-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.testimonial-corner-btn:hover i {
    transform: translateX(4px);
}

/* ==========================================================
   RESPONSIVE — tablet, phone, and small-phone breakpoints
   ========================================================== */

/* ---------- Tablet (≤1000px) ---------- */
@media (max-width:1000px){
  .intro-cards .container{ grid-template-columns:1fr; }
  .stats-bar .container{ grid-template-columns:repeat(2,1fr); row-gap:24px; }
  .projects-box{ grid-template-columns:1fr; }
  .focus-grid{ grid-template-columns:repeat(3,1fr); }
  .news-grid{ grid-template-columns:repeat(2,1fr); }
  .bottom-grid{ grid-template-columns:1fr; }
}

/* ---------- Tablet, team cards (≤900px) ---------- */
@media (max-width: 900px) {
  .team-cards {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .team-card-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ---------- Testimonial (≤850px) ---------- */
@media (max-width: 850px) {
  .testimonial-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .testimonial-avatar {
    margin: 0 auto;
  }
  .testimonial-photo {
    max-height: 200px;
    margin-top: 10px;
  }
  .testimonial-section {
    padding: 30px 20px;
  }
  .testimonial-arrow{ width:34px; height:34px; }
  .testimonial-arrow.prev{ left:8px; }
  .testimonial-arrow.next{ right:8px; }
}

/* ---------- Phone (≤600px) ---------- */
@media (max-width:600px){
  .hero{ height:520px; }
  .hero-content h1{ font-size:30px; }
  .hero-content p{ font-size:14px; }
  .hero-arrow{ width:34px; height:34px; }
  .hero-arrow.prev{ left:10px; }
  .hero-arrow.next{ right:10px; }

  .focus-grid{ grid-template-columns:repeat(2,1fr); }
  .news-grid{ grid-template-columns:1fr; }
  .news-header{ flex-direction:column; align-items:flex-start; gap:8px; }

  .partners-grid{
    grid-template-rows:repeat(6, 60px);
    height:426px;
    grid-auto-columns:calc((100% - 14px) / 2);
  }

  .projects-images{ grid-template-columns:repeat(2,1fr); }
  .projects-box{ padding:22px; }

  .section-heading h2{ font-size:20px; }

  .team-intro { font-size:16px; margin-bottom:30px; }
  .team-card{ padding-left:20px; padding-right:20px; }
  .members-btn{ width:100%; }

  .btn-container-right{ justify-content:center; }
}

/* ---------- Small phone (≤480px) ---------- */
@media (max-width:480px){
  .hero{ height:560px; }
  .hero-content{ padding:0 16px; }
  .hero-content h1{ font-size:24px; }
  .hero-content p{ font-size:13px; margin:14px 0 20px; }
  .hero-dots{ bottom:14px; }

  .intro-cards{ padding:34px 0 20px; }
  .info-card .icon-circle{ width:56px; height:56px; font-size:20px; }

  .stats-bar .container{ grid-template-columns:1fr 1fr; gap:20px 10px; }
  .stat-item .stat-number{ font-size:24px; }

  .focus-grid{ grid-template-columns:1fr; }
  .focus-card{ padding:20px 12px; }

  .news-thumb{ height:170px; }

  .partners-grid{
    grid-template-rows:repeat(6, 54px);
    height:384px;
    grid-auto-columns:calc(100% - 0px);
  }

  .testimonial-section{ padding:22px 14px; min-height:0; }
  .testimonial-text h3{ font-size:17px; }
  .testimonial-text p{ font-size:13.5px; }
  .testimonial-photo{ height:150px; }

  .team-card{ min-height:auto; padding:50px 16px 22px; }
}