/* Course Page Specific Styles - Scoped to avoid conflicts with header/footer */

:root {
    --brand-blue: #056db6;
    --brand-yellow: #f4c024;
    --brand-yellow-hover: #e0b020;
    --text-dark: #111827;
    --text-muted: #4b5563;
}

/* Scoped body styles - only affect course page content, not header/footer */
body.course-page-body {
    background-color: #f9fafb;
    -webkit-font-smoothing: antialiased;
}

/* Apply Inter font only to course sections, not header/footer */
.hero-section,
#course-1,
#course-2 {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* --- Typography & Colors --- */
.text-brand-blue { color: var(--brand-blue) !important; }
.bg-brand-blue { background-color: var(--brand-blue) !important; }
.text-brand-yellow { color: var(--brand-yellow) !important; }

/* Scoped heading styles - only affect course sections, not header/footer */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
#course-1 h1,
#course-1 h2,
#course-1 h3,
#course-1 h4,
#course-1 h5,
#course-1 h6,
#course-2 h1,
#course-2 h2,
#course-2 h3,
#course-2 h4,
#course-2 h5,
#course-2 h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-section h1,
#course-1 h1,
#course-2 h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-section h2,
#course-1 h2,
#course-2 h2 {
    color: var(--brand-blue);
}

/* Display classes */
.display-5 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

/* --- Custom Buttons --- */
.btn-brand-yellow {
    background-color: var(--brand-yellow);
    color: #000;
    font-weight: 600;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-brand-yellow:hover {
    background-color: var(--brand-yellow-hover);
    transform: translateY(-2px);
    color: #000;
    box-shadow: 0 4px 12px rgba(244, 192, 36, 0.3);
}
.btn-brand-blue {
    background-color: var(--brand-blue);
    color: #fff;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}
.btn-brand-blue:hover {
    background-color: #045a96;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 109, 182, 0.3);
}

/* --- Layout & Utilities --- */
.rounded-4 { border-radius: 1.5rem !important; }
.rounded-5 { border-radius: 2rem !important; }

.shadow-soft { box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); }

.hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #eff6ff 100%);
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Scoped course-card - only affects course sections */
/* Override conflicting styles from style.css */
#course-1 .course-card,
#course-2 .course-card,
#course-1 .card.course-card,
#course-2 .card.course-card {
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto !important; /* Override fixed height from style.css */
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08) !important; /* Override box-shadow from style.css */
    position: relative !important; /* Override position from style.css */
}

#course-1 .course-card .card-header,
#course-2 .course-card .card-header {
    background-color: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

#course-1 .course-card .card-body,
#course-2 .course-card .card-body {
    padding: 0 !important; /* Let Bootstrap classes handle padding */
    background-color: transparent !important;
}

/* Ensure proper spacing and alignment */
#course-1 .course-card .card-body .row,
#course-2 .course-card .card-body .row {
    margin: 0;
}

/* Fix border-radius for card */
#course-1 .course-card,
#course-2 .course-card {
    border-radius: 1.5rem !important;
}

#course-1 .course-card:hover,
#course-2 .course-card:hover,
#course-1 .card.course-card:hover,
#course-2 .card.course-card:hover {
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

/* --- Component Specifics --- */
.feature-item { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.feature-icon {
    width: 20px; height: 20px;
    background-color: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 8px;
    flex-shrink: 0;
}

.video-placeholder-btn {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: transparent;
}
.video-placeholder-btn:hover {
    transform: scale(1.01);
}
.video-placeholder-btn:focus-visible {
    outline: 4px solid rgba(244, 192, 36, 0.5);
    outline-offset: 2px;
}
.video-placeholder-btn .ratio {
    border-radius: 1rem;
    overflow: hidden;
}
.play-icon-circle {
    width: 64px; height: 64px;
    background-color: var(--brand-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.video-placeholder-btn:hover .play-icon-circle {
    transform: scale(1.1);
}

/* Exam Tags - scoped to course sections */
#course-1 .exam-badge,
#course-2 .exam-badge {
    font-size: 0.8rem;
    background: #fff;
    border: 1px solid #e0e7ff;
    color: #374151;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* Navbar - scoped to avoid conflicts, only enhance existing navbar */
/* Note: This enhances the navbar but doesn't override critical styles from style.css */
body.course-page-body header .navbar {
    backdrop-filter: blur(10px);
}
body.course-page-body header .navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
}
.navbar-brand-icon {
    width: 32px; height: 32px;
    background-color: var(--brand-blue);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Image transformations */
.hero-img-container {
    height: 400px;
    border: 4px solid white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    transform: rotate(2deg);
    transition: transform 0.5s ease;
    overflow: hidden;
}
.hero-img-container:hover {
    transform: rotate(0deg);
}
.hero-img-container iframe {
    border-radius: 0.75rem;
    width: 100%;
    height: 100%;
    display: block;
}

/* Scroll margin for sticky header offset - scoped to course sections */
#course-1,
#course-2 {
    scroll-margin-top: 80px;
}

/* Ensure proper section spacing */
#course-1 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

#course-2 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Fix card body inner padding */
#course-1 .course-card .card-body .col-lg-7,
#course-1 .course-card .card-body .col-lg-5,
#course-2 .course-card .card-body .col-lg-7,
#course-2 .course-card .card-body .col-lg-5 {
    padding: 1.5rem 2rem;
}

@media (min-width: 992px) {
    #course-1 .course-card .card-body .col-lg-7,
    #course-1 .course-card .card-body .col-lg-5,
    #course-2 .course-card .card-body .col-lg-7,
    #course-2 .course-card .card-body .col-lg-5 {
        padding: 3rem 5rem;
    }
}

/* Mobile Optimization */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    .hero-section h1.display-4,
    #course-1 h1.display-4,
    #course-2 h1.display-4 {
        font-size: 2.5rem;
    }
    .hero-section h2.display-6,
    #course-1 h2.display-6,
    #course-2 h2.display-6 {
        font-size: 1.75rem;
    }
    .hero-img-container {
        height: auto !important;
        transform: none !important;
        margin-top: 2rem;
    }
    .hero-img-container iframe {
        height: 300px !important;
    }
    .display-5 {
        font-size: 2rem !important;
    }
    .display-6 {
        font-size: 1.75rem !important;
    }
    /* Adjust padding for cards on mobile to be tighter but readable */
    #course-1 .course-card .card-header,
    #course-1 .course-card .card-body .col-lg-7,
    #course-1 .course-card .card-body .col-lg-5,
    #course-2 .course-card .card-header,
    #course-2 .course-card .card-body .col-lg-7,
    #course-2 .course-card .card-body .col-lg-5 {
        padding: 1.5rem !important;
    }
    body.course-page-body header .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: 1rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }
    
    /* Ensure buttons are full width on mobile */
    .btn-brand-blue,
    .btn-brand-yellow {
        width: 100%;
    }
    #course-1 .exam-badge,
    #course-2 .exam-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

