/* CineCorso Educational Platform CSS */
:root {
    --primary: #f59e0b;      /* Educational Amber/Orange */
    --primary-hover: #d97706;
    --secondary: #1e293b;    /* Slate dark */
    --secondary-hover: #334155;
    --bg-light: #f8fafc;     /* Very light gray background */
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #cbd5e1;
    --success: #10b981;
    --font-stack: 'Montserrat', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-stack); background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { color: var(--secondary); font-weight: 700; line-height: 1.25; }
p { color: var(--text-muted); }
a { color: var(--primary-hover); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary); }
.text-center { text-align: center; }
.margin-top-lg { margin-top: 40px; }
.hidden { display: none !important; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease; text-align: center; text-transform: uppercase; letter-spacing: 0.5px;}
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: white; border-color: var(--secondary); color: var(--secondary); }
.btn-secondary:hover { background-color: var(--secondary); color: white; }
.btn-outline { background-color: transparent; border-color: var(--border-color); color: var(--text-dark); }
.btn-outline:hover { background-color: #e2e8f0; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { display: block; width: 100%; }

/* Header */
.site-header { background-color: var(--bg-white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--secondary); letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-list { display: flex; list-style: none; gap: 30px; }
.nav-list a { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.nav-list a:hover { color: var(--primary); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--secondary); transition: all 0.3s ease; }

/* Hero */
.hero-section { padding: 90px 0; background-color: var(--bg-white); border-bottom: 1px solid var(--border-color);}
.hero-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.badge-accent { display: inline-block; background-color: #fef3c7; color: #b45309; padding: 6px 12px; font-size: 0.8rem; font-weight: 700; border-radius: 4px; margin-bottom: 16px; text-transform: uppercase; }
.hero-text h1 { font-size: 3.2rem; margin-bottom: 20px; }
.hero-text p { font-size: 1.1rem; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; }
.hero-image img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }

/* Features */
.home-features { padding: 100px 0; background-color: var(--bg-light); }
.section-header { max-width: 650px; margin: 0 auto 50px auto; }
.section-header h2 { font-size: 2.3rem; margin-bottom: 12px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { padding: 40px 30px; background-color: var(--bg-white); border-radius: var(--radius-md); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.feature-icon-wrapper { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; margin-bottom: 20px; background-color: #fef3c7; display: flex; align-items: center; justify-content: center; }
.feature-icon-wrapper img { width: 50%; height: 50%; object-fit: contain; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }

/* Interactive Demo */
.interactive-demo { padding: 100px 0; background-color: var(--secondary); color: white; }
.interactive-demo h2, .interactive-demo p, .interactive-demo label { color: white; }
.interactive-demo p { opacity: 0.85; }
.demo-container-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.demo-status-box { margin-top: 30px; padding: 16px; background-color: rgba(255,255,255,0.05); border-radius: var(--radius-sm); border-left: 4px solid var(--primary); }
.status-idle { color: #94a3b8; }
.status-active { color: var(--primary); font-weight: 700; }
.demo-player-box { background-color: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5); }
.player-header { background-color: #e2e8f0; padding: 10px 16px; display: flex; align-items: center; gap: 6px; }
.player-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background-color: #94a3b8;}
.player-title { color: #475569; font-size: 0.8rem; margin-left: auto; font-weight: 600; }
.player-screen { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; background-color: #cbd5e1;}
.player-screen img { width: 100%; height: 100%; object-fit: cover; }
.player-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(30, 41, 59, 0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; gap: 16px; font-weight: 600;}
.spinner { width: 45px; height: 45px; border: 4px solid rgba(255,255,255,0.2); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-alert { position: absolute; background-color: var(--bg-white); padding: 20px; border-radius: var(--radius-sm); width: 80%; text-align: center; box-shadow: var(--shadow-lg); border: 2px solid var(--success); color: var(--text-dark);}
.demo-alert h4 { color: var(--success); margin-bottom: 4px; }
.demo-alert p { color: var(--text-muted); opacity: 1; }
.player-controls { padding: 24px; background-color: var(--bg-white); border-top: 1px solid var(--border-color); }
.progress-container { margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.progress-container label { color: var(--text-dark); font-weight: 600; }
.progress-bar-bg { width: 100%; height: 8px; background-color: #e2e8f0; border-radius: 10px; margin-top: 8px; overflow: hidden; }
.progress-bar-fill { width: 0%; height: 100%; background-color: var(--primary); transition: width 0.1s linear; }

/* Rewards/Courses Preview */
.rewards-preview-sec { padding: 100px 0; background-color: var(--bg-white); }
.rewards-grid-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.reward-mini-card { padding: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); overflow: hidden; }
.reward-mini-card img { width: 100%; height: 150px; object-fit: cover; }
.reward-mini-card h3 { font-size: 1.1rem; margin: 16px 16px 8px 16px; }
.reward-mini-card p { font-size: 0.85rem; margin: 0 16px 20px 16px; }

/* Inner Pages Titles */
.page-title-section { padding: 70px 0; background-color: var(--bg-light); text-align: center; border-bottom: 1px solid var(--border-color); }
.page-title-section h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-title-section p { font-size: 1.1rem; }

/* Content Rich / Legal Layout */
.content-rich-layout, .legal-narrow-container, .faq-narrow-container { max-width: 800px; margin: 60px auto; padding: 0 24px; }
.guide-block, .trust-point { margin-bottom: 40px; }
.guide-block h2, .trust-point h2 { font-size: 1.5rem; margin-bottom: 12px; color: var(--secondary); border-left: 4px solid var(--primary); padding-left: 12px;}
.legal-text-section h2 { font-size: 1.4rem; margin: 40px 0 16px 0; }
.legal-text-section p { margin-bottom: 16px; text-align: justify; }

/* Catalog (Courses) */
.catalog-section { padding: 80px 0; background-color: var(--bg-white); }
.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.catalog-item { display: flex; gap: 20px; padding: 20px; background-color: var(--bg-light); border-radius: var(--radius-md); border: 1px solid var(--border-color); align-items: flex-start; }
.catalog-item img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
.item-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; color: #b45309; background-color: #fef3c7; padding: 4px 10px; border-radius: 4px; margin-bottom: 8px; text-transform: uppercase; }
.catalog-item-info h3 { font-size: 1.2rem; margin-bottom: 6px; }

/* FAQ Accordion */
.faq-accordion-section { padding: 40px 0; background-color: var(--bg-white); }
.faq-item { border-bottom: 1px solid var(--border-color); padding: 12px 0; }
.faq-question { width: 100%; text-align: left; background: none; border: none; font-size: 1.1rem; font-weight: 600; color: var(--secondary); padding: 12px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-stack); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: 400;}
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 8px 0 16px 0; }

/* Contact Form */
.contact-section-layout { padding: 80px 0; background-color: var(--bg-light); }
.contact-grid-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.contact-form-wrapper { background-color: var(--bg-white); padding: 40px; border-radius: var(--radius-md); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.contact-form-wrapper h2 { margin-bottom: 24px; }
.modern-form .form-group { margin-bottom: 20px; }
.modern-form label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.modern-form input, .modern-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: var(--font-stack); font-size: 0.95rem; }
.modern-form input:focus, .modern-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input { margin-top: 5px; }
.error-msg { color: #ef4444; font-size: 0.8rem; margin-top: 6px; display: none; font-weight: 500;}
.contact-success { background-color: #ecfdf5; border: 1px solid #a7f3d0; padding: 24px; border-radius: var(--radius-sm); text-align: center; }
.contact-success h3 { color: var(--success); margin-bottom: 8px; }

.sidebar-card { background-color: var(--secondary); color: white; padding: 30px; border-radius: var(--radius-md); margin-bottom: 20px; }
.sidebar-card h3 { margin-bottom: 16px; font-size: 1.2rem; color: white; }
.corp-details-list { list-style: none; }
.corp-details-list li { margin-bottom: 12px; font-size: 0.95rem; color: #cbd5e1;}
.highlight-card { background-color: var(--primary); color: white; }
.highlight-card h3, .highlight-card p { color: white; }

/* Footer */
.site-footer { background-color: var(--secondary); color: white; padding: 70px 0 30px 0; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; display: inline-block; color: white; }
.footer-desc { color: #94a3b8; font-size: 0.9rem;}
.site-footer h4 { margin-bottom: 20px; font-size: 1.1rem; color: white; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #94a3b8; font-size: 0.9rem; }
.site-footer a:hover { color: white; }
.footer-disclaimer { border-top: 1px solid #334155; padding-top: 24px; font-size: 0.8rem; }
.footer-disclaimer p { color: #64748b; margin-bottom: 10px; line-height: 1.5;}
.copyright { margin-top: 16px; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; max-width: 400px; background-color: var(--bg-white); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); border-radius: var(--radius-md); padding: 24px; z-index: 2000; border-left: 4px solid var(--primary);}
.cookie-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cookie-content p { font-size: 0.85rem; margin-bottom: 16px; }
.cookie-buttons { display: flex; gap: 10px; }

/* Media Queries */
@media (max-width: 992px) {
    .hero-container, .demo-container-grid, .contact-grid-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-text { text-align: center; }
    .hero-buttons { justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .rewards-grid-four, .catalog-grid { grid-template-columns: 1fr 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 76px; left: 0; width: 100%; background-color: var(--bg-white); border-bottom: 1px solid var(--border-color); padding: 24px; box-shadow: var(--shadow-md); }
    .main-nav.active { display: block; }
    .nav-list { flex-direction: column; gap: 16px; text-align: center; }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .hero-text h1 { font-size: 2.5rem; }
    .rewards-grid-four, .catalog-grid { grid-template-columns: 1fr; }
    .cookie-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .catalog-item { flex-direction: column; text-align: center; align-items: center; }
}
