.ielts-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ielts-services-section > div:first-child {
    max-width: 900px;
    margin: 0 auto 40px;
}

.ielts-services-section > div:first-child p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #495057;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 5px solid #1c9e77;
    border-radius: 10px;
    text-align: center;
}

.ielts-services-section > div:last-child {
    max-width: 900px;
    margin: 0 auto;
}

.ielts-services-section h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.ielts-services-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1c9e77, #0c5b43);
    border-radius: 2px;
}

.ielts-services-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ielts-services-section li {
    background: white;
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #1c9e77;
    position: relative;
    overflow: hidden;
}

.ielts-services-section li::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    z-index: 1;
}

.ielts-services-section li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.ielts-services-section li strong {
    display: block;
    font-size: 1.1rem;
    color: #1c9e77;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 30px;
    position: relative;
}

.ielts-services-section li strong::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #1c9e77;
    border-radius: 50%;
    opacity: 0.8;
}

.ielts-services-section li:last-of-type {
    margin-bottom: 0;
}

.ielts-services-section li strong + * {
    padding-left: 30px;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ielts-services-section {
        padding: 60px 20px;
        margin: 20px 10px;
    }

    .ielts-services-section > div:first-child p {
        font-size: 1.1rem;
        padding: 15px;
    }

    .ielts-services-section h3 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .ielts-services-section li {
        padding: 18px 20px;
        margin-bottom: 12px;
    }

    .ielts-services-section li strong {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ielts-services-section h3 {
        font-size: 1.6rem;
    }

    .ielts-services-section li {
        padding: 15px 18px;
    }

    .ielts-services-section > div:first-child p {
        font-size: 1rem;
    }
}

/* --------- Rewritten Services UI (project.html) --------- */
.ielts-services-section {
    /* keep base styles but add a nicer container feel for the rewritten content */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ielts-services-section > div:first-child {
    max-width: 980px;
}

.service-block {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(28, 158, 119, 0.25);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    padding: 22px 22px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-block::after {
    content: '';
    position: absolute;
    inset: -80px -120px auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(28, 158, 119, 0.18), transparent 62%);
    transform: rotate(18deg);
}

.service-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.ielts-services-section h3 {
    text-align: center;
}

.ielts-services-section h4 {
    font-weight: 800;
    color: #0f5132;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.ielts-services-section p {
    position: relative;
    z-index: 1;
}

.ielts-services-section h5 {
    font-weight: 800;
    color: #1c9e77;
    margin-top: 16px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.service-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .service-meta {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .service-meta {
        grid-template-columns: 1fr 1fr;
    }
}

.service-meta p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fffb;
    border: 1px solid rgba(28, 158, 119, 0.18);
    border-radius: 12px;
    color: #2b2f33;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.service-meta p:hover {
    background: #effdf5;
    border-color: rgba(28, 158, 119, 0.35);
}

/* --------- Animation on load (works for both old list and new cards) --------- */
.ielts-services-section {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ielts-services-section .service-block {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.ielts-services-section .service-block:nth-of-type(1) { animation-delay: 0.05s; }
.ielts-services-section .service-block:nth-of-type(2) { animation-delay: 0.10s; }
.ielts-services-section .service-block:nth-of-type(3) { animation-delay: 0.15s; }
.ielts-services-section .service-block:nth-of-type(4) { animation-delay: 0.20s; }
.ielts-services-section .service-block:nth-of-type(5) { animation-delay: 0.25s; }


