/* Modern Course Details CSS */

/* General Variables */
:root {
    --primary-color: #33BDFF;
    --bs-primary: #33BDFF;
    /* Override Bootstrap Primary Variable */
    /* Adjust to match site primary */
    --secondary-color: #09212b;
    /* Dark Navy */
    --accent-color: #ffc107;
    --text-color: #555;
    --heading-color: #222;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

/* Override Bootstrap Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-subtle {
    background-color: rgba(51, 189, 255, 0.1) !important;
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1ba0e6;
    /* Slightly darker shade */
    border-color: #1ba0e6;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 1. Optimized Hero (Banner) Section */
.banner-optimized {
    position: relative;
    background-image: url('../img/banner-img.webp');
    /* Default CPL Banner */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #09212b;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    padding: 30px 0;
    border-radius: 0 0 50% 50% / 0 0 40px 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    .banner-optimized {
        min-height: 380px;
        border-radius: 0 0 50% 50% / 0 0 60px 60px;
    }
}

.banner-optimized::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 33, 43, 0.6) 0%, rgba(26, 77, 99, 0.6) 100%);
    z-index: -1;
    border-radius: inherit;
}

.banner-optimized .hero-title {
    font-family: "DM Serif Display", serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.banner-optimized .breadcrumbs-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    list-style: none;
    margin: 0;
}

.banner-optimized .breadcrumb-item {
    display: flex;
    align-items: center;
}

.banner-optimized .breadcrumb-link {
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.banner-optimized .breadcrumb-link:hover {
    color: #33BDFF;
}

.banner-optimized .breadcrumb-sep {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 12px;
    font-size: 0.9rem;
}

.banner-optimized .breadcrumb-active {
    color: #33BDFF;
}

/* 2. Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* 3. Overview Section */
.course-overview {
    padding: 80px 0;
}

.overview-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.overview-img img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 4. Highlights Grid */
.course-highlights {
    /* Padding handles by section-padding class */
}

/* Vertical rhythm for every course / country section on laptops and desktops.
   Below 992px the 50px override further down takes over. */
.section-padding {
    padding: 90px 0;
}

/* Modern Highlight Card */
.highlight-card-modern {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    z-index: 1;
}

.highlight-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(51, 189, 255, 0.15);
    border-color: rgba(51, 189, 255, 0.1);
}

.highlight-card-modern .card-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.highlight-card-modern .card-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.highlight-card-modern .card-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.2;
}

.highlight-card-modern .card-icon {
    width: 60px;
    height: 60px;
    background: rgba(51, 189, 255, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.4s ease;
    flex-shrink: 0;
    margin-left: 15px;
    position: relative;
    z-index: 2;
}

/* Hover Effects */
.highlight-card-modern:hover .card-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: rotateY(180deg);
}

.highlight-card-modern:hover .card-label {
    color: var(--primary-color);
}

.highlight-card-modern .hover-shape {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(51, 189, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 0;
    transform: scale(0.5);
}

.highlight-card-modern:hover .hover-shape {
    opacity: 1;
    transform: scale(1.5);
}

/* 5. Curriculum Modules (Redesigned) */
.curriculum-module {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.curriculum-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.module-header {
    position: relative;
}

.module-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.clean-list li:last-child {
    border-bottom: none;
}

.clean-list .icon-wrap {
    width: 36px;
    height: 36px;
    background: #f0f4ff;
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.clean-list .text {
    font-weight: 500;
    color: var(--heading-color);
}

/* Flight Stats Grid */
.flight-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.flight-stat-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: background 0.3s ease;
}

.flight-stat-box:hover {
    background: #f0f4ff;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .flight-stats-grid {
        gap: 10px;
    }

    .flight-stat-box {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* 6. Training Process Timeline (Redesigned) */
.course-process {
    background: #0b1120;
    /* Dark Navy/Black */
    padding: 80px 0;
}

.process-bg-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(51, 189, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .process-bg-glow {
        display: block;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
        background: radial-gradient(circle at center, rgba(51, 189, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    }

    .process-card {
        margin-bottom: 15px;
    }
}

.process-card {
    background: #111a2e;
    /* Solid color fallback for stability */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    height: 100%;
    /* Removed backdrop-filter for better rendering stability */
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* Ensure content stays inside */
}

.process-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.step-indicator {
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    /* Increased visibility */
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(51, 189, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
    font-size: 1.5rem;
    border: 2px solid rgba(51, 189, 255, 0.5);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px rgba(51, 189, 255, 0.3);
    transition: all 0.3s ease;
}

.process-card:hover .icon-circle {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 25px rgba(51, 189, 255, 0.6);
}

/* Connecting lines removed as per request */

/* 7. Eligibility Checklist */
.eligibility-section {
    padding: 80px 0;
}

.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.eligibility-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.eligibility-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.eligibility-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.eligibility-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* 8. Table Styling */
.course-table-wrapper {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.course-table {
    width: 100%;
    border-collapse: collapse;
}

.course-table th,
.course-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.course-table th {
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

.course-table tr:last-child td {
    border-bottom: none;
}

.course-table tr:hover {
    background: #f9f9f9;
}

/* 9. FAQ Custom Override */
.course-faq .accordion-item {
    border: none;
    margin-bottom: 15px;
    background: transparent;
}

.course-faq .accordion-button {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 5px !important;
    font-weight: 600;
    color: var(--secondary-color);
}

.course-faq .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(51, 189, 255, 0.2);
}

.course-faq .accordion-body {
    background: var(--white);
    padding: 20px;
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #eee;
}

/* 10. CTA Section */
.course-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), #1a3c4d);
    color: var(--white);
}

.course-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.course-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Enhanced Overview Section */
.overview-image-wrapper {
    position: relative;
    padding: 20px;
}

.overview-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 95%;
    background: rgba(51, 189, 255, 0.08);
    /* Transparent Primary */
    border-radius: 20px;
    z-index: 1;
}

.overview-image-wrapper img {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Bootstrap 5.1 has no object-fit utilities; the country pages rely on this one. */
.overview-image-wrapper .object-fit-cover {
    object-fit: cover;
}

.overview-image-wrapper:hover img {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.sub-heading {
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.ls-1 {
    letter-spacing: 1px;
}

.icon-box-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.transition-3d-hover {
    transition: all 0.3s ease;
}

.transition-3d-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991.98px) {
    .overview-image-wrapper {
        padding: 10px;
        margin-bottom: 30px;
    }

    .overview-content h3.display-6 {
        font-size: 2rem;
        /* Smaller heading on mobile */
    }

    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 575.98px) {
    .overview-content {
        text-align: center;
    }

    .overview-content ul {
        display: inline-block;
        text-align: left;
    }

    .overview-content .d-flex.gap-3 {
        justify-content: center;
    }

    .overview-content .btn {
        width: 100%;
    }
}

/* =========================================
   Modern Contact Card Styles (Recreated)
   ========================================= */

.contact-card-wrapper {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-info-panel {
    background-color: #0b1120;
    /* Dark Navy */
    padding: 40px;
    height: 100%;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-subtext {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: #33BDFF;
    /* Brand Blue */
    font-size: 1.2rem;
}

.contact-item-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.contact-link:hover {
    color: #33BDFF;
}

.contact-form-panel {
    padding: 40px;
    background: #fff;
    height: 100%;
}

.form-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: #0b1120;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Modern Inputs (Light Theme for Form Panel) */
.form-control-modern {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px 12px 45px;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.3s ease;
}

.form-control-modern::placeholder {
    color: #adb5bd;
}

.form-control-modern:focus {
    background: #fff;
    border-color: #33BDFF;
    outline: none;
    box-shadow: 0 0 0 4px rgba(51, 189, 255, 0.1);
}

.input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.2rem;
}

.form-control-modern:focus+.input-icon {
    color: #33BDFF;
}

.btn-primary-modern {
    width: 100%;
    background: #33BDFF;
    color: #fff;
    border: none;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.btn-primary-modern:hover {
    background: #1ba0e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 189, 255, 0.3);
}

@media (max-width: 991.98px) {
    .contact-form-panel {
        padding: 30px 20px;
    }

    .contact-info-panel {
        padding: 30px 20px;
    }
}