/* =============================================
   SkillsPro Portal – Custom CSS
   ============================================= */

/* ---------- CSS Design Tokens ---------- */
:root {
    --primary: #00702d;
    --accent: #F27428;
    --foreground: #0f172a;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --background: #ffffff;
    --radius: 1.5rem;
    --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --font-heading: 'Poppins', sans-serif;
}

.section-back-gray {
    background-color: #e2e2e2;
}

/* ---------- Base reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

section {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ---------- NAV / HEADER ---------- */
.sp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e2e8f0;
}

.sp-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 2vw, 2rem);
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-nav-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: nowrap;
}

.sp-logo-wrap {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex-shrink: 0;
}

.sp-logo-name {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: #00702d;
    line-height: 1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.sp-logo-sub {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

.sp-logo-line {
    height: 2px;
    background: #F27428;
    width: 2rem;
    border-radius: 9999px;
}

.sp-logo-text {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #00702d;
    font-weight: 700;
}

.sp-nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

    .sp-nav-links a {
        font-size: 1.2rem;
        font-weight: 700;
        color: #64748b;
        text-decoration: none;
        letter-spacing: -0.01em;
        transition: color 0.2s;
    }

        .sp-nav-links a:hover {
            color: #00702d;
        }

.sp-nav-right {
    display: none;
    align-items: center;
    gap: 1rem;
}

.sp-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #00702d;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    transition: background 0.2s;
}

    .sp-phone:hover {
        background: #f0fdf4;
    }

.sp-cta {
    background: #00702d;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

    .sp-cta:hover {
        background: #005a24;
    }

.sp-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

    .sp-hamburger span {
        display: block;
        height: 2.5px;
        background: #0f172a;
        border-radius: 9999px;
        transition: all 0.3s;
    }

    .sp-hamburger.open span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .sp-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .sp-hamburger.open span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

.sp-mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 2rem 2rem;
}

    .sp-mobile-menu.open {
        display: flex;
    }

    .sp-mobile-menu a {
        font-size: 1.1rem;
        font-weight: 700;
        color: #0f172a;
        text-decoration: none;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f5f9;
        display: block;
    }

        .sp-mobile-menu a:hover {
            color: #00702d;
        }

.sp-mobile-cta {
    margin-top: 1.25rem;
    background: #00702d !important;
    color: #fff !important;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    text-align: center;
    border: none !important;
}

.sp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 2vw, 2rem);
}

@media (min-width: 1024px) {
    .sp-nav-links {
        display: flex;
    }

    .sp-nav-right {
        display: flex;
    }

    .sp-hamburger {
        display: none;
    }

    .sp-mobile-menu {
        display: none !important;
    }
}

/* ---------- Icon Boxes (square, never stretch) ---------- */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 1rem;
    aspect-ratio: 1 / 1;
}

.icon-box-sm {
    width: 3.5rem;
    height: 3.5rem;
}

.icon-box-md {
    width: 5rem;
    height: 5rem;
}

.icon-box-lg {
    width: 7rem;
    height: 7rem;
}

.icon-box-primary {
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
}

.icon-box-accent {
    background-color: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
}

.icon-box-primary:hover,
.group:hover .icon-box-primary {
    background-color: var(--primary);
    color: #fff;
}

.icon-box-accent:hover,
.group:hover .icon-box-accent {
    background-color: var(--accent);
    color: #fff;
}

/* ---------- Course Cards ---------- */
.course-card {
    position: relative;
    border-radius: 3rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 550px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    transition: box-shadow 0.3s ease;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(24px);
    border: 1px solid #007c20;
}

.course-card-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

    .course-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 1s ease;
    }

.course-card:hover .course-card-image img {
    transform: scale(1.1);
}

.course-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient( to right, #ffffff 0%, rgba(255,255,255,0.95) 20%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0.2) 60%, transparent 80% );
}

.course-card-bar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2.5rem;
    background-color: var(--primary);
    overflow: hidden;
}

    .course-card-bar::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 6rem;
        height: 100%;
        background: rgba(255,255,255,0.05);
        transform: skewX(12deg) translateX(50%);
    }

/* ---------- Service / Training List Rows ---------- */
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

    .service-row:hover {
        box-shadow: 0 20px 40px -8px rgb(0 0 0 / 0.12);
    }

.service-row-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.service-row .icon-box {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
}

@media (min-width: 1024px) {
    .service-row {
        padding: 1.5rem 2rem;
    }

    .service-row-inner {
        gap: 1.5rem;
    }

    .service-row .icon-box {
        width: 7rem;
        height: 7rem;
    }
}

.service-row-chevron {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 1024px) {
    .service-row-chevron {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* ---------- Accreditation Wall Icons ---------- */
.accred-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

    .accred-icon iconify-icon {
        font-size: 6em;
        transition: color 0.3s;
    }

/* ---------- Expertise Cards ---------- */
.expertise-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 3rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

    .expertise-card:hover {
        box-shadow: 0 20px 40px -8px rgb(0 0 0 / 0.15);
        transform: translateY(-0.5rem);
    }

    .expertise-card .icon-wrap {
        width: 7rem;
        height: 7rem;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 2rem;
        flex-shrink: 0;
    }

/* ---------- Hero grid ---------- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
    }
}

/* ---------- Hero heading ---------- */
.hero-heading {
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
    font-family: var(--font-heading);
    color: #0f172a;
}

/* ---------- Utility ---------- */
.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}
