body {
    font-family: 'Adorsho Lipi', sans-serif;
    background: url('../img/bg.gif') center !important;
    background-size: cover;
    width: 100%; 
    height: 100%;
    margin: 0; 
    top: 0 !important;
    position: static !important;
}

/* Top purple bar */
.top-bar {
    width: 100%;
    padding: 12px 10px 20px;
    color: #000;
    background: #d4f9d4;
    border-bottom: 3px solid #ff6600;
    margin: 0;
    font-size: 14px;
}
.top-bar a{
  color: #000;
  font-weight: 500;
}



#headerCarousel .carousel-item img {
    height: 250px; /* adjust height */
    object-fit: cover;
}

/* Left-center position for heading */
.fixed-carousel-title {
    position: absolute;
    top: 50%;
    padding-left: 20px;
    left: 20px; /* space from left edge */
    transform: translateY(-80%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.fixed-carousel-title h2 {
    font-size: 1.7rem;
    font-weight: 600 !important;
    padding: 10px;
    color: #fff;
    margin: 0;
}

.fixed-carousel-title .logo {
    width: 80px;
    margin-right: 10px;
}

@media (max-width: 576px) {
    .fixed-carousel-title {
        left: 10px; /* less space on mobile */
    }
    .fixed-carousel-title h2 {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    .fixed-carousel-title .logo {
        width: 40px;
    }
}

.main-nav {
    background: #ebebeb;
    border-bottom: 2px solid #ebebeb;
    
}
.main-nav .home {
  padding: 2px 5px;
  transition: background 0.3s ease;
}

.main-nav .home:hover {
  background: #fff;
  border-bottom: 2px solid #000;
}

.main-nav .nav-link {
   
  font-size: 12px;
  padding: 10px 10px !important;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.main-nav .nav-item:hover, .dropdown-menu li:hover{
  background: #fff !important;
  border-bottom: 2px solid #000;
}

/* Dropdown Styling */
  .navbar-nav .dropdown-menu {
  border-radius: 0 !important;
  padding: 0;
  background-color: #ebebeb !important;
  transition: border-color 0.3s ease;
  
}

.slider{
  position: relative;
}
.slider .title{
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(160, 255, 253, 0.5);
  color: #fdf7ff;
  padding: 10px 15px;
  font-size: 1rem;
}

.dropdown-item {
  padding: 10px 15px;
  background: #fff ;
  color: #555 !important;
  border-bottom: 1px solid #ebebeb;
  transition: background 0.3s ease, color 0.3s ease;
}
.bg-primary-lite{
      background-color: rgb(207, 225, 245) !important;
      border-right: 1px solid #c0c0c4d9 !important;;
}

.dropdown-item:last-child {
  border-bottom: none;
}

/* Animation */
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover stay for open dropdown */
.nav-item.show > .nav-link {
  color: #fff !important;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
  .navbar-nav .nav-link {
    border-bottom: 1px solid #ebebeb;
  }
  .navbar-nav .dropdown-menu {
    border: none;
  }
}

    /* Left site */


    .marquee-container {
      background: #ebebeb;
      border: 1px solid #ccc;
      padding: 10px 10px;
      font-weight: bold;
      display: flex;
      align-items: center;
    }
    .marquee-title {
      white-space: nowrap;
      margin-right: 15px;
      color: #000;
    }
    .marquee-text {
      color: green;
      font-weight: bold;
      width: 100%;
    }
    marquee {
      width: 100%;
    }

    @keyframes scroll-left {
      0% { transform: translateX(100%); }
      100% { transform: translateX(-100%); }
    }
    .notice-card {
      border: 1px solid #ccc;
      padding: 20px;
      margin-top: 20px;
      background: #f5f5f5;
    }
    .notice-card h5 {
      font-weight: bold;
      margin-bottom: 20px;
    }
    .notice-item {
      display: flex;
      align-items: center;
      color: #000;
      text-decoration: none;
      margin-bottom: 10px;
    }
    .notice-item p{
        margin-bottom: 0;
        font-size: 12px;
    }
    .notice-item p:hover{
      color: #6f42c1;
    }
    .notice-item i {
      color: #1bd41b;
      font-size: 18px;
      margin-right: 10px;
      margin-top: 3px;
    }
    .notice-footer {
      text-align: right;
      font-weight: bold;
      color: purple;
    }

    .notice-card ul li a{
      text-decoration: none;
      color: #000;
      font-size: 12px;
    }
    .clearfix a{
      display: flex;
      margin-bottom: 5px;
      align-items: center;
    }
    .notice-card ul li a i{
      font-size: 18px;
      color: #1bd41b;
      margin-right: 10px;
    }
    .notice-card ul li a:hover{
      text-decoration: none;
      color: #6f42c1;
    }


    /* Right site */

    
    @media (max-width: 992px) {
        .content-right {
          margin-top: 20px;
        }
    }

    .content-right {
      /* background: #c8e7c8; */
      border-radius: 5px;
    }

    .content-right h6{
        background: #8e44ad;
        color: #fff;
        padding: 10px 5px;
        font-size: 0.9em;
        margin-bottom: 0;
        line-height: 1.5;
    }
    .sidebar-box{
        padding: 0;
    }

    .sidebar-box img {
        max-width: 100%;
        height: auto;
        background: #fff;
        /* border: 5px dotted #00cc00; */
        border-radius: 2px;
        object-fit: cover;
        display: block; /* needed for margin auto to work */
    }


    .sidebar-box h5 {
        font-size: 1em;
        text-align: center;
        display: block;
        font-weight: bold;
        line-height: 1.5;
        padding-top: 10px;
    }
    .sidebar-box h5 a{
      color: #8e44ad;
      font-size: 0.9em;
      text-decoration: none;
    }



    /* Responsive tweaks */
    @media (min-width: 992px) {
      .main-content {
        display: flex;
        gap: 1rem;
      }
      .content-left {
        flex: 3;
      }
      .content-right {
        flex: 1;
      }
    }




.custom-footer {
  background: #efefef;
  font-family: "SolaimanLipi", Arial, sans-serif; /* Bengali-friendly font */
  font-size: 14px;
  line-height: 1.5;
  color: #000;
  text-align: center;
  padding: 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  background: white;
  padding: 0;
}

.footer-line {
  position: absolute;
  top: 48%;
  left: 0;
  right: 0;
  height: 6px;
  background: #6e6e6e;
}

.footer-bottom {
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding: 8px 20px;
  line-height: 25px;
  color: #333;
}

.footer-text {
  text-align: left;
}

.footer-text-right {
  text-align: right;
}

.footer-logos img {
  height: 40px;
  width: auto;
}
.footer-logos {
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

.section-tittle {
  font-size: 1.3rem;
  padding: 10px 0;
  color: #090f44;
  border-bottom: 2px solid #090f44;
  margin-top: 20px;
  margin-bottom: 15px;
}


.service-card {
    text-align: center;
    cursor: pointer;
}


@keyframes iconDance {
    0% { transform: scale(1) rotate(0deg); }
    10% { transform: scale(1.1) rotate(-10deg); }
    20% { transform: scale(0.9) rotate(10deg); }
    30% { transform: scale(1.05) rotate(-8deg); }
    40% { transform: scale(0.95) rotate(8deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
    60% { transform: scale(0.9) rotate(5deg); }
    70% { transform: scale(1.05) rotate(-3deg); }
    80% { transform: scale(0.95) rotate(3deg); }
    90% { transform: scale(1.02) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.service-card:hover img {
    animation: iconDance 1.5s ease-in-out forwards;
}




.service-card h6 {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #198754;
    width: auto; 
    max-width: 100%; 
}


.service-card:hover h6 {
    width: 100%; 
    animation: typing 1.5s steps(20) forwards;
}
.service-card h6 {
    border-right: none; 
}
  .nav-service-link {
            position: relative;
            display: inline-block;
            transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
            padding: 8px 15px;
            border-radius: 8px;
            text-decoration: none
        }


        .nav-service-link i {
            transition: transform 0.4s ease, color 0.4s ease;
        }

        .nav-service-link:hover {
            color: #0f5132;
            background-color: #eaf6f1;
            transform: translateY(-3px) scale(1.05);
        }

        .nav-service-link:hover i {
            transform: rotate(-15deg) scale(1.2);
            color: #198754;
        }


        .nav-service-underline {
            content: "";
            position: absolute;
            bottom: 3px;
            left: 50%;
            width: 0;
            height: 3px;
            background-color: #198754;
            border-radius: 3px;
            transition: all 0.4s ease;
            transform: translateX(-50%);
        }

        .nav-service-link:hover .nav-service-underline {
            width: 100%;
        }

        .nav-service-link.active {
            background-color: #198754;
            color: #ffffff !important;
            box-shadow: 0 5px 15px rgba(0, 128, 0, 0.3);
        }

        .nav-service-link.active i {
            color: #ffffff !important;
            transform: rotate(-5deg) scale(1.1);
        }

        .nav-service-link.active .nav-service-underline {
            width: 100%;
            background-color: #ffffff;
        }



@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slideInLeft 0.8s ease-out;
}
