/* ===== Subjects Coverage Section ===== */
.subjectCoverageSection {
    padding: var(--section-bg-py) 0;
}

/* ===== Section Head ===== */
.subjectCoverageSection .sectionHeadwrap {
    text-align: center;
}

/* ===================================================
   Subjects Grid Card
   =================================================== */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #E4F2FF;
    border: 1px solid #E4F2FF;
    border-radius: 30px;
    overflow: hidden;
    margin-top: var(--section-wraper-py);
   box-shadow: 0px 0px 19.5px 0px #DDE6FF;

}

/* ===================================================
   Subject Link Cell
   =================================================== */
.s-link {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 35px 25px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease;

    /* Scroll reveal start state */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease,
                background 0.2s ease;
}

.s-link.in {
    opacity: 1;
    transform: translateY(0);
}

/* Bottom sweep line on hover */
.s-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--color-primary, #3A66D4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.s-link:hover {
    background: #F0F5FF;
}

.s-link:hover::after {
    transform: scaleX(1);
}

/* ===== Left: num + dash + name ===== */
.s-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.s-num {
    font-size: 14px;
    font-weight: 600;
 
    color: var(--color-primary);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.s-link:hover .s-num {
    color: var(--color-primary, #3A66D4);
}

.s-dash {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    flex-shrink: 0;
    transition: background 0.2s ease, width 0.25s ease;
}

.s-link:hover .s-dash {
    background: var(--color-primary, #3A66D4);
    width: 25px;
}

.s-name {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 500;
    color: var(--color-heading);
       margin-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.s-link:hover .s-name {
    color: var(--color-primary, #3A66D4);
}

/* ===== Arrow (hidden until hover) ===== */
.s-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #E4EEFF;
    background: #F0F5FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C4CFED;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.22s ease,
                background 0.22s ease,
                border-color 0.22s ease,
                color 0.22s ease,
                transform 0.22s ease;
}

.s-link:hover .s-arrow {
    opacity: 1;
    background: var(--color-primary, #3A66D4);
    border-color: var(--color-primary, #3A66D4);
    color: #fff;
    transform: translateX(3px);
}

/* ===================================================
   Footer Row
   =================================================== */
.subjects-footer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 29px;
    margin-top: 50px;
    text-align: center;

    /* Scroll reveal */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s 0.2s ease, transform 0.4s 0.2s ease;
}

.subjects-footer-row.in {
    opacity: 1;
    transform: translateY(0);
}

.subjects-closing-line {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: var(--lh-relaxed);
    color: var(--color-text-secondary, #8b95a5);
    font-weight: var(--fw-regular);
    margin: 0;
}

.subjects-closing-line strong {
    font-weight: 700;
    color: var(--color-heading, #1a2332);
}

/* ===== CTA Button ===== */
@keyframes subjectCtaPulse {
    0%   { box-shadow: 0 2px 12px rgba(58, 102, 212, 0.3), 0 0 0 0 rgba(58, 102, 212, 0.45); }
    70%  { box-shadow: 0 2px 12px rgba(58, 102, 212, 0.3), 0 0 0 14px rgba(58, 102, 212, 0); }
    100% { box-shadow: 0 2px 12px rgba(58, 102, 212, 0.3), 0 0 0 0 rgba(58, 102, 212, 0); }
}

.subjects-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 12px 36px;
    background: var(--color-primary, #3A66D4);
    color: #fff;
    border-radius: 13px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    max-width: 210px;
    width: 100%;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    animation: subjectCtaPulse 2.2s ease-out infinite;
}

.subjects-cta-btn:hover {
    background: #2d55c0;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(58, 102, 212, 0.4);
}

.subjects-cta-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.subjects-cta-btn:hover .subjects-cta-arrow {
    transform: translateX(4px);
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 991px) {
    .subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 18px;
    }

    .s-link {
        padding: 18px 18px;
    }

    .subjects-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 14px;
    }

    .s-link {
        padding: 14px 14px;
    }

    .s-name {
        font-size: 13.5px;
    }

    .s-arrow {
        display: none;
    }
}
