/******Blogs******/
.blog-hero {
    margin-top: 75px;
    padding: 50px 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 40vh;
    align-items: center;
    display: flex;
}
.blog-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 75px;
    height: 50vh;
    width: 100%;
    background: linear-gradient(90.49deg, #1a6de187 50.87%, rgba(21, 69, 137, 0) 116.31%);
    z-index: 0;
}
.blog_hero_heading {
    font-family: Poppins, serif;
    font-weight: 600;
    font-size: 46px;
    line-height: 55px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}
.blog-hero .description {
    font-size: 22px;
    color: white;
    font-weight: 500;
    margin-bottom: 5px;
}
.blog_main {
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #d0cccc;
}
.blog_details {
    padding: 20px;
    font-size: 11px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.blog_details h2 {
    font-size: 16px;
}
.single_blog_content img {
    width: 100% !important;
}
.blog_img img {
    transition: transform 0.5s ease;
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: 230px;
    object-fit: cover;
}
.blog_cat {
    background: #edf4ff;
    color: var(--primary);
    padding: 1px 20px 1px 20px;
    border-radius: 5px;
}
.blog_title {
    font-size: 16px;
    font-weight: 500;
    color: #131315;
    display: inline;
    padding-bottom: 0;
    transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-image: linear-gradient(to bottom, currentColor 0%, currentColor 98%);
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: left 100%;
    overflow: visible !important;
}
.blog_main:hover .blog_title {
    color: #131315;
    text-decoration: none;
    background-size: 100% 1px;
}
.blog_main:hover .blog_img img {
    transform: scale(1.05);
}
.blog_main:hover .blog_title::after {
    width: 100%;
}
.single_blog_heading {
    font-family: Poppins, serif;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 55px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}
.single_blog_cat {
    background-color: #edf4ff;
    color: var(--primary);
    font-family: "Inter Tight", sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 10px 25px;
    border-radius: 20px;
    transition: 0.5s ease-in-out;
}
.single_blog_date {
    color: #edf4ff;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    padding: 10px 25px;
}
/*Blog SideBar*/
.sidebar_search {
    background-color: rgb(255, 255, 255);
    margin-bottom: 30px;
    box-shadow: rgba(69, 67, 96, 0.1) 0px 5px 20px 0px;
    padding: 20px;
    border-radius: 20px;
}
.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    background-color: #EDF4FF;
}
.search-box button {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    color: #0073aa;
}
.main_title {
    font-size: 24px;
    font-weight: 600;
    padding: 0 0 10px 0;
}
.sidebar_card {
    background-color: rgb(255, 255, 255);
    margin-bottom: 30px;
    box-shadow: rgba(69, 67, 96, 0.1) 0px 5px 20px 0px;
    padding: 18px;
    border-radius: 20px;
}
.sidebar_card .main_title {
    font-size: 24px;
    font-weight: 600;
    padding: 0 0 10px 0;
}
.sidebar_card .sidebar_ul {
    list-style: none;
    padding: 0;
}
.sidebar_card .item {
    background-color: #EDF4FF;
    margin-bottom: 10px;
    padding: 10px 5px;
    border-radius: 10px;
}
.category_title {
    background-color: #edf4ff;
    color: var(--primary);
    font-family: "Inter Tight", sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 20px;
    transition: 0.5s ease-in-out;
}
.category_number {
    float: right;
    color: rgb(148, 151, 158);
    font-size: 14px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}
.sidebarCTA {
    background-color: rgb(255, 255, 255);
    margin-bottom: 30px;
    box-shadow: rgba(69, 67, 96, 0.1) 0px 5px 20px 0px;
    border-radius: 20px;
}
.sidebarCTA .ctaMainContent {
    padding: 15px 20px 30px 20px;
    text-align: center;
}
.sidebarCTA .ctaTitle {
    font-weight: 700;
    font-size: 16px;
}
.sidebarCTA .ctaDesc {
    text-align: justify;
    margin: 15px 0 30px 0;
}
/* Pagination Styles with Perfectly Circular Buttons */
.pagination-wrapper {
    margin-top: 2rem;
    width: 100%;
}

/* Navigation container */
nav[role="navigation"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Mobile pagination (sm:hidden) */
.flex.justify-between.flex-1.sm\:hidden {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.flex.justify-between.flex-1.sm\:hidden a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background: #0d6efd; /* Your primary color */
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2); /* Updated shadow color */
    min-width: 100px;
    height: 45px;
}

.flex.justify-between.flex-1.sm\:hidden a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3); /* Updated shadow color */
    background: #0a58ca; /* Your hover color */
}

/* Desktop pagination */
.hidden.sm\:flex-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
    flex-direction: column;
}

/* Showing results text */
.text-sm.text-gray-700.leading-5 {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
}

.text-sm.text-gray-700.leading-5 .font-medium {
    font-weight: 600;
    color: #0d6efd; /* Your primary color */
}

/* Pagination buttons container */
.relative.z-0.inline-flex.shadow-sm.rounded-md {
    display: inline-flex;
    align-items: center;
    background: transparent;
    padding: 0;
    gap: 8px;
    box-shadow: none;
    flex-wrap: wrap;
    justify-content: center;
}

/* Individual page links - PERFECT CIRCLE */
.relative.inline-flex.items-center {
    min-width: 45px !important;
    width: 45px !important;
    height: 45px !important;
    padding: 0 !important;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    background: white;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    line-height: 1;
}

/* Remove all special border-radius classes */
.rounded-l-md,
.rounded-r-md,
.-ml-px {
    border-radius: 9999px !important;
    border: 2px solid #e2e8f0 !important;
    margin: 0 !important;
}

/* First page link */
.rounded-l-md {
    border-radius: 9999px !important;
    border-right: 2px solid #e2e8f0 !important;
}

/* Last page link */
.rounded-r-md {
    border-radius: 9999px !important;
    border-left: 2px solid #e2e8f0 !important;
}

/* Remove negative margin */
.-ml-px {
    margin-left: 0 !important;
}

/* Hover effect for page links */
.relative.inline-flex.items-center:hover:not([aria-current="page"] *) {
    background: #0d6efd !important; /* Your primary color */
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3); /* Updated shadow */
    z-index: 2;
}

/* Active/Current page */
[aria-current="page"] .relative.inline-flex.items-center {
    background: #0d6efd !important; /* Your primary color */
    color: white !important;
    border-color: transparent !important;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4); /* Updated shadow */
    transform: scale(1.05);
    border-radius: 9999px !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
}

/* Previous/Next buttons */
a[rel="prev"], a[rel="next"] {
    background: white;
    color: #0d6efd !important; /* Your primary color */
    border: 2px solid #e2e8f0;
    border-radius: 9999px !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a[rel="prev"]:hover, a[rel="next"]:hover {
    background: #0d6efd !important; /* Your primary color */
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.3); /* Updated shadow */
}

/* SVG icons in prev/next buttons */
.w-5.h-5 {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* Disabled state */
[aria-disabled="true"] .relative.inline-flex.items-center,
.disabled .relative.inline-flex.items-center {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f7fafc;
    color: #a0aec0;
    border-color: #e2e8f0;
    transform: none;
    box-shadow: none;
}

/* Disabled previous/next buttons */
[aria-disabled="true"] a[rel="prev"],
[aria-disabled="true"] a[rel="next"],
.disabled a[rel="prev"],
.disabled a[rel="next"] {
    background: #f7fafc;
    color: #a0aec0 !important;
    border-color: #e2e8f0;
    opacity: 0.5;
}

/* Ellipsis/dots styling */
.relative.inline-flex.items-center span:not(a) {
    background: transparent;
    border: 2px dashed #e2e8f0;
    color: #a0aec0;
    border-radius: 9999px !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive styles for mobile */
@media (max-width: 640px) {
    .hidden.sm\:flex-1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .relative.z-0.inline-flex.shadow-sm.rounded-md {
        gap: 6px;
    }

    .relative.inline-flex.items-center,
    [aria-current="page"] .relative.inline-flex.items-center,
    a[rel="prev"], a[rel="next"] {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 0.875rem;
    }

    /* Adjust mobile previous/next buttons text */
    .flex.justify-between.flex-1.sm\:hidden a {
        min-width: 90px;
        height: 40px;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .relative.inline-flex.items-center,
    [aria-current="page"] .relative.inline-flex.items-center,
    a[rel="prev"], a[rel="next"] {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }
}

/* Blog page specific styles */
.blogs .pagination-wrapper {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

/* Animation for pagination links */
.relative.inline-flex.items-center {
    position: relative;
    overflow: hidden;
}

.relative.inline-flex.items-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.relative.inline-flex.items-center:active::after {
    width: 70px;
    height: 70px;
}

/* Remove any container background */
.relative.z-0.inline-flex.shadow-sm.rounded-md {
    background: transparent !important;
}

/* Ensure all buttons are perfectly circular */
.pagination button,
.pagination a,
.pagination span {
    border-radius: 9999px !important;
}

/* Additional hover state for page links - using your hover color */
.relative.inline-flex.items-center:hover:not([aria-current="page"] *) {
    background: #0a58ca !important; /* Your hover color on hover */
}

/* Active page using your primary color */
[aria-current="page"] .relative.inline-flex.items-center {
    background: #0d6efd !important;
}

/* Previous/Next hover using your hover color */
a[rel="prev"]:hover, a[rel="next"]:hover {
    background: #0a58ca !important; /* Your hover color */
}

/* Mobile buttons hover using your hover color */
.flex.justify-between.flex-1.sm\:hidden a:hover {
    background: #0a58ca; /* Your hover color */
}

/* Color variables updated with your colors */
:root {
    --bs-link-color: #0d6efd;
    --bs-link-hover-color: #0a58ca;
    --pagination-primary: #0d6efd;
    --pagination-secondary: #0a58ca;
    --pagination-text: #4a5568;
    --pagination-border: #e2e8f0;
}

/* Hide first div on next and previous btns */
nav[role="navigation"] > div.flex.justify-between.flex-1.sm\:hidden {
    display: none !important;
}