/* Main Styles */
html {
    scroll-behavior: smooth;
  }
body {
    font-family: 'Mulish', sans-serif;
    color: #333;
    overflow-x: hidden;
 
  
    
}
.mulish {
    font-family: 'Mulish', sans-serif;

 
  
    
}

/* Font Classes */
.heading-text {
    font-family: 'Source Serif 4', serif;
}

.body-text {
    font-family: 'Lato', sans-serif;
}

.lato{
    font-family: 'Lato', sans-serif;
}



/* Adjust dropdown positioning with a gap */
.group .absolute {
    top: 100%;
    left: 0;
    min-width: 150px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    padding: 10px; /* Ensure padding inside dropdown */
    margin-top: 8px; /* Add the gap you want */

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

/* Create an invisible buffer to prevent flickering */
.group {
    position: relative;
}

.group::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px; /* Creates an invisible hover area */
    background: transparent;
}

/* Ensure dropdown remains visible when hovering over it */
.group:hover .absolute,
.absolute:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


/* Link Styles */
.nav-link {
    position: relative;
    color: #0d47a1;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #0A8690;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-link:hover {
    color: #0A8690;
}

/* Active link styling */
.nav-link.active {
    color: #0A8690;
}

/* Color Utilities */
.accent-color {
    color: #1e88e5;
}

.highlight-color {
    color: #0d47a1;
}

/* Feature Cards */
.feature-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    max-width: 380px;
    margin: 0 auto;
    
}



.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Wave Cards Animation Styles */
.card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    
    margin: 0 auto;
    height: 350px;
}

.wave-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 50% 50% 0 0 / 60% 60% 0 0;
}

.card:hover .wave-overlay {
    bottom: 0;
    border-radius: 0;
}

.card:hover .card-content {
    color: white;
    z-index: 10;
}

/* Explicitly change title and text color to white on hover */
.card:hover .card-title,
.card:hover .card-text {
    color: white;
}

.card-title, 
.card-text {
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Individual card colors */
.card-1 .wave-overlay { background-color: #0A8690; } /* Blue */
.card-2 .wave-overlay { background-color: #7D65DC; } /* Green */
.card-3 .wave-overlay { background-color: #FFB070; } /* Amber */
.card-4 .wave-overlay { background-color: #0A8690; } /* Red */
.card-5 .wave-overlay { background-color: #7D65DC; } /* Purple */
.card-6 .wave-overlay { background-color: #FFB070; } /* Pink */





/* swipper */
.swiper-button-next,
.swiper-button-prev {
    width: 50px; /* Adjust for bigger size */
    height: 50px; /* Keep width and height equal for a perfect circle */
    background-color: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Slightly deeper shadow */
    font-size: 18px; /* Increase icon size */
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px; /* Increase arrow size */
    font-weight: bold;
}
.swiper-button-disabled {
    display: none;
}
.swiper-slide {
    height: 500px;
    width: 90%;
}
.swiper-slideBlog {
    height: 100px;
    width: 90%;
}

.swiper {
    overflow: visible !important;
}



.blog-card {
    max-width: 410px; /* Adjust width as needed */
    height: 100%; /* Allow height to adjust */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
   
}

.blog-card img {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    object-fit: cover; /* Ensures the image covers the div */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

@media (max-width: 768px) {
    .blog-card {
        max-width: 100%;
    }
}




.blog-card:hover {
    transform: translateY(-5px);
}

.blog-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.blog-title {
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #0d6efd;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #495057;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.pagination-container {
    margin-top: 30px;
    margin-bottom: 50px;
}

.page-link {
    color: #0d6efd;
    border-radius: 4px;
    margin: 0 3px;
}

.page-item.active .page-link {
    background-color: #A1B3DD;
    border-radius: 8px;
    color: #102D8C;
    border: transparent;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.swiper-slideB {
    width: 400px !important;
 }
