@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Sinhala:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Yaldevi:wght@200..700&display=swap');


* {
  font-family: "Noto Sans Sinhala", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*.center-wrapper {
      width: 100%;
      padding: 25px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;
    }

    .news-header {
      color: #ff2e2e;
      font-size: 14px;
      font-weight: bold;
      letter-spacing: 1px;
      margin-bottom: 10px;
    }

    .stars {
      color: #ff2e2e;
      margin: 0 5px;
    }


    :root {
      --primary-color: #1e3d59;
      --secondary-color: #f5c842;
      --accent-color: #ff6b6b;
      --text-dark: #2c3e50;
      --text-light: #ecf0f1;
      --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
      --shadow-light: 0 4px 15px rgba(0,0,0,0.1);
      --shadow-heavy: 0 10px 30px rgba(0,0,0,0.3);
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.6;
      color: var(--text-dark);
      overflow-x: hidden;
    }
    

    /* Video background */
    #video-bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      object-fit: cover;
      z-index: -2;
      opacity: 0.3;
      transition: opacity 1s ease;
      pointer-events: none;
    }

    /* Gradient Overlay */
    .gradient-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.5), rgba(0, 0, 50, 0.3));
      z-index: -1;
      pointer-events: none;
    }


    

/* RESPONSIVE */

/* Responsive Enhancements for Gradient Overlay */
@media (max-width: 768px) {
  .gradient-overlay {
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.6), rgba(0, 0, 50, 0.4));
    height: 100dvh; /* Use dynamic viewport height for better mobile support */
  }
}


    /* Navigation Styles */
    .navbar {
      background: rgba(30, 61, 89, 0.95);
      backdrop-filter: blur(10px);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: var(--shadow-light);
      transition: all 0.3s ease;
    }

    .navbar.scrolled {
      background: rgba(30, 61, 89, 0.98);
      transform: translateY(-2px);
    }

    .nav-container {
      width: 100%;
      padding:auto;
    }

    .nav-menu {
      display: flex;
      justify-content: center;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-item {
      position: relative;
      margin: 0 1rem;
    }

    .nav-link {
      display: flex;
      align-items: center;
      padding:10px;
      color: var(--text-light);
      text-decoration: none;
      transition: all 0.3s ease;
      border-top-right-radius:5px;
      border-bottom-right-radius:5px;
      position: relative;
      overflow: hidden;
    }

    .nav-link::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: var(--gradient-accent);
      transition: left 0.3s ease;
      z-index: -1;
    }

    .nav-link:hover::before,
    .nav-item.current .nav-link::before {
      left: 0;
    }

    .nav-item.current .nav-link {
      color: var(--text-light);
      font-weight: bold;
    }

    .dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      padding: 5px;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(10px);
      min-width: 230px;
      border-radius: 15px;
      box-shadow: var(--shadow-heavy);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
    }

    .nav-item:hover .dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown-link {
      display: block;
      padding:5px;
      color: var(--text-dark);
      text-decoration: none;
      transition: all 0.3s ease;
      border-radius: 10px;
      margin:5px;
    }

    .dropdown-link:hover {
      background: var(--gradient-accent);
      color: white;
      transform: translateY(5px);
    }

    

/* body content */

.body{
  width: 100%;
  height: auto;
  background-image: url("5968949.jpg");
  background-size: cover;
  background-attachment: fixed;
}

/* main banner */

.mainImg01Wrapper {
  position: relative;
  width: 100%;
  margin: auto;
  height: auto;
  /* border-radius: 10px; */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Gradient overlay using ::before */
.mainImg01Wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

/* Image styling */
.mainImg01 {
  align-self: stretch;
  height: 150px;
  flex-shrink: 0;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  display: block;
}

/* Scale image on hover */
.mainImg01Wrapper:hover .mainImg01 {
  transform: scale(1.1);
}
/* Animation keyframes */
@keyframes animatedBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 480px) {
  .btn-details button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Text styling and animation */
.overlayText {
  position: absolute;
  color: white;
  font-size: 30px;
  text-align:center;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  z-index: 2;
  animation: fadeInUp 4s ease forwards;
  opacity: 0;
}
/* Responsive Styles */
@media (max-width: 768px) {
  .mainImg01 {
    height: 150px;
  }

  .overlayText {
    font-size: 18px;
    line-height: 1.4;
    padding: 0 5px;
  }
}

@media (max-width: 480px) {
  .mainImg01 {
    height: 120px;
  }

  .overlayText {
    font-size: 16px;
    line-height: 1.3;
  }
}

/* Text animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* VISSION MISSION & HISTORY style */
.about-us {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
    padding: 50px 20px;
    font-family: 'Poppins', sans-serif;
    max-width: 1200px;
    margin: auto;
}

.about-us .ab {
    background-color: #fff;
    border-bottom: 6px solid #2c3e50; /* Green accent line */
    border-top: 6px solid #2c3e50; /* Green accent line */
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.about-us .ab:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-us h4 {
    font-size: 22px;
    color: #093153;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.about-us p {
    font-size: 16px;
    color: #313233;
    line-height: 1.7;
    text-align: justify;
}
.about-us i{
    font-size: 25px;
}

@media (max-width: 768px) {
    .about-us {
        padding: 20px;
        grid-template-columns: 1fr;
    }
}


/* topic styles */
.center-wrapper {
      width: 100%;
      padding: 25px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;
    }

    .news-header {
      color: #ff2e2e;
      font-size: 14px;
      font-weight: bold;
      letter-spacing: 1px;
      margin-bottom: 10px;
    }

    .stars {
      color: #ff2e2e;
      margin: 0 5px;
    }

    .main-title {
      font-size: 32px;
      font-weight: 700;
      color: #1a1a1a;
    }

    .underline {
      display: inline-block;
      margin-top: 8px;
      height: 4px;
      width: 100px;
      background-color: #ff2e2e;
      border-radius: 2px;
      position: relative;
    }

    .underline::before,
    .underline::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 5px;
      height: 5px;
      background-color: #ff2e2e;
      border-radius: 50%;
      transform: translateY(-50%);
    }

    .underline::before {
      left: -10px;
    }

    .underline::after {
      right: -10px;
    }

    h2 {
      text-align: center;
      color: #b22222;
      margin-bottom: 10px;
    }

    /* staff list container */
    .staff-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px 15px;
  max-width: 1200px;
  margin: auto;
}

.staff-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px 25px;
  width: 260px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card i {
  color: #001558;
  font-size: 28px;
  margin-bottom: 10px;
}

.staff-card h3 {
  font-size: 18px;
  color: #333;
  margin: 0;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Responsive Design */
@media (max-width: 768px) {
  .staff-card {
    width: 100%;
    max-width: 320px;
  }
}

.content {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.content h3 {
    font-size: 22px;
    padding: 10px;
    border-left: 6px solid #001558;
    border-radius: 10px;
    margin-bottom: 15px;

    display: flex;                /* Flexbox start */
    align-items: center;          /* Vertical center */
    justify-content:left;      /* Horizontal center */

    gap: 10px;                    /* Space between image and text */
}

.content img {
    width: 30px;                  /* Fixed width for better control */
    height: 30px;                 /* Fixed height for consistency */
}


    /* Advanced List Container Styling */
.list-container {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px;
  background: linear-gradient(135deg, #fefefe, #f4f4f4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

/* Decorative vertical line */
.list-container::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 30px;
  bottom: 30px;
  width: 4px;
  /* background: linear-gradient(to bottom, #284aa7, #6fcf97); */
  border-radius: 5px;
}

/* List Styling */
.custom-list2 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-list2 li {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 17px;
  padding: 18px 20px 18px 80px;
  margin-bottom: 10px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: #333;
  transition: transform 0.3s ease, background 0.3s ease;
}

.custom-list2 li:hover {
  background-color: #f9fff9;
  transform: translateX(5px);
}

/* Icon Styling */
.custom-list2 li img {
  width:5%;
  position: absolute;
  left: 20px;
  top: 0px;
  background: #e8f5e9;
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #f1fdf4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .list-container {
    padding: 20px;
    margin: 30px 15px;
  }

  .custom-list2 li {
    font-size: 16px;
    padding: 16px 16px 16px 70px;
  }

  .custom-list2 li img {
    top:10px;
    width: 8%;
  }
}

@media (max-width: 480px) {
  .custom-list2 li {
    font-size: 15px;
    padding: 14px 14px 14px 70px;
  }

  .custom-list2 li img {
    font-size: 16px;
    width: 10%;
  }
}

.content-img{
  display: flex;
  width: 100%;

}

.vission-mission {
  max-width: 1200px;
  margin:auto;
  background-color: #f9f9ff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-top: 6px solid #093153;
  border-bottom: 6px solid #093153;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.vission-mission:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.vission-mission h2 {
  color: #093153;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 600;
}

.vission-mission p {
  color: #444;
  font-size: 16px;
  line-height: 1.6;
}

/* Optional: Responsive */
@media (max-width: 600px) {
  .vission-mission {
    padding: 20px;
  }

  .vission-mission h2 {
    font-size: 24px;
  }

  .vission-mission p {
    font-size: 15px;
  }
}
     
    /* footer menu */

    .footer-menu {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.623), rgba(0, 0, 0, 0.658)),
              url('your-background-image.jpg') no-repeat center center/cover;
  color: white;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #ffc107;
}

.footer-column p {
  margin: 8px 0;
}
.footer-column .call img{
  width: 10%;
}

.rti-img, .gic-img {
  display: block;
  max-width: 100%;
  margin-bottom: 10px;
}

.call {
  font-size: 18px;
  font-weight: bold;
  align-items: center;
}

.footer-column i {
  margin-right: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-column {
    width: 100%;
  }
  /* Center the images inside Join Us column */
  .rti-img,
  .gic-img {
    display: block;
    margin: 0 auto 10px auto; /* Top/Right/Bottom/Left */
  }

  .call {
    text-align: center;
  }
}

    /* Footer */
    footer {
      background: linear-gradient(90deg, #002147, #004080);
      color: var(--text-light);
      text-align: center;
      padding: 0.5rem;
      margin-top: 0;
      position: relative;
      overflow: hidden;
    }

    footer::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--gradient-secondary);
      animation: shimmer 2s ease-in-out infinite;
    }

    @keyframes shimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      header h1 {
        font-size: 1.8rem;
      }

      .nav-menu {
        flex-direction: column;
        align-items: center;
      }

      .nav-item {
        margin: 0.5rem 0;
      }

     

      
    }

    /* Loading Animation */
    .loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background:rgb(253, 81, 81);
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 1;
      transition: opacity 1s ease;
    }

    .loading-overlay.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .loader {
      width: 50px;
      height: 50px;
      border: 5px solid rgba(255,255,255,0.3);
      border-top: 5px solid var(--secondary-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* Scroll indicator */
    .scroll-indicator {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 4px;
      background: var(--gradient-secondary);
      z-index: 9999;
      transition: width 0.1s ease;
    }