/* Cyber Incident Management Page Styles */

/* Expert Credibility Section */
.experts-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-top: 60px;
    border: 1px solid var(--border-color);
}
@media (max-width: 768px) {
    .experts-section { padding: 32px 20px; }
}
.experts-header {
    text-align: center;
    margin-bottom: 32px;
}
.experts-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.experts-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.domain-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}
.domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.domain-chip:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
.trust-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .trust-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .trust-cards { grid-template-columns: 1fr; }
}
.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}
.trust-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}
.trust-card-icon {
    font-size: 1.75rem;
    margin-bottom: 10px;
}
.trust-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* PBL Methodology Section */
.pbl-section {
    padding: 60px 0;
}
.pbl-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
}
.pbl-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
@media (max-width: 768px) {
    .pbl-card { padding: 32px 20px; }
}
.pbl-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
.pbl-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 16px;
}
.pbl-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pbl-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* PBL Methodology Flow */
.pbl-methodology {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .pbl-methodology {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
.pbl-step {
    flex: 1;
    max-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.pbl-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
@media (max-width: 900px) {
    .pbl-step {
        max-width: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 16px 20px;
    }
}
.pbl-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 16px;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .pbl-step-icon {
        width: 48px;
        height: 48px;
        margin: 0;
        font-size: 1.5rem;
    }
}
.pbl-step-icon.challenge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}
.pbl-step-icon.fail {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}
.pbl-step-icon.learn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}
.pbl-step-icon.solve {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}
.pbl-step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.pbl-step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.pbl-arrow {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}
@media (max-width: 900px) {
    .pbl-arrow {
        transform: rotate(90deg);
        font-size: 1.25rem;
    }
}

/* PBL Context */
.pbl-context {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}
@media (max-width: 600px) {
    .pbl-context {
        flex-direction: column;
        text-align: center;
    }
}
.pbl-context-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.pbl-context-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.pbl-context-text strong {
    color: var(--text-primary);
}

/* Syllabus Section */
.syllabus-section {
    padding: 60px 0;
}
.syllabus-section .section-header {
    max-width: 100%;
}
/* Use full viewport width on large screens */
@media (min-width: 1200px) {
    .syllabus-section > .container {
        max-width: 100%;
        padding: 0 clamp(24px, 4vw, 80px);
    }
}

/* Section Tabs */
.section-tabs-wrapper {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: var(--bg-primary);
    padding: 16px 0;
    margin: 0 -20px 24px -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.section-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.section-tabs::-webkit-scrollbar {
    height: 4px;
}
.section-tabs::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 2px;
}
.section-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.section-tab:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}
.section-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.section-tab .tab-num {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.section-tab.active .tab-num {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}
.section-tab .tab-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.section-tab.active .tab-title {
    color: white;
}
@media (max-width: 900px) {
    .section-tabs-wrapper {
        display: none;
    }
}

/* Mobile Section Dropdown */
.section-dropdown-wrapper {
    display: none;
    position: sticky;
    top: 70px;
    z-index: 100;
    background: var(--bg-primary);
    padding: 12px 0;
    margin: 0 -20px 16px -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
@media (max-width: 900px) {
    .section-dropdown-wrapper {
        display: block;
    }
}
.section-dropdown-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}
.section-dropdown-btn:hover {
    border-color: var(--accent-primary);
}
.section-dropdown-btn .dropdown-current {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}
.section-dropdown-btn .dropdown-current .tab-num {
    width: 24px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}
.section-dropdown-btn .dropdown-icon {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.section-dropdown-btn.open .dropdown-icon {
    transform: rotate(180deg);
}
.section-dropdown {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}
.section-dropdown.open {
    display: block;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: background 0.2s ease;
}
.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
}
.dropdown-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
}
.dropdown-item .tab-num {
    width: 22px;
    height: 22px;
    background: var(--bg-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}
.dropdown-item.active .tab-num {
    background: var(--accent-gradient);
    color: white;
}

/* Section Content */
.section-content-container {
    min-height: 400px;
}
.section-content {
    display: none;
}
.section-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-content-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.section-content-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.section-content-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}
.coming-soon-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #f59e0b;
}
.placeholder-notice {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-glass);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}
.placeholder-notice p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.syllabus-toggle-btn {
    display: none;
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 16px;
    justify-content: space-between;
    align-items: center;
}
.syllabus-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
}
.syllabus-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}
@media (max-width: 768px) {
    .syllabus-toggle-btn { display: flex; }
    .syllabus-nav { 
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .syllabus-nav.active {
        display: block;
        max-height: 500px;
    }
}
.syllabus-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin-bottom: 40px;
}
.syllabus-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
@media (max-width: 768px) {
    .syllabus-nav-list {
        flex-direction: column;
    }
}
.syllabus-nav-item {
    flex: 1;
    min-width: 180px;
}
.syllabus-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}
.syllabus-nav-link:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}
.syllabus-nav-link .section-num {
    width: 28px;
    height: 28px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

/* Section Content */
.course-section-block {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}
.section-block-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.section-block-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-block-header h3 .section-num {
    width: 42px;
    height: 42px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.section-block-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-left: 56px;
}
@media (max-width: 768px) {
    .section-block-header p {
        margin-left: 0;
    }
}

/* Module Block */
.module-block {
    margin-bottom: 48px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.module-block:last-child {
    margin-bottom: 0;
}
.module-header {
    margin-bottom: 24px;
}
.module-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.module-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
}
@media (max-width: 768px) {
    .module-block {
        padding: 16px;
    }
    .module-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Horizontal Scroll Cards */
.content-row {
    margin-bottom: 32px;
    position: relative;
}
.content-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.content-row-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.content-row-header h4 .row-icon {
    font-size: 1.25rem;
}

/* Scroll Container with Arrows */
.scroll-container {
    position: relative;
}
.horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}
.horizontal-scroll::-webkit-scrollbar-track {
    background: var(--bg-glass);
    border-radius: 3px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* Scroll Arrow Buttons */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}
.scroll-container:hover .scroll-arrow {
    opacity: 1;
    pointer-events: auto;
}
.scroll-arrow:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px var(--accent-glow);
}
.scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
}
.scroll-arrow.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
    pointer-events: none;
}
.scroll-arrow-left {
    left: -22px;
}
.scroll-arrow-right {
    right: -22px;
}
.scroll-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s ease;
}
.scroll-arrow:hover svg {
    stroke: white;
}

/* Mobile: Always show arrows, position inside */
@media (max-width: 768px) {
    .scroll-arrow {
        width: 36px;
        height: 36px;
        opacity: 0.9;
        pointer-events: auto;
    }
    .scroll-arrow-left {
        left: 8px;
    }
    .scroll-arrow-right {
        right: 8px;
    }
    .scroll-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Gradient fade edges */
.scroll-container::before,
.scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 16px;
    width: 40px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.scroll-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}
.scroll-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}
.scroll-container.can-scroll-left::before {
    opacity: 1;
}
.scroll-container.can-scroll-right::after {
    opacity: 1;
}
.topic-card {
    flex: 0 0 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}
.topic-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}
.topic-card.locked {
    opacity: 0.7;
}
.topic-card.locked:hover {
    opacity: 0.85;
}
.topic-card-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.topic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.topic-card-image .placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}
.topic-card-image .lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.topic-card.locked .lock-overlay {
    opacity: 1;
}
.lock-overlay .lock-icon {
    font-size: 1.5rem;
}
.topic-card-content {
    padding: 14px;
}
.topic-card-content h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enroll Prompt Modal */
.enroll-prompt-modal {
    max-width: 420px;
}
.enroll-prompt-hero {
    text-align: center;
    padding: 24px 0;
}
.enroll-prompt-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    box-shadow: 0 12px 32px var(--accent-glow);
}
.enroll-prompt-hero h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.enroll-prompt-hero p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.enroll-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
.enroll-prompt-actions .btn {
    width: 100%;
}

/* Certificate Section */
.certificate-unlock {
    display: none;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 40px 0;
    text-align: center;
}
.certificate-unlock.visible {
    display: block;
}
.certificate-unlock h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--success);
}
.certificate-unlock p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Certificate Modal */
.certificate-modal {
    max-width: 480px;
}
.certificate-form-group {
    margin-bottom: 20px;
}
.certificate-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.certificate-form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}
.certificate-form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.certificate-success {
    text-align: center;
    padding: 32px 0;
}
.certificate-success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}
.certificate-success h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.certificate-success p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Progress indicator — hidden per design */
.progress-indicator {
    display: none !important;
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    z-index: 99;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.progress-indicator .progress-count {
    font-weight: 700;
    color: var(--accent-primary);
}
@media (max-width: 768px) {
    .progress-indicator {
        bottom: 80px;
        right: 16px;
        left: 16px;
        justify-content: center;
    }
}

/* Bottom CTA */
.bottom-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    margin-top: 40px;
}
.bottom-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.bottom-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.bottom-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Unenroll Modal Styles */
.unenroll-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.unenroll-actions .btn {
    width: 100%;
}

.unenroll-success {
    text-align: center;
    margin-top: 20px;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-danger:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dropdown-item-warning {
    color: #f59e0b !important;
}

.dropdown-item-warning:hover {
    background: rgba(245, 158, 11, 0.1) !important;
}

.dropdown-item-warning svg {
    stroke: #f59e0b;
}

.hidden {
    display: none !important;
}

/* ============================================
   Restricted Content Styling
   ============================================ */

/* Restricted content card styling */
.topic-card.restricted-content .lock-overlay {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.topic-card.restricted-content .lock-icon.restricted-lock {
    font-size: 2rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.topic-card.restricted-content .lock-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0 8px;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6)); }
}

/* Restricted Content Modal */
.restricted-content-modal {
    max-width: 520px;
}

.restricted-content-hero {
    text-align: center;
    padding: 20px 0 24px;
}

.restricted-content-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

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

.restricted-content-hero h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.restricted-content-hero p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.restricted-content-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-check {
    color: #10b981;
    font-weight: bold;
}

.restricted-content-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.restricted-content-actions .btn {
    width: 100%;
}

@media (max-width: 500px) {
    .restricted-content-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Upcoming Content Styling
   ============================================ */

.placeholder-notice.upcoming-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    margin: 20px 0;
}

.placeholder-notice.upcoming-content .upcoming-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce-soft 2s ease-in-out infinite;
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.placeholder-notice.upcoming-content h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.placeholder-notice.upcoming-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 28px;
}

.placeholder-notice.upcoming-content .btn {
    min-width: 200px;
}

@media (max-width: 600px) {
    .placeholder-notice.upcoming-content {
        padding: 40px 24px;
    }
    .placeholder-notice.upcoming-content h4 {
        font-size: 1.4rem;
    }
}

/* ============================================
   iPhone / Small Mobile Responsive Fixes
   ============================================ */

/* Safe area insets for notched iPhones */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    .progress-indicator {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
    .scroll-to-top {
        bottom: calc(24px + env(safe-area-inset-bottom));
    }
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

@media (max-width: 430px) {
    /* Hero section */
    .course-hero-content h1 {
        font-size: 1.6rem;
    }
    .course-hero-content .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-stats {
        gap: 12px;
    }
    .stat-item .stat-number {
        font-size: 1.3rem;
    }
    .stat-item .stat-label {
        font-size: 0.65rem;
    }

    /* Syllabus section */
    .syllabus-section {
        padding: 32px 0;
    }
    .section-dropdown-btn {
        padding: 12px 14px;
    }
    .section-dropdown-btn .dropdown-current {
        font-size: 0.85rem;
    }

    /* Topic cards - slightly smaller on very small screens */
    .topic-card {
        flex: 0 0 160px;
    }
    .topic-card-image {
        height: 100px;
    }
    .topic-card-content {
        padding: 10px;
    }
    .topic-card-content h5 {
        font-size: 0.8rem;
    }

    /* Section content */
    .section-content-header h3 {
        font-size: 1.1rem;
    }
    .module-block {
        padding: 16px;
    }

    /* Bottom CTA */
    .bottom-cta {
        padding: 28px 16px;
    }
    .bottom-cta h3 {
        font-size: 1.2rem;
    }

    /* Modals */
    .modal-content {
        margin: 8px;
        max-height: calc(100vh - 16px);
    }
    .restricted-content-modal {
        max-width: 100%;
    }

    /* Referral CTA */
    .referral-cta .container > div {
        padding: 28px 16px !important;
    }

    /* Buttons touch-friendly sizing */
    .btn, .enroll-btn, .cta-button {
        min-height: 44px;
        font-size: 0.9rem;
    }

    /* Scroll arrows */
    .scroll-arrow {
        width: 32px;
        height: 32px;
    }
}

/* Prevent iOS zoom on input focus */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* iOS momentum scrolling */
.section-tabs,
.scroll-container .scroll-content {
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal overflow on all mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    .container {
        overflow-x: hidden;
    }
}
