/* ── Homepage ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

.home-page {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero */
.home-hero {
    position: relative;
    background: linear-gradient(135deg, #003d10 0%, #006b1a 45%, #0a8c28 100%);
    padding: 60px 20px 80px;
    overflow: hidden;
    text-align: center;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: #f5f3f0;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.home-hero-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    margin-bottom: 24px;
}

.home-hero h1 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.7;
}

/* Portal cards */
.home-portals {
    flex: 1;
    background: #f5f3f0;
    padding: 0 20px 60px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.home-portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 820px;
    margin: 0 auto;
}

.portal-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 61, 16, 0.08);
    border: 1px solid rgba(0, 78, 20, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 78, 20, 0.15);
}

.portal-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.portal-card--student .portal-icon-wrap {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.portal-card--employee .portal-icon-wrap {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.portal-icon-wrap img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.portal-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2e1a;
    margin: 0;
}

.portal-card p {
    font-size: 0.9rem;
    color: #5a6b5a;
    margin: 0;
    line-height: 1.6;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    margin-top: auto;
}

.portal-btn:hover {
    text-decoration: none;
    transform: scale(1.02);
}

.portal-card--student .portal-btn {
    background: linear-gradient(135deg, #006b1a, #0a8c28);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 107, 26, 0.35);
}

.portal-card--student .portal-btn:hover {
    background: linear-gradient(135deg, #005015, #007a20);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 107, 26, 0.45);
}

.portal-card--employee .portal-btn {
    background: linear-gradient(135deg, #004e14, #006b1a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 78, 20, 0.35);
}

.portal-card--employee .portal-btn:hover {
    background: linear-gradient(135deg, #003d10, #005515);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 78, 20, 0.45);
}

/* Features strip */
.home-features {
    background: #fff;
    border-top: 1px solid rgba(0, 78, 20, 0.06);
    padding: 40px 20px;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.home-feature-item {
    padding: 16px;
}

.home-feature-item .feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.home-feature-item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #004e14;
    margin: 0 0 6px;
}

.home-feature-item p {
    font-size: 0.82rem;
    color: #6b7b6b;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .home-hero {
        padding: 40px 16px 70px;
    }

    .home-hero-logo {
        width: 88px;
        height: 88px;
    }

    .portal-card {
        padding: 28px 20px;
    }
}
