/* --------------------------------------------------------------------------
   1. NAVBAR & HERO SECTION
   -------------------------------------------------------------------------- */
.navbar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--brand-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 900;
    color: var(--brand-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    filter: drop-shadow(0 0 8px var(--brand-cyan));
}

/* --------------------------------------------------------------------------
   HERO SECTION TYPOGRAPHY (Responsive Fix)
   -------------------------------------------------------------------------- */
.hero-title {
    font-size: clamp(1.5rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    word-break: keep-all; /* يمنع انكسار الكلمات المفردة */
}

/* الجزء الملون الداخلي SIMULATED INTERNSHIP */
.hero-title span {
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* تغيير Inline-Block لـ Inline لتجنب إجبار كل كلمة على سطر منفصل */
    display: inline; 
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.3));
    white-space: normal; /* يسمح بالتفاف الجملة الطبيعي */
}

/* الشاشات الصغيرة جداً (الموبايل) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem; /* حجم مناسب جداً لعرض الموبايل بدون تكسير غريب */
        line-height: 1.4;
    }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
}
/* --------------------------------------------------------------------------
   2. BUTTONS & ACTIONS
   -------------------------------------------------------------------------- */
.nav-btn,
.hero-cta-btn,
.submit-btn {
    background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
    color: #050b14;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--brand-accent-glow);
    cursor: pointer;
}

.nav-btn {
    padding: 8px 18px;
    white-space: nowrap;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    border-radius: 30px;
}

.nav-btn:hover,
.hero-cta-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

.hero-cta-btn {
    display: inline-block;
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    padding: 12px 28px;
    border-radius: 12px;
}

/* زرار الفورم: مفرود بعرض الكارد بالكامل + يتصاوب في الموبايل من غير ما يلمس الحواف */
.submit-btn {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: clamp(0.85rem, 2.5vw, 1.15rem);
    padding: clamp(10px, 2.5vw, 14px);
    font-weight: 800;
    margin-top: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.badge-tag {
    background: rgba(0, 242, 254, 0.15);
    color: var(--brand-cyan);
    font-size: clamp(0.72rem, 2vw, 0.85rem);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 800;
    border: 1px solid rgba(0, 242, 254, 0.4);
    white-space: nowrap;
}

.skill-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--brand-border);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. VIDEO BOX & STATS
   -------------------------------------------------------------------------- */
.video-box {
    flex: 1;
    width: 100%;
    max-width: 500px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--brand-cyan);
    box-shadow: 0 0 30px var(--brand-accent-glow);
}

.video-thumbnail {
    width: 100%;
    height: clamp(220px, 35vw, 300px);
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    background: var(--brand-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px var(--brand-cyan);
    transition: all 0.3s ease;
}

.play-button i {
    color: #000;
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-left: -3px;
}

.overview-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px;
}

.overview-bar::-webkit-scrollbar {
    display: none;
}

.stat-item {
    flex: 0 0 calc(25% - 9px);
    scroll-snap-align: start;
    background: var(--stat-card-bg);
    border: 2px solid rgba(0, 242, 254, 0.4);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item:hover {
    border-color: #ffd700;
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-number {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 900;
    color: #ffd700;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-icon,
.stat-number i {
    font-size: clamp(1.1rem, 2.3vw, 1.3rem);
    color: #ffd700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
    transition: transform 0.1s ease;
}

.stat-item:hover .stat-icon,
.stat-item:hover .stat-number i {
    transform: scale(1.15);
}

.stat-label {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    color: #ffffff;
    font-weight: 800;
    margin-top: 6px;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. CURRICULUM CARDS & ACCORDION
   -------------------------------------------------------------------------- */
.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.curriculum-card {
    background: var(--brand-card-bg);
    border-radius: 16px;
    border: 1px solid var(--brand-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.curriculum-card:hover {
    border-color: var(--brand-cyan);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: clamp(16px, 3.5vw, 22px);
    cursor: pointer;
    user-select: none;
    background: rgba(17, 24, 39, 0.8);
    transition: background 0.3s ease;
}

.card-header:hover {
    background: rgba(0, 242, 254, 0.08);
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.card-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(0, 242, 254, 0.15);
    color: var(--brand-cyan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 242, 254, 0.3);
    flex-shrink: 0;
}

.card-header h3 {
    font-size: clamp(0.95rem, 2.8vw, 1.25rem);
    font-weight: 800;
    color: #ffffff;
}

.toggle-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.1);
    padding: 6px 14px;
    border-radius: 25px;
    border: 1px solid var(--brand-cyan);
    color: var(--brand-cyan);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.dropdown-arrow {
    font-size: 0.85rem;
    transition: transform 0.4s ease;
}

.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 clamp(18px, 4vw, 25px);
    background: rgba(10, 15, 29, 0.6);
}

.curriculum-card.active .card-body {
    max-height: 2000px;
    padding: 20px clamp(18px, 4vw, 25px) 25px;
    border-top: 1px solid var(--brand-border);
}

.curriculum-card.active .dropdown-arrow {
    transform: rotate(180deg);
}

.curriculum-card.active .toggle-action-btn {
    background: var(--brand-cyan);
    color: #000;
}

.topic-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
}

.topic-list li {
    position: relative;
    padding-right: 22px;
    color: var(--text-muted);
    font-size: clamp(0.88rem, 2.5vw, 0.98rem);
    line-height: 1.6;
    word-break: break-word;
}

.topic-list li::before {
    content: "✓";
    color: var(--brand-cyan);
    font-weight: 900;
    font-size: 1rem;
    position: absolute;
    right: 0;
    top: 0;
}

/* --------------------------------------------------------------------------
   5. SKILLS & INSTRUCTORS & FEEDBACK
   -------------------------------------------------------------------------- */
.skills-card {
    background: var(--brand-card-bg);
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 25px;
}

.skills-card h3 {
    font-size: 1.2rem;
    color: var(--brand-cyan);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.student-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 15px;
    background: rgba(0, 242, 254, 0.1);
    border: 2px solid #00f2fe;
    color: #00f2fe;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.feedback-card:hover .student-avatar {
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.feedback-slider-container {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}

.feedback-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 20px;
    border-radius: 20px;
}

.feedback-wrapper::-webkit-scrollbar {
    display: none;
}

.feedback-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: var(--brand-card-bg);
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    padding: clamp(20px, 5vw, 35px);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.feedback-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--brand-cyan);
    margin: 0 auto 12px auto;
    object-fit: cover;
}

.feedback-stars {
    color: #ffc107;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.feedback-text {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 15px;
}

.student-name {
    font-weight: 800;
    color: #fff;
    font-size: 1.05rem;
}

.student-role {
    font-size: 0.8rem;
    color: var(--brand-cyan);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--brand-border);
    color: var(--brand-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    border-color: var(--brand-cyan);
    background: var(--brand-cyan);
    color: #000;
}

.arrow-left { left: -15px; }
.arrow-right { right: -15px; }

.instructor-card {
    background: var(--brand-card-bg);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--brand-border);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.instructor-card:hover {
    border-color: var(--brand-cyan);
    transform: translateY(-3px);
}

.instructor-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid var(--brand-cyan);
    box-shadow: 0 0 15px var(--brand-accent-glow);
}

.instructor-name {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 800;
    color: #ffffff;
}

.instructor-title {
    color: var(--brand-cyan);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.instructor-bio {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 2.2vw, 0.92rem);
    line-height: 1.6;
    text-align: right;
}

/* --------------------------------------------------------------------------
   6. REGISTRATION FORM & FOOTER
   -------------------------------------------------------------------------- */
.registration-section {
    background: var(--brand-card-bg);
    border: 1px solid var(--brand-border);
    padding: clamp(30px, 6vw, 50px) clamp(15px, 4vw, 30px);
    border-radius: 24px;
    margin: clamp(40px, 8vw, 70px) auto;
    max-width: 1100px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.form-group label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--brand-border);
    background-color: var(--brand-dark-bg);
    color: white;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 10px var(--brand-accent-glow);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 45px);
}

.section-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 900;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--brand-cyan);
}

.footer {
    background: rgba(17, 24, 39, 0.98);
    border-top: 1px solid var(--brand-border);
    padding: 30px 5%;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 18px 0;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--brand-dark-bg);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--brand-cyan);
    background: var(--brand-cyan);
    color: #050b14;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--brand-accent-glow);
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}
