:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #10b981;
    --danger: #ef4444;
    --light: #f9fafb;
    --dark: #1f2937;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
}

/* Header styling - add to styles.css */

/* Header Container */
.header-container {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Main Navigation */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* Mobile menu checkbox (hidden visually but accessible) */
.mobile-menu-checkbox {
    position: absolute;
    opacity: 0;

}

/* Base mobile menu button styling - hidden by default for larger screens */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    z-index: 101;
    transition: all 0.3s ease;
}

/* Hamburger icon styling with improved spacing and transitions */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #1f2937;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Improved animation for hamburger-to-X transformation */
.mobile-menu-checkbox:checked + .mobile-menu-btn .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-checkbox:checked + .mobile-menu-btn .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-checkbox:checked + .mobile-menu-btn .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-container img {
    max-height: 50px;
    display: block;
}

h1.seo-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-left: 15px;
    line-height: 1.2;
}

.main-navigation {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-item {
    padding: 10px 15px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.nav-item.active {
    background-color: #2563eb;
    color: white;
}

.nav-item.active:hover {
    background-color: #1e40af;
    color: white;
}

.contact-details li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.instructor-contact {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.instructor-contact h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.contact-form-container {
    flex: 2;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form {
    margin-top: 15px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-group textarea {
    resize: vertical;
}

.required {
    color: var(--danger);
}

/* Base container layout */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Adjust main content width to be more flexible */
main {
    flex: 3;
    min-width: 0; /* Remove fixed min-width to prevent overflow */
    width: 100%;
}

aside {
    flex: 1;
    min-width: 250px;
    width: 100%;
}

/* Consolidated media queries for mobile menu and responsive design */
@media (max-width: 992px) {
    .container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    h1.seo-heading {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-navigation {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0;
        margin: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* Show menu when checkbox is checked */
    .mobile-menu-checkbox:checked ~ .main-navigation {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-item {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .container {
        flex-direction: column;
        gap: 20px;
    }
    
    main, aside {
        min-width: 0;
        width: 100%;
    }
    
    /* Ensure the sidebar displays after the main content on mobile */
    aside {
        order: 2;
    }
    
    /* Header adjustments */
    .header-background {
        height: 250px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    /* Intro banner adjustments */
    .intro-banner h1 {
        font-size: 1.8rem;
    }
    
    .intro-description p {
        font-size: 1rem;
    }
    
    /* Certificate container adjustments */
    .certificate-container {
        margin: 15px 0;
    }
    
    .certificate-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .certificate-dates {
        flex-direction: column;
        gap: 10px;
    }
    
    .certificate-seal {
        width: 80px;
        height: 80px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Video container adjustments */
    .video-container {
        margin-bottom: 15px;
    }
    
    .video-description {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .custom-play-button {
        width: 60px;
        height: 60px;
    }
    
    .custom-play-button:before {
        border-width: 12px 0 12px 20px;
    }
    
    .video-protection-overlay {
        background-size: 60px auto;
    }
    
    /* Form adjustments */
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    h1.seo-heading {
        font-size: 1rem;
    }
    
    .instructor-container {
        flex-direction: column;
        align-items: center;
    }
    
    .certificate-signature {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .header-background {
        height: 200px;
    }
    
    .logo-container img {
        max-width: 150px;
        max-height: 50px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .intro-banner {
        padding: 30px 15px;
    }
    
    .intro-banner h1 {
        font-size: 1.5rem;
    }
    
    /* Adjust module padding for smaller screens */
    .module {
        padding: 15px;
    }
    
    /* Certificate container adjustments */
    .certificate-container {
        padding: 20px 15px;
    }
    
    .certificate-title {
        font-size: 22px;
    }
    
    .certificate-name {
        font-size: 24px;
    }
    
    /* Form element improvements for mobile */
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
    }
    
    /* Quiz container mobile adjustments */
    .question p {
        font-size: 0.95rem;
    }
    
    .options {
        margin-left: 10px;
    }
    
    .option label {
        margin-left: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 15px;
    }
}

@media (max-width: 400px) {
    .header-background {
        height: 180px;
    }
    
    .header-content {
        padding: 10px;
    }
    
    .logo-container img {
        max-width: 120px;
        max-height: 40px;
    }
    
    header h1 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    header p {
        font-size: 0.9rem;
        margin-top: 5px;
    }
    
    /* Further reduce spacing and font sizes */
    .module-header h2 {
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .certificate-signature {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .signature-element {
        width: 100%;
        max-width: 200px;
    }
}

/* Additional responsive utility classes */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-on-mobile {
        display: none !important;
    }
}

header {
    width: 100%;
    margin-bottom: 30px;
    color: white;
}

.header-background {
    width: 100%;
    height: 300px;
    background-image: url('images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Fallback header background if image doesn't load */
.header-background:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: -1;
}

.header-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-container a {
    display: block;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
}

.logo-container img {
    max-width: 200px;
    max-height: 60px;
}

.logo-container.no-image a {
    width: 200px;
    height: 60px;
}

.logo-container.no-image a::before {
    content: 'HIPAA Training';
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    color: var(--primary-dark);
}

header h1 {
    margin-top: 0;
    font-size: 2.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Introduction Banner Styles */
.intro-banner {
    background-color: #f0f7ff; /* Light blue background */
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-banner h1 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.intro-description {
    margin-bottom: 30px;
}

.intro-description p {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.instruction-box {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.instruction-box h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 280px;
    text-align: left;
}

.step-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-text h3 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-text p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

h1, h2, h3 {
    margin-top: 0;
}

.error-message, .success-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #fee2e2;
    color: #b91c1c;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
}

.video-description {
    margin-bottom: 20px;
    background-color: #e5e7eb;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95em;
}

.ad-container {
    background-color: #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.module.locked {
    opacity: 0.7;
    pointer-events: none;
}

.module.completed {
    border-left: 4px solid var(--success);
}

.module.completed .module-content {
    display: none;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.module.completed .module-header {
    cursor: pointer;
}

.module-status {
    font-size: 14px;
    color: var(--primary);
}

.status-complete {
    color: var(--success);
}

.video-container {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

/* YouTube Video Protection Styles */
.youtube-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-color: #000;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Video protection overlay */
.video-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through to video */
    background: transparent;
    
    /* Add subtle watermark - optional */
    background-image: url('images/logo-watermark.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 80px auto;
    opacity: 0.3;
}

/* Custom play button - optional */
.custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.custom-play-button:before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #2563eb;
    margin-left: 5px; /* Adjust for optical centering */
}

/* Module video indicator */
.module-status-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    z-index: 15;
}

/* Video time tracking */
.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 15;
}

.video-progress-bar {
    height: 100%;
    background-color: #2563eb;
    width: 0%; /* Will be updated via JavaScript */
    transition: width 0.3s;
}

/* Prevent selection */
.youtube-video-container * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.quiz-container {
    margin-top: 20px;
}

.question {
    margin-bottom: 20px;
}

.options {
    margin-left: 20px;
}

.option {
    margin-bottom: 10px;
}

.option label {
    margin-left: 10px;
    cursor: pointer;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-submit {
    margin-top: 15px;
}

.btn-disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background-color: #9ca3af;
}

.certificate-form {
    margin-top: 30px;
    max-width: 500px;  /* Adds a maximum width */
    margin-left: auto;
    margin-right: auto;  /* Centers the form */
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 80%;
    max-width: 350px;  /* Limits the width */
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.certificate-container {
    background-color: white;
    border: 2px solid #333;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    position: relative;
    font-family: 'Times New Roman', Times, serif;
    max-width: 1000px; /* Increased for landscape */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.certificate-logo {
    width: 200px;
    height: 60px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d1d5db;
}

.certificate-logo img {
    max-width: 100%;
    max-height: 100%;
}

.certificate-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.certificate-body {
    margin-bottom: 30px;
    line-height: 1.8;
}

.certificate-body p {
    font-size: 18px;
}

.certificate-name {
    font-size: 32px;
    font-weight: bold;
    margin: 20px 0;
    color: #111;
}

.certificate-date {
    font-style: italic;
}

.certificate-id {
    position: absolute;
    bottom: 15px;
    left: 40px;
    font-size: 12px;
    color: #6b7280;
}

/* Updated signature section */
.certificate-signature {
    margin-top: 40px; /* Reduced margin */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* This aligns the bottom of both elements */
    gap: 150px;
}

/* Base signature element */
.signature-element {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Student signature */
.student-signature {
    width: 200px;
}

/* Instructor signature container and image */
.instructor-signature {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instructor-signature img {
    max-width: 150px;
    max-height: 60px;
    margin-bottom: 5px;
    display: block;
}

/* Signature line styling (the line itself) */
.signature-line {
    width: 100%;
    border-top: 1px solid #000;
    padding-top: 5px;
    text-align: center;
    margin-top: auto; /* Pushes line to bottom */
}

.certificate-seal {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transform: rotate(-15deg);
    border: 2px dashed white;
    font-family: 'Arial', sans-serif;
}

.certificate-seal-text {
    font-size: 12px;
}

.download-btn {
    background-color: var(--success);
    margin-top: 20px;
}

.feedback {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    display: none;
}

.feedback-success {
    background-color: #d1fae5;
    color: #065f46;
}

.feedback-error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Styles for Terms and Privacy pages */
.terms-content,
.privacy-content {
    padding: 10px;
}

.terms-content h3,
.privacy-content h3 {
    color: var(--primary-dark);
    margin-top: 30px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.terms-content h4,
.privacy-content h4 {
    color: var(--dark);
    margin-top: 20px;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 15px;
}

.terms-content ul,
.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 10px;
}

.module-locked-message {
    padding: 20px;
    text-align: center;
    background-color: #f3f4f6;
    border-radius: 6px;
    margin: 15px 0;
    color: #6b7280;
}

/* About page styling */
.about-content {
    padding: 10px;
}

.about-section h3 {
    color: var(--primary-dark);
    margin-top: 30px;
    padding-bottom: 8px;
    padding-right: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.instructor-profile {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.instructor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.instructor-image {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.instructor-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.instructor-title {
    color: #6b7280;
    font-style: italic;
    margin-top: -10px;
}

/* Certificate verification styles */
.verify-certificate-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.verify-form {
    max-width: 600px;
    margin: 30px auto;
}

.verification-result {
    background-color: #f0fdf4;
    border: 1px solid #34d399;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.verification-result h2 {
    color: #065f46;
    margin-bottom: 20px;
    text-align: center;
}

.certificate-info {
    background-color: white;
    border-radius: 6px;
    padding: 20px;
}

.certificate-info p {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.certificate-info p:last-child {
    border-bottom: none;
}

.valid-status {
    display: inline-block;
    background-color: #34d399;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.form-error {
    color: var(--danger);
    font-size: 0.85em;
    margin-top: 5px;
}

/* Print styles for certificate */
@media print {
    .certificate-container {
        position: relative; /* Add this to ensure absolute positioning works */
        margin: 0;
        padding: 20px; /* Reduced padding */
        border: none;
        width: 11in; /* Letter width in landscape */
        height: 8.5in; /* Letter height in landscape */
        max-width: 100%;
        box-sizing: border-box;
        page-break-after: avoid;
        page-break-before: avoid;
    }
    .seal-img {
        position: absolute;
        bottom: 20px;  /* Distance from the bottom for print */
        right: 40px;   /* Distance from the right for print */
        width: 120px;  /* Width of the seal for print */
        height: 120px; /* Height of the seal for print */
    }
    
    @page {
        size: landscape;
        margin: 0;
    }
    
    .certificate-header,
    .certificate-body,
    .certificate-signature,
    .certificate-seal {
        page-break-inside: avoid;
    }
    
    /* Hide download button when printing */
    .download-btn {
        display: none;
    }
}

/* FAQ Page Styles */
.page-header {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.page-header h2 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.faq-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-item h3:after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item.active h3:after {
    content: '-';
}

.faq-answer {
    display: block;
    padding: 10px 0;
}

/* Contact Page Styles */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-info h3, 
.contact-form-container h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

/* NEW SIDEBAR STYLES - Completely revised */
/* ====================================== */

/* Base Sidebar Container */
.course-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Common styling for all sidebar sections */
.course-sidebar > div {
    background-color: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

/* Section headings */
.sidebar-heading {
    color: #1e40af;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Progress section styling */
.progress-bar-container {
    margin-top: 0.75rem;
}

.progress-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #2563eb;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Instructor card styling */
.instructor-card {
    overflow: hidden;
}

.instructor-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instructor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instructor-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-name-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.instructor-name {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.instructor-credentials {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.credential-badge {
    display: inline-block;
    font-size: 0.7rem;
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.instructor-bio-container {
    position: relative;
}

.instructor-bio {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

.bio-toggle {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.8rem;
    padding: 0.25rem 0;
    cursor: pointer;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.bio-toggle::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #2563eb;
    border-bottom: 2px solid #2563eb;
    margin-left: 0.25rem;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.bio-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

.bio-toggle .show-more {
    display: none;
}

.bio-toggle .show-less {
    display: none;
}

.bio-toggle:not([aria-expanded="true"]) .show-more {
    display: inline;
}

.bio-toggle[aria-expanded="true"] .show-less {
    display: inline;
}

.expanded-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.expanded-bio p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

.bio-toggle[aria-expanded="true"] + .expanded-bio {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s;
}

/* Donation section styling */
.donate-container {
    text-align: center;
}

.donate-container p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.donate-btn {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.donate-btn:hover {
    background-color: #059669;
}
.coffee-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coffee-container p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #4b5563;
}


/* Custom Coffee Button Styles */
.custom-coffee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    animation: float 3s ease-in-out infinite;
    margin: 0 auto; /* This ensures centering */
}

.custom-coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff7b45, #f8a31e);
    animation: none;
}

.coffee-emoji {
    font-size: 18px;
    margin-right: 8px;
    animation: steam 2s ease-in-out infinite;
}

@keyframes steam {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Responsive */
@media (max-width: 768px) {
    .custom-coffee-btn {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .custom-coffee-btn {
        font-size: 13px;
        padding: 9px 18px;
        min-width: 140px;
    }
}






















/* Ad container styling */
.course-sidebar .ad-container {
    background-color: #f3f4f6;
    padding: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Responsive styling for sidebar */
@media (max-width: 1100px) {
    .instructor-content {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .instructor-header {
        flex: 1;
        min-width: 200px;
    }
    
    .instructor-bio-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Prevents any overflow */
    }
}

@media (max-width: 768px) {
    .instructor-content {
        flex-direction: column;
    }
    
    .instructor-header {
        width: 100%;
    }
    
    .instructor-bio-container {
        width: 100%;
    }
    
    .donate-container, .ad-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .course-sidebar > div {
        padding: 1rem;
    }
    
    .instructor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .instructor-credentials {
        justify-content: center;
    }
    
    .instructor-bio {
        text-align: center;
    }
}
 
.bio-toggle {
    background: none;
    border: none;
    color: #4b5563; /* Match bio text color */
    font-size: 0.9rem; /* Match instructor bio font size */
    font-family: inherit; /* Inherit the font family from parent */
    font-weight: normal; /* Use normal font weight instead of bold */
    padding: 0.25rem 0;
    cursor: pointer;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    text-align: left;
}

/* Add a subtle indicator arrow instead of the prominent blue one */
.bio-toggle::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #4b5563; /* Match text color */
    border-bottom: 2px solid #4b5563; /* Match text color */
    margin-left: 0.25rem;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

/* Full-width form row for comment field */
.form-row.full-width {
    width: 100%;
}

/* Ensure textarea takes full width and has better height */
.form-row.full-width .form-group {
    width: 100%;
}

.form-row.full-width textarea {
    width: 100%;
    min-height: 150px; /* Increased height for comment area */
    padding: 10px;
    box-sizing: border-box;
}
/* Updated Instructor Profile Styles for About Page */
.instructor-about-container {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-top: 20px;
}

.instructor-about-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.instructor-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-about-content {
    flex: 1;
}

.instructor-about-content h4 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
    .instructor-about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .instructor-about-image {
        margin-bottom: 15px;
    }
}
/* New Footer Styles - Added May 16, 2025 */
.new-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0 2rem;
    color: #4b5563;
    margin-top: 50px;
}

.new-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.new-footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.new-footer-section {
    flex: 1;
    min-width: 200px;
}

/* Center alignment for the first footer section (logo section) */
.new-footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.new-footer-section h3 {
    color: #1e40af;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.new-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-footer-links li {
    margin-bottom: 0.7rem;
}

.new-footer-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.new-footer-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Center-aligned logo */
.new-footer-logo {
    display: block;
    max-width: 180px;
    margin: 0 auto 1rem auto;
}

/* Center-aligned about text */
.new-footer-about {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.new-footer-about p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 auto 1rem auto;
    max-width: 90%;
}

/* Center-aligned social icons */
.new-footer-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    width: 100%;
}

.new-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #4b5563;
    transition: all 0.2s ease;
}

.new-footer-social-link:hover {
    background-color: #2563eb;
    color: white;
}

.new-footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

/* Responsive styles for the new footer */
@media (max-width: 992px) {
    .new-footer-section {
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .new-footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .new-footer-section {
        width: 100%;
    }
    
    /* Keep first section at top and properly centered on mobile */
    .new-footer-section:first-child {
        order: -1;
        padding-bottom: 20px;
    }
    
    /* Ensure about text remains centered and properly sized */
    .new-footer-about p {
        max-width: 95%;
    }
    
    .new-footer-two-column {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 40px;
    }
    
    .new-footer-two-column li {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .new-footer-two-column li {
        width: 100%;
    }
    
    /* Additional alignment fixes for very small screens */
    .new-footer-logo {
        max-width: 160px;
    }
    
    .new-footer-about p {
        font-size: 0.85rem;
        max-width: 100%;
    }
}
/* Download buttons container */
.download-buttons {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

/* Styling for the buttons */
.download-buttons .btn {
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 15px;
}

.download-btn-alt {
    background-color: var(--primary);
    margin-top: 10px;
}

/* Media query for larger screens */
@media (min-width: 576px) {
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .download-buttons .btn {
        width: auto;
        min-width: 200px;
    }
}
/* LinkedIn and Instructor Linking Styles */
.instructor-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.instructor-name-link:hover {
    color: #2563eb;
}

.instructor-social {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #0a66c2;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
}

.linkedin-link:hover {
    color: #004182;
    text-decoration: underline;
}

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #0a66c2;
    color: white;
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.linkedin-link:hover .linkedin-icon {
    background-color: #004182;
}

.instructor-bio-footer {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.about-instructor-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about-instructor-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.instructor-about-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.instructor-about-social {
    display: flex;
    align-items: center;
}

.linkedin-link-about {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #0a66c2;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.4rem 0.8rem;
    border: 1px solid #0a66c2;
    border-radius: 4px;
    background-color: white;
}

.linkedin-link-about:hover {
    background-color: #0a66c2;
    color: white;
    text-decoration: none;
}

.linkedin-link-about .linkedin-icon {
    width: 18px;
    height: 18px;
    background-color: #0a66c2;
    color: white;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    transition: all 0.2s ease;
}

.linkedin-link-about:hover .linkedin-icon {
    background-color: white;
    color: #0a66c2;
}
@media (max-width: 600px) {
    .instructor-about-header {
        align-items: center;
        text-align: center;
    }
    
    .instructor-about-social {
        justify-content: center;
        width: 100%;
    }
    
    .linkedin-link-about {
        margin: 0 auto;
    }
}