/* ========================================
   MageTech Academy - Training & Career Services
   ======================================== */

/* ---------- Hero Section ---------- */
.academy-hero {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0d1b3e 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}
.academy-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(38,212,140,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.academy-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.academy-hero .hero-content {
    position: relative;
    z-index: 2;
}
.academy-hero .hero-badge {
    display: inline-block;
    background: rgba(38,212,140,0.2);
    color: var(--bs-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(38,212,140,0.3);
}
.academy-hero h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.academy-hero h1 .text-secondary {
    color: var(--bs-secondary) !important;
}
.academy-hero .hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 30px;
}
.academy-hero .hero-buttons .btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    margin: 5px;
    transition: all 0.3s ease;
}
.academy-hero .hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.academy-hero .hero-stat h3 {
    color: var(--bs-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.academy-hero .hero-stat p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Section Common ---------- */
.academy-section {
    padding: 80px 0;
}
.academy-section.bg-light {
    background-color: #f8f9fa !important;
}
.academy-section-header {
    text-align: center;
    margin-bottom: 50px;
}
.academy-section-header h5 {
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.academy-section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}
.academy-section-header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

/* ---------- Why Choose Cards ---------- */
.why-choose-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}
.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.why-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.why-choose-card:hover::before {
    opacity: 1;
}
.why-choose-card .card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    background: rgba(24,66,182,0.1);
    color: var(--bs-primary);
    transition: all 0.3s ease;
}
.why-choose-card:hover .card-icon {
    background: var(--bs-primary);
    color: #fff;
}
.why-choose-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.why-choose-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ---------- Course Cards ---------- */
.course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.course-card .card-header-custom {
    padding: 30px 24px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(24,66,182,0.05) 0%, rgba(38,212,140,0.05) 100%);
}
.course-card .card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    background: var(--bs-primary);
    color: #fff;
}
.course-card .card-body-custom {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}
.course-card .course-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}
.course-card .course-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.course-card .course-meta .badge {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 50px;
}
.course-card .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}
.course-card .tech-tags span {
    background: #f0f4ff;
    color: var(--bs-primary);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}
.course-card .card-footer-custom {
    padding: 15px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.course-card .course-price {
    font-weight: 700;
    color: var(--bs-primary);
    font-size: 1.1rem;
}
.course-card .course-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 6px;
}

/* ---------- Course Detail ---------- */
.course-detail-hero {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0d1b3e 100%);
    padding: 60px 0;
    color: #fff;
}
.course-detail-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.course-detail-hero .course-meta-detail {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.course-detail-hero .course-meta-detail .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}
.course-detail-hero .course-meta-detail .meta-item i {
    color: var(--bs-secondary);
}
.course-detail-hero .hero-actions .btn {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
}
.course-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}
.course-sidebar .sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.course-sidebar .sidebar-item:last-child {
    border-bottom: none;
}
.course-sidebar .sidebar-item .label {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.course-sidebar .sidebar-item .value {
    font-weight: 600;
    color: #1a1a2e;
}
.course-sidebar .enroll-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    margin-top: 15px;
}
.syllabus-module {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.syllabus-module .module-header {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1a1a2e;
    transition: background 0.3s ease;
}
.syllabus-module .module-header:hover {
    background: #f8f9fa;
}
.syllabus-module .module-header .module-num {
    color: var(--bs-primary);
    margin-right: 12px;
    font-size: 0.85rem;
    background: rgba(24,66,182,0.1);
    padding: 4px 10px;
    border-radius: 50px;
}
.syllabus-module .module-topics {
    padding: 0 24px 18px;
    display: none;
}
.syllabus-module .module-topics.show {
    display: block;
}
.syllabus-module .module-topics ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.syllabus-module .module-topics ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
    font-size: 0.92rem;
}
.syllabus-module .module-topics ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--bs-secondary);
    font-size: 0.8rem;
}

/* ---------- Process Steps ---------- */
.process-timeline {
    position: relative;
    padding: 20px 0;
}
.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bs-primary), var(--bs-secondary));
    border-radius: 3px;
}
.process-step-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}
.process-step-item:nth-child(even) {
    flex-direction: row-reverse;
}
.process-step-item .step-content {
    width: 45%;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.process-step-item .step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    z-index: 2;
    margin: 0 auto;
}
.process-step-item .step-content h5 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.process-step-item .step-content p {
    color: #666;
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ---------- Tech Stack ---------- */
.tech-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    padding: 15px;
}
.tech-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--bs-primary);
}
.tech-logo-item i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--bs-primary);
}
.tech-logo-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    text-align: center;
}

/* ---------- Testimonial Cards ---------- */
.academy-testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    height: 100%;
    transition: all 0.3s ease;
}
.academy-testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.academy-testimonial-card .testimonial-stars {
    color: #ffc107;
    margin-bottom: 15px;
}
.academy-testimonial-card .testimonial-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.academy-testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.academy-testimonial-card .testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.academy-testimonial-card .testimonial-info h6 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}
.academy-testimonial-card .testimonial-info small {
    color: #999;
}

/* ---------- Partner Logos ---------- */
.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.partner-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---------- CTA Banner ---------- */
.academy-cta {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0d1b3e 100%);
    padding: 60px 0;
    text-align: center;
}
.academy-cta h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.academy-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ---------- Placement Program ---------- */
.placement-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.3s ease;
}
.placement-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.placement-feature-card .feature-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(24,66,182,0.1);
    color: var(--bs-primary);
}
.placement-feature-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.placement-feature-card p {
    color: #666;
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bs-primary), var(--bs-secondary));
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}
.timeline-item .timeline-dot {
    position: absolute;
    left: 18px;
    top: 5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--bs-primary);
    z-index: 2;
}
.timeline-item .timeline-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.timeline-item .timeline-content h5 {
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 6px;
}
.timeline-item .timeline-content h4 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.timeline-item .timeline-content p {
    color: #666;
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ---------- Success Stories ---------- */
.success-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    height: 100%;
    transition: all 0.3s ease;
}
.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.success-card .card-top {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0d1b3e 100%);
    padding: 30px;
    text-align: center;
    color: #fff;
}
.success-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,0.3);
}
.success-card .card-top h5 {
    font-weight: 700;
    margin-bottom: 4px;
}
.success-card .card-top small {
    opacity: 0.8;
}
.success-card .card-bottom {
    padding: 24px;
}
.success-card .placement-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.success-card .placement-info .company {
    font-weight: 700;
    color: var(--bs-primary);
}
.success-card .placement-info .salary {
    font-weight: 700;
    color: var(--bs-secondary);
}
.success-card .testimonial-text {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.7;
}

/* ---------- Stats Row ---------- */
.academy-stats {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0d1b3e 100%);
    padding: 50px 0;
}
.academy-stats .stat-item {
    text-align: center;
    color: #fff;
}
.academy-stats .stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 5px;
}
.academy-stats .stat-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- FAQ Accordion ---------- */
.faq-section .accordion-item {
    border: 1px solid #f0f0f0;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-section .accordion-button {
    font-weight: 600;
    color: #1a1a2e;
    padding: 18px 24px;
    font-size: 1rem;
}
.faq-section .accordion-button:not(.collapsed) {
    background: rgba(24,66,182,0.05);
    color: var(--bs-primary);
    box-shadow: none;
}
.faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231842b6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-section .accordion-body {
    padding: 0 24px 20px;
    color: #666;
    line-height: 1.7;
}

/* ---------- Corporate Form ---------- */
.corporate-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.corporate-form-card .form-control,
.corporate-form-card .form-select {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
}
.corporate-form-card .form-control:focus,
.corporate-form-card .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(24,66,182,0.1);
}

/* ---------- Course Filter ---------- */
.course-filter .filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.course-filter .filter-btn:hover,
.course-filter .filter-btn.active {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .academy-hero h1 {
        font-size: 2.2rem;
    }
    .academy-hero .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .process-timeline::before {
        left: 30px;
    }
    .process-step-item,
    .process-step-item:nth-child(even) {
        flex-direction: row;
    }
    .process-step-item .step-content {
        width: calc(100% - 80px);
    }
}
@media (max-width: 767px) {
    .academy-hero {
        padding: 50px 0 40px;
    }
    .academy-hero h1 {
        font-size: 1.8rem;
    }
    .academy-hero .hero-stats {
        gap: 15px;
    }
    .academy-hero .hero-stat h3 {
        font-size: 1.5rem;
    }
    .academy-section {
        padding: 50px 0;
    }
    .academy-section-header h2 {
        font-size: 1.6rem;
    }
    .academy-cta h2 {
        font-size: 1.6rem;
    }
    .course-detail-hero h1 {
        font-size: 1.8rem;
    }
    .course-sidebar {
        position: static;
        margin-top: 30px;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 55px;
    }
    .timeline-item .timeline-dot {
        left: 8px;
        width: 24px;
        height: 24px;
    }
}
@media (max-width: 575px) {
    .academy-hero .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }
    .academy-hero .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
}
