@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
:root {
    --primary: #0A7BC2; /* Medical Blue */
    --primary-dark: #0056b3;
    --secondary: #D4AF37; /* Gold */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-bg: #f9fafb;
    --max-width: 1200px;
    --testi-teal: #4dbca3;
    --testi-red: #e94e64;
    --testi-dark: #222222;
    --testi-gray: #777777;
    --testi-bg-gradient: linear-gradient(135deg, #5877ab 0%, #c75375 100%);
    --card-radius: 20px;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --cpr-primary-color: #2CA861; /* Green from the design */
    --cpr-text-dark: #1A1A1A;
    --cpr-text-gray: #666666;
    --cpr-text-light-gray: #999999;
    --cpr-bg-light: #F8F9FA;
    --cpr-white: #FFFFFF;
    --cpr-border-color: #EEEEEE;
    --primary-green: #0056b3;
    --light-green: #57b473;
    --dark-green: #2a633c;
    --bg-gradient: linear-gradient(135deg, var(--light-green) 0%, var(--primary-green) 100%);
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --section-spacing: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body { color: var(--text-dark); background-color: var(--white); line-height: 1.6; }

/* Utilities */
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }

/* Header */
header { padding: 20px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; background: white; z-index: 1000; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-dark); }
.nav-links a:hover { color: var(--primary); }

/* Hero Section (Reference Style) */
/* =========================================
   HERO SECTION (Dark Modern Theme)
   ========================================= */
/* =========================================
   HERO SECTION (Background Image Style)
   ========================================= */

/* =========================================
   HERO SECTION (Background Image Style)
   ========================================= */

.hero-section {
    position: relative;
    background-color: #051e34; /* Deep Navy fallback */
    color: white;
    overflow: hidden; 
    padding: 140px 0 100px; /* Space for header */
    min-height: 700px;
    display: flex;
    align-items: center;

    /* BACKGROUND IMAGE SETUP */
    background-image: url('../assets/hero-bg.jpg'); 
    background-size: cover;
    background-position: center top; /* Focus on face */
    background-repeat: no-repeat;
}

/* Dark Overlay to make text readable */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 30, 52, 0.85); /* 85% opacity dark blue */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2; /* Sits above overlay */
    width: 100%;
}

.hero-content {
    max-width: 650px;
}

/* Badge */
.badge-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* Typography */
.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.text-highlight {
    color: #4db6ac; /* Vibrant Teal */
    position: relative;
}

.hero-content p {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 550px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    background: transparent;
    transition: 0.3s;
}
.btn-outline-light:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* Trust Row */
.trust-row {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 25px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #ddd;
    font-weight: 500;
}
.text-gold { color: #ffc107; }

/* Abstract Blobs (Behind Text, Above Overlay) */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1; /* Same layer as overlay, essentially blending */
    opacity: 0.4;
    pointer-events: none;
}
.blob-1 {
    width: 400px; height: 400px;
    background: #0A7BC2;
    top: -100px; right: -50px;
}
.blob-2 {
    width: 300px; height: 300px;
    background: #ffc107;
    bottom: -50px; left: -50px;
}
.blob-3 {
    width: 250px; height: 250px;
    background: #4db6ac;
    top: 20%; left: 50%;
}

/* Floating Card Overlay */
.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: white;
    color: #333;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.icon-circle {
    width: 40px; height: 40px;
    background: #e3f2fd;
    color: #0A7BC2;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

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

/* Trust Bar */
.trust-bar { padding: 30px 0; border-bottom: 1px solid #eee; }
.trust-logos { display: flex; justify-content: space-around; opacity: 0.6; filter: grayscale(100%); }
.trust-logos span { font-weight: bold; font-size: 1.2rem; }

/* Content Grids (Alternating Layouts) */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; padding: 80px 0; }
.feature-text h2 { font-size: 2.25rem; margin-bottom: 20px; }
.feature-text p { margin-bottom: 15px; color: var(--text-light); }
.feature-img img { width: 100%; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* Instructor Section (Blue Wave Style) */
.instructor-section { 
    background: var(--primary); 
    color: white; 
    padding: 100px 0; 
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0% 100%);
    margin-top: -40px;
}
.instructor-grid { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; }
.instructor-img { border-radius: 50%; border: 5px solid rgba(255,255,255,0.2); width: 100%; }
.instructor-text h2 { font-size: 2.5rem; margin-bottom: 15px; }
.instructor-text a { color: var(--secondary); text-decoration: underline; }

/* Video Section */
.video-placeholder { width: 100%; aspect-ratio: 16/9; background: #ddd; border-radius: 10px; display: flex; align-items: center; justify-content: center; position: relative; }
.play-btn { width: 60px; height: 60px; background: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; }

/* Forms */
.auth-box { max-width: 400px; margin: 60px auto; padding: 30px; border: 1px solid #eee; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }

/* Dashboard & Certificate */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.card { padding: 25px; border-radius: 10px; background: white; border: 1px solid #eee; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
#cert-preview { width: 800px; height: 600px; padding: 40px; border: 15px solid var(--secondary); background: white; text-align: center; margin: 0 auto; display: none; }

/* Footer */
footer { background: #111827; color: white; padding: 60px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; color: #9ca3af; font-size: 0.9rem; cursor: pointer; }
/* --- Animation Classes --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Icon (Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- Main Section Layout --- */
#testimonials-section {
    background: var(--testi-bg-gradient);
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height for demo */
}

.testimonials-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
    position: relative;
}

/* --- Quote Card Styling --- */
.testimonial-quote-card {
    background-color: #ffffff;
    padding: 60px 50px;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    flex: 0 1 550px; /* Base width */
    z-index: 10; /* Ensures it sits ON TOP of the video */
    position: relative;
}

.quote-icon {
    color: var(--testi-red);
    font-size: 40px;
    margin-bottom: 25px;
    display: block;
}

.testimonial-content {
    color: var(--testi-teal);
    font-size: 1.5rem; /* Large readable text */
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 30px;
}

.testimonial-author h4 {
    color: var(--testi-dark);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--testi-gray);
    margin: 0;
    font-size: 0.95rem;
}

/* --- Video Card Styling --- */
.testimonial-video-card {
    flex: 0 1 550px;
    position: relative;
    margin-left: -80px; /* THE MAGIC: Pulls video behind quote card */
    z-index: 5; /* Sits behind quote card */
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-video-card:hover {
    transform: scale(1.02);
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
}

/* Play Button */
.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(233, 78, 100, 0.25);
    border: 3px solid var(--testi-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-video-card:hover .play-button-wrapper {
    background-color: rgba(233, 78, 100, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-wrapper i {
    color: white;
    font-size: 24px;
    margin-left: 4px; /* Optical adjustment */
}

/* Timestamp Overlay */
.video-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.video-timestamp {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Section Styling */
#cpr-main-course {
    padding: 60px 0;
    background-color: var(--cpr-bg-light);
}

.cpr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
.cpr-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.cpr-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--cpr-text-dark);
    margin: 0;
}

.cpr-btn-all-courses {
    background-color: var(--cpr-primary-color);
    color: var(--cpr-white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cpr-btn-all-courses:hover {
    background-color: #238a4e;
}

/* Grid Styling */
.cpr-course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Card Styling */
.cpr-course-card {
    background-color: var(--cpr-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--cpr-border-color);
    display: flex;
    flex-direction: column;
}

.cpr-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cpr-card-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.cpr-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpr-price-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--cpr-primary-color);
    color: var(--cpr-white);
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.cpr-btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--cpr-text-gray);
    transition: all 0.3s ease;
}

.cpr-btn-favorite:hover {
    background: var(--cpr-white);
    color: #e74c3c;
}
.cpr-btn-favorite.active {
    color: #e74c3c;
}

.cpr-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cpr-course-category {
    font-size: 13px;
    color: var(--cpr-text-light-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 500;
}

.cpr-course-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--cpr-text-dark);
    margin: 0 0 15px 0;
    line-height: 1.4;
    flex-grow: 1; /* Ensures titles align even if different lengths */
}

.cpr-course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.cpr-rating-score {
    font-size: 14px;
    color: var(--cpr-text-gray);
    margin-right: 8px;
    font-weight: 600;
}

.cpr-stars {
    color: #FFC107; /* Amber color for stars */
    font-size: 14px;
}

.cpr-course-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.cpr-course-features li {
    font-size: 13px;
    color: var(--cpr-text-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.cpr-course-features li i {
    margin-right: 10px;
    color: var(--cpr-primary-color);
    width: 16px;
    text-align: center;
}

.cpr-btn-enroll {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--cpr-primary-color);
    color: var(--cpr-white);
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cpr-btn-enroll:hover {
    background-color: #238a4e;
}

/* --- Authentication Pages --- */

.auth-bg {
    background: linear-gradient(135deg, #f0f4f8 0%, #e1e9f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    padding: 20px;
}

.auth-card {
    background: white;
    max-width: 450px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(10, 123, 194, 0.1); /* Subtle blue shadow */
    border-top: 5px solid var(--primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Form Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-field {
    position: relative;
}

.input-field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.input-field input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Space for icon */
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: 0.3s;
}

.input-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 123, 194, 0.1);
    outline: none;
}

/* Button & Footer */
.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Animation */
.fade-in-section {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .auth-card {
        padding: 25px;
    }
}

/* --- Dashboard Specific Styles --- */

/* Header User Section */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Welcome Banner */
.welcome-banner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--primary);
}
.date-badge {
    background: #f0f4f8;
    padding: 10px 20px;
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.dash-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}
.dash-card:hover {
    transform: translateY(-5px);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 200px;
    width: 200px;
    margin: 20px auto;
}
.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

/* Status Items (Row Layout) */
.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: background 0.2s;
}
.status-item:hover {
    background: #fafafa;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.icon-box.blue { background: rgba(10, 123, 194, 0.1); color: var(--primary); }
.icon-box.gold { background: rgba(212, 175, 55, 0.1); color: var(--secondary); }

.status-info { flex: 1; }
.status-info h4 { font-size: 1rem; margin-bottom: 2px; }
.status-info p { font-size: 0.85rem; color: var(--text-light); }

/* Info Box */
.info-box {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    color: #0d47a1;
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    align-items: start;
}

/* Stat List */
.stat-list {
    list-style: none;
    margin-top: 20px;
}
.stat-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.stat-list li:last-child { border-bottom: none; }
.badge {
    background: #d1fae5;
    color: #065f46;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.text-muted { color: #999; }

/* Mobile Response */
@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .user-menu span { display: none; } /* Hide name on tiny screens */
}

/* --- Course Grid (courses.html) --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}
.course-card:hover { transform: translateY(-5px); }

.course-img { position: relative; height: 180px; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-pop {
    position: absolute; top: 10px; right: 10px;
    background: var(--secondary); color: white;
    padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold;
}
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.5rem; z-index: 2;
}

.course-body { padding: 20px; }
.course-meta { display: flex; gap: 15px; font-size: 0.85rem; color: #999; margin-bottom: 10px; }
.course-body h3 { margin-bottom: 10px; color: var(--text-dark); }
.course-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; min-height: 60px; }

.course-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f0f0f0; padding-top: 15px;
}
.price { font-weight: bold; color: var(--primary); }

/* --- Classroom Layout (lesson.html) --- */
.lesson-layout { display: flex; height: 100vh; background: #fff; }

/* Sidebar */
.lesson-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex; flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 900;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid #e9ecef; }
.progress-bar-container {
    height: 6px; background: #e9ecef; border-radius: 3px; margin: 10px 0 5px; overflow: hidden;
}
.progress-fill { height: 100%; background: var(--secondary); transition: width 0.3s; }

.module-list { flex: 1; overflow-y: auto; }
.mod-item {
    padding: 15px 20px; border-bottom: 1px solid #f1f1f1; cursor: pointer;
    display: flex; align-items: center; gap: 10px; transition: 0.2s;
}
.mod-item:hover { background: #e9ecef; }
.mod-item.active { background: #e0f2fe; border-left: 4px solid var(--primary); }
.mod-item.done .status-icon { color: green; border-color: green; background: #d1fae5; }

.status-icon {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ccc;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: bold; color: #666;
}

.sidebar-footer { padding: 20px; border-top: 1px solid #e9ecef; }

/* Main Content */
.lesson-content { flex: 1; overflow-y: auto; background: white; padding: 40px; }
.content-wrapper { max-width: 800px; margin: 0 auto; }

.video-container {
    margin: 20px 0; background: #000; border-radius: 8px; overflow: hidden;
    position: relative; aspect-ratio: 16/9;
}
.video-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: white; background: #222;
}
.play-icon { font-size: 3rem; margin-bottom: 10px; opacity: 0.8; }

.quiz-box {
    background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px;
    padding: 25px; margin: 40px 0;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.quiz-opt-btn {
    padding: 12px; border: 1px solid #ccc; background: white; border-radius: 6px;
    text-align: left; cursor: pointer; transition: 0.2s;
}
.quiz-opt-btn:hover { border-color: var(--primary); background: #f0f9ff; }

.feedback-msg { margin-top: 15px; font-weight: bold; }
.feedback-msg.success { color: green; }
.feedback-msg.error { color: #d32f2f; }

.lesson-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-bottom: 40px; }

/* Mobile Classroom */
.mobile-lesson-header {
    display: none; background: var(--primary); color: white;
    padding: 15px; align-items: center; justify-content: space-between;
}

@media (max-width: 768px) {
    .lesson-layout { flex-direction: column; }
    .lesson-sidebar {
        position: fixed; top: 50px; left: -300px; width: 280px; height: calc(100% - 50px);
        transition: left 0.3s ease; box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    .lesson-sidebar.active { left: 0; }
    .mobile-lesson-header { display: flex; height: 50px; }
    .lesson-content { padding: 20px; height: calc(100vh - 50px); }
}

/* =========================================
   NEW CLASSROOM THEME (ProTrainings Style)
   ========================================= */

/* Body Reset for Classroom */
.classroom-body {
    background-color: #f0f2f5;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Header fixed, content scrolls */
}

/* 1. Top Header Bar */
.classroom-header {
    background-color: #003366; /* Deep Navy Blue */
    color: white;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    flex-shrink: 0;
}

.header-left { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.1rem; }
.logo-icon { background: white; color: #003366; width: 30px; height: 30px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }

.header-right { display: flex; gap: 20px; }
.header-link { color: white; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; opacity: 0.9; transition: 0.2s; }
.header-link:hover { opacity: 1; text-decoration: underline; }

/* 2. Layout Container */
.classroom-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}
/* Sidebar List Items (ProTrainings Style) */
.sidebar-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.side-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    justify-content: space-between; /* Space between title and time */
    align-items: center;
    background: #f9f9f9;
    transition: background 0.2s;
}

.side-item:hover {
    background: #eef2f6;
}

.side-item.active {
    background: #ffffff;
    border-left: 5px solid #0A7BC2; /* Blue Active Strip */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.side-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-icon {
    color: #999;
    font-size: 0.9rem;
    width: 20px;
    display: flex;
    justify-content: center;
}

.side-item.active .side-icon {
    color: #0A7BC2; /* Active Blue Icon */
}

.side-item.completed .side-icon {
    color: #28a745; /* Green Check */
}

.side-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.side-time {
    font-size: 0.75rem;
    color: #888;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Lesson Text Content Area */
.text-content {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.text-content h3 {
    font-size: 1.2rem;
    color: #003366;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.text-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.text-content li {
    margin-bottom: 8px;
}
/* 4. Main Content Area */
.course-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f0f2f5;
}

.breadcrumbs { color: #6c757d; font-size: 0.85rem; margin-bottom: 10px; }

.lesson-paper {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#lesson-title { font-size: 1.8rem; color: #333; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }

/* Video */
.video-stage { margin-bottom: 25px; }
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}
.video-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.play-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: white; text-align: center;
}
.play-overlay i { font-size: 4rem; margin-bottom: 10px; drop-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* Next Button (Red/Orange style from screenshot) */
.action-bar { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.btn-next-red {
    background: #d9534f; /* Reddish Orange */
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-next-red:hover { background: #c9302c; }
.btn-next-red:disabled { background: #e0e0e0; color: #999; cursor: not-allowed; }
.next-hint { font-size: 0.85rem; color: #888; margin-top: 5px; font-style: italic; }

/* Text Content */
.transcript-section h3 { font-size: 1.1rem; color: #555; margin-bottom: 15px; }
.text-content { line-height: 1.7; color: #333; font-size: 1rem; }
.text-content ul { padding-left: 20px; margin: 15px 0; }
.text-content li { margin-bottom: 8px; }

/* Warning Box Style (from screenshot) */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 0.95rem;
}

/* =========================================
   QUIZ UI (The Blocky Layout)
   ========================================= */
.quiz-interface {
    margin-top: 40px;
    background: #333; /* Dark background for the question area container */
    padding: 5px;
    border-radius: 4px;
}

.quiz-header-bar {
    background: #e0f2fe; /* Light blue info strip */
    padding: 10px;
    color: #0c5460;
    font-size: 0.9rem;
    border-radius: 2px 2px 0 0;
    margin-bottom: 5px;
}

.quiz-question-box {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
}
.quiz-question-box h3 { font-size: 1.1rem; font-weight: 500; }

.quiz-options-grid {
    background: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* The Option Row */
.quiz-opt-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.quiz-opt-row:hover { border-color: #0A7BC2; background: #f8fbff; }

/* The Letter Box (A, B, C, D) */
.letter-box {
    background: #0A7BC2;
    color: white;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}
.quiz-opt-text {
    padding: 15px;
    font-size: 1rem;
    color: #333;
    flex: 1;
}

/* Correct/Wrong States */
.quiz-opt-row.correct .letter-box { background: #28a745; }
.quiz-opt-row.correct { border-color: #28a745; background: #d4edda; }

.quiz-opt-row.wrong .letter-box { background: #dc3545; }
.quiz-opt-row.wrong { border-color: #dc3545; background: #f8d7da; }

.quiz-feedback {
    background: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .classroom-container { flex-direction: column; overflow-y: auto; }
    .course-sidebar { width: 100%; height: auto; max-height: 200px; order: 2; }
    .course-content { order: 1; padding: 10px; }
    .lesson-paper { padding: 15px; }
    .header-right span { display: none; } /* Hide text in header on mobile */
}

/* =========================================
   CONTENT STYLING (For the Text Injected by JS)
   ========================================= */

/* The Yellow Warning Box (Critical Concepts) */
.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-left: 5px solid #ffc107; /* Thicker left border like the example */
    color: #856404;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.warning-box strong {
    color: #533f03;
}

/* Headers inside the lesson text */
.text-content h3 {
    font-size: 1.25rem;
    color: #003366; /* Navy Blue to match header */
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* Bullet Lists inside the lesson text */
.text-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.text-content li {
    margin-bottom: 10px;
    color: #333;
    padding-left: 5px;
}

/* Make "Step 1", "Step 2" bold text pop */
.text-content p strong {
    color: #0A7BC2; /* Select CPR Blue */
}

/* Typography for paragraphs */
.text-content p {
    margin-bottom: 18px;
    font-size: 1.05rem; /* Slightly larger for readability */
    color: #444;
}

/* Sidebar Styling Fix */
.sidebar-list {
    padding: 0;
    margin: 0;
    width: 100%;
}

.side-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa; /* Light grey background */
    cursor: pointer;
    transition: background 0.2s;
}

.side-item:hover {
    background: #e2e6ea;
}

.side-item.active {
    background: #ffffff;
    border-left: 5px solid #0A7BC2; /* Blue Active Strip */
}

.side-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333; /* Dark text */
}

.side-time {
    font-size: 0.75rem;
    color: #666;
    background: #e9ecef;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Ensure Text Content is Visible */
.text-content {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
}

.text-content h3 {
    color: #003366;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* --- Add to css/style.css --- */

/* Sidebar Item Locked State */
.side-item.locked {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa; /* Keep background light */
}

.side-item.locked .side-text,
.side-item.locked .side-time {
    color: #aaa; /* Grey out text */
}

.side-item.locked:hover {
    background: #f8f9fa; /* No hover effect for locked items */
}

.side-item.locked .side-icon {
    color: #ccc; /* Grey out icon */
}

/* =========================================
   EXAM UI (Bubble & Pill Style)
   ========================================= */

.exam-body {
    background-color: #f0f2f5;
    min-height: 100vh;
}

.exam-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.badge-test {
    background: #0A7BC2;
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.exam-controls { display: flex; gap: 20px; align-items: center; }
.timer { font-weight: bold; color: #555; font-family: monospace; font-size: 1.1rem; }
.btn-exit { border: none; background: none; color: #d9534f; cursor: pointer; font-weight: 600; }

.exam-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* Progress Bar */
.progress-section { margin-bottom: 40px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.9rem; color: #666; margin-bottom: 8px; }
.progress-track { height: 10px; background: #e0e0e0; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: #0A7BC2; transition: width 0.3s; }

/* Question Bubble */
.question-wrapper { margin-bottom: 40px; text-align: center; }
.question-bubble {
    background: white;
    border: 2px solid #0A7BC2;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: inline-block;
    min-width: 60%;
}
.question-bubble h2 { font-size: 1.3rem; color: #333; margin: 0; }
/* Triangle pointer at bottom */
.question-bubble::after {
    content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    border-width: 12px 12px 0; border-style: solid; border-color: #0A7BC2 transparent transparent transparent;
}
.question-bubble::before {
    content: ''; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
    border-width: 12px 12px 0; border-style: solid; border-color: white transparent transparent transparent;
    z-index: 1;
}

/* Options Grid (Pill Shape) */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.option-pill {
    background: white;
    border: 2px solid #ddd;
    border-radius: 50px; /* Pill shape */
    padding: 15px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}
.option-pill:hover { border-color: #0A7BC2; background: #f8fbff; transform: translateY(-2px); }
.option-pill.selected {
    border-color: #0A7BC2;
    background: #0A7BC2;
    color: white;
    box-shadow: 0 5px 15px rgba(10, 123, 194, 0.3);
}

.opt-letter {
    width: 30px; height: 30px;
    background: #eee; color: #555;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; margin-right: 15px;
}
.option-pill.selected .opt-letter { background: white; color: #0A7BC2; }
.opt-text { font-weight: 500; font-size: 1rem; }

/* Navigation */
.exam-footer {
    display: flex; justify-content: space-between; border-top: 1px solid #ddd; padding-top: 20px;
}
.btn-finish { background: #28a745; color: white; border: none; }
.btn-finish:hover { background: #218838; }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* Hidden */
    align-items: center; justify-content: center;
    z-index: 2000;
}
.modal-card {
    background: white; padding: 40px; border-radius: 10px; text-align: center;
    width: 90%; max-width: 400px;
    animation: popUp 0.3s ease-out;
}
.modal-icon { font-size: 3rem; margin-bottom: 15px; }
.modal-icon.success { color: #28a745; }
.modal-icon.fail { color: #dc3545; }

.score-circle {
    width: 100px; height: 100px; border-radius: 50%;
    background: #f8f9fa; border: 5px solid #0A7BC2;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: bold; color: #0A7BC2;
    margin: 20px auto;
}

@keyframes popUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .options-grid { grid-template-columns: 1fr; }
    .question-bubble { min-width: 90%; }
}

/* =========================================
   REVIEW SECTION STYLES
   ========================================= */

.review-section {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s;
}

.review-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.review-card.correct { border-left: 5px solid #28a745; }
.review-card.wrong { border-left: 5px solid #dc3545; }

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
}

.review-status { text-transform: uppercase; font-size: 0.8rem; }
.review-card.correct .review-status { color: #28a745; }
.review-card.wrong .review-status { color: #dc3545; }

.review-q {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.review-ans-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.ans-good { color: #155724; }
.ans-bad { color: #721c24; text-decoration: line-through; opacity: 0.8; }

/* =========================================
   CERTIFICATE PAGE STYLES
   ========================================= */

.cert-page-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.cert-actions {
    margin-bottom: 40px;
}
.cert-actions h1 { color: #28a745; margin-bottom: 10px; }
.cert-actions p { font-size: 1.1rem; color: #555; margin-bottom: 20px; }

/* The Certificate Paper */
.cert-wrapper {
    background: #fff;
    width: 100%;
    max-width: 1000px; /* Limits width on screen */
    margin: 0 auto;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    /* Aspect Ratio for Letter/A4 Landscape */
    aspect-ratio: 11 / 8.5; 
    color: #333;
    position: relative;
    overflow: hidden;
}

/* Fancy Border */
.cert-border {
    border: 10px solid #0A7BC2;
    height: 100%;
    padding: 5px;
    position: relative;
}
.cert-border::before {
    content: ''; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 2px solid #D4AF37; /* Gold inner border */
}

.cert-content {
    padding: 40px 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}
.cert-logo { font-size: 1.8rem; font-weight: bold; color: #0A7BC2; }
.cert-id { font-family: monospace; color: #777; font-size: 1rem; }

/* Body */
.cert-body { margin: 20px 0; }
.cert-body h2 { 
    text-transform: uppercase; letter-spacing: 2px; color: #444; font-size: 2rem; margin-bottom: 10px; 
}
.cert-subtitle { font-size: 1.2rem; font-style: italic; color: #666; margin-bottom: 20px; }

.student-name {
    font-family: 'Times New Roman', serif; /* Classic look */
    font-size: 3rem;
    color: #000;
    margin: 20px 0;
    border-bottom: 1px solid #ccc;
    display: inline-block;
    padding: 0 40px 10px;
}

.cert-text { font-size: 1.1rem; line-height: 1.5; color: #555; max-width: 80%; margin: 0 auto 20px; }
.course-title { font-size: 2.2rem; color: #0A7BC2; margin-bottom: 10px; }

/* Footer */
.cert-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}
.footer-item { text-align: center; width: 30%; }
.sign-line {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    font-size: 1.2rem;
    font-family: 'Times New Roman', serif; /* Signature look */
    margin-bottom: 5px;
}
.footer-item label { font-size: 0.85rem; text-transform: uppercase; color: #888; }

/* Badges */
.cert-badges {
    position: absolute;
    bottom: 40px;
    right: 50%;
    transform: translateX(50%);
    opacity: 0.1; /* Watermark effect */
    font-size: 8rem;
    color: #0A7BC2;
}

/* Mobile Adjustment for viewing only */
@media (max-width: 768px) {
    .cert-wrapper { 
        width: 100%; 
        height: auto; 
        aspect-ratio: auto; /* Remove fixed ratio for phone viewing */
    }
    .cert-content { padding: 20px; }
    .student-name { font-size: 1.8rem; }
    .course-title { font-size: 1.5rem; }
    .cert-footer { flex-direction: column; gap: 20px; }
    .footer-item { width: 100%; }
}

/* =========================================
   CHECKOUT PAGE STYLES
   ========================================= */

.checkout-header {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}
.secure-badge {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Grid Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
}

.checkout-card h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Summary Card */
.summary-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.item-icon {
    width: 45px;
    height: 45px;
    background: #e3f2fd;
    color: #0A7BC2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.item-details h4 { font-size: 0.95rem; margin-bottom: 4px; color: #333; }
.item-details p { font-size: 0.8rem; color: #777; margin: 0; }

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
}

.price-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    margin-top: 15px;
}

.total-amount { color: #0A7BC2; }

.divider { height: 1px; background: #eee; margin: 15px 0; }

.guarantee-box {
    background: #f8fff9;
    border: 1px solid #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 25px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Payment Card */
.payment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.payment-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: 0.2s;
}

.payment-tabs .tab.active {
    border-color: #0A7BC2;
    background: #e3f2fd;
    color: #0A7BC2;
    font-weight: 600;
}

.input-icon-wrap { position: relative; }
.card-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #f79e1b;
}

.secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
}

/* =================================================================
   URGENT RESPONSIVENESS FIXES (Paste at the bottom of style.css)
   ================================================================= */

/* --- 1. FIX MOBILE TOGGLE VISIBILITY --- */
.menu-toggle {
    position: relative;
    z-index: 2001 !important; /* Critical: Must be higher than header (1000) and menu */
    color: #0A7BC2 !important; /* Force the Blue color so it is visible on white */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Make the Close (X) Icon Red and Rotate it */
.menu-toggle i.fa-times {
    color: #dc3545 !important;
    transform: rotate(90deg);
}

/* --- 2. FIX DESKTOP NAVBAR ALIGNMENT --- */
/* This separates the text links from the buttons on Desktop */
/* Add to your css/style.css */

.auth-buttons {
    display: flex;
    gap: 15px; /* Creates space between buttons automatically */
    align-items: center;
}

/* Ensure perfect alignment on mobile */
@media (max-width: 768px) {
    .auth-buttons {
        flex-direction: column; /* Stack them */
        width: 100%;
    }
    
    .auth-buttons .btn {
        width: 100%; /* Make both full width so they match size */
        margin: 0;   /* Remove any old margins */
        text-align: center;
    }
}

    /* Ensure the menu drops DOWN and doesn't cover the header */
    #nav-menu {
        top: 100%; /* Positions it exactly at the bottom of the header */
        z-index: 1999; /* Just below the toggle button */
    }
}

/* --- 4. FIX CLASSROOM HEADER RESPONSIVENESS (Lesson Page) --- */
/* Fixes the dark text on dark background issue */
.classroom-header a, 
.classroom-header i,
.classroom-header .header-left,
.classroom-header .header-right {
    color: #ffffff !important; /* Force WHITE text */
}

@media (max-width: 768px) {
    .classroom-header {
        height: auto;       /* Allow it to grow if text wraps */
        padding: 10px 15px;
        flex-wrap: wrap;    /* Allow items to wrap */
        gap: 10px;
    }

    .header-left {
        font-size: 0.9rem;
        width: 100%;        /* Logo takes full width on tiny screens */
        justify-content: center;
        margin-bottom: 5px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    /* Adjust the main container so sidebar doesn't overlap content */
    .classroom-body {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */

/* Smaller Page Header */
.page-header {
    background: #051e34; /* Dark Navy */
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    background-image: url('../assets/hero-bg.jpg'); /* Reuse existing asset */
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 30, 52, 0.9); /* Heavy overlay */
}

.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: 3rem; margin-bottom: 15px; }

/* Stats Grid */
.stats-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.stat-box h3 { font-size: 2rem; color: #0A7BC2; margin-bottom: 0; }
.stat-box p { font-size: 0.9rem; color: #666; font-weight: 600; }

/* Instructor Large Card */
.instructor-spotlight {
    padding: 80px 0;
    background: #f0f2f5;
}

.instructor-card-large {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.inst-img-wrapper {
    width: 40%;
    min-height: 300px;
}
.inst-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inst-content {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inst-content h3 { color: #888; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.inst-content h2 { color: #051e34; font-size: 2rem; margin-bottom: 5px; }
.inst-content .role { color: #0A7BC2; font-weight: bold; margin-bottom: 20px; }
.inst-badges { display: flex; gap: 15px; margin-top: 20px; }
.inst-badges span { background: #e3f2fd; color: #0A7BC2; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.value-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    transition: 0.3s;
}
.value-card:hover { transform: translateY(-5px); }
.value-card h3 { margin: 15px 0 10px; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0A7BC2 0%, #0056b3 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}
/* =========================================
   ALIGNMENT & SPACING FIX (Prevents Screen Spreading)
   ========================================= */

/* 1. Global Container Control 
   This forces ALL section content to line up in the center 
   and stops it from hitting the screen edges. */
.container, 
.cpr-container, 
.instructor-spotlight .container,
.hero-content {
    max-width: 1200px;      /* Standard professional website width */
    margin: 0 auto;         /* Centers the box in the middle of the screen */
    padding-left: 20px;     /* Prevents text touching left edge on mobile */
    padding-right: 20px;    /* Prevents text touching right edge on mobile */
    width: 100%;            /* Ensures it takes available space up to 1200px */
    box-sizing: border-box; /* Includes padding in width calculation */
}

/* 2. Add Vertical Breathing Room (Top/Bottom Padding)
   This adds internal space so content isn't cramped against the section borders. */
#cpr-main-course, 
#testimonials-section, 
.instructor-spotlight,
.section-pad {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* 3. Specific Fix for Instructor Card Width */
.instructor-card-large {
    max-width: 1000px; /* Make this slightly narrower than the full page for style */
    margin: 0 auto;    /* Center it */
}

/* 4. Responsive Safety Check */
@media (max-width: 768px) {
    .container, .cpr-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Reduce padding on mobile so it doesn't look empty */
    #cpr-main-course, 
    #testimonials-section, 
    .instructor-spotlight {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

/* =========================================
   FIX: ADD SPACE BETWEEN SECTIONS
   ========================================= */

/* 1. Push the Course Section down away from the Testimonial Section */
#cpr-main-course {
    margin-top: 50px !important; /* Adds physical gap outside the box */
    padding-top: 80px; /* Internal spacing */
    z-index: 5;
    position: relative;
    background-color: #f9f9f9; /* Ensures the gap looks intentional */
}

/* 2. Fix the Testimonial Section (The Purple One) */
#testimonials-section {
    margin-bottom: 50px !important; /* Pushes the next section away */
    padding: 100px 0; /* Ensures content inside isn't cramped */
    position: relative;
    z-index: 1;
}

/* 3. Fix the Instructor Section (Constantine) */
.instructor-section {
    margin-top: 80px !important; /* big gap above it */
    margin-bottom: 80px !important; /* big gap below it */
    position: relative;
    z-index: 5;
}

/* 4. General Safety Rule for All Sections */
section {
    /* Ensures no section ever drags another one up */
    clear: both;
    display: block;
    width: 100%;
}

/* =========================================
   ALIGNMENT & SPACING FIX (Prevents Screen Spreading)
   ========================================= */

/* 1. Global Container Control 
   This forces ALL section content to line up in the center 
   and stops it from hitting the screen edges. */
.container, 
.cpr-container, 
.instructor-spotlight .container,
.hero-content {
    max-width: 1200px;      /* Standard professional website width */
    margin: 0 auto;         /* Centers the box in the middle of the screen */
    padding-left: 20px;     /* Prevents text touching left edge on mobile */
    padding-right: 20px;    /* Prevents text touching right edge on mobile */
    width: 100%;            /* Ensures it takes available space up to 1200px */
    box-sizing: border-box; /* Includes padding in width calculation */
}

/* 2. Add Vertical Breathing Room (Top/Bottom Padding)
   This adds internal space so content isn't cramped against the section borders. */
#cpr-main-course, 
#testimonials-section, 
.instructor-spotlight,
.section-pad {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* 3. Specific Fix for Instructor Card Width */
.instructor-card-large {
    max-width: 1000px; /* Make this slightly narrower than the full page for style */
    margin: 0 auto;    /* Center it */
}

/* 4. Responsive Safety Check */
@media (max-width: 768px) {
    .container, .cpr-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Reduce padding on mobile so it doesn't look empty */
    #cpr-main-course, 
    #testimonials-section, 
    .instructor-spotlight {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

/* =========================================
   COURSE DETAILS PAGE STYLES
   ========================================= */

/* Layout Grid: Content Left, Card Right */
.course-detail-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr; /* Left is wider than Right */
    gap: 50px;
    align-items: start; /* Prevents sidebar from stretching full height */
    padding-bottom: 60px;
}

/* Typography Enhancements */
#course-title {
    font-weight: 800;
    line-height: 1.2;
}

.feature-list {
    margin-top: 25px;
}

.feature-list li {
    font-size: 1.05rem;
    color: #444;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: start;
}

.feature-list li i {
    margin-top: 5px; /* Aligns checkmark with text top */
}

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

/* Sidebar "Sticky" Card Styling */
.course-sidebar .card {
    background: white;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Soft shadow */
    transition: transform 0.3s ease;
}

.course-sidebar .card:hover {
    transform: translateY(-5px); /* Subtle lift effect */
}

/* Price Tag Styling */
#course-price {
    font-weight: 800;
    color: var(--primary-green, #28a745); /* Uses your green or fallback */
    margin-bottom: 5px;
}

/* Start Button Specifics */
#start-course-btn {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); /* Glow effect */
    transition: all 0.3s;
}

#start-course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* =========================================
   COURSE CURRICULUM LIST STYLES
   ========================================= */

/* The Container Box */
.course-list-preview {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden; /* Keeps the corners rounded */
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* Individual Module Row */
.mod-preview-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center; /* Vertically centers the icon with text */
    transition: background 0.2s ease;
}

/* Remove border from the last item so it looks clean */
.mod-preview-item:last-child {
    border-bottom: none;
}

/* Hover Effect */
.mod-preview-item:hover {
    background: #f9fbfd; /* Very light blue tint on hover */
}

/* The Numbered Circle Icon */
.mod-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd; /* Light Blue Background */
    color: #0A7BC2;      /* Select CPR Blue Text */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0; /* CRITICAL: Prevents the circle from squishing on mobile */
}

/* Text Styling */
.mod-preview-item h4 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.mod-preview-item small {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block; /* Ensures description sits on its own line */
}

/* --- Responsive Fix for Mobile --- */
@media (max-width: 600px) {
    .mod-preview-item {
        padding: 15px; /* Less padding on small screens */
        gap: 15px;
    }
    .mod-icon {
        width: 32px; /* Slightly smaller icon */
        height: 32px;
        font-size: 0.9rem;
    }
    .mod-preview-item h4 {
        font-size: 0.95rem;
    }
    .mod-preview-item small {
        font-size: 0.8rem;
    }
}

/* =========================================
   PROFESSIONAL EXAM STYLES (Card Layout)
   ========================================= */

/* 1. Background & Layout */
.exam-body {
    background-color: #f3f4f6; /* Same grey as Dashboard */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.exam-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    flex-grow: 1;
}

/* 2. The Main Exam Card (White Box) */
#active-exam-ui {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Soft shadow */
    border: 1px solid #eee;
}

/* 3. Header & Timer */
.exam-header {
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.badge-test {
    background: #0A7BC2;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.timer {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* 4. Progress Bar */
.progress-section { margin-bottom: 40px; }

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.progress-track {
    background: #e9ecef;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    background: #0A7BC2; /* Select CPR Blue */
    height: 100%;
    transition: width 0.4s ease;
}

/* 5. Question Typography (Clean & Large) */
.question-wrapper { margin-bottom: 30px; }

.question-bubble h2 {
    font-size: 1.6rem;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* 6. Option Cards (The Clickable Answers) */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns side-by-side */
    gap: 20px;
    margin-bottom: 40px;
}

.option-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: #0A7BC2;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 123, 194, 0.1);
}

.option-card.selected {
    border-color: #0A7BC2;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(10, 123, 194, 0.2);
}

.opt-letter {
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    color: #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.option-card.selected .opt-letter {
    background: #0A7BC2;
    color: white;
}

.opt-text {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* 7. Footer Buttons */
.exam-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.btn-exit {
    color: #dc3545;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.btn-exit:hover { text-decoration: underline; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .options-grid { grid-template-columns: 1fr; /* Stack vertically on mobile */ }
    #active-exam-ui { padding: 25px; }
    .question-bubble h2 { font-size: 1.3rem; }
    .exam-header { padding: 10px 15px; }
    .logo-text span { display: none; } /* Hide "Final Exam" text on tiny screens */
}

/* Makes the signature look real */
.sign-line {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 5px;
}
/* Keep dates looking normal */
#cert-date, #cert-expiry {
    font-family: inherit; /* Reset font for dates */
    font-size: 1rem;
    font-weight: bold;
}

/* ======================================================
   TOAST NOTIFICATIONS (Popup Messages) - UPDATED
   ====================================================== */
.toast-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff; /* White background for better contrast with colored borders */
    padding: 16px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-30px);
    /* Slowed down transitions for a smoother feel */
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.toast-box.show {
    opacity: 1;
    transform: translateY(0);
}

/* Success Styling (Green) */
.toast-box.success { 
    border-left: 6px solid #48bb78; 
    color: #2f855a; 
}

/* Error Styling (Red) */
.toast-box.error { 
    border-left: 6px solid #f56565; 
    color: #c53030; 
}

/* Icon Styling */
.toast-box i {
    font-size: 1.2rem;
}

/* ======================================================
   MOBILE RESPONSIVE RULES
   ====================================================== */
@media (max-width: 480px) {
    .toast-box {
        top: 15px;
        right: 15px;
        left: 15px;    /* Centers the toast on mobile */
        min-width: auto;
        padding: 14px 20px;
        justify-content: center;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

/* CONTACT PAGE RESTRUCTURED */
.contact-hero {
    background: linear-gradient(135deg, #0A7BC2 0%, #075a8e 100%);
    color: white;
    padding: 100px 0 120px; /* Extra bottom padding for the overlapping form */
    text-align: center;
}

.contact-form-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.form-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.contact-details-footer {
    padding: 80px 0 40px;
    background: #f8fafc;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.detail-card {
    padding: 30px;
    background: white;
    border-radius: 12px;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.detail-card i {
    font-size: 2rem;
    color: #0A7BC2;
    margin-bottom: 15px;
}

.detail-card h4 {
    margin-bottom: 10px;
    color: #1e293b;
}

.detail-card p {
    color: #64748b;
    line-height: 1.6;
}

.contact-social-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-social-footer a {
    font-size: 1.5rem;
    color: #0A7BC2;
    transition: 0.3s;
}

.contact-social-footer a:hover {
    color: #075a8e;
    transform: scale(1.1);
}

/* Professional Container for the Message Area */
.form-wrapper {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); /* Adds a subtle professional depth */
    background: #fff;
    padding: 10px;
}

/* Ensure the iframe doesn't have scrollbars cutting off the text area */
#contact-form-iframe {
    border: none;
    min-height: 800px; /* Gives plenty of room for a professional text area */
}
/* MOBILE FIXES */
@media (max-width: 768px) {
    .contact-hero { padding: 60px 0 100px; }
    .contact-hero h1 { font-size: 2rem; }
    .details-grid { grid-template-columns: 1fr; }
}

/* --- Hero Improvements --- */

.contact-hero {
    padding: 140px 0 160px; /* Increased top padding to prevent header overlap */
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}


/* --- Form Alignment & Scroll Fix --- */
.form-overlap-section {
    margin-top: -100px; /* Pulls form higher into the blue hero */
    margin-bottom: 60px;
}

.contact-form-container {
    max-width: 850px; /* Prevents the form from being too wide/stretched */
    margin: 0 auto;
    background: #fff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.form-wrapper {
    border-radius: 12px;
    overflow: hidden; /* Clips any Google Form overflow */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on mobile */
}

/* --- Floating Headset Icon --- */
.call-attendant-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #28a745; /* Success Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

.call-attendant-fab:hover {
    transform: scale(1.1) rotate(10deg);
    background: #218838;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .form-overlap-section { margin-top: -80px; padding: 0 15px; }
    #contact-form-iframe { height: 1100px; } /* Forms get taller on mobile */
}