/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f9fbfd;
  color: #333;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 60px;
  margin-right: 10px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

header nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

header nav .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

header nav select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

header nav .login {
  padding: 8px 16px;
  background: #0b0b28;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: #eef3fb;
}

.hero h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero p {
  /*max-width: 700px;*/
  /*margin: auto;*/
  /*font-size: 16px;*/
  /*color: #555;*/
}

/* Graph Section */
.graph {
  text-align: center;
  padding: 40px 20px;
}

.graph-box {
  background: #f5faff;
  border-radius: 12px;
  padding: 30px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.legend .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}

.dot.india { background: green; }
.dot.usa { background: blue; }
.dot.uk { background: purple; }
.dot.germany { background: orange; }
.dot.japan { background: red; }
.dot.australia { background: cyan; }

/* Metrics */
.metrics {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
}

.metrics h2 {
  font-size: 22px;
  margin-bottom: 10px;
    font-weight: bold;
}

.metrics p {
  /*font-size: 15px;*/
  /*color: #555;*/
  margin-bottom: 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.card {
  border-radius: 15px;
    padding: 20px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card h3 {
  font-size: 15px;
  /*color: #fff;*/
  margin-bottom: 10px;
}



/* Insights */
.insights {
  text-align: center;
  /*padding: 10px 20px;*/
  padding: 0.93vh 1.85vh;
  background: #f9fbfd;
}

.insights h2 {
  font-size: 22px;
  /*margin-bottom: 10px;*/
  font-weight: bold;
}

.insights p {
  /*font-size: 15px;*/
  /*color: #555;*/
  /*margin-bottom: 30px;*/
}

.chart-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-box h3 {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.chart-box img {
  width: 100%;
  border-radius: 8px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #f1f1f1;
  color: #555;
  font-size: 14px;
}
/* Events Section */
.events {
  text-align: center;
  padding:  50px 50px;
  background: #fff;
}

.events h2 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
}

.events_title {
  font-size: 22px;
  margin-bottom: 10px;
}

.events p {
  /*font-size: 15px;*/
  /*color: #555;*/
  margin-bottom: 30px;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.event-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #222;
  min-height: 0 !important;
}

.event-card p {
  font-size: 14px;
  margin: 4px 0;
}

.event-card .desc {
  margin-top: 10px;
  color: #666;
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eee;
  margin-right: 5px;
  margin-bottom: 8px;
}

.badge.type {
  background: #dfe8ff;
  color: #003399;
}

/* Filters */
.filters {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filters button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.filters button.active {
  background: #0b0b28;
  color: #fff;
  border: none;
}

.events .note {
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}

/* Footer */
.main-footer {
  background: #0b0b28;
  color: #fff;
  padding: 40px 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-about img.footer-logo {
  max-width: 180px;         
  height: auto;      
  object-fit: contain;      
  transition: transform 0.3s ease;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin: 6px 0;
}

.footer-links ul li a {
  text-decoration: none;
  color: #ddd;
  font-size: 14px;
}

.footer-links ul li a:hover {
  text-decoration: underline;
}

.footer-contact p {
  font-size: 14px;
  margin: 6px 0;
  color: #ddd;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
  color: #bbb;
}

    /*.wrap { width: min(100%, 1100px); }*/
    .wrap { width: min(100%, 800px); }

    .title {
      font-size: clamp(24px, 3vw, 36px);
      font-weight: 800;
      letter-spacing: .4px;
      margin: 0 0 14px;
    }
    .sub { opacity: .7; margin: 0 0 20px; font-size: clamp(14px, 1.6vw, 16px); }

    /* ===== Carousel ===== */
    .carousel {
      position: relative;
      border-radius: 10px;
      overflow: hidden; /* mask rounded corners */
      box-shadow: 10px;
      background: #0a0c18;
    }

    /* Scrollable track with snap */
    .track {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 100%;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none; /* Firefox */
    }
    .track::-webkit-scrollbar { display: none; }

    .slide {
      position: relative;
      height: clamp(240px, 48vw, 520px);
      scroll-snap-align: start;
      isolation: isolate; /* captions above image */
    }
    .slide img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      filter: saturate(1.05) contrast(1.02);
    }

    /* subtle gradient at bottom for text */
    .slide::after {
      content: "";
      position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1;
      background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
      pointer-events: none;
    }

    .caption {
      position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2;
      display: flex; gap: 10px; align-items: flex-end; justify-content: space-between;
    }
    .caption h3 {
      margin: 0; font-size: clamp(16px, 2.4vw, 24px); font-weight: 700;
      text-shadow: 0 2px 10px rgba(0,0,0,.55);
    }
    .badge {
      margin-left: auto; background: color-mix(in oklab, var(--accent) 85%, white 0%);
      color: white; padding: 6px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .3px;
      box-shadow: 0 6px 18px rgba(107,124,255,.35);
      white-space: nowrap;
    }

    /* Prev/Next buttons */
    .controls {
      position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none;
    }
    .controls a {
      pointer-events: auto; place-self: center start;
      width: 46px; aspect-ratio: 1; border-radius: 999px; background: rgba(255,255,255,.08);
      backdrop-filter: saturate(140%) blur(8px);
      display: grid; place-items: center; text-decoration: none; color: white;
      border: 1px solid rgba(255,255,255,.15);
      transform: translateX(14px);
    }
    .controls a.next { place-self: center end; transform: translateX(-14px); }
    .controls a:hover { background: rgba(255,255,255,.16); }

    /* Dots */
    .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 8px; justify-content: center; z-index: 3; }
    .dots a {
      width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45);
      outline: 2px solid transparent; outline-offset: 2px;
    }
    .dots a:focus { outline-color: white; }

    /* Use :target to style active dot */
    .slide:target ~ .dots a[href="#${id}"] { background: white; }
    /* Progressive enhancement: highlight active dot via JS; with pure CSS fallback below */

    /* Fallback: first dot highlighted by default when no :target */
    .dots a:first-child { background: white; }

    /* Small helper for icon arrows */
    .icon { width: 18px; height: 18px; display: inline-block; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(135deg); }
    .next .icon { transform: rotate(-45deg); }

    /* Demo page chrome */
    .credits { opacity: .7; font-size: 13px; margin-top: 14px; }
    .credits a { color: #c6cbff; }
    
    
    /*    .metrics {*/
    /*  max-width: 900px;*/
    /*  margin: auto;*/
    /*}*/

    .metrics h2 {
      text-align: center;
      margin-bottom: 10px;
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 15px;
    }

    .card {
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: all 0.3s ease;
      overflow: hidden;
      position: relative;
    }

    .card:hover {
      transform: translateY(-5px);
    }

    /*.card-header {*/
    /*  display: flex;*/
    /*  justify-content: space-between;*/
    /*  align-items: center;*/
    /*}*/

    .card h3 {
      margin: 0;
      font-size: 16px;
      /*font-size: 2rem;*/
      font-weight: bold;
      color: #fff;
    }

    .arrow {
      /*font-size: 1.2rem;*/
      cursor: pointer;
      transition: transform 0.3s ease;
      color:#fff;
    }

    .card.expanded .arrow {
      transform: rotate(180deg);
    }

    .card .value {
      /*font-size: 1.2rem;*/
      font-size: 22px;
      font-weight: bold;
      margin: 10px 0;
      color:#fff;
    }

    .card small {
      display: block;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: all 0.3s ease;
      /*color: #fff;*/
      font-size: 0.8rem;
      color:#fff;
    }

    .card.expanded small {
      max-height: 100px;
      opacity: 1;
      margin-top: 10px;
    }
    
    .graph {
      padding: 40px;
      background: #fff;
    }
    .title {
      text-align: center;
      margin-bottom: 10px;
    }
    .sub {
      text-align: center;
      margin-bottom: 20px;
      color: #666;
    }
    .owl-carousel .item {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
    }
    .owl-carousel img {
      width: 100%;
      height: auto;
      display: block;
    }
    .caption {
      position: absolute;
      bottom: 30px;
      left: 15px;
      background: rgba(0,0,0,0.6);
      color: #fff;
      padding: 10px 15px;
      border-radius: 6px;
    }
    .caption h3 {
      margin: 0;
      font-size: 18px;
    }
    .badge {
      background: #ff9800;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 12px;
      margin-left: 8px;
    }
    .credits {
      text-align: center;
      margin-top: 20px;
      font-size: 14px;
      color: #555;
    }
    .seconddiv {
      text-align: center;
      margin-top: 20px;
    }
    
    
    .project_card{
        background: #0b0b28;
    }
    .projectvalue_card{
        background: #0b0b28;
    }
    .institution_card
    {
        background: #0b0b28;
    }
    .ministry_card
    {
        background: #0b0b28;
    }
    
    
    /*.project_card {*/
      /* Cotton Candy Cloud: Pink, Blue, Purple */
    /*  background: linear-gradient(135deg, #f9c2ff, #a1c4fd, #c2e9fb);*/
    /*}*/
    /*.projectvalue_card {*/
      /* Mango Smoothie: Peach, Light Yellow, Soft Orange */
    /*  background: linear-gradient(135deg, #fff9c4, #ffe0b2, #ffb6b9);*/
    /*}*/
    /*.institution_card {*/
      /* Mint & Citrus: Mint Green, Soft Yellow */
    /*  background: linear-gradient(135deg, #d4fc79, #96e6a1, #fdfbfb);*/
    /*}*/
    /*.ministry_card {*/
      /* Lavender Haze: Lavender, Light Blue */
    /*  background: linear-gradient(135deg, #f3e7e9, #c6e2ff, #d1c4e9);*/
    /*}*/
    
    .card-header{
        display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
      font-weight: bold;
      background-color: transparent !important;
      font-size:20px;
    }
    
    
    
    .goals-carousel-container {
      position: relative;
      width: 100%;
      margin: 0 auto;
      overflow: hidden;
    }

.goals-carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  width: 100%;
}

.goals-carousel-slide {
  /*min-width: 100%;*/
  /*box-sizing: border-box;*/
  /*padding: 15px 10px;*/
  /*flex-shrink: 0;*/
  /*background: #fff;*/
  min-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    display: block;
    text-align: center;
    padding: 15px 200px;
}

.goals-carousel-nav {
  margin-top: 8px;
  text-align: center;
}

.goals-carousel-prev,
.goals-carousel-next {
  background: #eaeaea;
  border: none;
  font-size: 2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.carousel-dots {
  display: inline-block;
  margin: 12px auto;
  text-align: center;
  width: 100%;
}

.carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 2px 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}
.carousel-dot.active {
  background: #4287f5;
}
    
.goals-scroll-content {
  max-height: 480px;      /* Adjust height as needed */
  overflow-y: auto;       /* Enables vertical (top-down) scrolling */
  padding-right: 8px;     /* Optional: room for scrollbar */
  /*overflow-x: auto;*/
  
  
}

.fontbold{
    font-weight: bold;
}



.goals-carousel-slide {
  /*max-height: 500px; */
  /*overflow-y: auto; */
}

.goals-carousel-slide .card {
  height: 100%; 
  overflow-y: auto;
}

.goals-carousel-slide canvas {
  max-height: 350px !important; 
  max-width: 100%;
}

.goals-scroll-content {
  max-height: 250px; 
  overflow-y: auto;
}

.carousel-nav {
  position: relative;
  z-index: 10;
  display: flex;
}


@media (max-width: 768px) {
  .goals-carousel-slide {
    padding: 15px 30px;
  }
}

@media (max-width: 576px) {
  .goals-carousel-slide {
    padding: 15px 10px;
  }
}

@media (max-width: 768px) {
	header .logo img {
		height: 30px;
		margin-right: 10px;
		width: 120px;
	}
	header {
		padding: 15px 15px;
	}
}

@media (max-width: 576px) {
	header .logo img {
		height: 30px;
		margin-right: 10px;
		width: 120px;
	}
	
	header {
		padding: 15px 15px;
	}
}    
    
