/**
 * Instructor Profile Page Styles
 */

.mie-instructor-profile {
    width: 100%;
}

/* Hero Section */
.mie-instructor-hero {
		    position: relative;
		    width: 100%;
		    height: 0;
		    padding-bottom: 33.3333%; /* 9:3 aspect ratio (1/3) */
		    max-height: 500px;
		    overflow: hidden;
		    background-size: cover;
		    background-position: center;
		    background-repeat: no-repeat;
		    background-attachment: scroll; /* Ensure no parallax effect */
		}

.mie-instructor-hero-overlay {
	    position: absolute;
	    top: 0;
	    left: 0;
	    right: 0;
	    bottom: 0;
	    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
	    display: flex;
	    align-items: center;
	    justify-content: center; /* Center content horizontally */
	}

.mie-instructor-hero-content {
	    position: relative;
	    z-index: 1;
	    color: #fff;
	    padding: 40px 0;
	    text-align: center; /* Center content text */
	}

.mie-instructor-hero-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.mie-instructor-hero-name {
	font-size: 64px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
    color: #fff;
}

.mie-instructor-hero-title {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 30px;
    opacity: 0.95;
}

.mie-instructor-hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.mie-instructor-stat {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mie-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.mie-stat-value {
    font-size: 16px;
    font-weight: 600;
}

/* Container */
/* .mie-container rule removed as requested by user */

/* Content Section */
.mie-instructor-content {
    padding: 0 4%;
    margin-top: 120px;
}

/* Bio Section */
.mie-instructor-bio-section {
    margin-bottom: 60px;
}

.mie-instructor-bio-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mie-instructor-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid #f0f0f0;
}

.mie-instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mie-instructor-sidebar-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px;
}

.mie-instructor-sidebar-title {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px;
}

.mie-instructor-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.mie-social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.mie-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mie-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mie-social-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.mie-social-twitter:hover {
    background: #000;
    color: #fff;
}

.mie-social-linkedin:hover {
    background: #0a66c2;
    color: #fff;
}

.mie-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.mie-social-youtube:hover {
    background: #ff0000;
    color: #fff;
}

.mie-external-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mie-external-link:hover {
    background: #e0e0e0;
    transform: translateX(4px);
}

.mie-instructor-bio-content {
    flex: 1;
}

.mie-instructor-biography {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.mie-instructor-biography p {
    margin-bottom: 1em;
}

.mie-no-biography {
    color: #999;
    font-style: italic;
}

/* Courses Section */
.mie-instructor-courses-section {
    padding: 60px 0;
}

.mie-instructor-content .masteriyo-course {
    margin: 0px !important;
}

.mie-section-title {
    font-weight: 500 !important;
}}

.mie-section-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px;
}

.mie-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.mie-course-card {
	    background: #fff;
	    border-radius: 8px;
	    overflow: hidden;
	    border: 1px solid #e0e0e0;
	    box-shadow: none;
	    transition: all 0.3s ease;
}

.mie-course-card:hover {
	    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	    transform: translateY(-2px);
}

.mie-course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mie-course-image {
    position: relative;
    width: 100%;
	    padding-bottom: 66.66%; /* 3:2 aspect ratio for poster image */
    overflow: hidden;
    background: #f0f0f0;
}

.mie-course-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mie-course-card:hover .mie-course-image img {
    transform: scale(1.05);
}

.mie-course-content {
	    padding: 15px 20px;
}

.mie-course-title {
	    font-size: 16px;
	    font-weight: 600;
	    margin: 0;
	    line-height: 1.4;
	    color: #333;
}

.mie-course-card:hover .mie-course-title {
	    color: #2563eb;
	}

/* Responsive */
@media (max-width: 768px) {
	    .mie-instructor-hero {
	        padding-bottom: 50%; /* Adjust aspect ratio for smaller screens */
	        max-height: 400px;
	        /* Make hero full width on mobile */
	        width: 100vw;
	        position: relative;
	        left: 50%;
	        right: 50%;
	        margin-left: -50vw;
	        margin-right: -50vw;
	    }
    
    .mie-instructor-hero-name {
	font-size: 48px;
    }
    
    .mie-instructor-hero-title {
        font-size: 20px;
    }
    
    .mie-instructor-avatar {
        width: 150px;
        height: 150px;
    }
    
    .mie-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
	    .mie-instructor-hero {
	        padding-bottom: 66.6666%; /* Adjust aspect ratio for mobile screens (3:2) */
	        max-height: 300px;
	    }
    
    .mie-instructor-hero-name {
	font-size: 36px;
    }
    
    .mie-instructor-hero-title {
        font-size: 18px;
    }
    
    .mie-instructor-hero-stats {
        gap: 15px;
    }
    
    .mie-courses-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Masteriyo Course Card Styling Overrides for Instructor Page --- */

/* Ensure the course card container is correctly styled */
.masteriyo-courses-wrapper.masteriyo-course {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Match the columns-4 class in the template */
    gap: 30px; /* Standard Masteriyo gap */
    margin-bottom: 30px;
}

/* Responsive adjustment for 4 columns */
@media (max-width: 1200px) {
    .masteriyo-courses-wrapper.masteriyo-course {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .masteriyo-courses-wrapper.masteriyo-course {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .masteriyo-courses-wrapper.masteriyo-course {
        grid-template-columns: 1fr;
    }
}

/* Course Card Wrapper */
.masteriyo-course-item--wrapper.masteriyo-course--card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Standard Masteriyo shadow */
    transition: all 0.3s ease;
    height: 100%; /* Ensure all cards in the grid are the same height */
    display: flex;
    flex-direction: column;
}

.masteriyo-course-item--wrapper.masteriyo-course--card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Image Wrapper */
.masteriyo-course--img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.masteriyo-course--img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Area */
.masteriyo-course--content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.masteriyo-course--content__title a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.masteriyo-course--content__title a:hover {
    color: var(--masteriyo-primary-color, #2563eb); /* Use Masteriyo primary color or a fallback */
}

/* Author/Rating Section */
.masteriyo-course-author-rating-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.masteriyo-course-author {
    display: flex;
    align-items: center;
}

.masteriyo-course-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}

.masteriyo-course-author--name {
    font-size: 14px;
    color: #666;
}

/* Aside (Price and Button) */
.masteriyo-course-archive--aside {
    margin-top: auto; /* Push to the bottom */
    padding-top: 15px;
}

.masteriyo-course-pricing--wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.masteriyo-course-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Button Styling */
.masteriyo-enroll-btn {
    background-color: var(--masteriyo-primary-color, #2563eb);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.masteriyo-enroll-btn:hover {
    background-color: var(--masteriyo-primary-dark-color, #1e40af);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .masteriyo-courses-wrapper.masteriyo-course {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .masteriyo-courses-wrapper.masteriyo-course {
        grid-template-columns: 1fr;
    }
}
