/* Animate.css fadeInUp */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #454545;
    font-weight: 300;
}
.container-fluid {
    width: 95%;
}

/* Top Bar Styling - ICC World Cup Colors */
.top-bar {
    position: relative;
    font-size: 0.9rem;
    background: #036132 !important;
    padding: 10px 0;
    z-index: 999; /* Ensure it's above other elements */
    color: #fff;
}

.top-bar a {
    text-decoration: none;
    color: #f8e8ff; /* Light color for links, matching the light purple */
    padding: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.top-bar a:hover {
    color: #ff4081; /* Magenta for hover, matching ICC World Cup theme */
    transform: scale(1.05); /* Slightly increase size on hover */
}

/* Top Bar Icons */
.top-bar .bi {
    margin-right: 5px;
    color: #ff4081; /* Icon color matching hover state */
}

/* Right Section Links (Login/Register) */
.top-bar-right a {
    border-left: 1px solid rgba(255, 255, 255, 0.5); /* Light separator */
    padding-left: 15px;
    margin-left: 15px;
}

/* Smooth Top Bar Hide on Scroll */
body.scrolled #topBar {
    display: none;
}

/* Overall Smooth Transition for Top Bar */
.top-bar {
    transition: all 0.3s ease;
}


/* Navbar Styling */
.navbar {
    transition: background-color 0.3s ease;
    z-index: 9;
}

.navbar-light.bg-light {
    background-color: #f8f9fa !important;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #343a40;
}

.navbar-brand p{
    font-family: initial;
    font-size: 16px;
    margin: 0;
    text-decoration: underline;
    color: #083f24;
}
.navbar-brand span{
    display: block;
    text-align: right;
    font-family: initial;
    font-size: 12px;
    margin: 0;
    font-style: italic;
    color: #3f6552;
}

.navbar-scrolled .navbar-brand p {
    color: white;
}
.navbar-scrolled .navbar-brand span {
    color: #ffc9a8;
}

/* Style adjustments for the logo */
.navbar-brand img {
    height: 45px; /* Adjust as necessary */
    width: auto; /* Keep aspect ratio */
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1); /* Optional zoom effect on hover */
}

.nav-link {
    position: relative;
    color: #343a40;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffae39;
    transform: translateY(-2px);
}
.navbar-scrolled{
    background: #036132 !important;
}

.navbar-scrolled li a {
    color: white;
}

.navbar-scrolled li a.active {
    color: #ffe9c8 !important;
}

/* Dropdown Animation */
.dropdown-menu {
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.dropdown-item {
    font-size: 1.1rem;
    color: #343a40;
    transition: background-color 0.3s ease;
}
.dropdown-item:hover {
    background-color: #026031;
    color: #fff;
}
.navbar-scrolled .dropdown-item {
    color: black;
}
.navbar-scrolled .dropdown-item:hover {
    background-color: unset;
    color: #f3621a;
}

/* Slide-down effect */
.nav-item.dropdown:hover .dropdown-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mt-150 {
    margin-top: 150px;
}

/* Custom Toggler Style */
.navbar-toggler {
    border: none;
}

.navbar-toggler:hover .navbar-toggler-icon {
    transform: rotate(90deg);
}

.navbar-toggler-icon {
    transition: transform 0.4s ease-in-out;
}

.hero-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #ffffff;
}
.home-slider{
    position: relative;
    margin-top: -10px;
}
.home-slider::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgb(92 176 195 / 50%), rgba(0, 0, 139, 0));
    pointer-events: none;
    z-index: 1;
}

.hero-section::after {
    content: '';
    background-image: url('../images/right-circle.png'); /* Add your PNG image here */
    background-size: contain; /* Keeps the image from stretching */
    background-repeat: no-repeat; /* Ensures image doesn’t repeat */
    background-position: right center; /* Position the image to the right */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%; /* Adjust based on the size of your image */
    height: 100%;
    z-index: 1; /* Keeps the image behind the content */
}

.hero-section::before {
    content: '';
    background-image: url('../images/banner-background-alt.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    position: absolute;
    top: -180px;
    left: -140px;
    bottom: 0;
    width: 35%;
    height: 100%;
    z-index: 1;
    opacity: .4;
    -webkit-animation: spin 70s linear infinite;
    -moz-animation: spin 70s linear infinite;
    animation: spin 70s linear infinite;
}

@-moz-keyframes spin {
    100% { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform:rotate(360deg);
    }
}

.hero-tagline {
    font-size: 24px;
    font-weight: 200;
}

.hero-title {
    font-size: 70px;
    font-weight: 400;
    color: black;
}

.text-more-strong {
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #676b6f;
    font-weight: 300;
    width: 80%;
    text-align: center;
    margin: 0 auto;
}
.hero-btn {
    background: #036132;
    border-color: #20922f;
    color: white;
}
.animated-arrow {
    font-size: 3rem;
    display: inline-block;
    animation: spinArrow 3s linear infinite, changeSymbol 5s infinite;
}

@keyframes spinArrow {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(360deg);
    }
}

@keyframes changeSymbol {
    0%, 50% {
        content: '→'; /* Arrow points to right initially */
    }
    51%, 100% {
        content: '↑'; /* Transforms to upward arrow or any symbol you prefer */
    }
}

.animated-arrow::before {
    content: '→'; /* Initial arrow pointing right */
}


.cta-button {
    margin-top: 20px;
    padding: 10px 30px;
    font-size: 1rem;
    border-radius: 50px;
    position: relative;
    z-index: 2;
}

.hero-section .hero-tagline,
.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section .cta-button {
    position: relative;
    z-index: 2; /* Ensures text and buttons are above the image */
}

.counter-bg-1 {
    background: #3ac10f26;
}
.counter-bg-1 .count-icon {
    color: #319d0e91;
}
.counter-bg-2 {
    background: #1cdfcf24;
}
.counter-bg-2 .count-icon {
    color: #116f67b5;
}
.counter-bg-3 {
    background: #ffc10729;
}
.counter-bg-3 .count-icon {
    color: #ffc107d9;
}
.counter-bg-4 {
    background: #0d6efd1c;
}
.counter-bg-4 .count-icon {
    color: #0d6efd66;
}
.counter-bg-5 {
    background: #4100ff21;
}
.counter-bg-5 .count-icon {
    color: #4100ff66;
}
.counter-bg-6 {
    background: #d94b0524;
}
.counter-bg-6 .count-icon {
    color: #d94b0575;
}
.banner_text h4 {
    color: #ffba61;
    text-transform: uppercase;
    font-weight: 900;
}

/* Slider Styles */
.carousel-item {
    height: 450px; /* Set the height for the slider */
    position: relative;
    background-color: #000;
}

.carousel-item img {
    object-fit: cover;
    height: 100%; /* Ensure the image covers the height */
    filter: brightness(0.7); /* Darken images slightly for better text contrast */
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
}

.carousel-caption h5 {
    font-size: 2rem; /* Adjusted font size for smaller height */
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
    font-size: 1rem; /* Adjusted font size for smaller height */
    color: #f8e8ff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Darker control icons */
    border-radius: 50%;
}

/* Animation for smoother transitions */
.carousel-caption .animate__animated {
    animation-duration: 1.5s;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transition-duration: 1.5s;
    transition-timing-function: ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active {
    transform: none;
}


/* Notice Section */
.scrolling-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: #036132;
    padding: 5px;
    box-shadow: 0px 2px 3px 1px #b9e1b9;
}

.scrolling-content {
    display: inline-block; /* Inline block for horizontal layout */
    animation: scroll 30s linear infinite; /* Animation for scrolling */
}
.scrolling-content a {
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 200;
    margin-right: 50px;
}

span.material-symbols-outlined {
    font-size: 23px;
    font-weight: 200;
    vertical-align: sub;
    display: inline-block;
}
.scrolling-content:hover{
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(10%); /* Start within the visible area */
    }
    100% {
        transform: translateX(-100%); /* End at left */
    }
}

section {
    padding-top: 80px;
    padding-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 50px;
}

/* Basic styles for the section title */
.section-title {
    color: #262626;
    text-align: center;
    font-size: 45px;
    font-weight: 300;
}

.section-body {
    padding: 30px 0px;
}
.ibtra-btn {
    background-color: #036132;
    border-color: #036132;
    font-size: 14px;
    padding: 4px 10px;
    transition: all 0.3s ease-in-out;
}
.ibtra-btn span {
    font-size: 17px;
    animation: leftToRight 2s ease-in-out infinite;
}

@keyframes leftToRight {
    0% {
        transform: translateX(0px);
    }
    25% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(0px);
    }
    75% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(5px);
    }
}


.icon-animation {
    font-size: 60px;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    animation: spinScaleBounce 4s ease-in-out infinite;
}

/* Keyframes for custom animation */
@keyframes spinScaleBounce {
    0% {
        transform: scale(1) rotate(360deg);
    }
    25% {
        transform: scale(1.2) rotate(00deg);
    }
    50% {
        transform: scale(1.1) rotate(0deg);
    }
    75% {
        transform: scale(1.2) rotate(360deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}


/* Styling for smart slider */
.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 1s ease-out;
}

.slider-item {
    min-width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-item img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}


/* Section styling */
.info-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.info-box .title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #343a40;
    text-align: center;
    text-transform: uppercase;
}

.info-box p {
    font-size: 16px;
    color: #6c757d;
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}


.ibtra-text-container {
    position: relative;
    background: #f3f3f3;
    padding: 30px;
    border-radius: 20px;
    margin-top: 13px;
}

.ibtra-text-container p {
    font-size: 17px;
    font-weight: 300;
}

.ibtra-text-container h2 {
    font-weight: 400;
    font-size: 22px;
    margin-bottom: 30px;
    color: black;
}
.about-box {
    display: block;
    width: 100%;
    min-height: 580px;
    padding: 50px 40px;
    background: #ededed;
}
.about-bg{
    background: #07021b;
    background: #0c5916;
    color: white;
}
.about-box h5{
    margin-top: 30px;
    font-weight: 400;
}
.about-content{
    font-size: 18px;
    margin-bottom: 40px;
}

.dib-container{
    position: relative;
    background-image: url('../images/dib-background.jpg');
    color: white;
    background-size: cover;
}
.dib-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(7 67 19 / 39%);
    z-index: 1;
}
.dib-section-title{
    color: #ffab50;
    font-weight: 400;
}
.dib-btn{
    background-color: #ffab50;
    border-color: #ffab50;
}
.dib-container h2, .dib-container h4, .dib-container p{
    position: relative;
    z-index: 2;
}

.dib-title {
    font-weight: 200;
    font-size: 22px;
    line-height: 1.4;
}

.officials-section {
    background: #f3f3f3;
}

.officials-word {
    background: #ffffff;
    padding: 15px;
    border-radius: 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0px 0px 2px .3px #878787;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.official-border {
    border: 1px #198754 solid;
    border-radius: 30px;
    padding: 30px;
}
.curly1 {
    position: absolute;
    top: 7px;
    right: 10px;
    width: 50px !important;
    background: white;
    padding: 5px 10px 5px 5px;
    transform: rotatez(180deg);
}
.curly2 {
    position: absolute;
    bottom: 7px;
    left: 10px;
    width: 70px !important;
    background: white;
    padding: 5px 10px 5px 5px;
}
.officials-info p {
    font-size: 16px !important;
}
/*.officials-word:hover .quote-icon img{
    animation: pulse 2s infinite ease-in-out;
}*/

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2); /* Slightly enlarges the icon */
    }
    100% {
        transform: scale(1);
    }
}
.officials-word p {
    font-size: 18px;
}
.officials-speech{
    height: 110px;
}
.officials-info-container {
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.officials-img {
    width: 150px;
    border-radius: 50%;
    margin-right: 20px;
    height: 150px;
    border: 1px #636060 solid;
    padding: 2px;
    margin-left: 30px;
}
.facility-content h3 {
    color: #035e30;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.facility-content p {
    font-size: 18px;
}
.dib-notice {
    font-family: 'Outfit', sans-serif;
    display: block;
    width: 100%;
    color: #0e7951;
    font-weight: 500;
}
.notice-table td {
    padding: 6px 0px;
}
a.dib-notice.dib-notice-time {
    font-size: 14px;
    color: #ff861e;
}
.download-btn {
    background-color: #036132;
    color: white;
    border: none;
    padding: 7px 15px;
    cursor: pointer;
    border-radius: 0px;
    font-weight: 300;
}
.notice_content h3 {
    color: #036132;
    font-size: 22px;
    font-weight: 400;
}
a.date_cmm {
    color: #ff6c16;
}
.recent-notice a {
    color: #107961;
    margin-bottom: 20px;
    display: block;
    font-size: 16px;
}
span.latest_news_date {
    display: block;
    color: #ff5504;
    font-size: 14px;
}
.news-flex-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.news-flex-title {
    display: flex;
    gap: 10px;
    text-align: left;
}
.news-flex-data {
    padding-top: 7px;
    display: block;
    width: 100%;
    font-size: 14px;
}
.widget_tittle h3{
    color: #036132;
    font-size: 22px;
    font-weight: 400;
}

.download-btn:hover {
    background-color: #45a049;
}
.facility-content h2{
    font-size: 20px;
}
.officials-info {
    display: flex;
    flex-direction: column; /* Aligns the text vertically */
}
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease-in-out;
    text-align: left;
    margin-bottom: 20px;
}
.word-wrap{
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.news-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h5.news-flex-title {
    color: #036132;
    margin-top: 10px;
    font-weight: 400;
    font-size: 20px;
}
.news-flex-data {
    padding-top: 7px;
    display: block;
    width: 100%;
    font-size: 14px;
    color: #12917f;
}
.blog_content h3 {
    color: #036132;
    margin-top: 20px;
    font-weight: 400;
    font-size: 25px;
}
.blog_content .date_cmm {
    margin-bottom: 10px;
    display: block;
}
.blog_content p {
    font-family: "Tiro Bangla";
    font-size: 17px;
    line-height: 30px;
    text-align: justify;
    color: #1a1a1a;
}
.media {
    margin-bottom: 20px;
    width: 100%;
    display: block;
    overflow: hidden;
}
.media-left {
    width: 35%;
    float: left;
}
.media-body {
    float: right;
    width: 60%;
}
.media-body h4 {
    font-size: 14px;
    color: #036132;
    font-weight: 400;
}
a.latest_news_date {
    font-size: 12px;
    color: #ef4918;
}
.card-img-top {
    object-fit: cover;
    max-height: 200px;
}

.news-body {
    padding: 10px 10px;
    color: black;
}

.card-title {
    min-height: 50px; /* Set a minimum height for titles */
}

p.news-time {
    font-size: 12px;
    color: #198754;
    margin-bottom: 5px;
}
.news-time span {
    font-size: 14px;
}
.news-img {
    position: relative;
    overflow: hidden;
    display: block;
}
.news-img .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #0f2865, rgba(0, 0, 139, 0));
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
}
.footer {
    position: relative;
    background-image: url('../images/footer-background.jpg');
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    padding-top: 120px;
    padding-bottom: 50px;
    background-repeat: no-repeat;
    background-size: cover;
    background: #0b5832;
    color: white;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(13 113 26 / 9%);
    z-index: 1;
}
footer a {
    color: #ff7220; /* Dark link color */
    transition: color 0.3s ease-in-out; /* Smooth transition */
    text-decoration: none;
    position: relative;
    z-index: 9;
}
.social-btn {
    margin-right: 10px;
    font-size: 25px;
    color: #ff6000;
}
footer a:hover {
    color: #d68357; /* Blue on hover */
    text-decoration: underline; /* Optional underline */
    text-decoration: none;
    cursor: pointer;
}


/* Mobile devices (up to 767px) and small mobile devices (up to 480px) */
@media (max-width: 767px), (max-width: 480px) {
    .navbar-brand p {
        font-size: 9px;
    }
    .navbar-toggler-icon {
        width: 25px;
    }
    .navbar-brand span {
        font-size: 10px;
    }
    .top-bar-right span {
        font-size: 15px;
    }
    .banner_text a {
        font-size: 14px !important;
    }
    button.navbar-toggler {
        padding: 0;
    }
    .hero-tagline {
        font-size: 16px;
        font-weight: 300;
    }
    .hero-title {
        font-size: 20px;
    }
    .icon-animation {
        font-size: 35px;
        margin-left: 0px;
    }
    .hero-subtitle {
        font-size: 14px;
        font-weight: 300;
    }
    .hero-section {
        padding-top: 40px;
    }
    .mt-150 {
        margin-top: 90px;
    }
    .cta-button {
        margin-top: 10px;
        padding: 5px 18px;
        font-size: 14px;
    }
    .hero-section::before {
        top: -200px;
        left: -80px;
        width: 65%;
        height: 100%;
    }
    section {
        padding-top: 40px;
        padding-bottom: 30px;
    }
    .section-title {
        font-size: 30px;
        padding: 0px 20px;
    }
    .section-subtitle{
        padding: 0px 20px;
    }
    .counter-container p{
        font-size: 12px;
    }
    .p-4-xs {
        padding: 20px 10px !important;
    }
    .officials-speech{
        height: unset;
    }
    .dib-container {
        padding: 40px 25px;
    }
    .dib-title {
        font-size: 18px;
    }
    .section-header {
        text-align: center;
        margin-bottom: 15px;
        margin-top: 50px;
    }
    .top-bar-left span {
        font-size: 11px;
        display:block;
    }
    .top-bar-left .ms-3 {
        margin-left: 2px !important;
    }
    .top-bar-right a {
        border-left: none !important;
        font-size: 11px;
        display: block;
    }
    .scrolling-content a {
        font-size: 14px;
    }
    .scrolling-content span.material-symbols-outlined {
        font-size: 17px;
    }
    .about-content {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .about-box {
        display: block;
        width: 100%;
        min-height: unset;
        padding: 35px 40px;
    }
    .officials-img {
        width: 100px;
        border-radius: 50%;
        margin-right: 10px;
        height: 100px;
        border: 1px #636060 solid;
        padding: 2px;
        margin-left: -10px;
        margin-bottom: 20px;
    }
    .officials-word p {
        font-size: 16px;
    }
    .officials-info p {
        font-size: 14px !important;
    }
    .dropdown-item {
        font-size: 15px;
    }
    .banner_text a {
        color: #ffffff;
        font-size: 14px;
    }
    .banner_text h4 {
        color: #ffba61;
        text-transform: uppercase;
        font-weight: 900;
        font-size: 16px;
    }
    .login-body {
        width: 90% !important;
    }
    .login-body h1 {
        font-size: 20px !important;
    }
    .login-form-content {
        padding: 10px 20px !important;
    }
    .popup-content {
        width: 90% !important;
    }
}
