@import url('https://fonts.googleapis.com/css2?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&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
}

body{
  overflow-x: hidden;
}

p{
    text-align:justify;
}

li {
    text-align: justify;
}
.top-bg-green {
    background-color: #679700 !important;
}

.top-bg-green p {
    font-size: 12px;
    padding: 10px 10px;
    transition: 0.5s background-color ease;
}

.top-bg-green p:hover {
    background-color: #5a8500;
    cursor: pointer;
}

/* Dropdown start */

/* Smooth dropdown animation */
.dropdown-menu {
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item:hover {
    color: white !important;
    /*background-color: none !important;*/
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: #27ac6e;
    white-space: normal;
}

/* Multi-level dropdown styling */
.dropdown-submenu {
    position: relative;
    white-space: normal;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu .scrollable-menu {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: visible;
}

/* Arrow for submenu
.dropdown-submenu>a::after {
    content: " ⌄";
    float: right;
} */

/* Right logo size & visibility */
.right-logo {
    height: 75px;
}

@media (min-width: 992px) {
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
        /* width: 200px; */
    }
}

@media (max-width: 992px) {
    .right-logo {
        display: none;
    }
}

.nav-link {
    color: black !important;
}

/* Keep top-level navbar links (e.g., Online Payment) on one line on desktop */
@media (min-width: 992px) {
    .navbar-nav > .nav-item > .nav-link {
        white-space: nowrap;
        /* Slightly smaller text & padding so all items + logo fit in one row */
        font-size: 0.95rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Light background */
.bg-light {
    --bs-bg-opacity: 1;
    background-color: #fff !important;
}

/* ================================
HOVER DROPDOWN (DESKTOP ONLY) - MAIN DROPDOWN ONLY
================================ */
@media (min-width: 992px) {

    /* Open main dropdown on hover */
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
    }

    /* Do NOT open inner submenu on hover */
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        position: absolute;
        min-width: 260px;
        white-space: normal;
        background: #c6e7c669;
        border-radius: 0px;
        border: 1px solid green;
    }

    .wd-400 {
      width: 410px !important;
    }
}


  /* Smooth dropdown animation */
.dropdown-menu {
    animation: fadeIn 0.2s ease-in-out;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav item hover effect */
.nav-item:not(.dropdown):hover {
    background-color: #689525;
}

.nav-item.dropdown:hover .nav-link {
    background-color: #689525;
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    /*background-color:6895252;*/
}

/* Multi-level dropdown styling */
.dropdown-submenu {
    position: relative;
}

.dropdown-item {
  white-space: normal !important;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    white-space: normal;
    position: absolute;
    min-width: 200px;
}

/* Arrow for submenu
.dropdown-submenu > .dropdown-item::after {
    content: " ▸";
    float: right;
    margin-left: 5px;
    font-weight: bold;
} */

/* Right logo size & visibility */
.right-logo {
    height: 60px;
}

/* ================= DESKTOP STYLES ================= */
@media (min-width: 992px) {
    /* Main dropdown hover */
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    /* Submenu hover */
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
    
    /* Main dropdown menu styling */
    .navbar .dropdown-menu {
        position: absolute;
        width: 250px;
        background: rgb(2, 134, 2);
        color: white;
        border-radius: 0px;
        border: 1px solid green;
        margin-top: 0;
        padding: 0;
    }
    
    /* Submenu styling */
    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        background: rgb(1, 110, 1);
        border-left: 2px solid #27ac6e;
    }
    
    /* Dropdown item styling */
    /* Dropdown item styling */
.dropdown-item {
    color: #000000 !important;  /* ← Changed from white to black */
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}
    
    .dropdown-item:hover {
        background-color:#689525 !important;
        color: white !important;
        padding-left: 20px;
    }
    
    /* Submenu item styling */
    .dropdown-submenu .dropdown-item {
        /*background: rgb(1, 110, 1);*/
        background-color: #679700 !important;
        
        
    }
    
    /* Prevent main dropdown from closing when hovering over submenu */
    .dropdown-menu .dropdown-submenu:hover .dropdown-menu {
        display: block;
        pointer-events: auto;
    }
    
    /* Add slight delay for closing to allow moving to submenu */
    .dropdown-menu {
        pointer-events: none;
    }
    
    .dropdown-menu .dropdown-submenu,
    .dropdown-menu .dropdown-item {
        pointer-events: auto;
    }
    
    /* Smooth transition for submenu */
    .dropdown-submenu > .dropdown-menu {
        transition: opacity 0.2s, transform 0.2s;
        opacity: 0;
        transform: translateX(10px);
        display: block !important;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        opacity: 1;
        transform: translateX(0);
        display: block !important;
    }
}

/* .dropdown-menu .nav-item .nav-link{
    color: white !important;
    background-color: #03b462 !important;
} */

.dropdown-menu .nav-item .nav-link a:hover{
    background-color: #03b462 !important;
}

.nav-item.dropdown:hover .nav-link {
    background-color: #689525;
    color: white !important;
}

.nav-item .nav-link:hover{
    color:white !important;
    
}

/* Dropdown end */

/* Slight rounded corners on hover for all top-level nav links (e.g., Home, About Us, Contact Us) */
@media (min-width: 992px) {
  .navbar-nav > .nav-item > .nav-link:hover {
    border-radius: 4px;
  }
}

/* .dropdown{
  position: static !important;
}

.dropdown-menu{
  width: 100% !important;
  margin: 0 !important;
}

.dropdown:hover .dropdown-menu {
  display: block;
  width: 100% !important;
}





@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute;
    left: 0 !important;
    top: 55px !important;
    width: 100% !important;
  }
}

.nav-item a {
    color: black;
    font-weight: 500;
    padding: 0;
    margin-top: 10px;
}

.nav-item{
  list-style: none;
}

.dropdown-menu h6{
  color: #3b4805;
  font-weight: bold !important;
  height: 16%;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.text-dark-green{
  color: #3b4805 !important;
}

.text-light-green{
  color: #679700 !important;
}

/* .overlay {
    position: absolute;
    top: 0;
    background-color: rgb(0 0 0 / 70%);
    width: 100%;
    height: 100%;
} */

.bgwhite {
    background-color: rgb(0 0 0 / 70%);
    padding: 10px;
    border-radius: 20px;
}

#event-slider img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-position: center;
}

#event-slider h6 {
    color: #679700;
    font-size: 15px;
    font-weight: 600;
}

.marquee a {
    color: #5a8500;
    text-decoration: none;
}

.marquee {
    height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

#latest-research-ticker,
.latest-research-ticker {
    max-height: 150px;
}

marquee {
    animation: marquee 10s linear infinite;
    overflow: hidden;
}

marquee:hover {
    animation-play-state: paused;
}


.Spaces-sec {
    border: 1.5px solid #679700;
    background-color: #e2f0d9;
}




.hover-box {
    transition: 0.5s ease;
}

.hover-box:hover {
    box-shadow: 0px 0px 5px #679700 !important;
    transform: scale(1.04);
    border: 1px solid #679700;
}

.news-top {
    background-color: #3b4805;
}

.news-color {
    background-color: #679700;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 0px 30px 30px 0px;
}




body {
    background: rgba(0, 0, 0, 0.85);
    margin: 0;
    top: 0 !important;
  }
  
  .slider {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding: 0;
  }
  .slider li {
    position: relative;
    background: none no-repeat center/cover;
    min-height: 100%;
    overflow: hidden;
    flex-grow: 1;
    transition: 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .slider li:hover {
    flex-grow: 8;
  }
  .slider li:hover h1 {
    transform: rotateZ(0) translateY(0);
  }
  .slider li:hover p {
    transform: translateY(calc((100% + 2rem) * -1)) rotateZ(0);
  }
  .slider a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .slider h1 {
    position: absolute;
    top: 1rem;
    left: 1rem;
    margin: 0;
    font-size: 3rem;
    color: white;
    text-transform: uppercase;
    transform-origin: left top;
    transform: rotateZ(90deg) translateY(-1em);
    font-family: sans-serif;
    transition: 0.25s cubic-bezier(0.35, 0, 0, 1);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  }
  .slider p {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    padding: 1rem;
    font-family: sans-serif;
    transform-origin: left top;
    transform: translateY(0) rotateZ(90deg);
    transition: 0.5s cubic-bezier(0.35, 0, 0, 1);
    width: 35em;
    color: rgba(0, 0, 0, 0.65);
    background: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    border-radius: 0.25rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  }
  .slider .one {
    background-image: url(../images/banner1.jpg);
  }
  .slider .two {
    background-image: url(../images/iisrbanner2.jpg);
  }
  .slider .three {
    background-image: url(../images/iisrbanner3.jpg);
  }
  .slider .four {
    background-image: url(../images/iisrbanner4.jpg);
  }
  .slider .five {
    background-image: url(../images/iisrbanner5.jpg);
  }

  .corpo-comun h5{
    background-color: #679700;
    text-align: center;
    color: white;
    font-weight: 600;
  }

  .bg-dark-green{
    background-color: #3b4805;
  }

  .bg-light-green{
    background-color: #679700 !important;
  }

  footer ul li{
    list-style: none;
    margin-top: 5px;
  }

  footer ul li a{
    text-decoration: none;
    color: white;
    font-weight: 400;
    font-size: 14px;
  }

  footer h6{
    color: #679700 !important;
    font-weight: bold;
  }

  .socail-media a{
    border: 2px dashed #679700;
    padding: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    transition: background-color 0.5s ease;
  }


  .socail-media a:hover{
    background-color: #679700;
    border: 2px solid white;
  }


  /* responsive */
  @media screen and (max-width: 768px) {
    .top-bg-green p {
      font-size: 12px;
    }

    .socail-media{
      flex-wrap: wrap;
    }

    .slider{
      height: 50vh;
    }

    .slider p{
      width: 30rem;
    }
  }


  /* google */
  .VIpgJd-ZVi9od-ORHb-OEVmcd, .goog-te-gadget img ,div#goog-gt-tt{
    display: none !important;
  }

  .goog-te-gadget-simple{
    background-color: transparent !important;
    color: white !important;
    border: 0 !important;
  }

  .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed{
    color: white !important;
  }

  .ggole-top{
    margin-top: 10px;
  }

  .goog-te-gadget-simple span{
    border-left: 0 !important;
  }

  /* font{
    font-weight: 500 !important;
  } */

  .carousel-item img, .carousel-item video{
    height: 450px;
    width: 100%;
    object-fit: cover;
  }


  table th, table td{
    text-wrap: nowrap;
  }

  .hover-effect{
    transition: background-color 0.5s ease;
  }

  .hover-effect:hover{
    background-color: #5a8500;
    color: white !important;
  }

  .hover-effect:hover a{
    color: white !important;
  }

  .breadcrum{
    background: #6797006b;
    color: #000000;
  }


  /* bottom */
  #inside-links {
    padding: 2rem 0rem;
}



.inside-links-container {
    background: #f8f9fa;
    padding: 1rem .5rem;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.inside-links-container a {
    text-decoration: none;
    font-size: 12px;
    color: #333;
    padding: 7px 10px;
    background: #fff;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    border: 1px solid #ddd;
}

.inside-links-container a:hover {
    background: #679700;
    color: #fff;
    border-color: #679700;
}

.sec-hed h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.sec-hed h3::after {
    content: "";
    position: absolute;
    width: 3rem;
    height: 3px;
    background-color: #679700;
    bottom: 25px;
    right: -90%;
    transform: translateX(-50%);
}
.staff-list .card .card-body p {
    text-align: center !important;
}



/* ================= MOBILE CAROUSEL – BALANCED HEIGHT ================= */
@media (max-width: 767px) {

    .carousel-item {
        height: auto;
    }

    .carousel-item img,
    .carousel-item video {
        width: 100%;
        aspect-ratio: 3 / 1;     /* 2700 x 900 */
        height: auto;
        min-height: 200px;       /* ⬅ prevents too-small banner */
        max-height: 260px;       /* ⬅ prevents too-tall banner */
        object-fit: cover;
    }

    .carousel-caption {
        top: auto !important;
        bottom: 10px;
        padding: 8px 12px;
    }

    .carousel-caption h1 {
        font-size: 16px;
        line-height: 1.2;
    }

    .carousel-caption p {
        font-size: 12px;
        line-height: 1.3;
        margin: 0;
    }
}






/* ==========================================================
   DROPDOWN STYLING – CLEAN, STABLE, NON-BREAKING
   Scope: DROPDOWN ONLY
   ========================================================== */

/* ---------- MAIN DROPDOWN PANEL ---------- */
.navbar .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #679700 !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    color: #000000 !important;  /* ensure default text is black, not inherited white */
}

/* ---------- SUBMENU PANEL ---------- */
.dropdown-submenu .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #679700 !important;
    border-radius: 8px !important;
}

/* ---------- DROPDOWN ITEMS (DEFAULT STATE) ---------- */
.dropdown-menu .dropdown-item,
.dropdown-menu .nav-link {
    background-color: #ffffff !important;   /* visible on white */
    color: #000000 !important;
    border-bottom: 1px solid #e2e2e2;
}

/* Remove divider from last item */
.dropdown-menu li:last-child > .dropdown-item,
.dropdown-menu li:last-child > .nav-link {
    border-bottom: none;
}

/* ---------- SUBMENU TRIGGER ROWS (LEFT COLUMN) ---------- */
.dropdown-submenu > .dropdown-item {
    background-color: #f3f3f3 !important;   /* subtle contrast */
    color: #000000 !important;
}

/* ---------- HOVER STATES ---------- */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .nav-link:hover,
.dropdown-submenu > .dropdown-item:hover {
    background-color: #679700 !important;
    color: #ffffff !important;
}

/* ---------- ACTIVE STATES ---------- */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: #679700 !important;
    color: #ffffff !important;
}

/* Force readable default text color for links inside dropdown menus (non-hover state only) */
.dropdown-menu .nav-link:not(:hover) {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* Extra-specific override for submenu items (e.g., Research children) – non-hover only */
.dropdown-menu .nav-item > .nav-link:not(:hover),
.dropdown-menu.scrollable-menu .nav-item > .nav-link:not(:hover) {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* ---------- MAIN NAV ITEM (Research, Services) ---------- */
.nav-item.dropdown:hover > .nav-link {
    background-color: #679700 !important;
    color: #ffffff !important;
}



/***********ERROR FIX************/
.top-bg-green p {
    font-size:14px;
    color:rgb(33 37 41) !important;
}

.footer-a{
    color:rgb(32 42 40) !important;
}
footer h6 {
    color: white !important;
    font-size: 20px !important;
    font-weight: bold;
}
.down h4{
    font-size: 20px;
}
.icar h3 {
    font-size: 1rem;}
.events h2{
    font-size: 1.75rem;
}
#event-slider h3 {
    color: #679700;
    font-size: 15px;
    font-weight: 600;
}
.top-bg-green {
    background-color: rgb(96, 120, 5);
    color: #ffffff;
    padding: 8px 0;
    font-weight: 600;
}
.Spaces-sec  p{
    font-size:20px;
    
}
footer h3{
    color: #689525 !important;   /* Dark green */
    font-size: 20px !important;
    font-weight: bold;
}
.btn-increase {
    color: #000000; /* dark text for light background */
    background: transparent;
    border: none;
    font-size: 1rem;
}

  .Spaces-sec .cont-error{
       background: black !important;
    color: white;
}
.ticker-container a{
    color:white !important;
}
/*.bgwhite {*/
  /*background-color: rgba(0, 0, 0, 1.0) !important;*/
/*  padding: 15px;*/
/*}*/

/*.site-title {*/
/* color: #689525;*/
/*    font-size: 32px;*/
/*}*/







