/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Learning Section Styling */
.learning-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 40px;
    background-color: #ffffff;
    position: relative; /* Enables globe positioning */
    gap: 20px;
    max-width: 1450px;
    margin: 0 auto; /* Centers the section on the page */
}

/* Header Section */
.learning-header {
    width: 40%;
    text-align: left;
}

.learning-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #1a1a1a;
}

.learning-header .highlight {
    color: #4e54c8; /* Purple highlight */
}

.learning-header .description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Cards Section */
.learning-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 55%;
}

.learning-card {
    background: #f9faff;
    border: 1px solid #e0e6ed;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    width: 48%; /* Adjust for two cards per row */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card-icon img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}

.learning-card h3 {
    font-size: 1.3rem;
    color: #4e54c8;
    margin-bottom: 15px;
}

.learning-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Globe Image Styling */
.globe-image {
    position: absolute;
    z-index: 10; /* Ensures the globe is above other elements */
    bottom: -50px; /* Overlaps between sections */
    right: 20px;
    opacity: 1;
}

.globe-image img {
    width: 180px; /* Adjust size of the globe */
    height: auto;
}

/* Testimonial Section Styling */
.testimonial-section {
    position: relative;
    padding: 100px 20px 50px; /* Creates space for globe and content */
    background: linear-gradient(to right, #480A5E 0%, #1F5BEA 100%);
    text-align: center;
    color: #ffffff;
    margin-top: -40px; /* Pulls section to align with globe */
}

.testimonial-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.testimonial-section .highlight {
    color: #ffe455; /* Gold highlight */
}

.testimonial-section .description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Testimonial Grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three cards in a row */
    gap: 30px;
    justify-items: center;
    position: relative; /* Prevent overlap */
    z-index: 5;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    border-radius: 10px;
    padding: 20px;
    width: 90%; /* Adjusted width for better scaling */
    text-align: left;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.testimonial-card span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Learning Section */
    .learning-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .learning-header {
        width: 100%;
    }

    .learning-cards {
        width: 100%;
        flex-direction: column;
    }

    .learning-card {
        width: 90%;
    }

    /* Globe Image */
    .globe-image {
        bottom: -30px; /* Adjust for mobile */
        right: 10px;
    }

    .globe-image img {
        width: 120px; /* Smaller size for mobile */
    }

    /* Testimonial Section */
    .testimonial-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .testimonial-section {
        padding-top: 80px; /* Adjust padding for smaller screens */
    }
}
