.services-page {
    --services-maroon: #8c1212;
    --services-maroon-dark: #3a0c0c;
    --services-red: #d51f2a;
    --services-gold: #d4af37;
    --services-ink: #241514;
    --services-muted: #6d6260;
    --services-cream: #fbf8f1;
    background: #fff;
    color: var(--services-ink);
}

.services-hero {
    background:
        linear-gradient(90deg, rgba(42, 10, 10, 0.92), rgba(140, 18, 18, 0.72)),
        url("../images/hero-bg.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 5rem 0;
}

.services-hero-content {
    max-width: 760px;
}

.services-hero p,
.services-label {
    color: var(--services-gold);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.services-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.services-hero span {
    color: rgba(255, 255, 255, 0.88);
    display: block;
    font-size: 1.08rem;
    line-height: 1.9;
}

.services-section {
    background: var(--services-cream);
    padding: 4rem 0;
}

.student-portal-panel {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(140, 18, 18, 0.12);
    border-right: 6px solid var(--services-gold);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(36, 21, 20, 0.08);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 1.75rem;
}

.student-portal-panel h2,
.services-section-header h2 {
    color: var(--services-ink);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.8rem;
}

.student-portal-panel p {
    color: var(--services-muted);
    line-height: 1.9;
    margin-bottom: 0;
    max-width: 760px;
}

.btn-services-primary {
    align-items: center;
    background: var(--services-maroon);
    border: 1px solid var(--services-maroon);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 800;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 1.2rem;
}

.btn-services-primary:hover,
.btn-services-primary:focus {
    background: var(--services-maroon-dark);
    border-color: var(--services-maroon-dark);
    color: var(--services-gold);
}

.services-section-header {
    margin-bottom: 1.5rem;
}

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

.service-card {
    background: #fff;
    border: 1px solid rgba(140, 18, 18, 0.12);
    border-radius: 8px;
    color: var(--services-ink);
    min-height: 245px;
    padding: 1.45rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card i {
    align-items: center;
    background: rgba(140, 18, 18, 0.08);
    border-radius: 8px;
    color: var(--services-maroon);
    display: inline-flex;
    font-size: 1.45rem;
    height: 46px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 46px;
}

.service-card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--services-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-card span {
    color: var(--services-maroon);
    font-weight: 800;
}

.service-card:hover,
.service-card:focus {
    border-color: rgba(140, 18, 18, 0.35);
    box-shadow: 0 16px 32px rgba(36, 21, 20, 0.1);
    color: var(--services-ink);
    transform: translateY(-4px);
}

.service-card:hover span,
.service-card:focus span {
    color: var(--services-red);
}

.services-note {
    align-items: flex-start;
    background: rgba(212, 175, 55, 0.13);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem;
}

.services-note i {
    color: var(--services-maroon);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.services-note strong {
    color: var(--services-ink);
    display: block;
    margin-bottom: 0.35rem;
}

.services-note p {
    color: var(--services-muted);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 991.98px) {
    .student-portal-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .services-hero {
        padding: 3.5rem 0;
    }

    .services-hero h1 {
        font-size: 2rem;
    }

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

    .btn-services-primary {
        justify-content: center;
        width: 100%;
    }
}
