/* Welcome Section */
.welcome-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),url('https://img.freepik.com/free-photo/medical-banner-with-doctor-wearing-goggles_23-2149611193.jpg?t=st=1734681814~exp=1734685414~hmac=a5d63561dfc51d170a631c10505d8971e6dee1a618f508b0c73b216593d8fe88&w=826');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.welcome-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.welcome-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Services Section */
.services-section {
    padding: 3rem 2rem;
    background: rgb(240, 248, 242);
    position: relative;
}

.services-section .section-title{
    margin-bottom:0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.services-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(33, 136, 114, 0.2);
}

.image-container {
    position: relative;
    padding-top: 65%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.services-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.services-card:hover .services-image {
    transform: scale(1.05);
}

.services-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #218872, #2fb344);
    transition: width 0.3s ease;
}

.services-card:hover::after {
    width: 100%;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.services-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #218872;
    margin-bottom: 0.75rem;
}

.services-description {
    color: #4a5568;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: auto;
    width: fit-content;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.learn-more:hover .arrow-icon {
    transform: translateX(6px);
}        

/* Goals Section */
.goals {
    padding: 4rem 2rem;
    background-color: #fff;
}

.goals .section-title{
    font-size:2.2rem;
    margin-bottom:3rem;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.goals-card {
    padding: 2rem;
    background-color:rgb(240, 248, 242);
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.goals-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.goals-card h3 {
    color: #218872;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Partners Section */
.partners {
    padding: 4rem 3rem;
    background:linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)) ,url('https://img.freepik.com/free-photo/satisfied-businessman-company-employer-wearing-suit-handshake-new-employee-get-hired-job-interview-man-hr-manager-employ-successful-candidate-shake-hand-business-meeting-placement-concept_482257-5113.jpg?ga=GA1.1.200494.1729678632&semt=ais_hybrid');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.partners .section-description{
    color: white;
}

.partner-logos {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2rem 0;
    gap: 2rem;
    -webkit-overflow-scrolling: touch;
}

.partner-logos::-webkit-scrollbar {
    height: 8px;
}

.partner-logos::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.partner-logos::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.partner-logos a {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.partner-logos a:hover {
    transform: translateY(-5px);
}

.image-item {
    flex: 0 0 auto;
    width: auto;
    height: 70px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: all 0.3s ease;
}

.image-item:hover img {
    filter: brightness(0) invert(1) opacity(1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns:1fr 1fr;
    }
    
    .welcome-content h1 {
        font-size: 2.5rem;
    }
}

/* Responsive styles for 480px and below */
@media (max-width: 480px) {
    /* Welcome Section */
    .welcome-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .welcome-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Services Section */
    .services-section {
        padding: 1.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-card {
        margin-bottom: 1rem;
    }

    .card-content {
        padding: 1rem;
    }

    .services-title {
        font-size: 1.1rem;
    }

    /* Goals Section */
    .goals {
        padding: 2rem 1rem;
    }

    .goals .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .goals-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .goals-card {
        padding: 1.5rem;
    }

    .goals-card h3 {
        font-size: 1.1rem;
    }

    .goals-card p{
        font-size: 13px;
    }

    /* Partners Section */
    .partners {
        padding: 2rem 1rem;
    }

    .partner-logos {
        gap: 1rem;
        padding: 1rem 0;
    }

    .image-item {
        height: 50px;
        padding: 0.75rem;
    }
}

/* Responsive styles for 320px and below */
@media (max-width: 320px) {
    /* Services Section */
    .services-section {
        padding: 1.5rem 0.75rem;
    }

    .services-title {
        font-size: 1rem;
    }

    .services-description {
        font-size: 0.9rem;
    }

    /* Goals Section */
    .goals .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .goals-card {
        padding: 1rem;
    }

    /* Partners Section */
    .partners {
        padding: 1.5rem 0.75rem;
    }

    .image-item {
        height: 40px;
        padding: 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.9rem;
    }
}