:root {
    --primary-color: #1a4480;
    /* Deep Blue */
    --secondary-color: #4facfe;
    /* Lighter Blue */
    --accent-color: #fbbf24;
    /* Golden Yellow */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-cairo: 'Cairo', sans-serif;
}

body {
    font-family: var(--font-cairo);
    margin: 0;
    padding: 0;
    background-color: #fcfcfc;
    color: var(--text-color);
    direction: rtl;
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-yellow {
    background-color: var(--accent-color);
    color: #333;
}

.rounded-btn {
    border-radius: 50px;
}

.section-tag {
    background: #fdf6ec;
    color: #b88230;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}

/* Header */
.landing-header {
    background: transparent;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.landing-header.scrolled {
    background: rgba(255, 255, 255, 0.70);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color);
}

.logo-text {
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.1rem;
}

.logo-text span {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top right, #eef2ff, transparent 40%),
        radial-gradient(circle at bottom left, #fff1f2, transparent 40%);
}

.hero-tag {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
    background: #e0e7ff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Stats Cards */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon-wrapper {
    /* No background for icon wrapper in the new design, or minimal */
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
}

.stat-label {
    color: #777;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Features */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    text-align: right;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.icon-blue {
    background: var(--secondary-color);
}

.icon-yellow {
    background: var(--accent-color);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.feature-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Roles Section */
.roles-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.role-card-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.role-card {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.role-card-header {
    width: 280px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.bg-admin {
    background: #1a4480;
}

.bg-supervisor {
    background: #fbbf24;
    color: #333 !important;
}

.bg-teacher {
    background: #4facfe;
}

.bg-parent {
    background: #10b981;
}

.header-content h3 {
    margin: 15px 0 5px;
    font-size: 1.4rem;
}

.role-features {
    flex: 1;
    padding: 30px 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 20px;
}

.role-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

.role-feature-item i {
    color: var(--secondary-color);
}

/* CTA Footer */
.cta-footer {
    background: #1a4480;
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-heart {
    background: white;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: #e11d48;
    /* Red/Pink for heart */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-text {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.footer-links {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 50px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: right;
    gap: 40px;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: white;
    padding-right: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .role-card {
        flex-direction: column;
    }

    .role-card-header {
        width: 100%;
        padding: 30px;
    }

    .role-features {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        width: 100%;
    }
}