﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Droid Arabic Kufi', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
    position: relative;
    overflow-x: hidden;
}

     Background Animation 
    body::before {
        content: '';
        position: fixed;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: backgroundMove 20s linear infinite;
        z-index: 0;
    }

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
        opacity: 0.3;
    }

.university-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.university-logo svg {
    width: 70px;
    height: 70px;
    fill: #667eea;
}

.header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 600;
    position: relative;
}

.content {
    padding: 50px 40px;
}

.intro-text {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-right: 5px solid #667eea;
}

    .intro-text h2 {
        font-size: 24px;
        color: #667eea;
        margin-bottom: 15px;
        font-weight: 800;
    }

    .intro-text p {
        font-size: 16px;
        color: #555;
        line-height: 1.8;
        font-weight: 600;
    }

.rules-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 26px;
    color: #667eea;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    font-weight: 800;
    border-right: 6px solid #764ba2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rule-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 12px;
    border-right: 4px solid #28a745;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInRight 0.5s ease-out;
    animation-fill-mode: both;
}

    .rule-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .rule-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .rule-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .rule-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .rule-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .rule-item:nth-child(6) {
        animation-delay: 0.6s;
    }

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.rule-item.excluded {
    border-right-color: #e74c3c;
}

.rule-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: 700;
    margin-left: 15px;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.rule-item.excluded .rule-number {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.rule-text {
    display: inline;
    font-size: 17px;
    color: #333;
    line-height: 1.8;
    font-weight: 600;
}

.note-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-right: 5px solid #ffc107;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

    .note-section h3 {
        color: #856404;
        font-size: 20px;
        margin-bottom: 12px;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .note-section p {
        color: #856404;
        font-size: 16px;
        line-height: 1.8;
        font-weight: 600;
    }

.agreement-section {
    margin-top: 30px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    text-align: center;
    border: 3px solid #667eea;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    padding: 10px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .checkbox-container:hover {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    }

    .checkbox-container input[type="checkbox"] {
        width: 30px;
        height: 30px;
        cursor: pointer;
        accent-color: #667eea;
    }

    .checkbox-container label {
        font-size: 15px;
        font-weight: 700;
        color: #333;
        cursor: pointer;
        margin: 0;
    }

.radio-section {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.radio-title {
    font-size: 22px;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 700;
}

.radio-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.radio-option {
    position: relative;
}

    .radio-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

    .radio-label svg {
        stroke: #667eea;
        transition: all 0.3s ease;
    }

.radio-option input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
}

    .radio-option input[type="radio"]:checked + .radio-label svg {
        stroke: white;
    }

.radio-label:hover {
    border-color: #667eea;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.btn-start {
    padding: 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

    .btn-start::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .btn-start:hover::before {
        left: 100%;
    }

    .btn-start:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 10px 35px rgba(102, 126, 234, 0.6);
    }

    .btn-start:active:not(:disabled) {
        transform: translateY(-1px);
    }

    .btn-start:disabled {
        background: #ccc;
        cursor: not-allowed;
        box-shadow: none;
    }

@media (max-width: 768px) {
    .content {
        padding: 30px 25px;
    }

    .header {
        padding: 40px 25px;
    }

        .header h1 {
            font-size: 28px;
        }

    .section-title {
        font-size: 22px;
    }

    .rule-text {
        font-size: 15px;
    }

    .btn-start {
        width: 100%;
        padding: 18px 40px;
        font-size: 20px;
    }
    .radio-options {
        grid-template-columns: 1fr;
    }

    .radio-label {
        font-size: 16px;
        padding: 18px 20px;
    }
}

