/* Basic Reset */
:root {
  --bg: #f6f7fb;
  --muted: #6b7280;
  --accent: #2563eb;
  --card: #ffffff;
  --shadow: 0 6px 18px rgba(20,20,30,0.08);
  --page-gap: 40px;
  --hero-height: 180px;
  --breadcrumb-height: 76px;
  --container-max: 1100px;
  --card-bg: #ffffff;
  --title-color: #0f172a;
}

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

 body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
 }

#particles-header {
  position: relative;
  height: auto;
  background-color: #0f0f0f;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  font-weight: calc(bolder*800);
  z-index: 0;
  top: 0;
  left: 0;
}

/* Header container with minimal height */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 20px;
  background: transparent;
  color: white;
  position: relative;
  z-index: 1;
}

/* Container for mail + search, inline */
.top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

/* Compact mail link */
.mail-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #00ff99;
  text-decoration: none;
  padding: 0 8px;
  height: 36px;
  line-height: 36px;
  transition: transform 0.2s ease, color 0.2s ease;
  position: relative;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInMail 0.6s ease forwards;
  animation-delay: 0.2s;
}

/* Tooltip (unchanged) */
.mail-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.mail-link::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mail-link:hover::after,
.mail-link:hover::before {
  opacity: 1;
}

.mail-link:hover {
  color: #00ffaa;
  transform: translateY(-2px);
}

.mail-link:hover i {
  animation: wiggle 0.4s ease;
}

/* Search form styling */
.search-form {
  display: flex;
  align-items: center;
  height: 36px;
}

.search-wrapper {
  position: relative;
  width: 152px; /* Smaller width */
  transition: width 0.3s ease;
}

.search-wrapper:has(input:focus) {
  width: 220px;
}

.search-input {
  width: 65%;
  padding: 6px 20px 6px 20px;
  height: 20px;
  border: 1px solid #4654ed;
  border-radius: 18px;
  font-size: 13px;
  outline: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #999;
}

.clear-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  display: none;
}

/* Fade-in for mail link */
@keyframes fadeInMail {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wiggle icon effect */
@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-10deg); }
  50%  { transform: rotate(10deg); }
  75%  { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

/* Responsive for small screens */
@media (max-width: 480px) {
  .top-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-wrapper {
    width: 100%;
  }

  .search-results {
    max-width: 100%;
}
}

.middle-navbar {
  position: relative;
  height: 98px;
  width: 100%;
  overflow: hidden;
  background-color: #76b7ef; /* fallback base color */
  color: white;
}

.wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  overflow: hidden;
  z-index: 0;
}

.wave-motion {
  width: 200%; /* Slightly wider for animation */
  height: 80%;
  animation: waveFlow 10s linear infinite;
}

.wave-front,
.wave-back {
  animation: waveMove 4s ease-in-out infinite alternate;
}

/* Slight up-and-down motion */
@keyframes waveMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* Horizontal movement */
@keyframes waveFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

.middle-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
  width: 100%;
  height: 100%;
  padding: 0 10px;
}

.nav-logo {
  height: 84px;
  max-width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition:max-width 0.3s ease, height 0.3s ease;
}

.org-center {
  animation: floatText 3s ease-in-out infinite;
}

@keyframes floatText {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

.org-name {
  font-size: 46px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;

  /* 3D shadow effect */
  text-shadow:
    1px 1px 0 #555,
    2px 2px 0 #444,
    3px 3px 0 #333,
    4px 4px 0 #222,
    5px 5px 0 #111;

  letter-spacing: 1px;
  transform: perspective(500px);
}

.org-policy {
  font-size: 16px;
  color: #081018;
  margin-top: 4px;
  white-space: nowrap;
  font-style: italic;
  text-align: center;
}

@media (max-width: 600px) {
  .nav-logo {
    max-width: 60px;    /* Shrinks the logo on small screens */
    height: 32px;
  }

  .middle-content {
    gap: 12px;           /* Slightly reduce spacing to fit better */
  }

  .org-name {
    font-size: 16px;
  }

  .org-policy {
    font-size: 11px;
  }
}

/* Sticky menu bar */
.top-navbar {
  background-color: #003b6f;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  height: 28px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-list {
  list-style: none; /* remove bullets */
  display: flex; /* horizontal layout */
  gap: 30px; /* space between items */
  margin: 0;
  padding: 0; 
  align-items: center; 
}

.nav-list li {
  position: relative; /* for dropdown positioning */
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  display: inline-block; /* make the entire area clickable */
}

/* Dropdown container */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.15);        /* frosted glass base */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);                    /* blur effect */
  border-radius: 10px;                           /* rounded corners */
  color: #ffffff;                               /* white text */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Show on hover */
.dropdown:hover .dropdown-menu {              /* show dropdown on hover */
  display: block;                           /* show the dropdown */
}

/* Dropdown menu styling */
/* Base state: hidden */
.dropdown-menu {
  position: absolute;                         /* position relative to parent */
  display: block;                               /* hidden by default */
  top: 100%;
  left: 0;                                    /* align left */
  margin-top: 2px;                           /* space from parent */
  opacity: 0; /* invisible */
  transform: translateY(-16px);             /* slight upward offset */
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;                            /* above other content */ 

  background: rgba(8, 13, 148, 0.15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  min-width: 400px;
  color: #ffffff;
}

/* Show only when hovering over the parent <li> */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  display: inline-block;
  transition: all 0.2s ease;
}

.nav-list li:hover > a {
  text-decoration: underline;         /* Underline on hover */
}

.dropdown-content {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  min-width: 600px;                 /* allow full height */
}

/* Parent Title on Left */
.parent-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #005a9c;
  border-right: 4px solid rgba(255, 255, 255, 0.3);
  text-decoration: underline;
  padding: 0 12px;
}

/* Child items on Right */
.child-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);            /* matrix layout */
  gap: 16px;
}

.child-item {
  background-color: rgba(156, 166, 241, 0.1);
  border: 1px solid rgba(23, 30, 225, 0.3);
  border-radius: 8px;
  box-sizing: content-box;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 95px;                /* Fixed height to keep layout consistent */
  overflow: hidden;             /*  Prevent overflow beyond box */
  transition: all 0.3s ease;
}

.child-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);    /* strong shadow    */
  transform: translateY(-4px) scale(1.1);
  border-color: darkblue;
  border-width: 1px;
}

.child-title {
  font-weight: 600;
  font-size: 14px;
  color: #003b6f;
  margin-bottom: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;        /*  Only 1 line, shows ellipsis if too long */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
}

.child-desc {
  font-size: 11px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #100909;
  text-align: justify;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;        /*  Max 2 lines */
  line-clamp: 5;
  -webkit-box-orient: vertical;
}

@media (max-width: 500px) {
  .child-items {
    grid-template-columns: 1fr;
  }
}

/*      Footer  Area      */
footer {
  position: relative;
  width: 100%;
  min-height: 220px;  /* adjust height to fit your content */
  text-align: center;
  overflow: hidden;

  /* Wave as the only background */
  background: url("assets/wavy/wavy-black-white-background.jpg")
              no-repeat top center,
              rgba(255, 255, 255, 0.15);   /* fallback base color below wave */
              -webkit-backdrop-filter: blur(12px);
              backdrop-filter: blur(12px);
  background-size: 100% auto, cover;  /* wave fits top, color fills rest */
  background-repeat: no-repeat;
  background-position: top center;
}

.footer-container {
  width: 100%;
  margin: 0 auto; /* center container */
  display: flex; 
  flex-wrap: wrap;
  gap: 0;
  padding: 0; /* adjust as needed */
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* Animate left-right */
@keyframes swipeHint {
  0% { transform: translateX(0); opacity: 0.7; }
  25% { transform: translateX(-10px); opacity: 1; }
  50% { transform: translateX(10px); opacity: 1; }
  75% { transform: translateX(-10px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.7; }
}

/* Show only on mobile */
@media (max-width: 768px) {
  .swipe-hint {
    display: block;
  }
}

.footer-col {
  flex: 1;
  min-width: 250px;
  margin: 40px;
  gap: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
}

.footer-col h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  color: #2511bc;
  text-align: left;
  vertical-align: top;
}

.footer-col h4 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  color: #2511bc;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;         /* space below text */
  width: 100%;          /* underline length */
  height: 3px;          /* underline thickness */
  background: linear-gradient(
    90deg, 
    #fbbf24,  /* gold */
    #22d3ee,  /* cyan */
    #a855f7,  /* purple */
    #ef4444,  /* red */
    #10b981,  /* green */
    #fbbf24   /* loop back to gold */
  );

  background-size: 300% auto;   /* larger so colors can scroll */
  animation: rainbowLoop 6s linear infinite;
  border-radius: 2px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg, 
    #fbbf24,  /* gold */
    #22d3ee,  /* cyan */
    #a855f7,  /* purple */
    #ef4444,  /* red */
    #10b981,  /* green */
    #fbbf24   /* loop back to gold */
  );

  background-size: 300% auto;   /* larger so colors can scroll */
  animation: rainbowLoop 6s linear infinite;
  border-radius: 2px;
}

/* Rainbow scroll effect */
@keyframes rainbowLoop {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

.footer-logo {
  width: 80px;
  height: auto;
  display: flex;
  margin-bottom: 24px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.footer-col p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #050f1c;
  margin: 8px 0;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: left;
}

.footer-col p i {
  color: #fbbf24;    /* gold icons */
  min-width: 20px;   /* keeps alignment tidy */
  text-align: center;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 10px 0;
}

.footer-col ul li a {
  color: #07111b;
  display: flex;
  gap: 8px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.footer-col ul li a:hover {
  opacity: 1;
  transform: translateY(-6px) scale(1.2);
  text-decoration: underline; /* underline on hover */
  background: linear-gradient(
    90deg, 
    #fbbf24,  /* gold */
    #22d3ee,  /* cyan */
    #a855f7,  /* purple */
    #ef4444,  /* red */
    #10b981,  /* green */
    #fbbf24   /* loop back to gold */
  );
  border-radius: 16px;
}

.footer-col ul li a i {
  color: #fbbf24;
  min-width: 20px;
  text-align: center;
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Animated footer line */
.footer-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff4b2b, #ff416c, #1de9b6, #2196f3, #ff4b2b);
  background-size: 300% 100%;   /* make the gradient long for smooth animation */
  animation: gradientMove 3s linear infinite;
}

/* Gradient animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Footer bottom text */
.bottom-footer {
  margin-top: 10px;
  bottom: 30px;
  width: 100%;
  padding: 0 0 35px 0;
  align-items: center;
  justify-content: center;
  display: flex;
  color: #050f1c;
}

.bottom-middle p {
  text-align: center;
  font-size: 0.9rem;
}

/* Social Bar - Vertical Orbit Dot Style */
.social-bar {
  position: fixed;
  right: 24px;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1200;
  align-items: flex-end;
}

.social-btn-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 60px;
  height: 60px;
}

.social-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: box-shadow 0.2s, transform 0.35s cubic-bezier(.4,1.6,.6,1);
  overflow: visible;
}

.social-btn.youtube { 
  background: #FF0000; 
  color: #fff; 
}

.social-btn.facebook { 
  background: #1877f2; 
  color: #fff; 
}

.social-btn.instagram { 
  background: #e1306c; 
  color: #fff; 
}

/* Orbit ring */
.social-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid gold;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* Orbit wrapper */
.orbit-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  animation: orbit 6.6s linear infinite;
  transform-origin: center;
}

/* Orbiting dot */
.orbit-dot {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-left: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #867f05 60%, #ca7214 100%);
  box-shadow: 0 0 14px 4px #60a5fa88, 0 0 20px 6px #a855f777;
  animation: selfSpin 1s linear infinite, pulseGlow 2s ease-in-out infinite;
  z-index: 2;
}


@keyframes orbit {
  from { 
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to { 
    transform: translate(-50%, -50%) rotate(360deg);
  }
}


@keyframes selfSpin {
  from { 
    transform: rotate(0deg); 
  }
  to { 
    transform: rotate(360deg); 
    }
}

@keyframes pulseGlow {
  0%, 100% { 
    box-shadow: 0 0 12px 3px #60a5fa88, 0 0 20px 6px #a855f777; 
  }
  50% { 
    box-shadow: 0 0 20px 8px #3b82f6aa, 0 0 30px 12px #a855f7aa; 
  }
}

.social-btn i {
  font-size: 32px;
  z-index: 1;
  position: relative;
}

.social-title {
  opacity: 0;
  pointer-events: visible;
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: #222;
  color: #fff;
  padding: 6px 18px;
  border-radius: 12px;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: opacity 0.25s, transform 0.25s;
  font-weight: 500;
  z-index: 10;
}

.social-btn-wrapper:hover .social-btn,
.social-btn-wrapper:focus-within .social-btn {
  transform: translateX(-120px);
}

.social-btn-wrapper:hover .social-title,
.social-btn-wrapper:focus-within .social-title {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
.social-bar { 
  display: none; 
}
}

/* outer slider container */
.slider {
  width: 100vw;
  height: 780px;
  position: relative;
  overflow: hidden;
  background: none;
}

/* Responsive height for smaller devices */
@media (max-width: 768px) {
  .slideshow {
    height: 80vh;
  }
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* align image to the top */
}

.slide:hover {
  cursor: pointer;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: fill; /* fill the entire content box */
  display: block;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: #fff;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 24px;
  z-index: 2;
  transition: background 0.3s ease;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.arrow.prev {
  left: 10px;
}

.arrow.next {
  right: 10px;
}

/*  service section   */
.services-section {
  padding: 3rem 1rem;
  text-align: center;
  background: gray;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/*  Shows the typewriter  */
.typewriter h3 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 28px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  border-right: 8px solid hsl(86, 88%, 47%); /* cursor */
  display: inline-block;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* highlight style */
.highlight-purple { color: hsl(76, 82%, 49%); }
.highlight-green { color: hsl(83, 80%, 50%); }
.highlight-yellow   { color: yellow; }
.highlight-blue { color: #e7d21a; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: gray;
}

.service-card {
  position: relative;
  width: 200px;
  height: 260px;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-box-reflect: below 25px
    linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.2));
}

.service-card:hover {
  color: #000;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  border: 4px solid #fff;
  background: #000;
  filter: url(#wavy);
}

.service-card::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  border-right: none;
  border: 4px solid #fff;
  background: rgba(255, 255, 255, 0.1);
  filter: url(#wavy);
}

/* Show reflection on hover */
.service-card:hover::before {
  background: #fff;
  transition: 0.5s;
}

svg {
  width: 0;
  height: 0;
} 

.card-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  transition: 0.5s;
  text-align: center;
  color: #fff;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color:#5ee31b;
}

.card-content:hover h3{
  color: #1e40af;
}

.card-content p {
  font-size: 0.9rem;
  color: #ccc;
}

.card-content:hover p {
  color: #000;
}

/* Layout */
.wrap{
  width: 100%;
  max-width: 1400px;
  margin:0 auto;
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  column-gap: 120px;
  align-items: start;
  justify-content: center;
}

/* Left column - procedures list */
.procedures {
  background: var(--card);
  padding: 30px;
  margin: 10px;
  box-sizing: border-box;
  border-radius: 28px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.45);
  counter-reset: proc;
  width: 100%;
  max-width: 100%;
}

.procedures h2 {
  margin: 0 0 12px 24px;
  font-size: 1.1rem;
  display: flex;
  text-align: center;
}

.procedures ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.procedures li{
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 8px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  cursor: pointer;
  background: linear-gradient(180deg,#a1aeef,-webkit-backdrop-filter blur(12px));
  box-shadow: 0 4px 8px rgba(16,24,40,0.04);
  overflow: hidden;
}

/* auto increment number */
.procedures li::before{
  counter-increment: proc;
  content: counter(proc, decimal-leading-zero) ".";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  color: white;
  border: 2px solid;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(37,99,235,0.18);
  transition: opacity 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.procedures li:hover::before {
  background: linear-gradient(180deg, var(--accent), #1e40af);
  color: white;
  opacity: 1;
}
.procedures li .meta {
  font-size: .95rem;
  color: #000;
}

.procedures li:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.12);
  background: linear-gradient(180deg,#ffffff,#549ff6);
}

/* Right column - forms as books */
.forms{
  margin-top: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0,0,0,0.30);
  padding: 30px;
  gap: 24px;
  border-radius: 24px;
  width: 100%;
  max-width: 100%;
}

.forms h2 {
  margin: 0;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.book{
  width: 100%;
  height: 100px;
  perspective: 1400px;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Shrink the cover on hover so its right edge aligns with left column edge */
.book:hover .cover {
  transform: rotateY(-150deg) translateX(-6%);
  width: 30%; /* Shrinks to align with the left column edge */
  box-shadow: -18px 22px 40px rgba(2,6,23,0.12);
  z-index: 0;
  pointer-events: none;
}    

.book-inner{
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.9,.3,1);
}

    /* The cover (front) */
.cover {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 85%;
  z-index: 2;
  background: linear-gradient(180deg, #577fd5, #0f172a);
  color: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 0.55s ease, z-index 0.55s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
}

.cover h3 {
  margin:0;
  font-size: 1.05rem;
}

.cover p {
  margin: 0;
  font-size: .95rem;
  color: rgba(255,255,255,0.85);
}

    /* pages/content that will be revealed */
.pages {
  position: absolute;
  inset: 0;
  padding: 18px;
  background: linear-gradient(180deg,#fff,#f8fafc);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  gap: 1rem;
}

.page-inner {
  width: 95%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  border: 1px solid rgba(17,24,39,0.04);
  background: linear-gradient(180deg,#fff,#fbfdff);
  box-shadow: 0 4px 10px rgba(2,6,23,0.04);
  padding: 0 16px;
}

.page-inner div:first-child {
  margin:0;                      /* ensure no extra gap on description */
  font-size:.9rem;
  color:#374151;
}

.download-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.download-btn:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: #fff;
}

.book:hover .book-inner {
  transform: translateX(6px);
}

/* responsive */
@media (max-width:1000px) {
  .wrap {
    grid-template-columns: 1fr;
  }
  .cover {
    width: 56%
  }
  .pages {
    padding-left: 40%
  }
}

/* Page Header  */
.page-header {
  position: relative;
  height: 180px;
  overflow: hidden;
}

canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.header-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.page-header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: bold;
  transform: translateY(-16px);
}

.breadcrumb-wrap {
  margin: calc(var(--page-gap) * -1) auto 0 auto;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
  position: relative;
  z-index: 2;
  display: block;
  max-width: 1279px;
}
/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  box-sizing: content-box;
  height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(116, 152, 243, 0.02);
  border: 3px solid rgba(15,23,42,0.04);
  width: fit-content;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.14);
}

.breadcrumb:hover {
  transform: translate(5px) scale(1.18);
  box-shadow: inset 0 8px 17px rgba(0,0,0,0.65);
  margin-left: 34px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center; 
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--accent);
}

.breadcrumb span {
  opacity: 0.8;
  font-weight: 600;
}


/* Page Content */
.page-content {
  background: #fff;
  box-sizing: content-box;
  max-width: 1200px;
  margin: -30px auto 50px; /* overlaps a little into header for style */
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 6px;
  text-align: justify;
} 

.page-content p {
  text-align: justify;
  font-size: 18px;
}

@media (max-width:720px) {
  :root { --page-gap: 16px; 
    --hero-height: 140px; 
  }
  .header-overlay { 
    padding: var(--page-gap);
  }
  .breadcrumb-wrap { 
    padding: calc(var(--page-gap) * 0.9); 
    max-width: calc(100% - 32px); 
  }
  .breadcrumb { 
    font-size: 0.9rem; 
    height:38px 
  }
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(7, auto);
  gap: 12px; /* reduced gap */
  max-width: 1200px;
  margin: 8px auto; /* reduced margin */
  padding: 4px;
}

.grid-item {
  background-color: #b6d6f5;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 16px;
  box-sizing: content-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: #0f172a;
  min-height: 40px;
  text-align: center;
  transform: transition 0.32 ease in ease out;
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15,23,42,0.12);
  background: linear-gradient(180deg,#ffffff,#549ff6);
}

.grid-item .desc {
  font-weight: normal;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
  text-align: justify;
}

.grid-item.row1 {
  background-color: #2563eb;
  color: #ffffff;
}

@media (max-width: 768px) {
.grid-container {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(21, auto);
}
}

/*      Grid display of card for waterstatus    */
.docgrid-container { 
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 30px; 
  transition: all 0.5s ease;
}

.file-card { 
  position: relative;
  background: #fff; 
  border-radius: 10px; 
  height: fit-content;
  overflow: hidden; 
  box-sizing: border-box;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3); 
  outline: none;
  -webkit-tap-highlight-color: transparent;
  /* smooth animation */
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s;
  opacity: 1;
}

.file-card:hover { 
  transform: translateY(-10px) scale(1.05); /* moves up + zooms a bit */
  box-shadow: 0 10px 20px rgba(0,0,0,0.65); /* deeper shadow */
}

.file-card img { 
  width: 100%; 
  height: 140%; 
  object-fit: cover; 
  cursor: pointer; 
  display: block; 
}

.file-card::after { 
  content: "View PDF"; 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%) scale(0.8); /* start smaller */
  background: rgba(0,0,0,0.6); 
  color: #fff; 
  padding: 8px 12px; 
  border-radius: 5px; 
  opacity: 0; 
  transition: opacity 0.3s ease, transform 0.3s ease; 
  font-size: 1rem;
}

.file-card:hover::after { 
  opacity: 1; 
  transform: translate(-50%, -50%) scale(1); /* fade in & zoom */
}

/* engraved text */
.file-name {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 5px;
  font-weight: bold;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  background: rgba(255, 255, 255, 0.85); /* semi-transparent */
  backdrop-filter: blur(3px); /* makes it look etched */
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15); /* engraved effect */
}

#viewMoreContainer { 
  position: relative;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  margin-top: 10px; 
}

#viewMoreBtn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 10px 20px; 
  background: #007bff; 
  color: #fff; 
  margin-right: 5px;
  border: none; 
  border-radius: 20px; 
  cursor: pointer; 
  font-size: 1rem; 
  transition: padding 0.3s ease; 
  position: relative; 
  overflow: hidden; 
}

#viewMoreBtn .arrow {
  position: relative;
  display: inline-block;
  color: #000;
  margin-left: 20px;
  transform: rotate(-80deg);
  transition: transform 0.4s ease, margin-left 0.4s ease;
  right: -70px;           /* start off outside */
}

/* Hover effect: arrow slides in and rotates */
#viewMoreBtn:hover {
  padding-right: 60px;
  border-radius:  40px;
  color: #000;
}

#viewMoreBtn:hover .arrow {
  transform: rotate(0deg);
  right: -20px;          /* slide into button */
  background: none;
}

.hidden { 
  opacity: 0; 
  height: 0; 
  overflow: hidden; 
  pointer-events: none; 
  transition: opacity 0.5s ease, height 0.5s ease; 
}

/*    Core Values alignment   */
.item-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);    /*  two equal columns   */
  width: 100%;
  height: 100%;
  gap: 30px;        /*    space between columns and rows    */
  margin: 20px 0;
}

.item-list {
  background: #fff;     /* optimal, gives card effect */
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s;
  opacity: 1;
}

.marker {
  font-size: 20px;
  color: #007bff;     /*  hightlight icon color */
  flex-shrink: 0;
}

.title-wrap .title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #006bff;
}

.title-wrap .desc {
  font-size: 18px;
  color: #000;
  line-height: 1.5;
  text-align: justify;
}

.item-list:hover { 
  transform: translateY(-10px) scale(1.05); /* moves up + zooms a bit */
  box-shadow: 0 10px 20px rgba(0,0,0,0.65); /* deeper shadow */
  border-color: #ccc;
}

/*  Responsive: switch to 1 column on small screens */
@media (max-width: 768px) {
  .item-wrap {
    grid-template-columns: 1fr;
  }
}

/*      History alignment   */
.map-desc {
  display: flex;
  align-items: flex-start; /* top aligned */
  gap: 20px;
  margin: 20px;
}

.map-wrap {
  flex: 0 0 50%; /* take about half width */
  max-width: 600px;
}

.map-wrap img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.desc {
  flex: 1; /* take remaining space */
  line-height: 1.6;
  color: #333;
}

.desc p {
  margin: 0 0 12px;
  font-size: 18px;
  text-align: justify;
}

  /* Responsive: stack on small screens */
@media (max-width: 768px) {
  .map-desc {
    flex-direction: column;
  }
  .map-wrap {
    flex: none;
    width: 100%;
  }
}

/*      Organization Structures layout    */
.page-content {
  text-align: center;         /* Centers text and inline elements */
  margin: o auto;          /* Centers block with no spacing */
  width: 100%;          /* Keeps content nicely contained */
}

.page-content h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #004080;             /* Optional: gives a professional look */
}

.page-content img {
  display: block;
  margin: 0 auto;             /* Centers image as a block */
  max-width: 100%;            /* Makes it responsive */
  height: auto;
  border-radius: 10px;        /* Optional: smooth corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
}


/* Reports configuration */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -10px;
  width: calc(100% + 20px);
  height: 0;
  background: linear-gradient(to top, rgba(173, 216, 230, 0.8), transparent);
  transition: height 0.4s ease;
  z-index: 0;
  border-radius: 0 0 12px 12px;
}

.card:hover::before {
  height: 75%;
}

.card * {
  position: relative;
  z-index: 1;
}

.card img {
  width: 85%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.filename {
  font-weight: bold;
  color: #333;
  text-shadow: 1px 1px 0 #ccc;
  margin-bottom: 8px;
}

.file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.85em;
  color: #666;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.file-icon {
  font-size: 110px;      /* increase from 85px to fit card */
  color: #4a90e2;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
  animation: bounce 1.5s infinite;    /* infinite bounce  */
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);   /* adjust height of bounce */
  }
}

.view-more-container {
  text-align: center;
  margin-top: 20px;
}

/*    news configuration    */
.event-container {
  max-width: 1200px;
  margin: auto;
}

.event {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: slideIn 0.6s forwards;
}

.event-card:hover {
  transform: translateY(-6px);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.event-content {
  padding: 15px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.calendar-box {
  display: inline-block;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  width: 100px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.calendar-month {
  background: #007bff;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px;
  text-transform: uppercase;
}

.calendar-day {
  background: #fff;
  color: #222;
  font-size: 18px;
  font-weight: bold;
  padding: 6px;
}

.calendar-year {
  background: #f1f1f1;
  color: #555;
  font-size: 12px;
  font-weight: bold;
  padding: 4px;
}

.title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1b0450;
}

.description {
  font-size: 14px;
  color: #000;
  margin-bottom: 30px;
  line-height: 1.5;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background: #007bff;
  text-decoration: none;
  padding: 10px;
  position: absolute;
  left: -100%;
  bottom: 0;
  width: 100%;
  transition: left 0.4s ease;
}

.read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.event-card:hover .read-more {
  left: 0;
}

.event-card:hover .read-more i {
  transform: translateX(4px);
}

.view-more {
  display: block;
  margin: 30px auto 0;
  text-align: center;
  background: #007bff;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 22px;
  text-decoration: none;
  transition: background 0.3s ease;
  width: fit-content;
  cursor: pointer;
}

.view-more:hover {
  background: #0056b3;
}

/* Smooth Expand/Collapse */
.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.6s ease;
}

.shown {
  max-height: 1000px; /* enough height for full card */
  opacity: 1;
  transition: all 0.6s ease;
}

/*  wavy circle animation */
.loader {
  position: relative;
  width: 300px;       /* full loader size */
  height: 300px;        /*  match width for a perfect circle   */
  transform-style: preserve-3d;
  transform: perspective(500px) rotateX(60deg);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 100px auto auto auto;

/* center it within the 150px column */
  left: 50%;
  transform: translateX(-50%) perspective(500px) rotateX(60deg);
  overflow: visible; /* allow animation to extend naturally */
}

.loader span {
  position: absolute;
  display: block;
  border: 5px solid #e7dfdf;
  box-shadow: 0 5px 0 #ccc, inset 0 5px 0 #ccc;
  box-sizing: border-box;
  border-radius: 50%;
  animation: animate 3s ease-in-out infinite;
}

.loader span:nth-child(1) {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  animation-delay: 1.4s;
}

.loader span:nth-child(2) {
  top: 10px;
  left: 10px;
  bottom: 10px;
  right: 10px;
  animation-delay: 1.3s;
}

.loader span:nth-child(3) {
  top: 20px;
  left: 20px;
  bottom: 20px;
  right: 20px;
  animation-delay: 1.2s;
}

.loader span:nth-child(4) {
  top: 30px;
  left: 30px;
  bottom: 30px;
  right: 30px;
  animation-delay: 1.1s;
}

.loader span:nth-child(5) {
  top: 40px;
  left: 40px;
  bottom: 40px;
  right: 40px;
  animation-delay: 1.0s;
}

.loader span:nth-child(6) {
  top: 50px;
  left: 50px;
  bottom: 50px;
  right: 50px;
  animation-delay: 0.9s;
}

.loader span:nth-child(7) {
  top: 60px;
  left: 60px;
  bottom: 60px;
  right: 60px;
  animation-delay: 0.8s;
}

.loader span:nth-child(8) {
  top: 70px;
  left: 70px;
  bottom: 70px;
  right: 70px;
  animation-delay: 0.7s;
}

.loader span:nth-child(9) {
  top: 80px;
  left: 80px;
  bottom: 80px;
  right: 80px;
  animation-delay: 0.6s;
}

.loader span:nth-child(10) {
  top: 90px;
  left: 90px;
  bottom: 90px;
  right: 90px;
  animation-delay: 0.5s;
}

.loader span:nth-child(11) {
  top: 100px;
  left: 100px;
  bottom: 100px;
  right: 100px;
  animation-delay: 0.4s;
}

.loader span:nth-child(12) {
  top: 110px;
  left: 110px;
  bottom: 110px;
  right: 110px;
  animation-delay: 0.3s;
}

.loader span:nth-child(13) {
  top: 120px;
  left: 120px;
  bottom: 120px;
  right: 120px;
  animation-delay: 0.2s;
}

.loader span:nth-child(14) {
  top: 130px;
  left: 130px;
  bottom: 130px;
  right: 130px;
  animation-delay: 0.1s;
}

.loader span:nth-child(15) {
  top: 140px;
  left: 140px;
  bottom: 140px;
  right: 140px;
  animation-delay: 0s;
}

@keyframes animate {
  0%,-100% {
    transform: translateZ(-100px);
  }
  50% {
    transform: translateZ(100px);
  }
}