/* =========================================================
   LEARNING METHODS — LIGHT PROFESSIONAL DESIGN
========================================================= */

.learning-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    padding: 84px 0 92px;

    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(0, 152, 163, 0.055),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 78%,
            rgba(28, 93, 181, 0.045),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 48%,
            #f6fbfd 100%
        );
}

/* Faded Tamil letters on the left */

.learning-section::before {
    content:
        "அ   ஆ   இ\A"
        "ஈ   உ   ஊ\A"
        "எ   ஏ   ஐ\A"
        "ஒ   ஓ   ஔ";

    position: absolute;
    z-index: -1;
    top: 58px;
    left: 26px;

    color: rgba(0, 142, 154, 0.055);
    font-family: "Hind Madurai", "Noto Sans Tamil", sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 12px;
    white-space: pre;

    transform: rotate(-4deg);
    pointer-events: none;
    user-select: none;
}

/* Faded Tamil learning words on the right */

.learning-section::after {
    content:
        "தமிழ்    மொழி\A"
        "ஒலி     கதை\A"
        "பாடல்   கலை";

    position: absolute;
    z-index: -1;
    right: 28px;
    top: 130px;

    color: rgba(8, 63, 145, 0.045);
    font-family: "Hind Madurai", "Noto Sans Tamil", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 2.3;
    letter-spacing: 8px;
    white-space: pre;

    transform: rotate(4deg);
    pointer-events: none;
    user-select: none;
}

.learning-section > .container {
    position: relative;
    z-index: 2;
}

/* =========================================================
   SECTION HEADING
========================================================= */

.learning-section .section-heading {
    max-width: 1350px;
    margin: 0 auto 46px;
    padding: 0 20px;
    text-align: center;
}

.learning-section .section-heading .eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #00939c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.learning-section .section-heading h2 {
    margin: 8px 0 16px;
    color: #083f91;
    font-family: "Hind Madurai", "Noto Sans Tamil", sans-serif;
    font-size: clamp(38px, 3.5vw, 55px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.learning-section .section-heading p {
    max-width: 860px;
    margin: 0 auto;
    color: #68758b;
    font-size: 16px;
    line-height: 1.85;
}

/* =========================================================
   GRID
========================================================= */

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* =========================================================
   CARD
========================================================= */

.learning-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0 !important;

    border: 1px solid rgba(217, 228, 237, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);

    box-shadow:
        0 10px 28px rgba(8, 47, 110, 0.065);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.learning-card:hover {
    transform: translateY(-5px);
    border-color: rgba(170, 208, 219, 0.95);

    box-shadow:
        0 20px 42px rgba(8, 47, 110, 0.115);
}

/* =========================================================
   IMAGE
========================================================= */

.learning-image {
    position: relative;
    width: 100% !important;
    height: 220px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;

    border-radius: 19px 19px 0 0;
    background: #f1f7fa;
}

.learning-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;
    object-position: center;
    border-radius: 0;

    transition: transform 0.4s ease;
}

.learning-card:hover .learning-image img {
    transform: scale(1.025);
}

.learning-image-placeholder {
    background:
        radial-gradient(
            circle at 24% 28%,
            rgba(0, 142, 154, 0.11),
            transparent 36%
        ),
        radial-gradient(
            circle at 78% 74%,
            rgba(7, 63, 145, 0.09),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #f2f9fb,
            #fbfdff
        );
}

/* =========================================================
   CONTENT
========================================================= */

.learning-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 25px 27px;
}

.learning-card-heading {
    margin-bottom: 12px;
}

.learning-content h3 {
    margin: 0 0 4px;
    color: #083f91;
    font-family: "Hind Madurai", "Noto Sans Tamil", sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

.learning-content h4 {
    margin: 0;
    color: #00939c;
    font-family: "Hind Madurai", "Noto Sans Tamil", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.learning-content p {
    margin: 0;
    color: #68758b;
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   BUTTON
========================================================= */

.learning-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: fit-content;
    margin-top: auto;
    padding-top: 18px;

    color: #083f91;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.learning-btn:hover {
    gap: 16px;
    color: #00939c;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {
    .learning-section .section-heading h2 {
        font-size: 43px;
        white-space: normal;
    }

    .learning-section::before {
        font-size: 36px;
        opacity: 0.7;
    }

    .learning-section::after {
        font-size: 25px;
        opacity: 0.7;
    }
}

@media (max-width: 1000px) {
    .learning-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {
    .learning-section {
        padding: 60px 0 68px;
    }

    .learning-section::before {
        top: 150px;
        left: -18px;
        font-size: 28px;
        letter-spacing: 7px;
        opacity: 0.55;
    }

    .learning-section::after {
        right: -20px;
        top: auto;
        bottom: 60px;
        font-size: 21px;
        letter-spacing: 4px;
        opacity: 0.5;
    }

    .learning-section .section-heading {
        margin-bottom: 30px;
        padding: 0;
        text-align: left;
    }

    .learning-section .section-heading h2 {
        font-size: 31px;
        white-space: normal;
    }

    .learning-section .section-heading p {
        font-size: 15px;
        line-height: 1.75;
    }

    .learning-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .learning-card {
        border-radius: 18px;
    }

    .learning-image {
        height: 210px;
        border-radius: 17px 17px 0 0;
    }

    .learning-content {
        padding: 22px 22px 24px;
    }

    .learning-content h3 {
        font-size: 26px;
    }

    .learning-content h4 {
        font-size: 15px;
    }

    .learning-content p {
        font-size: 14px;
        line-height: 1.75;
    }
}