.hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}
.hero-background.active {
    opacity: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
    color: #fff; /* Make text white */
}
.hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}
.hero p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
   
}
/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero .animate-text {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}
.hero .animate-text:nth-child(2) {
    animation-delay: 0.3s;
}
.hero .animate-button {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card .btn {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}
.card:hover .btn {
    opacity: 1;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.navbar, footer {
    background: linear-gradient(45deg, #0d6efd, #0a58ca, #084298);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
}

.partner-logo {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.partner-logo:nth-child(even) {
    transform: translateX(50px);
}

.partner-logo.animate {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 767px) {
    .partner-logo, .partner-logo:nth-child(even) {
        transform: translateY(50px);
    }
}

#why-us .list-group-item {
    border: none;
    background-color: transparent;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#why-us .list-group-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#why-us .badge {
    transition: all 0.3s ease;
}

#why-us .list-group-item:hover .badge {
    transform: scale(1.1);
}

#why-us .card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#why-us .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#why-us .fas {
    transition: transform 0.3s ease-in-out;
}

#why-us .card:hover .fas {
    transform: scale(1.1);
}
/* partener secion*/
.partner-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
}
.partner-slide {
    flex: 0 0 auto;
    width: 16.666%;
    padding: 0 15px;
    transition: transform 0.5s ease;
}
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
.partner-slider:hover .partner-slide {
    animation: slide 5s linear infinite;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block; 
}
.nav-link:hover{
    border-bottom:  2px solid #fff;
}
.dropdown-item{
    transition: background-color 0.3s ease;
}
.dropdown-item:hover {
   color: var(--bs-primary);

}
.partner-slide img {
    max-width: 100%; /* Default size for smaller screens */
    height: auto;
}

@media (min-width: 768px) {
    .partner-slide img {
        max-width: 50%; /* Size for medium screens */
    }
}

@media (min-width: 992px) {
    .partner-slide img {
        max-width: 50%; /* Size for larger screens */
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes slideIn {
            from { opacity: 0; transform: translateY(50px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-text, .animate-button, .card {
            opacity: 0;
            transform: translateY(50px);
            animation: slideIn 1.5s ease-out forwards;
        }
        .animate-text:nth-child(1) {
            animation-delay: 1.0s;
        }
        .animate-text:nth-child(2) {
            animation-delay: 0.6s;
        }
        .animate-button {
            animation-delay: 0.9s;
        }
        .card:nth-child(1) {
            animation-delay: 1.2s;
        }
        .card:nth-child(2) {
            animation-delay: 1.5s;
        }
        .card:nth-child(3) {
            animation-delay: 2.8s;
        }
        .card:nth-child(4) {
            animation-delay: 3.1s;
        }

/* Blog Section Styles */
.blog-card {
    transition: transform 0.3s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5rem;
}

.blog-card .card-text {
    display: -webkit-box;    
    -webkit-line-clamp: 3;  
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5rem;
}

.blog-card .badge {
    font-weight: 500;
}

.blog-card .card-footer {
    padding-top: 1rem;
}

/* Animation for cards */
.blog-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }


/* parteners slider*/

.partner-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

.partner-slide {
    flex: 0 0 200px;
    text-align: center;
}

.partner-logo {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .partner-slide {
        flex: 0 0 150px;
    }
}

/*testimonials style*/
.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
    margin: 0 -50px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.testimonial-slide {
    min-width: calc(100% - 2rem);
    padding: 1rem;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.5s ease-in-out;
}

@media (min-width: 768px) {
    .testimonial-slide {
        min-width: calc(50% - 2rem);
    }
}

@media (min-width: 1200px) {
    .testimonial-slide {
        min-width: calc(33.333% - 2rem);
    }
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--bs-primary);
    transform: scale(1.2);
}

/*partenerrs and testimonial style*/
.team-card {
    transition: transform 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Circular Image Styles */
.team-member-image-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-primary-dark));
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    transition: transform 0.3s ease;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
}

.team-card:hover .team-member-image {
    transform: scale(1.05);
}

/* Social Links Styles */
.social-links {
    position: relative;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.social-links a {
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--bs-primary);
    color: white;
    transform: translateY(-3px);
}

/* Card Body Padding Adjustment */
.card-body {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Bio Text Style */
.card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Position Text Style */
.text-muted {
    font-size: 0.9rem;
}

/* Name Style */
.card-title {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-member-image-wrapper {
        width: 140px;
        height: 140px;
    }
}

/*blog section*/
.blog-post-content {
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.modal-header {
    position: absolute;
    right: 0;
    z-index: 1;
}

.btn-close {
    background-color: white;
    opacity: 0.8;
    border-radius: 50%;
    padding: 0.5rem;
    margin: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-close:hover {
    opacity: 1;
}

.share-buttons .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    border-radius: 50%;
}

.post-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: #f8f9fa;
}

.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom scrollbar for the modal content */
.blog-post-content::-webkit-scrollbar {
    width: 6px;
}

.blog-post-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.blog-post-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.blog-post-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}






.telegram-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #0088cc;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
}

.telegram-float i {
    font-size: 32px;
}

.telegram-float:hover {
    background-color: #0077b3;
    color: white;
    transform: scale(1.1);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
}

/* Optional: Add animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.telegram-float {
    animation: pulse 2s infinite;
}

/* Optional: Disable animation on hover */
.telegram-float:hover {
    animation: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .telegram-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }

    .telegram-float i {
        font-size: 26px;
    }
}

/*Scroll to top button*/ 
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--bs-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* our tema */

/* Team Slider Styles */
.team-slider-container {
    position: relative;
    padding: 0 40px;
}

.team-slider {
    overflow: hidden;
}

.team-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.team-slide {
    flex: 0 0 25%;
    padding: 0 15px;
    min-width: 280px;
}

.team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bs-primary);
    color: white;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.team-nav:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.team-nav.prev {
    left: 0;
}

.team-nav.next {
    right: 0;
}

.team-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.team-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: #ccc;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-dot.active {
    background: var(--bs-primary);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .team-slide {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 992px) {
    .team-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .team-slide {
        flex: 0 0 100%;
    }
}