/* Login Page Styles - دورة 303 */
.login-page {
    padding-top: 80px;
    min-height: 100vh;
    background: #000000;
}

/* Course Hero */
.course-hero {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #1a0000 0%, #000000 50%, #1a0000 100%);
    border-bottom: 2px solid rgba(139, 0, 0, 0.3);
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.course-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.course-hero-text {
    flex: 1;
}

.course-hero-text h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.course-hero-text p {
    font-size: 1.3rem;
    color: #b22222;
    margin-bottom: 25px;
}

.course-hero-logo {
    flex-shrink: 0;
}

.course-hero-logo img {
    width: 180px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.3);
    border: 2px solid rgba(139, 0, 0, 0.3);
}

.course-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-red {
    background: rgba(139, 0, 0, 0.2);
    color: #b22222;
    border: 1px solid rgba(139, 0, 0, 0.4);
}

/* Course Info Section */
.course-info {
    padding: 80px 0;
    background: linear-gradient(180deg, #000000 0%, #0a0000 100%);
}

/* Info Cards - Accordion Style */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: rgba(20, 0, 0, 0.8);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(139, 0, 0, 0.6);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.15);
}

.info-card-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    transition: all 0.3s ease;
}

.info-card-btn:hover {
    background: rgba(139, 0, 0, 0.1);
}

.info-card-btn .card-icon {
    font-size: 1.5rem;
    color: #b22222;
    flex-shrink: 0;
}

.info-card-btn .card-title {
    flex: 1;
}

.info-card-btn .card-arrow {
    font-size: 1.5rem;
    color: #b22222;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.info-card.active .card-arrow {
    transform: rotate(180deg);
}

.info-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.info-card.active .info-card-content {
    max-height: 2000px;
}

.card-body {
    padding: 0 25px 25px;
    color: #cccccc;
    line-height: 1.8;
    font-size: 1rem;
}

.card-body p {
    margin-bottom: 12px;
}

.card-body strong {
    color: #b22222;
}

.topics-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.topics-list li {
    padding: 8px 0;
    padding-right: 20px;
    position: relative;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

.topics-list li:last-child {
    border-bottom: none;
}

.topics-list li::before {
    content: '›';
    position: absolute;
    right: 0;
    color: #b22222;
    font-weight: bold;
    font-size: 1.2rem;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.price-list li {
    padding: 10px 15px;
    background: rgba(139, 0, 0, 0.1);
    margin-bottom: 8px;
    border-radius: 8px;
    border-right: 3px solid #b22222;
    color: #ffffff;
    font-weight: 600;
}

.warning-text {
    color: #b22222 !important;
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
    margin: 15px 0;
}

/* Register Section */
.register-section {
    padding: 60px 0 100px;
    text-align: center;
    background: #000000;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 50px;
    background: linear-gradient(135deg, #00cc44 0%, #009933 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 200, 50, 0.3);
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 200, 50, 0.5);
}

.btn-register:active {
    transform: translateY(0);
}

/* Register Popup */
.register-popup {
    display: none;
    max-width: 500px;
    margin: 30px auto 0;
    background: rgba(15, 0, 0, 0.95);
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.2);
    animation: fadeInUp 0.4s ease;
}

.register-popup.show {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-popup h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.register-popup .form-group {
    margin-bottom: 25px;
    text-align: right;
}

.register-popup .form-group label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.register-popup input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(139, 0, 0, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.register-popup input[type="text"]:focus {
    outline: none;
    border-color: #b22222;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.2);
}

.option-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.opt-btn {
    padding: 12px 25px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 8px;
    color: #cccccc;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opt-btn:hover {
    border-color: #b22222;
    color: #ffffff;
}

.opt-btn.selected {
    background: rgba(139, 0, 0, 0.3);
    border-color: #b22222;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00cc44 0%, #009933 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 200, 50, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 200, 50, 0.5);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .course-hero-text h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .course-hero {
        padding: 40px 0;
    }

    .course-hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .course-hero-text h1 {
        font-size: 1.8rem;
    }

    .course-hero-text p {
        font-size: 1.1rem;
    }

    .course-hero-logo img {
        width: 130px;
    }

    .course-badges {
        justify-content: center;
    }

    .course-info {
        padding: 50px 0;
    }

    .info-card-btn {
        padding: 15px 18px;
        font-size: 1rem;
    }

    .card-body {
        padding: 0 18px 18px;
        font-size: 0.95rem;
    }

    .btn-register {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .register-popup {
        padding: 25px;
        margin: 20px 15px 0;
    }

    .register-popup h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .course-hero-text h1 {
        font-size: 1.5rem;
    }

    .course-hero-text p {
        font-size: 0.95rem;
    }

    .course-hero-logo img {
        width: 100px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .info-card-btn {
        font-size: 0.9rem;
        gap: 10px;
    }

    .opt-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .btn-register {
        padding: 14px 28px;
        font-size: 1rem;
    }
}