/********** Template CSS **********/
:root {
    --primary: #3c8dbc;
    --secondary: #757575;
    --light: #F3F6F8;
    --yellow: #F3BD00;
}

.bg-secondary {
    background-color: #3c8dbc !important;
}

#map {
    height: 500px;
    width: 100%;

}

.py-6 {
    padding-top: clamp(30px, 5vw, 96px);
    padding-bottom: clamp(30px, 5vw, 96px);
}

.my-6 {
    margin-top: clamp(30px, 5vw, 96px);
    margin-bottom: clamp(30px, 5vw, 96px);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Counter ***/
.counter {
    /*margin-top: -80px;*/
    position: relative;
    z-index: 1;
}

.counter .display-4 {
    font-weight: 700;
    color: var(--primary) !important;
    margin-bottom: 0.5rem;
}

.counter .fs-5 {
    font-weight: 600;
    color: var(--primary) !important;
    line-height: 1.4;
}

.counter .bg-white {
    padding: 2rem 1rem !important;
    min-height: 150px;
}

.header-logo {
    height: clamp(45px, 3.906vw, 75px);
}

/*** Partners ***/
.partner-logo {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 120px;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.partner-logo .fs-4 {
    font-size: 1.5rem !important;
    line-height: 1.2;
}

.partner-logo small {
    font-size: 0.75rem;
    line-height: 1.2;
}

.partner-logo hr {
    border-color: #e9ecef;
    margin: 2rem 0;
}

/*** Partner Carousels ***/
.associate-partners-carousel .owl-item,
.insurance-partners-carousel .owl-item {
    padding: 0 10px;
}

.associate-partners-carousel .partner-logo,
.insurance-partners-carousel .partner-logo {
    margin: 0;
    height: 120px;
}

.owl-carousel .owl-stage {
    display: flex;
    align-items: center;
}

.owl-carousel .owl-item {
    display: flex;
    align-items: center;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
    background-color: #3c8dbc;
    border: 1px solid #3c8dbc;
}

.btn.btn-primary:hover {
    opacity: 0.7;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
    border-bottom: 1px solid #dee2e6;
}

.navbar .navbar-nav .nav-link {
    margin-right: 70px;
    padding: 25px 0;
    color: var(--primary);
    font-weight: 500;
    outline: none;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/

.carousel-item img {
    height: 80vh;
    object-fit: cover;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .75);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}

/* services */

.services-section {
    text-align: center;
    padding: 20px 0;
}

.services-badge {
    display: inline-block;
    background: #e6eaff;
    color: #000;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.services-title {
    font-size: 28px;
    font-weight: bold;
    margin: 15px 0 40px;
}

.services-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.services-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.services-card img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.services-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #3c8dbc;
    margin-bottom: 10px;
}

.services-card-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    background: #3c8dbc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: var(--yellow);
    color: #fff;
}

@media (max-width: 768px) {
    .services-cards {
        flex-direction: column;
        align-items: center;
    }
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: clamp(10px, 1.042vw, 20px);
    height: clamp(10px, 1.042vw, 20px);
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: clamp(20px, 2.083vw, 40px);
    height: clamp(20px, 2.083vw, 40px);
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}

/*** Hero Section with Service Boxes ***/
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    object-fit: cover;
    filter: brightness(0.3);
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

/* First row container */
.services-row-1 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
}

/* Second row container */
.services-row-2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    justify-content: center;
    max-width: calc(4 * 250px + 3 * 20px);
    margin: 0 auto;
}

/* Remove the old grid positioning */
.service-box:nth-child(-n+5),
.service-box:nth-child(6),
.service-box:nth-child(7),
.service-box:nth-child(8),
.service-box:nth-child(9) {
    grid-row: auto;
    grid-column: auto;
}

.service-box {
    background: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-sizing: border-box;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: inherit;
}

.service-box:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.service-box:active {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.service-box:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-box:hover .service-image {
    transform: scale(1.05);
}

.service-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    hyphens: auto;
}

.diagonal-line {
    position: absolute;
    top: 50%;
    right: 20%;
    width: 200px;
    height: 2px;
    background: linear-gradient(45deg, transparent, var(--primary), transparent);
    transform: rotate(45deg) translateY(-50%);
    z-index: 1;
}

/* Responsive Design for Service Grid */
@media (max-width: 1400px) {
    .services-row-1 {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .services-row-2 {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        max-width: calc(4 * 220px + 3 * 15px);
    }
    
    .service-box {
        max-width: 220px;
        padding: 20px 15px;
        min-height: 180px;
    }
    
    .service-content h4 {
        font-size: 0.8rem;
    }
}

@media (max-width: 1200px) {
    .services-row-1 {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .services-row-2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: calc(3 * 200px + 2 * 15px);
    }
    
    .service-box {
        max-width: 200px;
    }
    
    .diagonal-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-row-1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .services-row-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: calc(2 * 180px + 1 * 15px);
    }
    
    .service-box {
        max-width: 180px;
        padding: 15px 10px;
        min-height: 150px;
    }
    
    .service-content h4 {
        font-size: 0.75rem;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services-row-1,
    .services-row-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-box {
        max-width: 100%;
        min-height: 120px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
}

/* Two Info Boxes Section */
.info-box {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: left;
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none !important;
    outline: none !important;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.info-box:hover::before {
    opacity: 0.9;
}

.info-box-insurer::before {
    background-image: url('../img/bg-insurer.png'), linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(40, 167, 69, 0.95) 100%);
    background-size: cover;
    background-position: center;
}

.info-box-corporate::before {
    background-image: url('../img/bg-corporate.jpg'), linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 123, 255, 0.95) 100%);
    background-size: cover;
    background-position: center;
}

.info-box-residential::before {
    background-image: url('../img/Residential-Health.jpg'), linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(220, 53, 69, 0.95) 100%);
    background-size: cover;
    background-position: center;
}

/* Alternative CSS backgrounds if images are not available */
.info-box-insurer {
    background: 
        linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%),
        radial-gradient(circle at 25% 25%, rgba(40, 167, 69, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 48%, rgba(40, 167, 69, 0.05) 50%, transparent 52%);
    background-size: 100% 100%, 200px 200px, 150px 150px, 20px 20px;
}

.info-box-corporate {
    background: 
        linear-gradient(135deg, #e8f0f8 0%, #f0f5fa 100%),
        radial-gradient(circle at 25% 25%, rgba(0, 123, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 48%, rgba(0, 123, 255, 0.05) 50%, transparent 52%);
    background-size: 100% 100%, 200px 200px, 150px 150px, 20px 20px;
}

.info-box-residential {
    background: 
        linear-gradient(135deg, #f8e8e8 0%, #faf0f0 100%),
        radial-gradient(circle at 25% 25%, rgba(220, 53, 69, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 48%, rgba(220, 53, 69, 0.05) 50%, transparent 52%);
    background-size: 100% 100%, 200px 200px, 150px 150px, 20px 20px;
}

/* Remove the old pattern overlays since we're using enhanced backgrounds */
.info-box-insurer::after,
.info-box-corporate::after {
    display: none;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.info-link {
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    align-self: flex-start;
    display: inline-block;
    position: relative;
    z-index: 3;
}

.info-link:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Responsive Design for Info Boxes */
@media (max-width: 768px) {
    .info-box {
        padding: 30px 25px;
        min-height: 200px;
    }
    
    .info-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .info-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .info-box {
        padding: 25px 20px;
        min-height: 180px;
    }
    
    .info-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .info-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* Map Section */
.location {
    position: relative;
}

.location #map {
    height: 450px;
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Responsive map height */
@media (max-width: 768px) {
    .location #map {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .location #map {
        height: 300px;
    }
}

/* Info Boxes */
.info-box {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 30px;
    border: none !important;
    outline: none !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: all 0.3s ease;
}

.info-box-insurer::before {
    background-image: url('../img/bg-insurer.png');
    background-color: rgba(0, 0, 0, 0.85);
}

.info-box-corporate::before {
    background-image: url('../img/bg-corporate.jpg');
    background-color: rgba(0, 0, 0, 0.85);
}

.info-box-residential::before {
    background-image: url('../img/Residential-Health.jpg');
    background-color: rgba(0, 0, 0, 0.85);
}

.info-box:hover::before {
    background-color: rgba(0, 0, 0, 0.90);
    transform: scale(1.05);
}

.info-box > * {
    position: relative;
    z-index: 2;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 0;
}

.info-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 250px;
    line-height: 1.4;
}

.info-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: left;
}

.info-link:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.info-box:hover .info-link {
    background: #0056b3;
}

/* Topbar Blinking Text Animation */
.topbar-text-blink {
    animation: blink 4s ease-in-out infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

/* Alternative blinking effect with color change */
.topbar-text-blink-alt {
    animation: blinkColor 4s ease-in-out infinite;
}

@keyframes blinkColor {
    0%, 100% {
        color: #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        color: #F3BD00;
        text-shadow: 0 0 10px rgba(243, 189, 0, 0.6);
    }
}

/* Partner Page Styles */
.benefit-box {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.benefit-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.benefit-box i {
    transition: all 0.3s ease;
}

.benefit-box:hover i {
    transform: scale(1.1);
    color: var(--primary) !important;
}

/* Partner Form Container */
.bg-light.p-5.rounded {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* Form Validation Styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-check-input.is-invalid {
    border-color: #dc3545 !important;
}

.form-check-input.is-invalid + .form-check-label {
    color: #dc3545;
}

/* Error message positioning */
.error {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: block;
    width: 100%;
}

/* Ensure error messages don't interfere with floating labels */
.form-floating + .error {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Benefits validation error display */
#benefits-error {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Form field styling */
.form-floating .form-control {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-floating .form-control.bg-white {
    background-color: #ffffff !important;
}

/* Checkbox styling */
.form-check {
    margin-bottom: 15px;
    padding-left: 1.5em;
}

.form-check-input {
    margin-left: -1.5em;
    width: 1.2em;
    height: 1.2em;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
    font-weight: 500;
    cursor: pointer;
    padding-left: 0.5em;
}

/* Benefits section styling */
.form-label.fw-bold {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Benefits container for stacked checkboxes */
.benefits-container {
    margin-bottom: 1rem;
}

.benefits-container .form-check {
    margin-bottom: 15px;
    padding-left: 1.5em;
    display: block;
}

.benefits-container .form-check:last-child {
    margin-bottom: 0;
}

/* Submit button styling */
.btn-primary.py-3.px-5 {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary.py-3.px-5:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Alert message styling */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Page header styling */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/healthcare-BG.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* New Hero Section Styles */
.hero-section-new {
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.healthcare-illustration {
    padding: 2rem;
}

.healthcare-illustration img {
    max-width: 100%;
    height: auto;
    /*border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
}

.illustration-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    text-shadow: 2px 2px 4px rgba(0, 123, 255, 0.2);
}

.illustration-text p {
    font-size: 1.1rem;
    color: #6c757d;
}

.services-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #007bff;
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* Custom 5-column grid for top row */
.col-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Service Link Styles */
.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.service-link:hover {
    text-decoration: none;
    color: inherit;
    transform: scale(1.05);
}

.service-link:hover .service-item {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

/* Service Grid Styles */
.service-item {
    text-align: center;
    padding: 0.5rem;
    background: white;
    /*border-radius: 15px;*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.service-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    /*border-radius: 10px;
    border: 2px solid #e9ecef;*/
}

.service-item h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
    line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section-new {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .healthcare-illustration {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .services-section {
        padding: 1.5rem;
    }
    
    .services-section h2 {
        font-size: 1.75rem;
    }
    
    .col-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .illustration-text h2 {
        font-size: 2rem;
    }
    
    .service-img {
        height: 100px;
    }
    
    .service-item h6 {
        font-size: 0.8rem;
    }
    
    .col-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Partner With Us Page Styles */
.partner-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s ease;
}

.partner-box:hover::before {
    left: 100%;
}

.partner-box:hover {
    transform: translateY(-10px);
    border-color: #0d6efd;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.partner-icon {
    position: relative;
    z-index: 2;
}

.partner-box h4 {
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.partner-box p {
    color: #6c757d;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Partner Form Styles */
#partnerForm .form-floating {
    margin-bottom: 1rem;
}

#partnerForm .form-control,
#partnerForm .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#partnerForm .form-control:focus,
#partnerForm .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#partnerForm .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#partnerForm .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

/* Mobile Responsive for Partner Form */
@media (max-width: 767.98px) {
    .partner-form-container .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .partner-form-container .card {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .partner-form-container .card-body {
        padding: 1.5rem;
    }
    
    .partner-form-container {
        padding: 2rem !important;
    }
    
    #partnerForm .form-floating {
        margin-bottom: 0.75rem;
    }
    
    #partnerForm .btn-primary {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .partner-form-container .card-body {
        padding: 1rem;
    }
    
    .partner-form-container {
        padding: 1rem !important;
    }
    
    #partnerForm .form-floating {
        margin-bottom: 0.5rem;
    }
    
    #partnerForm .btn-primary {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Service Grid Layout */
.services-grid-top .row {
    display: flex;
    flex-wrap: wrap;
}

.services-grid-top .col-2-4 {
    display: flex;
    margin-bottom: 1rem;
}

.service-link {
    display: flex;
    width: 100%;
    text-decoration: none;
}

.service-item {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /*padding: 1rem;*/
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #e9ecef;
}

.service-img {
    /*height: 80px;
    width: 80px;*/
    object-fit: contain;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

/* Service Names Styling */
.service-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
    min-height: 3.6rem; /* Increased height for longer text */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.service-item:hover .service-name {
    color: #0d6efd;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15);
}

/* Responsive adjustments for service names */
@media (max-width: 767.98px) {
    .service-name {
        font-size: 0.8rem;
        margin-top: 0.3rem;
        min-height: 3rem;
    }
}

@media (max-width: 575.98px) {
    .service-name {
        font-size: 0.75rem;
        margin-top: 0.25rem;
        min-height: 2.8rem;
    }
}