/* assets/css/style.css */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #0284c7;
    --accent-color: #10b981;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Style */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.navbar h1 {
    font-size: 1.4rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-inline-start: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(255,255,255,0.15);
    transition: 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    flex: 1;
}

/* Header Text */
.hero-title {
    text-align: center;
    margin-bottom: 30px;
}

.hero-title h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-title p {
    color: var(--text-muted);
}

/* Portal Cards Grid */
.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.portal-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.portal-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: #eff6ff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--secondary-color);
}

.portal-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portal-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 0.9rem;
}

/* 📱 Mobile Specific Style (نمط الموبايل والأجهزة الذكية) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 1rem;
    }
    
    .container {
        width: 95%;
        margin: 20px auto;
    }

    .hero-title h2 {
        font-size: 1.5rem;
    }

    .portals-grid {
        grid-template-columns: 1fr; /* عرض كرت واحد بالسطر للهواتف */
        gap: 18px;
    }

    .portal-card {
        padding: 20px 15px;
    }

    .portal-icon {
        width: 70px;
        height: 70px;
    }

    .portal-icon svg {
        width: 40px;
        height: 40px;
    }
}