/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

/* --- Variables & Reset --- */
:root {
    --brand-blue: #0a2a43;
    --brand-blue-dark: #081f36;
    --accent-yellow: #ffcc00;
    --bg-light: #f9f9f9;
    --card-bg: #ffffff;
    --muted: #7a8ba6;
    --border-light: rgba(10, 42, 67, 0.08);
    --font: "Cairo", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg-light);
    color: var(--brand-blue);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header, Logo & Back Link --- */
.main-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between; /* This allows the back button to sit on the other side */
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.back-link {
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}
.back-link:hover {
    color: #007bff;
}

/* --- Main Content Layout --- */
.main-content {
    flex: 1;
    padding: 50px 20px;
}
.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Paths Section --- */
.paths-section {
    margin-bottom: 80px; 
}
.paths-section:last-child {
    margin-bottom: 0;
}
.paths-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--brand-blue-dark);
}
.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); 
    gap: 30px;
}

/* --- Path Card Styling --- */
.path-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.path-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}
.path-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--brand-blue-dark);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.path-card p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}
.path-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    background: var(--brand-blue);
    font-weight: 700;
    transition: background-color 0.2s ease;
}
.path-btn:hover {
    background: var(--brand-blue-dark);
}

/* --- Disabled State & Soon Badge --- */
.path-card.path-disabled {
    opacity: 0.6;
    position: relative;
    pointer-events: none;
}
.path-card.path-disabled .path-btn {
    background-color: #6c757d;
    cursor: not-allowed;
}
.badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-yellow);
    color: var(--brand-blue);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
/* --- Container for Badges (NEW) --- */
.badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex; /* <-- هذا السطر يضع العناصر بجانب بعضها */
    gap: 8px;      /* <-- يضيف مسافة بين الشارات */
    z-index: 2;    /* يضمن ظهور الشارات فوق محتوى الكارت */
}

/* --- Badge Style (MODIFIED) --- */
/* تم تغيير الاسم من .soon-badge إلى .badge ليكون عامًا أكثر */
.badge {
    /* تمت إزالة position: absolute من هنا */
    background-color: var(--accent-yellow);
    color: var(--brand-blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* يمكنك إضافة ألوان مختلفة لشارات مختلفة إذا أردت */
.badge.new {
    background-color: #17a2b8; /* Teal color for "New" */
    color: #fff;
}

/* --- Footer --- */
.site-footer {
    background: var(--brand-blue-dark);
    color: #fff;
    padding: 40px 20px 0;
    margin-top: auto;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
}
.footer-col .footer-logo img {
    height: 140px;
    margin-bottom: 15px;
}
.footer-col p {
    font-size: 14px;
    color: #cbd6e6;
    line-height: 1.7;
}
.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #f5f7fb;
    font-weight: 700;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #d6e1f2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}
.footer-col ul li a:hover {
    color: var(--accent-yellow);
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.social-links a:hover {
    background-color: var(--accent-yellow);
    color: var(--brand-blue);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 13px;
    color: #cbd6e6;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-header { padding: 10px 15px; }
    .paths-section h2 { font-size: 26px; }
    .paths-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col .footer-logo img {
        margin-right: auto;
        margin-left: auto;
    }
    .social-links {
        justify-content: center;
    }
}