/* Modern Course Page Styles - Matching IISS Design Exactly */

/* Course Hero Section */
.course-hero {
    background: linear-gradient(135deg, rgba(11, 18, 32, 0.95), rgba(17, 24, 39, 0.95));
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/HeaderNetSchool.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.course-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.course-badge {
    display: inline-block;
    background: linear-gradient(90deg, #2196F3, #1976D2);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.course-title {
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 800;
    margin: 0 0 30px;
    line-height: 1.2;
    color: #fff;
    text-align: center;
}

.course-subtitle {
    font-size: 22px;
    color: #cbd5e1;
    margin: 0 0 60px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item i {
    color: #2196F3;
    font-size: 20px;
}

.course-cta {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(90deg, #2196F3, #1976D2);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.section-title {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 25px;
    line-height: 1.3;
    text-align: center;
}

.section-subtitle {
    font-size: 20px;
    color: #64748b;
    margin: 0 129px;
    line-height: 1.6;
    text-align: center;
}

/* حل لمشكلة العرض على الموبايل */
@media (max-width: 768px) {
    .section-subtitle {
        margin: 0 20px;  
        font-size: 18px; 
        line-height: 1.8;
    }
}

/* Introduction Section */
.intro-section {
    padding: 100px 0;
    background: #fff;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.intro-content h2 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 30px;
    line-height: 1.3;
}

.intro-content p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 30px;
}

.intro-note {
    background: #f8fafc;
    padding: 25px 30px;
    border-radius: 15px;
    border-left: 4px solid #2196F3;
    font-size: 16px;
    color: #1e3a8a;
    font-weight: 500;
    text-align: right;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 36px;
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.3);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 20px;
}

.feature-card p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Course Plan Section */
.course-plan-section {
    padding: 80px 0;
    background: #fff;
}

.semesters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.semester-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.semester-card:hover {
    border-color: #2196F3;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.15);
}

.semester-header {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    text-align: center;
}

.semester-number {
    display: inline-block;
    background: linear-gradient(90deg, #2196F3, #1976D2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.semester-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.semester-description {
    color: #64748b;
    font-size: 16px;
    margin: 0 0 30px;
    line-height: 1.6;
    text-align: center;
}

.semester-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 15px;
}

.semester-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.semester-content li {
    padding: 10px 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    padding-right: 25px;
}

.semester-content li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 10px;
    color: #2196F3;
    font-weight: bold;
    font-size: 16px;
}

.job-roles h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 15px;
}

.roles-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-tag {
    background: #f1f5f9;
    color: #1e3a8a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.plan-note {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.plan-note p {
    color: #64748b;
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

/* Certificates Section */
.certificates-section {
    padding: 80px 0;
    background: #f8fafc;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.certificate-card {
    background: #fff;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.certificate-content {
    margin-bottom: 30px;
}

.certificate-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 15px;
}

.certificate-content p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.certificate-image {
    text-align: center;
}

.certificate-image img {
    max-width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #2196F3;
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.1);
}

.faq-question {
    padding: 30px 35px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.faq-question i {
    color: #2196F3;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 35px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 30px 35px;
    max-height: 200px;
}

.faq-answer p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonials-grid {
    display: flex;
    gap: 30px;
    width: max-content;
}

.testimonial-card-premium {
    background: #fff;
    border-radius: 25px;
    padding: 40px 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 350px;
    flex-shrink: 0;
}

.testimonial-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

.testimonial-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #1e3a8a;
    margin: 0 0 30px;
    font-style: italic;
    text-align: right;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-left: 20px;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.author-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 8px;
}

.author-info p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.testimonial-rating {
    text-align: center;
}

.stars {
    color: #f59e0b;
    font-size: 22px;
    letter-spacing: 3px;
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonials-nav:hover {
    background: #2196F3;
    border-color: #2196F3;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.testimonials-nav.prev {
    left: -25px;
}

.testimonials-nav.next {
    right: -25px;
}

.testimonials-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonials-nav:disabled:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    transform: translateY(-50%) scale(1);
}

/* Final CTA Section */
.final-cta-section {
    background: #fff;
    color: #1e3a8a;
    padding: 80px 0;
    text-align: center;
    position: relative;
    border-top: 3px solid #2196F3;
    border-bottom: 3px solid #2196F3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 50px 40px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 700;
    margin: 0 0 25px;
    color: #1e3a8a;
}

.cta-content p {
    font-size: 20px;
    color: #64748b;
    margin: 0 0 50px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn-luxury {
    padding: 18px 35px;
    border-radius: 50px;
    border: 2px solid transparent;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    font-size: 16px;
}

.btn-luxury:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(90deg, #2196F3, #1976D2);
    color: #fff;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #1976D2, #1565C0);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    border-color: #3b82f6;
    color: #fff;
    background: rgba(59, 130, 246, 0.1);
}

.btn-secondary:hover {
    background: #3b82f6;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.Btn-Top {
    border-color: #3b82f6;
    color: #000;
    background: rgba(59, 130, 246, 0.1);
}

.Btn-Top:hover{
    background: #3b82f6;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); 
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.fab {
    color: white;
    transition: all 0.3s ease;
}

.whatsapp-link:hover .whatsapp-icon {
    transform: rotate(15deg);
}

.tooltip {
    position: absolute;
    right: 70px;
    width: max-content;
    padding: 8px 12px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    direction: rtl;
}

.whatsapp-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-hero {
        padding: 80px 0;
        min-height: 70vh;
    }
    
    .course-meta {
        gap: 20px;
    }
    
    .meta-item {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .course-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-luxury {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .semesters-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonials-nav {
        display: none;
    }
    
    .testimonials-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .testimonial-card-premium {
        min-width: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .course-hero-content,
    .cta-content {
        padding: 0 15px;
    }
    
    .feature-card,
    .certificate-card,
    .testimonial-card-premium {
        padding: 30px 25px;
    }
    
    .faq-question {
        padding: 25px;
    }
    
    .faq-item.active .faq-answer {
        padding: 25px;
    }
    
    .semester-card {
        padding: 30px;
    }
}