/* ==============================================
 * File: instructor-landing.css
 * Description: Specific styles for the instructor landing page,
 * redesigned to match the main landing page.
 * ============================================== */

/* --- General Section Styling (from landing.html) --- */
.landing-section {
    padding-top: 48px;
    padding-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.section-title-landing {
    font-family: 'PinarBold','Vazirmatn', sans-serif;
    font-size: 2rem;
    color: #212529;
    text-align: center;
    margin-bottom: 50px; /* Adjusted margin */
    position: relative;
    padding-bottom: 16px;
}

.section-title-landing::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #1A73E8;
    border-radius: 2px;
}

/* NEW: Subtitle for sections */
.section-subtitle-landing {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-gray-color);
    margin-top: -8px;
    margin-bottom: 32px;
}


/* --- Hero Section (Adapted from landing.html) --- */
.hero-section {
    background: linear-gradient(135deg, #34A853 0%, #1A73E8 100%);
    padding-top: 64px; /* Increased padding */
    padding-bottom: 64px; /* Increased padding */
    text-align: right;
    overflow: hidden;
    color: #ffffff;
    position: relative;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.hero-text-content {
    flex: 1 1 58%;
    padding-left: 32px;
}

.hero-visual-content {
    flex: 1 1 42%;
    position: relative;
    display: flex;
    justify-content: flex-end; /* Aligns image to the left in RTL */
    align-items: center;
}

.hero-headline {
    font-family: 'PinarBold','Vazirmatn', sans-serif;
    font-size: calc(2.5rem * 1.1);
    color: #ffffff;
    margin: 0;
	margin-bottom: 20px;
    line-height: 1.35;
}

.instructor-badge {
    background: linear-gradient(135deg, #FFD700, #F9AB00);
    color: #333;
    padding: 8px 16px;
	margin-right: 10px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 2px solid #fff;
    flex-shrink: 0;
}
.instructor-badge i {
    font-size: 1.2rem;
}


.hero-subheadline {
    font-size: calc(1rem * 1.05);
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 95%;
}

.hero-cta-buttons .btn {
    margin-left: 24px;
    margin-bottom: 16px;
    min-width: 180px;
}

.btn-glassy {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: background 0.3s;
}
.btn-glassy:hover, .btn-glassy:focus {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}
.btn-glassy.primary {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}
.btn-glassy.primary:hover, .btn-glassy.primary:focus {
    background-color: #f0f0f0;
    color: var(--primary-hover-color);
}

.instructor-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
	border: 3px solid white;
}

.play-video-btn {
    position: absolute;
    bottom: 20px;
    left: 10px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.play-video-btn:hover, .play-video-btn:focus {
    background: rgba(255, 255, 255, 0.35);
}
.play-video-btn i {
    font-size: 1.2rem;
}

/* --- Instructor Features Section --- */
.instructor-features-section {
    background-color: #fff;
}
/* MODIFIED: Enforce 3 columns on desktop */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 1px 1px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--medium-gray-color);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.07);
}
.feature-card .icon {
    width: 60px;
    height: 60px;
    font-size: 60px;
    margin-bottom: 24px;
}
.feature-card h4 {
    font-family: 'PinarBold','Vazirmatn', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 16px;
}
.feature-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.7;
}

/* --- Instructor Stats Section --- */
.instructor-stats-section {
    background-color: #f8f9fa;
}
.instructor-numbers-card {
    background-color: var(--component-bg-color);
    border: 1px solid var(--medium-gray-color);
    border-radius: var(--border-radius);
    padding: 40px;
}
.instructor-numbers-card .numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}
.instructor-numbers-card .number-item { 
    text-align: center; 
}
.instructor-numbers-card .number-item .svg-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.instructor-numbers-card .number-item-value {
    font-family: 'PinarBold', sans-serif;
    font-size: 2.8rem;
    color: var(--text-color);
}
.instructor-numbers-card .number-item-label {
    font-size: 1.1rem;
    color: var(--dark-gray-color);
}

/* --- Bio Section --- */
.bio-section {
    background-color: #fff;
}
.bio-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
    text-align: justify;
}

/* --- Testimonials Section --- */
.testimonials-section { 
    background-color: #f8f9fa; 
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.testimonial-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
}
.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    padding-right: 32px;
}
.testimonial-quote::before {
    content: "“";
    font-family: Georgia, serif;
    font-size: 3rem;
    color: #66A3EF;
    position: absolute;
    top: -5px;
    right: -5px;
    opacity: 0.8;
}
.testimonial-author { 
    margin-top: auto; 
    display: flex; 
    align-items: center; 
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 24px;
}
.testimonial-author-info h6 {
    font-family: 'PinarBold', sans-serif;
    font-size: 1rem;
    margin-bottom: 0;
}
.testimonial-author-info span {
    font-size: 0.875rem;
    color: var(--dark-gray-color);
}

/* --- Personal Message Section --- */
.personal-message-section {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(52, 168, 83, 0.05) 100%);
}
.personal-message-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.personal-message-box h3 {
    font-family: 'PinarBold', sans-serif;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}
.personal-message-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}


/* --- Courses Section --- */
.courses-section {
    background-color: #f8f9fa;
}
/* Course Filter Styles */
.course-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.filter-btn {
    background-color: #fff;
    border: 1px solid var(--medium-gray-color);
    color: var(--dark-gray-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.filter-btn:hover, .filter-btn:focus {
    background-color: #e9ecef;
    border-color: #adb5bd;
}
.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
/* Bestseller Badge */
.bestseller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffc107;
    color: #212529;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- Timeline Section --- */
.timeline-section {
    background-color: #fff;
}
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.2;
    top: 0;
    bottom: 0;
    right: 30px; /* Aligned to the right for RTL */
    margin-right: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    padding-right: 80px; /* Space for the icon and line */
}
.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    right: 0;
    background-color: var(--primary-color);
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 4px solid #f8f9fa;
}
.timeline-content {
    padding: 20px 30px;
    background-color: #f8f9fa;
    position: relative;
    border-radius: 8px;
    border-right: 4px solid var(--primary-color);
}
.timeline-content h4 {
    font-family: 'PinarBold', sans-serif;
    margin-top: 0;
    color: var(--primary-color);
}
.timeline-content p {
    margin-bottom: 0;
    color: var(--dark-gray-color);
}


/* --- Activities Section --- */
.activities-section {
    background-color: #f8f9fa;
}
.activities-tabs-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid var(--medium-gray-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.activity-list {
    list-style: none;
}
.activity-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--medium-gray-color);
    color: var(--text-color);
}
.activity-list li:last-child a {
    border-bottom: none;
}
.activity-item a:hover {
    background-color: #f8f9fa;
}
.activity-item .item-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}
.activity-item .item-title {
    flex-grow: 1;
    font-weight: 600;
}
.activity-item .item-meta {
    font-size: 0.9rem;
    color: var(--dark-gray-color);
}

/* --- MODIFIED: Social Links Section --- */
.social-section {
    background-color: #f8f9fa; /* Light background for contrast */
}
.social-links-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.social-link-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--medium-gray-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.social-link-card:hover, .social-link-card:focus {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    color: #fff;
    background-color: #34A853;
}
.social-link-card i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}
.social-link-card span {
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Specific hover colors for social links */
/* Unified hover color */
.social-link-card.linkedin:hover, .social-link-card.linkedin:focus,
.social-link-card.github:hover, .social-link-card.github:focus,
.social-link-card.website:hover, .social-link-card.website:focus,
.social-link-card.email:hover, .social-link-card.email:focus {
    background-color: #34A853;
}


/* --- Final CTA Section --- */
.final-cta-section {
    background: linear-gradient(135deg, #1A73E8 0%, #34A853 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}
.final-cta-section h2 {
    font-family: 'PinarBold','Vazirmatn', sans-serif;
    font-size: 2.5rem;
    color: inherit;
    margin-bottom: 24px;
}
.final-cta-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.final-cta-section .btn-cta-main {
    font-size: 1.25rem;
    padding: 20px 48px;
    height: auto;
    background-color: #F9AB00;
    color: #212529;
    border-color: #F9AB00;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.final-cta-section .btn-cta-main:hover, .final-cta-section .btn-cta-main:focus {
    background-color: #ffc107;
    border-color: #ffc107;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .hero-text-content {
        padding-left: 0;
        order: 2;
        margin-top: 32px;
    }
    .hero-visual-content {
        order: 1;
        max-width: 75%;
        margin: 0 auto;
        justify-content: center;
    }
    .hero-subheadline {
        max-width: 85%;
        margin-right: auto;
        margin-left: auto;
    }
    .hero-headline-wrapper {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: calc(2.5rem * 0.8);
    }
    .hero-subheadline {
        font-size: calc(1rem * 0.9);
    }
    .hero-cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }
    .hero-cta-buttons .btn {
        width: 90%;
        margin-left: 0;
    }
    .instructor-numbers-card .numbers-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .section-title-landing {
        font-size: 1.75rem;
    }
    .timeline-container::after {
        right: 15px;
    }
    .timeline-item {
        padding-right: 50px;
    }
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        right: -5px;
    }
    .timeline-content {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero-visual-content {
        display: none;
    }
    .hero-text-content {
        flex-basis: 100%;
    }
    .instructor-numbers-card .numbers-grid,
    .testimonials-grid,
    .features-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
}
