/* General */
body {
    background: #e8effb;
    font-family: 'Arial', 'SolaimanLipi', sans-serif;
    margin: 0;
    padding: 0;
}

/* Central Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f7fbf9; /* content background */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Top Header */
.top-header {
    background: #3b604f;
    color: #fff;
    padding: 5px 20px;
    font-size: 14px;
}

/* Main Header */
.main-header {
    background: #ffff;
    padding: 15px 20px;
    /* color: #fff; */
    display: flex;
    align-items: center;
}
.main-header img {
    height: 60px;
}
.main-header .header-text h4 {
    margin: 0;
}
.main-header .header-text small {
    font-size: 12px;
}

/* Menu Bar */
.menu-bar {
    background: #198754;
    padding: 5px 0;
    text-align: left;
}
.menu-bar a {
    color: #fff;
    padding: 10px 9px;
    display: inline-block;
    text-decoration: none;
    transition: background 0.3s;
}
.menu-bar a:hover {
    background: #075126;
    border-radius: 5px;
}

/* Service Boxes */
.seba-box {
    background: #fff;
    padding: 20px 10px;
    border-radius: 10px;
    box-shadow: 0 0 5px #e0e0e0;
    text-align: center;
    border: 2px solid #e6f5ec;
    transition: transform 0.3s;
    cursor: pointer;
}

.seba-box p {
    color: #131314;
    font-weight: 500;
}
.seba-box img {
    width: 45px;
    margin-bottom: 10px;
}
.seba-box:hover {
    transform: translateY(-5px);
    background: #1987540a;
}


/* union Boxes */
.union-box {
    background: #fff;
    padding: 20px 10px;
    border-radius: 10px;
    box-shadow: 0 0 5px #e0e0e0;
    text-align: center;
    border: 2px solid #e6f5ec;
    transition: transform 0.3s;
    cursor: pointer;
}

.union-box p {
    font-weight: 600;
    margin-bottom: 0;
    padding-top: 5px;
}
.union-box img {
    width: 100px;
    margin-bottom: 10px;
    border: solid 1px #b8edd4;
    border-radius: 50%;
    padding: 2px;
}
.union-box:hover {
    transform: translateY(-5px);
}

/* Side Boxes */
.side-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 5px #e0e0e0;
    margin-bottom: 5px;
    text-align: center;
}
.side-box img {
    width: 145px;
    border: 3px solid #007a3d;
    border-radius: 10%;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #fff;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 3px solid #007a3d;
    text-align: center;
}
.footer img {
    max-width: 350px;
    margin-top: 10px;
}

/* Carousel */
.carousel-item img {
    height: 400px;
    object-fit: cover;
}
.carousel-caption h5 {
    font-size: 18px;
    font-weight: bold;
    line-height: 27px;
}
.carousel-caption p {
    font-size: 16px;
}
.carousel-caption {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    
    .main-header {
        flex-direction: column;
        text-align: center;
    }
    .main-header .header-text {
        margin-top: 10px;
    }
}

.gallery-img {
    width: 100%;
    height: 185px !important;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#lightboxTitle {
    font-size: 18px;
}

.lighboximg{
    /* height: 450px; */
    border-radius: 10px;
}

.lightboxv{
    background: #0eb924;
    padding: 5px;
}

.director-name {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

.director-title {
    font-size: 20px;
    color: #3a3a3a;
    line-height: 27px;
    margin-bottom: 4px;
}

.aboutbox{
    border: solid 1px #dfd8d8;
    border-radius: 5px;
    text-align: justify;
           /* প্রতিটি লাইনের উচ্চতা */
             /* 10 লাইনের জন্য approx */
             /* বেশি টেক্সট লুকানো */
}

.abouttext{
    line-height: 32px;
    max-height: 16em;
    overflow: hidden;
    padding: 15px;
    font-size: 19px;
}

.read-more {
    display: inline-block;
    margin-top: 3px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    margin-bottom: 10px;
}

/* fixed box size and styling */
.service-box {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  height: 190px;          /* FIXED height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.service-box img {
  width: 95px;
  height: 95px;
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #ddefe6;
}
.service-box p {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: #000000;
  text-align: center;
  line-height: 22px;
}

/* ensure equal height columns */
.two-line-slide .row > [class*='col-'] { align-items: stretch; }

/* spacing tweaks */
.carousel .carousel-item {padding: 0;}

/* responsive: use col-lg-2 for 6-per-row on large screens */
.col-item-wrapper { padding: 6px; } /* inner gutter */

/* Custom Carousel Controls */
#twoLineCarousel .carousel-control-prev,
#twoLineCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 45%;
    background: #c1b4b4;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

#twoLineCarousel .carousel-control-prev:hover,
#twoLineCarousel .carousel-control-next:hover {
    background: #109d5c;
}

#twoLineCarousel .carousel-control-prev-icon,
#twoLineCarousel .carousel-control-next-icon {
    filter: invert(0); /* icon black */
    width: 18px;
    height: 18px;
}

#twoLineCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#twoLineCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(1); 
}

/* Main Footer */
.main-footer {
    background: #0c2d48;
    color: #fff;
    border-top: 4px solid #0d6efd;
}

/* Footer Title */
.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    border-left: 4px solid #0d6efd;
    padding-left: 8px;
}

/* Footer Text */
.footer-text {
    margin: 4px 0;
    color: #e5e5e5;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links li a {
    color: #d6d6d6;
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: #fff;
    margin-left: 6px;
}

/* Social Icons */
.footer-social .social-icon {
    display: inline-block;
    font-size: 22px;
    margin: 0 6px;
    color: #d6d6d6;
    transition: 0.3s;
}

.footer-social .social-icon:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Payment Image */
.footer-payment {
    width: 210px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Bottom Bar */
.footer-bottom {
    border-top: #0b4574 solid 1px;
    font-size: 14px;
    color: #c9c9c9;
}
.text-right{text-align:right}

.datetime{
    font-size: 14px;
    font-weight: 700;
}

.maplocation{font-size: 16px;/* color: #0b1f84; */}


.main-heading {
    font-size: 38px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    color: #1a1a1a;
} 

.main-heading::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #1e7e34);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-heading::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    left: 50%; 
    bottom: -8px;
    transform: translateX(-50%);
    border: 3px solid #fff;
}

.header-subtitle {
    width: 70%;
    margin: 15px auto 0;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.about-text {
    line-height: 1.8;
    font-size: 15px;
}

.about-box {
    background: #ffffff;
    border: 2px solid #198754;
    transition: 0.3s;
    margin: 0 100px !important;
    font-size: 19px;
    line-height: 35px;
    min-height: 500px;
}

.about-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Team Heading */
.teamsec{
    padding: 0px 40px;
    min-height: 650px;
}

.team-heading h2 {
    font-size: 32px;
    font-weight: 700;
    color: #198754;
    position: relative;
    display: inline-block;
}

.team-heading h2::after {
    content: "";
    width: 80px;
    height: 3px;
    background: #198754;
    display: block;
    margin: 10px auto 0;
    border-radius: 3px;
}

.team-heading p {
    color: #555;
    font-size: 17px;
}

/* Team Card */
.team-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: .3s;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Image Style */
.team-img {
    width: 100%;
    max-width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #198754;
    margin-bottom: 15px;
    padding: 2px;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-role {
    font-size: 16px;
    color: #777;
}

.team-institute {
    color: #198754;
    font-size: 15px;
    padding: 0px 5px;
    margin-top: 5px;
    font-weight: 600;
}

.unslider{ height: 405px;}

.uninlight {
    font-size: 22px;
    font-weight: bold;
    padding: 5px 10px;
    margin-bottom: 2px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #ff6ec4, #7873f5, #42e695, #ff6ec4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 5s ease infinite;
    /* border: 2px solid; */
    border-radius: 18px;
    /* Gradient border effect */
    border-image-slice: 1;
    border-image-source: linear-gradient(90deg, #ff6ec4, #7873f5, #42e695, #ff6ec4);
    animation: gradientAnimation 5s ease infinite;
}

/* Gradient animation for both text and border */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; border-image-source: linear-gradient(90deg, #ff6ec4, #7873f5, #42e695, #ff6ec4); }
    50% { background-position: 100% 50%; border-image-source: linear-gradient(270deg, #ff6ec4, #7873f5, #42e695, #ff6ec4); }
    100% { background-position: 0% 50%; border-image-source: linear-gradient(90deg, #ff6ec4, #7873f5, #42e695, #ff6ec4); }
}

.copywrite{
       color: #ffff;
    text-decoration: none;
}

.form-card {
    border: solid 3px #0c60ef;
    border-radius: 15px;
    padding: 30px;
    background: #ffffff;
}
.form-control {
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 15px;
}
.logo-area img {
    width: 150px;
    margin-bottom: 5px;
    border: solid 1px gainsboro;
    padding: 5px;
    background: #fff;
    border-radius: 14px;
}
.page-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.formund{font-size: 20px;font-weight: bold;margin-bottom: 10px;}

.unionnameh{font-size:30px}

.suntxt{ text-align: right; }


/* Custom Carousel Controls */
#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 45%;
    background: #c1b4b4;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

#galleryCarousel .carousel-control-prev:hover,
#galleryCarousel .carousel-control-next:hover {
    background: #109d5c;
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
    filter: invert(0); /* icon black */
    width: 18px;
    height: 18px;
}

#galleryCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(1); 
}

#galleryIndicators {
    display: none !important;
}

/* mobile menu hidden */
.mobile-menu {
    height: 100%;
    width: 260px;
    position: fixed;
    top: 0;
    right: -260px;
    background: #0c834c;
    padding-top: 0;
    transition: 0.4s ease;
    z-index: 99999;
}

/* menu links */
.mobile-menu a {
    padding: 12px 20px;
    display: block;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    border-bottom: 1px solid rgb(0 0 0 / 10%);
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.1);
}

/* close button */
.mobile-menu .close-btn {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 32px;
    color: #000000;
    cursor: pointer;
}

.hidden{
    display: none;
}

#visitorModal .modal-content {
    border-radius: 20px;
    padding: 25px;
    border: none;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    position: relative;
}

#visitorModal .close-custom {
    position: absolute;
    top: 6px;
    right: 6px;
    opacity: 1;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transition: 0.2s;
}

#visitorModal .close-custom:hover {
    color: white;
    transform: rotate(90deg);
    cursor: pointer;
}

#visitorModal .modal-header {
    border: none;
    text-align: center;
    width: 100%;
    display: block;
    padding-bottom: 0;
}

#visitorModal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #10814c;
    text-align: center;
}

#visitorModal label {
    font-weight: 600;
    color: #333;
}

#visitorModal input, #visitorModal textarea {
    border-radius: 12px !important;
    padding: 12px !important;
    border: 1px solid #ccc;
    transition: 0.3s;
}

#visitorModal input:focus, #visitorModal textarea:focus {
    border-color: #10814c;
    box-shadow: 0 0 8px rgba(16, 129, 76, 0.3);
}

#visitorModal .btn-submit {
    background: linear-gradient(45deg, #10814c, #0aa06e);
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    transition: 0.3s;
    color: white;
}

#visitorModal .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16,129,76,0.4);
}

.modal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform .4s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}
.welcomimg{
    width:100%;
    border-radius: 10%;
}

#backToTop{
    position:fixed;
    left:20px;
    bottom:25px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:#198754; /* soft green */
    border:none;
    cursor:pointer;
    display:none;
    z-index:9998;

    box-shadow:0 8px 20px rgba(0,0,0,.25);
    transition:all .3s ease;

    display:flex;
    align-items:center;
    justify-content:center;
}

#backToTop:hover{
    transform:translateY(-4px) scale(1.05);
    background:#146c43;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .about-box {
        margin: 0 15px !important; 
        font-size: 16px;
        line-height: 30px;
        min-height: auto;
    }
    
    .main-heading {
        font-size: 28px;
    }
    
    .teamsec {
        padding: 0px !important;
    }
    
    .unslider{height: auto;}
    
    .carousel-item img {
        height: auto;
    }
    
    .mdhead{margin-top: 20px;}
    
    .suntxt{
        text-align: center;
        
    }
    
    .menu-bar {
        display: none !important;
    }
    
    .uninlight{
        font-size: 16px;
        padding : 0px;
    }
    
    .main-header{
        padding: 0px 0px 0 0px;
    }
    
    .main-header img {
        display: none;
    }
    
    .mimg{
        height: 30px;
    }
    
    .mlogo{
        background: #fff;
    }
    
    .mheaderb{
        background: #f7fbf9;
        padding: 0 5px 10px;
        border-bottom: solid 2px #e1e9e5;
    }
    
}





