@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);
  }
}


/* 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;
    }

    /* news cards design */
.news-container{
  width: 100%;
  height: auto;
  /* background-color: #ffffffc4; */
  background-image: url("5968949.jpg");
  background-size: cover;
  background-attachment: fixed;
}

.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;
    }

    .news-grid {
      /* background-color: #ffffff; */
      padding: 30px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      max-width: 1200px;
      margin: auto;
      /* border-radius: 15px; */
      /* box-shadow: 0 0 15px rgba(0,0,0,0.1); */
    }

    .card {
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      position: relative;
      transition: transform 0.3s ease;
    }

    .card:hover {
      transform: translateY(-5px);
    }

    .card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }

    .card-body {
      padding: 15px;
    }

    .image-wrapper {
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.image-wrapper .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e60023;
  color: white;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  z-index: 2;
}

.image-wrapper .date-box {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff6f00;
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 4px;
  z-index: 2;
}


    .card-title {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 10px;
      color: #222;
    }

    .card-text {
      font-size: 14px;
      color: #555;
      margin-bottom: 10px;
    }

    .meta button {
      float: right;
      padding: 10px;
      color: #fff;
      font-size: 15px;
      background-color: rgb(255, 82, 82);
      margin: 10px;
      border: none;
      border-radius: 5px;
    }

    @media (max-width: 768px) {
      .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      }
    }
    /* 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%); }
    }


    /* 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;
    }