/* Hero Slideshow */
.hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* Text bottom side */
  justify-content: center;
  color: white;
  text-align: center;
}

/* Slides container */
.slides {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.slides img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  top: 0;
  left: 0;
}

.slides img.active {
  opacity: 1;
}

/* Gradient overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

/* Text container */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 30px 20px 60px;
  animation: fadeIn 1.5s ease-in-out;
  
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FF6F0A;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.8;
  font-family: 'Poppins', sans-serif;
  color: #f1f1f1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 350px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
}

/* Section Title */
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: #fc650d;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #fc650d;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* 🔸 Vision & Mission Section */
.vision-mission {
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
  padding: 10px 10px;
}

/* 🔸 Service Grid */
.service-grid {
  display: flex;
  
 
  gap: 35px; /* spacing between cards */
}

/* 🔸 Service Card */
.service-card {
  background: linear-gradient(135deg, #0b2447, #1e3a8a);
  color: #ffffff;
  border-radius: 20px;
  gap: 40px;
  padding: 35px 35px;
  width: 70%;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* 🔸 Icon */
.icon {
  font-size: 45px;
  color: #38bdf8;
  margin-bottom: 14px;
}

/* 🔸 Vision – smaller card */
.service-card:first-child {
  width: 65%;
  background: linear-gradient(135deg, #0b2447, #2563eb);
}

/* 🔸 Text Styles */
.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #e0e7ff;
  max-width: 420px;
  margin: 0 auto;
}

/* 🔸 Animation */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔸 Responsive */
@media (max-width: 768px) {
  .service-card {
    width: 90%;
  }
  .service-card:first-child {
    width: 85%;
  }
  .section-title {
    font-size: 26px;
  }
}


/* Nenasala Section */
.nenasala-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #fdfcfb 0%, #faf6f3 100%);
  animation: fadeIn 1s ease-in-out;
}

/* Card Design */
.nenasala-section .card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px 30px;
  max-width: 580px;
  height: 330px;
  flex: 1 1 400px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effect: lift up + glow */
.nenasala-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Decorative gradient border animation */
.nenasala-section .card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffb67afa, #ffa846);
  border-radius: 16px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.nenasala-section .card:hover::before {
  opacity: 1;
}
.nenasala-section .card > * {
  position: relative;
  z-index: 1;
}

/* Title */
.nenasala-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: #e85c0d;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  position: relative;
}

/* Title underline animation */
.nenasala-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: #e85c0d;
  transition: width 0.4s ease;
}
.nenasala-section .card:hover h3::after {
  width: 60%;
}

/* Body Text */
.nenasala-section p {
  color: #444;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 12px;
  text-align: justify;
}

/* Fade-in animation for each card */
.nenasala-section .card {
  opacity: 0;
  animation: slideUp 1s forwards;
}
.nenasala-section .card:nth-child(1) { animation-delay: 0.2s; }
.nenasala-section .card:nth-child(2) { animation-delay: 0.5s; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nenasala-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .nenasala-section .card {
    max-width: 90%;
  }
}

/*objective*/
.objectives-section {
      max-width: 1100px;
      margin: 0 auto;
      background: var(--card-bg);
      border-radius: var(--radius);
      box-shadow: 0 6px 20px rgba(15,23,42,0.06);
      overflow: hidden;
      display: flex;
      gap: 0;
      align-items: stretch;
    }

    /* Left image column */
    .obj-image {
      flex: 1 1 45%;
      min-height: 280px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(180deg, rgba(15,118,110,0.06), rgba(15,118,110,0.02));
      padding: 18px;
    }

    .obj-image img {
      width: 100%;
      max-width: 420px;
      height: auto;
      border-radius: 10px;
      object-fit: cover;
      box-shadow: 0 8px 26px rgba(2,6,23,0.08);
      border: 1px solid rgba(15,118,110,0.06);
    }

    /* Right text column */
    .obj-content {
      flex: 1 1 55%;
      padding: 28px 34px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 12px;
    }

    .obj-header {
      display:flex;
      align-items:center;
      gap:12px;
    }

    .obj-header h2 {
      font-size: 1.5rem;
      margin: 0;
      color: #e85c0d;
    }

    .obj-header p {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .obj-list {
      margin-top: 6px;
      padding-left: 0;
      list-style: none;
      display: grid;
      gap: 10px;
    }

    .obj-list li {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 10px 12px;
      background: linear-gradient(90deg, rgba(15,118,110,0.02), transparent);
      border-radius: 8px;
      border: 1px solid rgba(15,118,110,0.04);
    }

    .obj-list svg {
      width: 22px;
      height: 22px;
      flex: 0 0 22px;
      margin-top: 2px;
      color:#2c3e8f;
      fill: var(--accent);
    }

    .obj-list .text {
      font-size: 1rem;
      color: #071431;
    }

    /* responsive: stack on small screens */
    @media (max-width: 820px) {
      .objectives-section {
        flex-direction: column;
      }
      .obj-image, .obj-content {
        flex: none;
      }
      .obj-image {
        padding: 14px;
      }
      .obj-content {
        padding: 18px;
      }
    }
/* Partners Section */
.partners {
  text-align: center;
  padding: 40px 20px;
}


.partner-slider { 
  width: 100%; 
  max-width: 1400px; 
  margin: 0 auto; 
  overflow: hidden; 
  border-radius:12px; 
  box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

.partner-track { 
  display:flex; 
  width: calc(270px*8); 
  animation: slide 10s linear infinite; 
}

.partner-card { 
  min-width:200px; 
  height:200px; 
  margin:10px; 
  border-radius:12px; 
  overflow:hidden; 
  box-shadow:0 5px 15px rgba(0,0,0,0.1); 
  flex-shrink:0;
}

.partner-card img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
}

@keyframes slide { 
  0%{transform:translateX(0);} 
  100%{transform:translateX(-50%);} 
}

/* Sponsor Section */
.sponsor-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  background: linear-gradient(135deg, #fdfcfb 0%, #fdf8f5fb 100%);
  animation: fadeIn 1s ease-in-out;
  border-radius: 16px;
}

/* Section title */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 30px;
  color: #1d3b8b;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  animation: slideDown 0.8s ease forwards;
}

/* Items container */
.items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Single item box */
.item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f7c7c7;
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  opacity: 0;
  background:#ebe6e4;
  overflow: visible;
  transform: translateY(40px) scale(0.97);
  animation: cardAppear 0.9s ease forwards;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  width: 92%; /* 👈 card width adu karapu eka */
  margin: 0 auto;
}

/* Fancy gradient border */
.item .card-inner {
  display: block;
  background: #606aeb;         /* inner content bg */
  border-radius: 14px;      /* inner radius = outer-radius - padding */
  padding: 18px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
}

/* Image section */
.media {
  flex: 0 0 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Text content */
.content {
  flex: 1;
}
.content h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #2c3e8f;
  font-weight: 600;
}
.content p {
  margin: 0;
  color: #555;
  text-align: justify;
  line-height: 1.55;
  font-size: 15px;
}

/* Hover effect */
.item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}
.item:hover .media img {
  transform: scale(1.12) rotate(1deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Alternate layout */
.items .item:nth-child(even) {
  flex-direction: row-reverse;
}

/* Animations */
@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animation delays (staggered entry) */
.item:nth-child(1) { animation-delay: 0.1s; }
.item:nth-child(2) { animation-delay: 0.25s; }
.item:nth-child(3) { animation-delay: 0.4s; }
.item:nth-child(4) { animation-delay: 0.55s; }
.item:nth-child(5) { animation-delay: 0.7s; }

/* Responsive */
@media (max-width: 800px) {
  .item {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
  .items .item:nth-child(even) {
    flex-direction: column;
  }
  .media {
    width: 70%;
    max-width: 200px;
    margin: 0 auto;
  }
  .content {
    padding-top: 12px;
  }
}


/* Section title */
.section-title {
  text-align: center;
  color: #ff6600;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 10px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background-color: #ff6600;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Manager card (stacked layout) */
.manager-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 35px;
  text-align: center;
}

/* Image styling */
.manager-photo {
  margin-bottom: 20px;
}

.manager-photo img {
  width: 280px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 5px solid #e6e6e6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.manager-photo img:hover {
  transform: scale(1.05);
}

/* Info below image */
.manager-info {
  margin-bottom: 20px;
}

.manager-name {
  font-size: 22px;
  font-weight: 700;
  color: #2b4f81;
  margin: 0;
}

.manager-qual {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

.manager-title {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* Paragraph content below info */
.manager-content {
  max-width: 750px;
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  text-align: justify;
}

.manager-content p {
  margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .manager-photo img {
    width: 220px;
  }

  .manager-content {
    text-align: left;
    padding: 0 10px;
  }
}

/* Responsive layout */
@media (max-width: 768px) {
  .manager-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .manager-photo img {
    width: 220px;
    height: 500px;
  }

  .manager-content p {
    text-align: left;
  }

  .manager-info {
    text-align: center;
  }
}

/* Updated: circular avatar + equal-height cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px ;
  align-items: stretch ; /* stretch cards to equal heights */
  width: 100% ;
  box-sizing: border-box ;
  margin: 0 ;
  padding: 0 ;
}

/* ensure grid cells force children to full height */
.team-grid > .member {
  height: 100%;      /* fill grid cell */
}

/* Member card */
.member {
  max-width: 1200px;
  background: #fafafa;
  border-radius: 12px;
  width: 400px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  transition: transform .25s ease, box-shadow .25s ease;
   /* optional baseline height for nicer look */
}

/* Circular avatar (centered) */
.avatar {
  width: 120px;       /* square */
  height: 120px;      /* square */
  border-radius: 50%; /* circle */
  overflow: hidden;
  margin: 0 auto 14px; /* center horizontally and spacing below */
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  flex: 0 0 auto;     /* don't grow/shrink */
  background: #fff;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text and justified bio */
.member-name { font-size: 18px; 
  font-weight:600; 
  color:#222; 
  margin:6px 0 4px;
  text-align: center;
 }

.member-role { 
  font-size:14px; 
  color:#d34710; 
  margin:0 0 6px;
   text-align: center; 
  }

.member-qual { 
  font-size:13px; 
  color:#666; 
  margin-bottom:8px;
   text-align: center;
  }

.member-bio {
  font-size:14px; line-height:1.7; color:#333;
  text-align: justify; text-justify: inter-word;
  margin-bottom:10px;
  flex-grow: 1; /* push button down to align across cards */
}

/* Center the button too */
.view-btn {
  align-self: center;
  display:inline-block;
  text-align:center;
  color:#ff6600;
  border:1px solid #ff6600;
  border-radius:6px;
  padding:8px 12px;
  text-decoration:none;
  font-weight:600;
  min-width: 160px;
}
.view-btn:hover { background:#ff6600; color:#fff; }

/* Hover lift */
.member:hover { transform: translateY(-6px); box-shadow:0 8px 28px rgba(0,0,0,0.12); }

/* Responsive */
@media (max-width: 992px) {
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .avatar { width: 110px; height: 110px; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr !important; }
  .avatar { width: 140px; height: 140px; } /* make avatar a bit larger on mobile */
  .section-title { font-size: 24px; }
}

/* ===== Academic Staff Section ===== */
.staff {
  max-width: 1200px;
  margin: 40px auto;
  padding: 5px 10px;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* ===== Section Title ===== */
.staff h3 {
  flex-direction: auto;
  font-size: 32px;
  font-weight: 700;
  color: #ff6600;
  padding-bottom:40px;
  position: relative;
}

.staff h3::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #ff6600;
  display: block;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* ===== Staff Grid Layout ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  justify-items: center;
}

/* ===== Staff Card ===== */
.staff-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 25px 15px 35px;
  width: 250px;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover Effect */
.staff-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(26, 115, 232, 0.25);
}

/* ===== Staff Image ===== */
.staff-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.staff-card:hover img {
  transform: scale(1.05);
}

/* ===== Staff Name ===== */
.staff-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

/* ===== Staff Role ===== */
.staff-card p {
  font-size: 15px;
  color: #555;
  background: #e8f1ff;
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 500;
  margin-top: 5px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .staff h3 {
    font-size: 26px;
  }

  .staff-card {
    width: 200px;
    padding: 20px 10px 25px;
  }

  .staff-card img {
    width: 100px;
    height: 100px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .card-grid, .nenasala-section { 
    flex-direction: column; 
    align-items: center;
  }
  .round-card { 
    width:250px; 
    height:250px; 
  }
  .partner-card { 
    min-width:200px; 
    height:140px; 
  }
}

  .video-wrap iframe { 
    width:100%; 
    height:220px; 
  }

