/* style.css */
:root {
    --primary-blue: #155DFC;
    --primary-blue-hover: #0E4BDB;
    --deep-navy: #0F172A;
    --premium-cyan: #06B6D4;
    --dark-text: #111827;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --heading-color: #0F172A;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
body.dark-theme {
    --light-bg: #0F172A;
    --white: #1E293B;
    --dark-text: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --heading-color: #F8FAFC;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--light-bg); color: var(--dark-text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; width: 100%; max-width: 100%; transition: background-color 0.3s ease, color 0.3s ease; }
main { flex: 1; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Typography */
h1, h2, h3, h4 { color: var(--heading-color); font-weight: 700; line-height: 1.2; transition: color 0.3s ease; }
.section-title { font-size: 2.8rem; text-align: center; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3.5rem; font-size: 1.15rem; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.7; }

body.dark-theme .internal-page-header .page-title { color: #FFFFFF; } /* Keep hero titles white in dark mode */

/* Header (Fixed & Sticky) */
.navbar { 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
}
body.dark-theme .navbar {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; min-height: 80px; }
.logo-area { display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo i { color: var(--primary-blue); font-size: 2.4rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.3rem; font-weight: 800; color: var(--heading-color); line-height: 1.1; letter-spacing: -0.02em; }
.logo-tagline { font-size: 0.85rem; font-weight: 600; color: var(--primary-blue); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Theme Toggle Button */
.theme-toggle { background: transparent; border: none; color: var(--deep-navy); font-size: 1.5rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 50%; }
.theme-toggle:hover { background: rgba(21, 93, 252, 0.1); color: var(--primary-blue); }
body.dark-theme .theme-toggle { color: var(--premium-cyan); }
body.dark-theme .theme-toggle:hover { background: rgba(6, 182, 212, 0.1); }

/* Mobile Menu Button */
.mobile-menu-btn { display: none; background: transparent; border: none; font-size: 2rem; color: var(--deep-navy); cursor: pointer; transition: var(--transition); padding: 5px; }
body.dark-theme .mobile-menu-btn { color: var(--dark-text); }
.mobile-menu-btn:hover { color: var(--primary-blue); }

/* Nav Links */
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link { font-weight: 600; color: var(--text-muted); transition: var(--transition); font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--primary-blue); }
body.dark-theme .nav-link:hover, body.dark-theme .nav-link.active { color: var(--premium-cyan); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 10px; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); font-size: 1.05rem; }
.btn-primary { background-color: var(--primary-blue); color: #fff; box-shadow: 0 4px 14px rgba(21, 93, 252, 0.25); }
.btn-primary:hover { background-color: var(--primary-blue-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(21, 93, 252, 0.35); }
.btn-disabled { background-color: #E2E8F0; color: #94A3B8; cursor: not-allowed; }
body.dark-theme .btn-primary { color: #fff; }

/* Hero Section */
.hero { padding: 120px 0 100px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%); transition: background 0.3s ease; }
body.dark-theme .hero { background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%); }
.hero-title { font-size: 4.5rem; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.text-highlight { color: var(--primary-blue); position: relative; white-space: nowrap; }
.text-highlight::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 12px; background-color: var(--premium-cyan); opacity: 0.2; z-index: -1; border-radius: 4px; }
.hero-subtitle { font-size: 1.35rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 3rem; line-height: 1.7; }

/* Grid Layout */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; width: 100%; }

/* Core Layout Blocks */
.features-section, .faq-section { padding: 100px 0; background: var(--white); transition: background-color 0.3s ease; }
body.dark-theme .features-section, body.dark-theme .faq-section { background: var(--light-bg); }

.tools-showcase { background: var(--light-bg); padding: 100px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
body.dark-theme .tools-showcase { background: var(--white); }

.course-catalog { padding: 100px 0; background: var(--light-bg); transition: background-color 0.3s ease; }
body.dark-theme .course-catalog { background: var(--light-bg); }

.feature-card, .card, .module-card, .faq-item, .content-box, .contact-card, .tool-item {
    background: var(--light-bg); border-radius: 16px; border: 1px solid rgba(226, 232, 240, 0.6); transition: var(--transition);
}
.card, .module-card, .content-box, .tool-item { background: var(--white); }
body.dark-theme .feature-card, body.dark-theme .card, body.dark-theme .module-card, body.dark-theme .faq-item, body.dark-theme .content-box, body.dark-theme .contact-card, body.dark-theme .tool-item {
    background: var(--white); border-color: var(--border-color);
}

.feature-card { padding: 48px 32px; text-align: center; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--premium-cyan); background: var(--white); }
.feature-card i { font-size: 3.5rem; color: var(--primary-blue); margin-bottom: 1.5rem; }
.feature-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.feature-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; margin-top: 50px; }
.tool-item { padding: 32px 24px; text-align: center; font-weight: 600; color: var(--heading-color); display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); border: 1px solid transparent; }
.tool-item i { font-size: 3.5rem; color: var(--primary-blue); transition: var(--transition); }
.tool-item:hover { transform: translateY(-5px); border-color: var(--premium-cyan); box-shadow: var(--shadow-md); }
.tool-item:hover i { transform: scale(1.1); }

/* Authority Block */
.authority-block { padding: 100px 0; background: linear-gradient(135deg, var(--deep-navy) 0%, #1e293b 100%); color: var(--white); text-align: center; transition: background 0.3s ease; }
.authority-block .section-title { color: var(--white); transition: color 0.3s ease; }
.authority-block .section-subtitle { color: #94A3B8; font-size: 1.2rem; transition: color 0.3s ease; }

/* Invert Authority Block for Dark Mode */
body.dark-theme .authority-block { background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%); }
body.dark-theme .authority-block .section-title { color: var(--deep-navy); }
body.dark-theme .authority-block .section-subtitle { color: var(--primary-blue); }

/* Cards */
.card { overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 232, 240, 0.8); display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.active-card:hover { border-color: var(--premium-cyan); }
.card-image { height: 220px; display: flex; align-items: center; justify-content: center; font-size: 6rem; color: white; position: relative; }
.facebook-bg { background: linear-gradient(135deg, #1877F2, #0C56B5); }
.youtube-bg { background: linear-gradient(135deg, #FF0000, #B30000); filter: grayscale(0.5); }
.insta-bg { background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045); filter: grayscale(0.5); }
.copy-bg { background: linear-gradient(135deg, #0F172A, #334155); filter: grayscale(0.5); }
.card-content { padding: 40px; display: flex; flex-direction: column; flex-grow: 1; align-items: center; text-align: center; }
.card-title { font-size: 1.5rem; margin-bottom: 1rem; }
.card-desc { color: var(--text-muted); margin-bottom: 2.5rem; flex-grow: 1; line-height: 1.6; font-size: 1.05rem; }

/* Course SPA Views */
.view { display: none; opacity: 0; animation: fadeIn 0.5s ease forwards; width: 100%; }
.view.active { display: block; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(10px); } }

/* Course Detail View */
.course-detail { padding: 80px 0; }
.back-btn { background: var(--white); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 8px; color: var(--heading-color); font-size: 1rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 40px; transition: var(--transition); box-shadow: var(--shadow-sm); }
body.dark-theme .back-btn { background: var(--light-bg); }
.back-btn:hover { color: var(--primary-blue); border-color: var(--primary-blue); transform: translateX(-4px); }
.course-header { margin-bottom: 60px; text-align: center; }
.course-detail-title { font-size: 3.5rem; margin-bottom: 1rem; }
.course-detail-subtitle { font-size: 1.3rem; color: var(--text-muted); }

/* Improved Video Modules */
.module-card { box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; position: relative; }
.module-card:hover { border-color: var(--primary-blue); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.module-thumbnail { width: 100%; aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.module-thumbnail img { transition: var(--transition); }
.module-card:hover .module-thumbnail img { transform: scale(1.05); }
.module-thumbnail i { position: relative; z-index: 2; color: white; font-size: 4rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6)); transition: var(--transition); }
.module-card:hover .module-thumbnail i { transform: scale(1.1); color: var(--premium-cyan); }
.module-info { padding: 24px; position: relative; }
.module-info h4 { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.4; }
.module-info p { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }

/* Completed Badge */
.completed-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #10B981;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

/* FAQ Section */
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item:hover { border-color: var(--primary-blue); }
.faq-question { width: 100%; text-align: left; padding: 28px; background: transparent; border: none; font-size: 1.2rem; font-weight: 600; color: var(--heading-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { color: var(--primary-blue); }
.faq-question i { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); font-size: 1.4rem; color: var(--text-muted); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary-blue); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 0 28px; }
.faq-item.active .faq-answer { padding: 0 28px 28px; }
.faq-answer p { color: var(--text-muted); line-height: 1.8; font-size: 1.1rem; }

/* Internal Pages Structure */
.internal-page-header { background: linear-gradient(135deg, var(--deep-navy) 0%, #1e293b 100%); color: var(--white); padding: 100px 0; text-align: center; transition: background 0.3s ease; }
.page-title { font-size: 3.5rem; color: var(--white); margin-bottom: 1.2rem; letter-spacing: -0.02em; transition: color 0.3s ease; }
.page-subtitle { color: var(--premium-cyan); font-size: 1.25rem; max-width: 800px; margin: 0 auto; line-height: 1.6; }

body.dark-theme .internal-page-header { background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%); }
body.dark-theme .internal-page-header .page-title { color: var(--deep-navy); }
body.dark-theme .internal-page-header .page-subtitle { color: var(--primary-blue); }

.internal-page-content { padding: 100px 0; min-height: 50vh; background: var(--white); transition: background-color 0.3s ease; }
body.dark-theme .internal-page-content { background: var(--light-bg); }
.content-box { max-width: 900px; margin: 0 auto; line-height: 1.9; font-size: 1.15rem; color: var(--dark-text); padding: 40px; box-shadow: var(--shadow-sm); overflow-wrap: break-word; word-wrap: break-word; }
.content-box h2 { font-size: 2.2rem; margin-top: 2.5rem; margin-bottom: 1.2rem; }
.content-box h2:first-child { margin-top: 0; }
.content-box h3 { font-size: 1.6rem; margin-top: 2rem; margin-bottom: 1rem; }
.content-box p { color: var(--text-muted); margin-bottom: 1.8rem; }
.content-box ul { margin-bottom: 1.8rem; padding-left: 24px; color: var(--text-muted); }
.content-box li { margin-bottom: 0.8rem; }

/* Contact Specific */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.contact-card { padding: 48px 32px; text-align: center; }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--premium-cyan); }
.contact-card i { font-size: 3.5rem; color: var(--primary-blue); margin-bottom: 1.5rem; }
.contact-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.contact-card p, .contact-card a { color: var(--text-muted); font-size: 1.1rem; display: block; margin-bottom: 0.5rem; }
.contact-card a:hover { color: var(--primary-blue); }

/* Mega Footer */
.mega-footer { background: var(--deep-navy); color: var(--white); padding: 100px 0 30px; margin-top: auto; width: 100%; overflow: hidden; transition: background-color 0.3s ease, color 0.3s ease; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 60px; margin-bottom: 80px; }
.footer-col { display: flex; flex-direction: column; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; text-decoration: none; }
.footer-logo i { color: var(--premium-cyan); font-size: 2.6rem; }
.footer-logo .logo-title { color: var(--white); font-size: 1.4rem; font-weight: 800; line-height: 1.2; display: block; transition: color 0.3s ease; }
.footer-tagline { font-size: 1rem; color: var(--premium-cyan); margin-bottom: 24px; font-weight: 600; }
.brand-desc { color: #94A3B8; font-size: 1.05rem; line-height: 1.8; transition: color 0.3s ease; }
.footer-heading { font-size: 1.3rem; color: var(--white); margin-bottom: 30px; position: relative; padding-bottom: 16px; transition: color 0.3s ease; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 4px; background: var(--primary-blue); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: #94A3B8; transition: var(--transition); font-size: 1.05rem; font-weight: 500; }
.footer-links a:hover { color: var(--premium-cyan); padding-left: 8px; }
.disclaimer-box { background: rgba(255,255,255,0.03); padding: 24px; border-radius: 12px; border-left: 4px solid var(--premium-cyan); font-size: 0.95rem; color: #CBD5E1; line-height: 1.7; transition: all 0.3s ease; }
.disclaimer-box a { color: var(--premium-cyan); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: #94A3B8; font-size: 1rem; transition: border-color 0.3s ease, color 0.3s ease; }

/* Invert Footer for Dark Mode */
body.dark-theme .mega-footer { background: #FFFFFF; color: var(--deep-navy); box-shadow: 0 -4px 20px rgba(0,0,0,0.05); }
body.dark-theme .mega-footer .logo-title, body.dark-theme .mega-footer .footer-heading { color: var(--deep-navy); }
body.dark-theme .mega-footer .brand-desc, body.dark-theme .mega-footer .footer-links a { color: #475569; }
body.dark-theme .mega-footer .footer-links a:hover { color: var(--primary-blue); }
body.dark-theme .mega-footer .footer-bottom { border-top-color: #E2E8F0; color: #64748B; }
body.dark-theme .disclaimer-box { background: rgba(15, 23, 42, 0.03); color: #475569; border-left-color: var(--primary-blue); }

/* Floating WhatsApp */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25D366; color: white; width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; box-shadow: var(--shadow-lg); z-index: 1000; animation: pulse 2s infinite; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); background-color: #128C7E; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); }
.modal-content { position: relative; width: 95%; max-width: 1100px; background: black; border-radius: 16px; overflow: hidden; z-index: 2001; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.close-modal { position: absolute; top: -60px; right: 0; background: transparent; border: none; color: white; font-size: 3rem; cursor: pointer; transition: var(--transition); }
.close-modal:hover { color: var(--premium-cyan); transform: scale(1.1); }

/* Responsive Media Queries (Mobile Audit Fixes) */
@media (max-width: 992px) {
    /* Header & Mobile Menu */
    .mobile-menu-btn { display: block; }
    .logo-area { width: 100%; justify-content: space-between; }
    
    .nav-links { 
        position: fixed;
        top: 80px; 
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        gap: 30px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    body.dark-theme .nav-links { background: rgba(15, 23, 42, 0.98); }
    
    .nav-links.active { left: 0; }
    
    .nav-link { font-size: 1.3rem; padding: 15px 20px; width: 100%; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.05); }
    body.dark-theme .nav-link { border-bottom-color: rgba(255,255,255,0.05); }
    .nav-link:last-child { border-bottom: none; }
    
    .hero-title { font-size: 3.2rem; }
    .page-title { font-size: 2.8rem; }
    .section-title { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 2.5rem; letter-spacing: -0.02em; }
    .hero-subtitle { font-size: 1.15rem; padding: 0 10px; }
    .hero { padding: 80px 0 60px; }
    
    .section-title { font-size: 2.2rem; }
    .course-detail-title { font-size: 2.2rem; line-height: 1.3; }
    
    /* Card content padding fix for very small screens */
    .feature-card { padding: 32px 20px; }
    .card-content { padding: 30px 20px; }
    
    .modal-content { margin-top: 50px; width: 100%; border-radius: 0; }
    .close-modal { top: -50px; right: 10px; font-size: 2.5rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .page-title { font-size: 2.2rem; }
    .internal-page-header { padding: 80px 0; }
    .content-box { padding: 24px 20px; font-size: 1.05rem; }
    
    .grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    /* Extreme Mobile Safety Net (320px - 430px) */
    .hero-title { font-size: 2.1rem; }
    .page-title { font-size: 2rem; }
    .section-title { font-size: 1.9rem; }
    .logo-title { font-size: 1.1rem; }
    .btn { padding: 12px 24px; font-size: 1rem; width: 100%; } /* Full width buttons */
    .feature-card p { font-size: 0.95rem; }
}

/* Progress Bar */
.progress-container { margin-top: 20px; background: rgba(0,0,0,0.03); border-radius: 12px; padding: 20px; text-align: left; border: 1px solid var(--border-color); }
body.dark-theme .progress-container { background: rgba(255,255,255,0.03); }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 600; font-size: 0.95rem; }
.progress-title { color: var(--heading-color); }
.progress-percentage { color: var(--primary-blue); font-weight: 700; }
.progress-track { height: 10px; background: var(--border-color); border-radius: 20px; overflow: hidden; position: relative; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-blue) 0%, var(--premium-cyan) 100%); width: 0%; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 20px; }

/* Certificate Modal & UI */
.cert-modal-content { max-width: 900px; background: var(--white); padding: 40px; text-align: center; }
.cert-form-step { max-width: 500px; margin: 0 auto; }
.cert-input { width: 100%; padding: 15px 20px; font-size: 1.1rem; border: 2px solid var(--border-color); border-radius: 10px; background: var(--light-bg); color: var(--heading-color); outline: none; transition: var(--transition); }
.cert-input:focus { border-color: var(--primary-blue); }

.cert-preview-wrapper { position: relative; width: 100%; padding-bottom: 70.7%; /* A4 Landscape Aspect Ratio ~ 1.414 */ overflow: hidden; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid var(--border-color); }
.certificate-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cert-content { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Certificate Typography Overlay - Modify these based on the actual Canva design */
.cert-student-name { font-size: 3.5rem; font-weight: 800; color: #111; font-family: 'Georgia', serif; font-style: italic; position: absolute; top: 45%; text-align: center; width: 100%; }
.cert-course-name { font-size: 1.8rem; font-weight: 700; color: #333; position: absolute; top: 62%; text-align: center; width: 100%; letter-spacing: 2px; }
.cert-date { font-size: 1.2rem; font-weight: 600; color: #555; position: absolute; bottom: 15%; right: 15%; }

@media (max-width: 768px) {
    .cert-student-name { font-size: 2rem; top: 40%; }
    .cert-course-name { font-size: 1rem; top: 60%; }
    .cert-date { font-size: 0.8rem; bottom: 10%; right: 10%; }
}

/* Print Styles */
@media print {
    body * { visibility: hidden; }
    #cert-modal, #cert-modal *, .cert-view-step, .cert-preview-wrapper, .certificate-canvas, .certificate-canvas * { visibility: visible !important; }
    #cert-modal { position: absolute; left: 0; top: 0; margin: 0; padding: 0; display: block; background: transparent; width: 100vw; height: 100vh; }
    .cert-preview-wrapper { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; border: none; box-shadow: none; padding-bottom: 0; }
    .cert-bg { object-fit: cover; }
    .close-cert, #download-cert-btn, p { display: none !important; }
    
    /* Ensure colors print exactly as seen */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    
    @page { size: landscape; margin: 0; }
}
