/* ===================================
   HOMEPAGE REDESIGN STYLES
   Modern Bangladeshi Course Platform
   Brand Color: #9144ff
   Boxed Layout Design
   =================================== */

/* Hero Section - REMOVED */
/* The hero section has been completely removed from the homepage */

/* Course Categories Section - REMOVED */
/* The course categories section has been completely removed from the homepage */

/* Update existing section-title to match our design */
.section-title h2 span {
    color: #9144ff !important;
}

/* Additional section title styling for consistency */
.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    color: #0B0019;
    font-size: 40px;
    font-weight: 700;
    line-height: 124%;
    text-transform: capitalize;
}

.section-title p {
    color: #081739;
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
}

/* CRITICAL FIX: Override Bootstrap padding for proper internal spacing in all sections */
.featured-instructors .row.px-xxl-0,
.statistics-section .row.px-xxl-0,
.success-stories .row.px-xxl-0,
.why-choose-us .row.px-xxl-0,
.cta-section .row.px-xxl-0,
.newsletter-section .row.px-xxl-0,
.top-courses .row.px-xxl-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure content has proper spacing from container edges */
.featured-instructors .container-fluid.custom-container > .row,
.statistics-section .container-fluid.custom-container > .row,
.success-stories .container-fluid.custom-container > .row,
.why-choose-us .container-fluid.custom-container > .row,
.cta-section .container-fluid.custom-container > .row,
.newsletter-section .container-fluid.custom-container > .row {
    margin-left: 0;
    margin-right: 0;
}

/* Add internal padding to content rows to prevent edge touching */
.featured-instructors .row.px-xxl-0.mb-5,
.statistics-section .stats-container .row.px-xxl-0.mb-5,
.success-stories .row.px-xxl-0.mb-5,
.why-choose-us .row.px-xxl-0.mb-5,
.newsletter-section .row.px-xxl-0.mb-5 {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Special handling for CTA section content */
.cta-section .row.g-xxl-0 {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Special handling for statistics section */
.statistics-section .stats-container {
    padding-left: 20px;
    padding-right: 20px;
}



/* Featured Instructors Section - No Box Background */
.featured-instructors {
    padding: 50px 0;
    background: #fff; /* Clean white background for section */
}

.featured-instructors .container-fluid.custom-container {
    /* Remove all background styling but keep layout structure */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 60px 50px;
    position: relative;
    overflow: visible;
}

/* Remove the top border gradient */
.featured-instructors .container-fluid.custom-container::before {
    display: none;
}



.instructor-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(145, 68, 255, 0.08);
    backdrop-filter: blur(10px);
    height: 100%;
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(145, 68, 255, 0.15);
}

.instructor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(145, 68, 255, 0.1);
}

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

.instructor-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(145, 68, 255, 0.1), transparent);
}

.instructor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.instructor-title {
    color: #9144ff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructor-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.instructor-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.instructor-stats .stat {
    text-align: center;
}

.instructor-stats .stat .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9144ff;
    display: block;
}

.instructor-stats .stat .label {
    font-size: 0.8rem;
    color: #666;
}

.instructor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.specialty-tag {
    background: rgba(145, 68, 255, 0.1);
    color: #9144ff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Statistics Section - Boxed Layout */
.statistics-section {
    padding: 50px 0;
    background: #f8f9fa; /* Light neutral background for section */
}

.statistics-section .container-fluid.custom-container {
    background: linear-gradient(135deg, #9144ff 0%, #7c3aed 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(145, 68, 255, 0.3);
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    color: white;
}

.statistics-section .container-fluid.custom-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}



.stats-container {
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card .stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-card .stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.stat-card .stat-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* Professional Success Stories Section - Clean Design */
.success-stories-section {
    padding: 50px 0;
    background: #ffffff;
    position: relative;
}

/* Success Statistics Cards */
.success-stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(145, 68, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}

.success-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(145, 68, 255, 0.15);
    border-color: rgba(145, 68, 255, 0.2);
}

.success-stat-card .stat-icon {
    font-size: 3rem;
    color: #9144ff;
    margin-bottom: 1.5rem;
}

.success-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.success-stat-card .stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Testimonial Cards */
.testimonial-card-modern {
    background: #ffffff;
    border: 1px solid rgba(145, 68, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9144ff, #7c3aed);
    border-radius: 24px 24px 0 0;
}

.testimonial-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(145, 68, 255, 0.15);
    border-color: rgba(145, 68, 255, 0.2);
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-rating .fas.fa-star {
    color: #e5e7eb;
    font-size: 1.1rem;
}

.testimonial-rating .fas.fa-star.active {
    color: #fbbf24;
}

.testimonial-rating .rating-value {
    font-weight: 600;
    color: #374151;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Verified Badge */
.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
}

.verified-badge i {
    font-size: 1rem;
}

/* Testimonial Content */
.testimonial-content {
    flex: 1;
    margin-bottom: 2rem;
}

.quote-mark {
    color: rgba(145, 68, 255, 0.3);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
    margin: 0;
}

/* Testimonial Author */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(145, 68, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(145, 68, 255, 0.1);
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(145, 68, 255, 0.2);
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.author-position {
    font-size: 0.95rem;
    color: #9144ff;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.author-company {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.author-company i {
    font-size: 0.8rem;
}

/* Success Indicator */
.success-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #9144ff, #7c3aed);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.success-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.success-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.success-percentage {
    font-size: 1rem;
    font-weight: 700;
}

.success-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Testimonial Footer */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(145, 68, 255, 0.1);
    margin-top: auto;
}

.course-info,
.completion-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.course-info i,
.completion-date i {
    color: #9144ff;
    font-size: 0.9rem;
}

/* Success CTA Section */
.success-cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(145, 68, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 24px;
    border: 1px solid rgba(145, 68, 255, 0.1);
    margin-top: 2rem;
}

.success-cta-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.success-cta-section p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-success-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #9144ff 0%, #7c3aed 100%);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(145, 68, 255, 0.3);
}

.btn-success-cta:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(145, 68, 255, 0.4);
    color: white;
    text-decoration: none;
}

.btn-success-cta i {
    font-size: 1.2rem;
}

/* Responsive Design for Success Stories */
@media (max-width: 1199.98px) {
    .success-stories-section {
        padding: 60px 0;
    }

    .success-stat-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-card-modern {
        padding: 2rem;
    }
}

@media (max-width: 991.98px) {
    .success-stories-section {
        padding: 50px 0;
    }

    .success-stat-card .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .success-stat-card .stat-number {
        font-size: 2rem;
    }

    .testimonial-author {
        gap: 1rem;
        padding: 1.25rem;
    }

    .author-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 767.98px) {
    .success-stories-section {
        padding: 40px 0;
    }

    .success-stat-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .success-stat-card .stat-icon {
        font-size: 2rem;
    }

    .success-stat-card .stat-number {
        font-size: 1.8rem;
    }

    .testimonial-card-modern {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .success-indicator {
        align-self: center;
    }

    .testimonial-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .success-cta-section {
        padding: 2rem 1.5rem;
    }

    .success-cta-section h3 {
        font-size: 2rem;
    }

    .success-cta-section p {
        font-size: 1.1rem;
    }

    .btn-success-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Old animation styles removed - using clean static design */

/* Old testimonial card styles removed - using new testimonial-card-modern design */

/* Old testimonial styles completely removed - using new clean design */

.success-stories-cta {
    text-align: center;
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(145, 68, 255, 0.1);
}

.avatar-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, #9144ff, #7c3aed) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.author-avatar:hover .avatar-ring {
    opacity: 1;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.author-designation {
    font-size: 0.95rem;
    color: #9144ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-company {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

@media (max-width: 568px) {
    .author-company {
        justify-content: center;
    }
}

.author-company i {
    color: #9ca3af;
}

.transformation-badge {
    background: linear-gradient(135deg, #9144ff 0%, #7c3aed 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    min-width: 100px;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(145, 68, 255, 0.3);
}

.badge-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.badge-title {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
}

.course-info {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(241, 245, 249, 0.8);
}

@media (max-width: 568px) {
    .course-info {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.course-completed,
.completion-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.course-completed i,
.completion-time i {
    color: #9144ff;
}

.card-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 24px;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(145, 68, 255, 0.1), rgba(124, 58, 237, 0.05));
    animation: float 6s ease-in-out infinite;
}

.decoration.decoration-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    right: -30px;
    animation-delay: 0s;
}

.decoration.decoration-2 {
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: -20px;
    animation-delay: 2s;
}

.decoration.decoration-3 {
    width: 20px;
    height: 20px;
    top: 50%;
    right: -10px;
    animation-delay: 4s;
}

.success-stories-cta {
    text-align: center;
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}

/* Success CTA Styling */
.success-cta {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.success-cta h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.success-cta p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.success-cta .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.success-cta .btn-cta-primary {
    background: linear-gradient(135deg, #9144ff 0%, #7c3aed 100%);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(145, 68, 255, 0.3);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.success-cta .btn-cta-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(145, 68, 255, 0.4);
    color: white;
    text-decoration: none;
}

.success-cta .btn-cta-primary i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .success-cta h3 {
        font-size: 2rem;
    }

    .success-cta p {
        font-size: 1.1rem;
    }

    .success-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .success-cta .btn-cta-primary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #9144ff 0%, #7c3aed 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(145, 68, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(145, 68, 255, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover i {
    transform: translateX(5px);
}

.cta-button i {
    transition: transform 0.3s ease;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Legacy Success Stories Section - keeping for compatibility */
.success-stories {
    padding: 0; /* Remove padding for pinned animation */
    background: #fff; /* Clean white background for section */
    min-height: 100vh; /* Ensure enough height for pinning */
}

.success-stories .container-fluid.custom-container {
    /* Remove all background styling but keep layout structure */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 50px 50px;
    position: relative;
    overflow: visible;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Remove the top border gradient */
.success-stories .container-fluid.custom-container::before {
    display: none;
}

/* GSAP Pinned Card Stacking Layout - Professional Implementation */
.cards-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    height: 550px;
    overflow: visible;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    visibility: visible;
    z-index: 1;
    /* Performance optimizations */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.card-inner {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 10px 40px rgba(145, 68, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(145, 68, 255, 0.08);
    position: relative;
    overflow: hidden;
    /* Ensure consistent border radius and smooth edges */
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    /* Smooth rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Hardware acceleration for smooth animations */
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: all 0.3s ease;
}

.card-inner:hover {
    box-shadow: 0 15px 50px rgba(145, 68, 255, 0.15), 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(145, 68, 255, 0.2);
    transform: translateY(-2px);
}

/* Professional background pattern and accent */
.card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Top accent line */
        linear-gradient(90deg, #9144ff, #7c3aed) 0 0 / 100% 4px no-repeat,
        /* Subtle dot pattern */
        radial-gradient(circle at 25% 75%, rgba(145, 68, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 75% 25%, rgba(145, 68, 255, 0.03) 1px, transparent 1px);
    background-size:
        100% 4px,
        30px 30px,
        40px 40px;
    border-radius: 20px;
    z-index: 1;
}

/* Elegant corner accent */
.card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background:
        radial-gradient(circle at 100% 0%, rgba(145, 68, 255, 0.06) 0%, transparent 70%);
    border-radius: 0 20px 0 0;
    z-index: 1;
}

/* Additional styles for pinned animation */
.card-inner {
    transition: box-shadow 0.3s ease;
}

.card:hover .card-inner {
    box-shadow: 0 25px 70px rgba(145, 68, 255, 0.2);
}

/* Ensure smooth pinning */
.success-stories {
    will-change: transform;
}

/* Add subtle background pattern during pinned state */
.success-stories::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(145, 68, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(145, 68, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.cards-container {
    position: relative;
    z-index: 1;
}

/* Card Content Styles */
.card-inner > * {
    position: relative;
    z-index: 2;
}

.card-inner .quote-icon {
    font-size: 1.8rem;
    color: #9144ff;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    align-self: flex-start;
}

.card-inner .testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(145, 68, 255, 0.03), rgba(145, 68, 255, 0.01));
    border-radius: 16px;
    border: 1px solid rgba(145, 68, 255, 0.1);
    backdrop-filter: blur(10px);
}

.testimonial-author .author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 20px rgba(145, 68, 255, 0.2);
    flex-shrink: 0;
    position: relative;
}

.testimonial-author .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author .author-info .author-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.2;
}

.testimonial-author .author-info .author-title {
    color: #9144ff;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.testimonial-author .author-info .author-company {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.2;
}

/* Professional footer section */
.testimonial-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-footer .course-badge {
    background: linear-gradient(135deg, #9144ff, #7c3aed);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(145, 68, 255, 0.3);
}

.testimonial-footer .verified-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
}

.testimonial-footer .verified-badge::before {
    content: '✓';
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.card-inner .rating {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.2rem;
    z-index: 3;
}

.card-inner .rating .star {
    color: #fbbf24;
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Testimonial Indicators - REMOVED */
/* Indicator dots have been removed as requested */

/* Responsive styles for pinned card stacking */
@media (max-width: 1200px) {
    .cards-container {
        max-width: 750px;
        height: 520px;
    }
}

@media (max-width: 768px) {
    .success-stories .container-fluid.custom-container {
        padding: 60px 30px;
    }

    .cards-container {
        max-width: 95%;
        height: 480px;
    }

    .card-inner {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

    .card-inner::before {
        border-radius: 18px;
    }

    .card-inner::after {
        border-radius: 0 18px 0 0;
    }

    .card-inner .quote-icon {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .card-inner .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .testimonial-author {
        gap: 1rem;
        padding: 1.2rem;
        margin: 1.5rem 0 1.2rem 0;
        border-radius: 14px;
    }

    .testimonial-author .author-avatar {
        width: 56px;
        height: 56px;
        border-width: 2px;
    }

    .testimonial-footer .course-badge {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    .testimonial-footer .verified-badge {
        font-size: 0.75rem;
    }

    .testimonial-author .author-info .author-name {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .testimonial-author .author-info .author-title {
        font-size: 0.85rem;
    }

    .testimonial-author .author-info .author-company {
        font-size: 0.8rem;
    }

    .card-inner .rating {
        top: 1.2rem;
        right: 1.2rem;
        gap: 0.15rem;
    }

    .card-inner .rating .star {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .success-stories .container-fluid.custom-container {
        padding: 40px 20px;
    }

    .cards-container {
        height: 420px;
    }

    .card-inner {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        -webkit-border-radius: 16px;
        -moz-border-radius: 16px;
    }

    .card-inner::before {
        border-radius: 16px;
    }

    .card-inner::after {
        border-radius: 0 16px 0 0;
    }

    .card-inner .quote-icon {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .card-inner .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .testimonial-author {
        gap: 0.8rem;
        padding: 1rem;
        margin: 1.2rem 0;
        border-radius: 12px;
    }

    .testimonial-author .author-avatar {
        width: 48px;
        height: 48px;
    }

    .testimonial-author .author-info .author-name {
        font-size: 0.9rem;
    }

    .testimonial-author .author-info .author-title {
        font-size: 0.8rem;
    }

    .testimonial-author .author-info .author-company {
        font-size: 0.75rem;
    }

    .testimonial-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        padding-top: 1rem;
    }

    .testimonial-footer .course-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .testimonial-footer .verified-badge {
        font-size: 0.7rem;
    }
}

/* Why Choose Us Section - No Box Background */
.why-choose-us {
    padding: 50px 0;
    background: #f8f9fa; /* Light neutral background for section */
}

.why-choose-us .container-fluid.custom-container {
    /* Remove all background styling but keep layout structure */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 60px 50px;
    position: relative;
    overflow: visible;
}

/* Remove the top border gradient */
.why-choose-us .container-fluid.custom-container::before {
    display: none;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(145, 68, 255, 0.08);
    backdrop-filter: blur(10px);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(145, 68, 255, 0.15);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9144ff 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section - Boxed Layout */
.cta-section {
    padding: 50px 0;
    background: #fff; /* Clean white background for section */
}

.cta-section .container-fluid.custom-container {
    background: linear-gradient(135deg, #9144ff 0%, #7c3aed 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(145, 68, 255, 0.3);
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-section .container-fluid.custom-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,90 10,90" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #9144ff;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    backdrop-filter: blur(10px);
}

.btn-cta-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #9144ff;
    text-decoration: none;
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

/* Newsletter Section - Boxed Layout */
.newsletter-section {
    padding: 50px 0;
    background: #f8f9fa; /* Light neutral background for section */
}

.newsletter-section .container-fluid.custom-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(145, 68, 255, 0.08);
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.newsletter-section .container-fluid.custom-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9144ff, #7c3aed);
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(145, 68, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(145, 68, 255, 0.1);
    position: relative;
    z-index: 2;
}

.newsletter-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.newsletter-container h2 .highlight {
    color: #9144ff;
}

.newsletter-container p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(145, 68, 255, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-form .form-input:focus {
    border-color: #9144ff;
    box-shadow: 0 0 0 3px rgba(145, 68, 255, 0.1);
}

.newsletter-form .form-input::placeholder {
    color: #999;
}

.newsletter-form .btn-newsletter {
    background: linear-gradient(135deg, #9144ff 0%, #7c3aed 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form .btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(145, 68, 255, 0.4);
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.newsletter-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.newsletter-benefits .benefit i {
    color: #9144ff;
}

/* Responsive Design for Boxed Layout */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem !important;
    }

    .cta-section .container-fluid.custom-container h2 {
        font-size: 2.2rem;
    }

    .newsletter-form {
        flex-direction: column !important;
    }

    .newsletter-benefits {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Reduce container padding on mobile */
    .statistics-section .container-fluid.custom-container,
    .cta-section .container-fluid.custom-container,
    .newsletter-section .container-fluid.custom-container {
        padding: 40px 30px;
        margin: 0 15px;
        border-radius: 15px;
    }

    /* Featured instructors - no background styling on mobile */
    .featured-instructors .container-fluid.custom-container {
        padding: 40px 30px;
        margin: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    /* Why Choose Us - no background styling on mobile */
    .why-choose-us .container-fluid.custom-container {
        padding: 40px 30px;
        margin: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    /* Success Stories - no background styling on mobile */
    .success-stories .container-fluid.custom-container {
        padding: 40px 30px;
        margin: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    /* Reduce internal content padding on mobile */
    .featured-instructors .row.px-xxl-0.mb-5,
    .statistics-section .stats-container .row.px-xxl-0.mb-5,
    .success-stories .row.px-xxl-0.mb-5,
    .why-choose-us .row.px-xxl-0.mb-5,
    .newsletter-section .row.px-xxl-0.mb-5,
    .cta-section .row.g-xxl-0 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .statistics-section .stats-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem !important;
    }

    .instructor-card,
    .category-card,
    .feature-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }

    .newsletter-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .newsletter-container h2 {
        font-size: 2rem;
    }

    .stat-card .stat-number {
        font-size: 2.5rem;
    }

    /* Further reduce container padding on small mobile */
    .statistics-section .container-fluid.custom-container,
    .success-stories .container-fluid.custom-container,
    .cta-section .container-fluid.custom-container,
    .newsletter-section .container-fluid.custom-container {
        padding: 30px 20px;
        margin: 0 10px;
        border-radius: 12px;
    }

    /* Featured instructors - no background styling on small mobile */
    .featured-instructors .container-fluid.custom-container {
        padding: 30px 20px;
        margin: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    /* Why Choose Us - no background styling on small mobile */
    .why-choose-us .container-fluid.custom-container {
        padding: 30px 20px;
        margin: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    /* Success Stories - no background styling on small mobile */
    .success-stories .container-fluid.custom-container {
        padding: 30px 20px;
        margin: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    /* Further reduce internal content padding on small mobile */
    .featured-instructors .row.px-xxl-0.mb-5,
    .statistics-section .stats-container .row.px-xxl-0.mb-5,
    .success-stories .row.px-xxl-0.mb-5,
    .why-choose-us .row.px-xxl-0.mb-5,
    .newsletter-section .row.px-xxl-0.mb-5,
    .cta-section .row.g-xxl-0 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .statistics-section .stats-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.w-100 {
    width: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Boxed Layout Integration */
.featured-instructors,
.statistics-section,
.success-stories,
.why-choose-us,
.cta-section,
.newsletter-section {
    /* Sections now use .container-fluid.custom-container.px-xxl-0 structure */
    /* Each section has its own contained background within the boxed layout */
    position: relative;
}

/* Integration with existing sections */
.top-courses {
    padding: 50px 0 20px 0; /* Reduced bottom padding */
    background: #fff;
}

/* Reduce gap between top courses and featured instructors */
.top-courses + .featured-instructors {
    padding-top: 30px; /* Reduced top padding for this specific transition */
}

/* Ensure consistent spacing between sections */
.featured-instructors,
.statistics-section,
.success-stories,
.why-choose-us,
.cta-section,
.newsletter-section,
.top-courses {
    padding: 50px 0;
}

/* Ensure smooth transitions between sections */
section + section {
    position: relative;
}

/* Fix any potential z-index issues */
.hero-section,
.course-categories,
.featured-instructors,
.statistics-section,
.success-stories,
.why-choose-us,
.cta-section,
.newsletter-section {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments for boxed layout */
@media (max-width: 1199.98px) {
    .featured-instructors,
    .statistics-section,
    .success-stories,
    .why-choose-us,
    .cta-section,
    .newsletter-section {
        padding: 40px 0;
    }

    .top-courses {
        padding: 40px 0 15px 0;
    }

    .top-courses + .featured-instructors {
        padding-top: 25px;
    }
}

@media (max-width: 991.98px) {
    .featured-instructors,
    .statistics-section,
    .success-stories,
    .why-choose-us,
    .cta-section,
    .newsletter-section {
        padding: 30px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .top-courses {
        padding: 30px 0 10px 0;
    }

    .top-courses + .featured-instructors {
        padding-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .featured-instructors,
    .statistics-section,
    .success-stories,
    .why-choose-us,
    .cta-section,
    .newsletter-section {
        padding: 25px 0;
    }

    .section-title {
        margin-bottom: 25px;
    }

    .top-courses {
        padding: 25px 0 8px 0;
    }

    .top-courses + .featured-instructors {
        padding-top: 15px;
    }
}
