/* ================================
   Root Variables
=================================== */
:root {
    --primary-color: #4caf50;
    --secondary-color: #2e7d32;
    --accent-color: #8bc34a;
    --light-color: #f1f8e9;
    --dark-color: #1b5e20;
    --text-color: #333;
    --text-light: #777;
}

/* ================================
   Global Styles
=================================== */
body {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}
.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ================================
   Components (Reusable)
=================================== */
/* Cards */
.feature-card,
.subject-card,
.blog-card,
.testimonial-card,
.team-card,
.mission-card,
.category-card,
.material-card,
.course-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}
.feature-card:hover,
.subject-card:hover,
.blog-card:hover,
.team-card:hover,
.category-card:hover,
.material-card:hover,
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 20px;
    font-weight: 500;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 20px;
    font-weight: 500;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 40px;
}
.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.page-link {
    color: var(--primary-color);
    margin: 0 5px;
    border-radius: 5px !important;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--primary-color);
}

/* ================================
   Layout
=================================== */
/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}
.navbar-brand {
    font-weight: 700;
    color: var(--dark-color) !important;
    font-size: 1.8rem;
}
.navbar-brand span {
    color: var(--primary-color);
}
.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 10px;
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}
.nav-link.active:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 0.1) 0%,
        rgba(139, 195, 74, 0.1) 100%
    );
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-section:before {
    content: "";
    position: absolute;
    top: 0;
    right: 5%;
    width: 40%;
    height: 100%;
    background: url("../images/banner.png") no-repeat center center/cover;
    border-radius: 30px 0 0 30px;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Page Header */
.page-header {
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 0.1),
        rgba(139, 195, 74, 0.1)
    );
    padding: 60px 0;
    height: 300px;
}
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}
.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0;
}
.breadcrumb {
    background-color: transparent;
    padding: 0;
}
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}
.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: white;
}
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

/* ================================
   Home Page
=================================== */
/* Features */
.feature-card {
    background-color: white;
    padding: 30px;
}
.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Newsletter */
.newsletter-section {
    background-color: var(--light-color);
    padding: 80px 0;
}
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   About Page
=================================== */
.about-section {
    padding: 80px 0;
}
.about-img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
.mission-card {
    border-top: 4px solid var(--primary-color);
    padding: 30px;
    background-color: white;
    height: 100%;
}
.mission-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Team Section */
.team-section {
    background-color: var(--light-color);
    padding: 80px 0;
}
.team-card {
    padding: 30px;
    background-color: white;
    text-align: center;
}
.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--light-color);
}
.team-name {
    font-weight: 600;
    margin-bottom: 5px;
}
.team-position {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.social-links a {
    color: var(--text-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    transition: all 0.3s ease;
}
.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 0.9) 0%,
        rgba(43, 125, 50, 0.9) 100%
    );
    color: white;
}
.stat-item {
    text-align: center;
    margin-bottom: 30px;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonial-section {
    padding: 80px 0;
}
.testimonial-card {
    padding: 30px;
    background-color: white;
    margin: 15px;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}
.testimonial-text:before {
    content: '"';
    font-size: 4rem;
    color: var(--light-color);
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
    z-index: 0;
}
.testimonial-author {
    display: flex;
    align-items: center;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.author-name {
    font-weight: 600;
    margin-bottom: 0;
}
.author-designation {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ================================
   Blog Pages
=================================== */
/* Blog Cards */
.blog-card {
    background-color: white;
}
.blog-img {
    height: 200px;
    object-fit: cover;
}
.blog-body {
    padding: 20px;
}
.blog-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.blog-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}
.blog-meta span {
    margin-right: 15px;
}
.blog-meta i {
    margin-right: 5px;
}
.blog-excerpt {
    color: var(--text-light);
}
.blog-category {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Blog Detail */
.blog-details-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.blog-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 30px 0 20px;
    color: var(--dark-color);
}
.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 25px 0 15px;
}
.blog-content p {
    margin-bottom: 20px;
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.blog-content ul,
.blog-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.blog-content li {
    margin-bottom: 10px;
}
.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}
.code-block {
    background-color: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
}

/* Author Box */
.author-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.author-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}
.author-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.author-bio {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Comments */
.comments-section {
    margin-top: 50px;
}
.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}
.comments-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}
.comment {
    display: flex;
    margin-bottom: 30px;
}
.comment-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}
.comment-body {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.comment-author {
    font-weight: 600;
    margin-bottom: 5px;
}
.comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.comment-reply {
    margin-top: 15px;
    font-size: 0.9rem;
}
.comment-reply a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}
.reply-form {
    margin-left: 80px;
    margin-top: 20px;
}

/* Comment Form */
.comment-form {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
}
.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.form-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    margin-top: 80px;
}
.related-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}
.related-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}
.related-post {
    margin-bottom: 30px;
}
.related-post-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.related-post-title {
    font-weight: 600;
    margin-bottom: 5px;
}
.related-post-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ================================
   Sidebar Widgets
=================================== */
.sidebar-widget {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
    position: relative;
}
.widget-title:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Search Form */
.search-form {
    position: relative;
}
.search-form .form-control {
    padding-right: 45px;
    border-radius: 30px;
}
.search-form .btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: none;
    border: none;
    color: var(--primary-color);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}
.category-list li {
    margin-bottom: 10px;
}
.category-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}
.category-list a:hover {
    color: var(--primary-color);
}
.category-list .badge {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Popular Posts */
.popular-posts {
    list-style: none;
    padding: 0;
}
.popular-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.popular-post-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}
.popular-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.popular-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ================================
   Contact Page
=================================== */
.contact-section {
    padding: 80px 0;
}
.contact-info {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}
.contact-item {
    display: flex;
    margin-bottom: 25px;
}
.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}
.contact-text h4 {
    font-weight: 600;
    margin-bottom: 5px;
}
.contact-text p {
    margin-bottom: 0;
    color: var(--text-light);
}
.contact-text a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-text a:hover {
    color: var(--primary-color);
}
.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
textarea.form-control {
    min-height: 150px;
}
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* FAQ Section */
.faq-section {
    background-color: var(--light-color);
    padding: 80px 0;
}
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.accordion-button {
    background-color: white;
    font-weight: 500;
    padding: 20px;
}
.accordion-button:not(.collapsed) {
    background-color: white;
    color: var(--primary-color);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.accordion-body {
    padding: 20px;
}

/* ================================
   Courses Page
=================================== */
.courses-section {
    padding: 80px 0;
}
.filter-bar {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.filter-group {
    margin-bottom: 15px;
}
.filter-group-title {
    font-weight: 600;
    margin-bottom: 10px;
}
.form-check-label {
    color: var(--text-light);
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Course Cards */
.course-card {
    background-color: white;
}
.course-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.course-body {
    padding: 20px;
}
.course-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.course-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.course-instructor {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.course-instructor-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}
.course-instructor-name {
    font-size: 0.9rem;
    color: var(--text-light);
}
.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.course-rating {
    color: #ffc107;
    margin-bottom: 15px;
}
.course-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-color);
}
.course-price span {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 5px;
}

/* Course Detail Page */
.course-hero {
    padding: 80px 0;
}
.course-hero-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.course-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}
.course-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.course-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
}
.course-meta-item i {
    margin-right: 8px;
    color: var(--primary-color);
}
.course-instructor {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.course-instructor-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.course-instructor-name {
    font-weight: 600;
}
.course-instructor-title {
    font-size: 0.9rem;
    color: var(--text-light);
}
.course-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}
.course-price span {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}
.course-cta {
    margin-bottom: 30px;
}

/* Course Tabs */
.course-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.course-tabs .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    background: none;
}
.course-tabs .nav-link.active {
    color: var(--primary-color);
    background: none;
    border-bottom: 2px solid var(--primary-color);
}
.course-tabs .nav-link:hover {
    color: var(--primary-color);
}

/* Course Content */
.course-content-list {
    list-style: none;
    padding: 0;
}
.course-content-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.course-content-item:last-child {
    border-bottom: none;
}
.course-content-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.course-content-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}
.course-content-item-duration {
    font-size: 0.9rem;
    color: var(--text-light);
}
.course-content-item-body {
    padding-top: 10px;
    display: none;
}
.course-content-item.active .course-content-item-body {
    display: block;
}
.lecture-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 10px 20px;
}
.lecture-item:hover {
    background-color: rgba(76, 175, 80, 0.05);
}
.lecture-title {
    display: flex;
    align-items: center;
}
.lecture-title i {
    margin-right: 10px;
    color: var(--primary-color);
}
.lecture-duration {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Instructor Card */
.instructor-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.instructor-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}
.instructor-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.instructor-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.instructor-bio {
    margin-bottom: 20px;
}
.instructor-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.instructor-stat {
    text-align: center;
}
.instructor-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.instructor-stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Reviews */
.review-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.review-user {
    display: flex;
    align-items: center;
}
.review-user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.review-user-name {
    font-weight: 600;
    margin-bottom: 5px;
}
.review-date {
    font-size: 0.9rem;
    color: var(--text-light);
}
.review-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

/* Related Courses */
.related-course-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}
.related-course-card:hover {
    transform: translateY(-5px);
}
.related-course-img {
    height: 150px;
    object-fit: cover;
    width: 100%;
}
.related-course-body {
    padding: 15px;
}
.related-course-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}
.related-course-price {
    font-weight: 700;
    color: var(--dark-color);
}

/* ================================
   Study Materials Page
=================================== */

.materials-section {
    padding: 80px 0;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.category-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.material-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.material-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.material-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.material-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.material-list a:hover {
    color: var(--primary-color);
}

.material-list i {
    margin-right: 10px;
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.view-all i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.view-all:hover {
    text-decoration: underline;
}

.view-all:hover i {
    transform: translateX(5px);
}

.popular-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

.material-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.material-card:hover {
    transform: translateY(-10px);
}

.material-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    display: inline-block;
}

.material-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.material-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.material-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

.download-btn {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.download-btn i {
    margin-right: 5px;
}

.download-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ================================
   Shared Auth Styles
=================================== */
.login-container,
.register-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 40px 0;
}

.login-card,
.register-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 40px;
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title,
.register-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.login-subtitle,
.register-subtitle {
    color: var(--text-light);
    margin-bottom: 0;
}

.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-light);
}

.login-footer a,
.register-footer a,
.forgot-password,
.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover,
.register-footer a:hover,
.forgot-password:hover,
.form-check-label a:hover {
    text-decoration: underline;
}

.login-footer,
.register-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
}

.social-login,
.social-register {
    margin-top: 30px;
}

.social-login-title,
.social-register-title {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
}

.social-login-title:before,
.social-login-title:after,
.social-register-title:before,
.social-register-title:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #eee;
}

.social-login-title:before,
.social-register-title:before {
    left: 0;
}

.social-login-title:after,
.social-register-title:after {
    right: 0;
}

.social-login-buttons,
.social-register-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.btn-google {
    background-color: #db4437;
}

.btn-facebook {
    background-color: #4267b2;
}

.btn-twitter {
    background-color: #1da1f2;
}

/* ================================
   Login Page Specific
=================================== */
.login-card {
    max-width: 500px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password {
    font-size: 0.9rem;
}

/* ================================
   Register Page Specific
=================================== */
.register-card {
    max-width: 600px;
}

.password-strength {
    height: 5px;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* ================================
   Responsive Adjustments
=================================== */

@media (max-width: 991.98px) {
    .hero-section:before {
        width: 100%;
        height: 300px;
        top: auto;
        bottom: 0;
        border-radius: 30px 30px 0 0;
        opacity: 0.2;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .page-header {
        height: auto;
        padding: 40px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .page-title {
        font-size: 2rem;
    }
    .team-img {
        width: 120px;
        height: 120px;
    }
}
