/* Combined Stylesheet: main.css + style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;700&display=swap');


pre {
	
	border: 1px solid #DBDBDB;
	border-radius: 4px;
	background: #EEEEEE;
	padding: 15px;
	width: 90%;
	font-family: arial;
	font-size: 13px;
	word-wrap: break-word;
	white-space: pre-wrap;
	text-align: left;
	margin: 20px auto;
	line-height: 22px;

}

/* --- Variables --- */
:root {
    /* Main site colors */
    --primary: #ffd500;
    --primary-dark: #e6b400;
    --secondary: #ff9a00;
    --accent: #5ce3ba;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #222222;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    
    /* Additional variables from style.css */
    --text-color: var(--text-dark, #333);
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --border-radius: var(--radius, 8px);
    --box-shadow: var(--shadow, 2px 2px 5px rgba(0, 0, 0, 0.1));
}

/* CTA Button */

a.ctaButton {

    margin: 20px auto !important;
    text-align: center;
    display: block !important;
    padding: 15px;
    border-radius: 50px;
    max-width: 500px;
    background: #ff5e00;
    color: white;
    font-weight: bold;
    transition: 0.2s background;
    font-size: 15pt;
    
}

a.ctaButton:hover {

    background: #db4500;
    
}

/* --- Basic Reset & Defaults --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    margin: 0 !important; /* Force remove body margin */
    padding: 0; /* Ensure no body padding either */
    font-size: 1.05em; /* Slightly increase base font size from style.css */
    line-height: 1.6;
    min-height: 100vh; /* Ensure gradient covers full height */
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #FF9A00; /* Nice border under all headers */
}

a.loginButton {
    border: 2px solid #FF9A00;
    border-radius: 50px;
    padding: 12px 30px;
    color: #FF9A00 !important;
    background-color: transparent; /* Add this */
    transition: all 0.2s !important;
}

a.loginButton:hover {

    color: black !important;
    background: #FFEB9D !important; /* Change to background-color */
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h4 {
    font-size: 1.2rem;
}

/* Special exclusions for header h1 and other specific headings */
header h1, 
.topic-card h3,
.course-card h3,
.fact-box h4,
.author-details h4,
.footer-heading {
    border-bottom: none;
    padding-bottom: 0;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

a {
    color: --primary;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

ul, ol {
    margin-left: 2em;
    margin-bottom: 1em;
}


/* --- Buttons --- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: black !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-logout {
    background-color: #ffffff !important;
    color: #ff6b35 !important;
    border: 2px solid #ff6b35 !important;
    transition: all 0.2s !important;
}

.btn-logout:hover {
    background-color: #ff6b35 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    color: white !important;
}



.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-text {
    font-size: 0.9rem;
    color: orange;
}

@media (max-width: 768px) {

    a.ctaButton {

        font-size: 12pt;
        padding: 10px;
        max-width: 90%;
        
    }


    .user-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* --- Layout Components --- */
main {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

section {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Example Two Column Layout */
.layout-two-column {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Example Three Column Layout */
.layout-three-column {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Fact Box */
.fact-box {
    background-color: #fff8e1; /* Light yellow background */
    border-left: 5px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

.fact-box h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
}

/* Add a simple icon placeholder */
.fact-box h4::before {
    content: '💡'; /* Lightbulb emoji */
    margin-right: 0.5em;
    font-size: 1.2em;
}

/* Coloured Box Example */
.colored-box {
    position: relative;
    background-color: #fff3cd;
    border: 1px solid var(--secondary);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

/* --- Hero Section --- */
.hero {
    padding: 10rem 2rem 6rem;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(255, 213, 0, 0.2);
    top: -200px;
    right: -100px;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(92, 227, 186, 0.15);
    bottom: -150px;
    left: -100px;
    z-index: 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 3rem;
    max-width: 600px;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(255, 213, 0, 0.4);
    bottom: 8px;
    left: 0;
    z-index: -1;
    border-radius: 10px;
}

.hero-description {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image-container {
    position: relative;
    display: inline-block;
}

.hero-img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 900px) {
    .hero-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .course-card {
        padding: 1.5rem;
    }
    
    .course-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .view-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* --- Features, Courses and Other Sections --- */
.features {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Courses Section --- */
.courses {
    padding: 6rem 2rem;
    background-color: #fcfcfc;
}

.courses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.course-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background-color: white;
    border: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    position: relative;
}

.course-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.instructor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eee;
    overflow: hidden;
}

.course-details {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffc107;
}

.course-price {
    font-weight: 700;
    color: var(--secondary);
}

/* --- Testimonials --- */
.testimonials {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 3rem;
    line-height: 1;
    color: var(--primary);
    font-family: serif;
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eee;
    overflow: hidden;
}

.author-details h4 {
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: #777;
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #5ce3ba 0%, #4db6ac 100%);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-description {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    background-color: white;
    color: var(--text-dark);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-cta:hover {
    background-color: var(--primary);
    color: var(--text-dark);
}

.btn-cta-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background-color: white;
    color: var(--text-dark);
}

/* --- Stats Section --- */
.stats {
    padding: 4rem 2rem;
    background-color: white;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #777;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-about p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--text-dark);
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}
.footer-newsletter p {
    opacity: 0.7;
    margin-bottom: 1rem;
}

.newsletter-form,
.sendpulse-form {
    display: flex;
    margin-bottom: 1rem;
    max-width: 100%;
    position: relative;
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding-right: 50px; /* Make room for the button */
}

.newsletter-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background-color: #ffcc00; /* Yellow color like in the image */
    color: var(--text-dark);
    width: 50px;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background-color: #e6b800; /* Slightly darker yellow */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* --- Tab Interface Styles (From style.css) --- */
.learning-resource-container {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ccc;
    display: flex;
    flex-wrap: wrap;
}

.learning-resource-button {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 4px solid transparent;
    margin-bottom: -2px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.learning-resource-button:hover {
    background-color: #e0e0e0;
}

.learning-resource-button.active {
    border-bottom: 4px solid var(--secondary);
    color: var(--secondary);
}



@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Back to Menu Button Style --- */
.back-to-menu-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-dark) !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-family: var(--heading-font);
    border: none;
}

.back-to-menu-button:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    color: var(--text-dark) !important;
}

/* --- New Course Card Grid Styles --- */
.course-page-main {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
}

.course-page-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.8rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
    display: block;
    max-width: fit-content;
    margin: 130px auto 2.5rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.topic-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.topic-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
}

.topic-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75em;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.3em;
    font-size: 1.4rem;
}

.topic-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.topic-card a.button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-family: var(--heading-font);
}

.topic-card a.button:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

.course-card h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    border-bottom: none;
    padding-bottom: 0;
}

.course-card p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.2rem;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    height: 30px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    text-align: center;
    line-height: 30px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: width 0.8s ease-in-out;
    min-width: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar span {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    display: inline-block;
}

.course-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    font-family: var(--heading-font);
    background-color: var(--primary);
    color: var(--text-dark) !important;
    border: none;
}

.course-button:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    transform: scale(1.03);
}

/* Stagger animation for courses */
.course-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.5s ease-out forwards;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Specific Green Button for Quiz Links --- */
a.button-green-quiz, .button-quiz-link-green {
    display: inline-block;
    background-color: #28a745; /* Green */
    color: #ffffff !important; /* Black text */
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-family: var(--heading-font);
    border: none;
    cursor: pointer;
}

a.button-green-quiz:hover, .button-quiz-link-green:hover {
    background-color: #218838; /* Darker green */
    text-decoration: none;
    color: #ffffff !important;
}

/* --- Padding for Fixed Header on Content Pages --- */
.content-page-main {
     padding-top: 140px;
}

/* --- Chat Widget Styles --- */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#chat-button:hover {
    background-color: var(--primary-dark);
}

#chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 450px;
    max-height: 70vh;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#chat-widget.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#chat-header {
    background-color: #2c3e50;
    color: white;
    padding: 0.75rem 1rem;
    font-family: var(--heading-font);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header button#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

#chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    max-width: 80%;
    line-height: 1.4;
    font-size: 0.9rem;
}

.user-message {
    background-color: var(--primary);
    color: var(--text-dark);
    margin-left: auto;
    text-align: right;
}

.ai-message {
    background-color: #e9e9eb;
    color: var(--text-dark);
    margin-right: auto;
    text-align: left;
}

.ai-message.info {
    font-style: italic;
    font-size: 0.8rem;
    background-color: transparent;
    text-align: center;
    max-width: 100%;
    color: #666;
}

#chat-input-area {
    display: flex;
    padding: 0.5rem;
    border-top: 1px solid #eee;
}

#chat-input {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    margin-right: 0.5rem;
}

#chat-send {
    background-color: var(--primary);
    color: var(--text-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--heading-font);
    transition: background-color 0.3s ease;
}

#chat-send:hover {
    background-color: var(--primary-dark);
}

/* Typing Indicator Animation */
.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #aaa;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* --- Completion popup styles --- */
.completion-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.completion-popup.show {
  opacity: 1;
  visibility: visible;
}

.completion-popup-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: popupIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.completion-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.completion-popup h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  border-bottom: none;
  padding-bottom: 0;
}

.completion-popup p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.close-popup {
  padding: 0.75rem 2rem;
}

/* Mark complete button styles */
.mark-complete-btn {
  display: inline-block;
  background-color: var(--secondary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  font-family: var(--heading-font);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mark-complete-btn:hover {
  background-color: #e58900;
  transform: translateY(-2px);
}

.mark-complete-btn.completed {
  background-color: #28a745;
  pointer-events: none;
}

@keyframes popupIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Course Completion Styles --- */
.mark-complete-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.mark-complete-btn:hover {
    background-color: #3e8e41;
}

.mark-complete-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.mark-complete-btn.completed {
    background-color: #007bff;
    cursor: default;
}

/* Completion Popup */
.completion-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.completion-popup.show {
    display: flex;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.popup-content h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 24px;
}

.popup-content p {
    font-size: 16px;
    margin-bottom: 20px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-popup:hover {
    color: #333;
}

.popup-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.popup-button:hover {
    background-color: #0056b3;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    height: 30px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    text-align: center;
    line-height: 30px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: width 0.8s ease-in-out;
    min-width: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- Completion Popup and Buttons --- */
.mark-complete-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-top: 1rem;
}

.mark-complete-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mark-complete-btn.completed {
    background-color: var(--accent);
    cursor: default;
}

.mark-complete-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Completion Popup */
.completion-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.completion-popup.show {
    opacity: 1;
    visibility: visible;
}

.completion-popup-content {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.completion-popup.show .completion-popup-content {
    transform: translateY(0);
}

.completion-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #333;
}

.continue-btn {
    background-color: var(--primary);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.continue-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Continue button styling in completion popup */
.continue-btn {
    padding: 12px 28px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    min-width: 240px;
}

.continue-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Progress bars */
.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
}

.course-progress {
    margin: 1rem 0;
}

/* Completed tag for session cards */
.completed-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 0 8px 0 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2; /* Higher than the card-link z-index */
    display: flex;
    align-items: center;
    transform: translateY(0);
    animation: completedTagPop 0.5s ease-out;
}

.completed-tag::before {
    content: "✓";
    margin-right: 5px;
    font-size: 1rem;
}

@keyframes completedTagPop {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- Responsive Styles --- */
@media (min-width: 768px) {
    .layout-two-column {
        grid-template-columns: repeat(2, 1fr);
    }
    .layout-three-column {
        grid-template-columns: repeat(3, 1fr);
    }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    main { padding: 0 2rem; }
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-page-title {
        font-size: 2.2rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
}

@media (max-width: 500px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-img {
        max-width: 90%;
    }
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    line-height: 1;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 154, 0, 0.4);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .scroll-to-top::before {
        font-size: 1.2em;
    }
}

/* Ensure button doesn't interfere with other floating elements */
.scroll-to-top {
    pointer-events: auto;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .scroll-to-top {
        background: var(--text-dark);
        border: 2px solid var(--text-light);
    }
    
    .scroll-to-top:hover {
        background: var(--secondary);
        border-color: var(--text-dark);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
    
    .scroll-to-top:hover::before {
        transform: none;
    }
}

/* STYLES FROM 1TEST.HTML */
.container {
    max-width: 100%;
    padding: 3rem 2rem;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #ffa500, #ff8c00);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

.header h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header .highlight {
    background: linear-gradient(45deg, #ff8c00, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.courses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.course-item {
    width: 100%;
    margin-bottom: 1px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
    position: relative;
}

.course-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.course-item:nth-child(1) { animation-delay: 0.1s; }
.course-item:nth-child(2) { animation-delay: 0.2s; }
.course-item:nth-child(3) { animation-delay: 0.3s; }
.course-item:nth-child(4) { animation-delay: 0.4s; }
.course-item:nth-child(5) { animation-delay: 0.5s; }
.course-item:nth-child(6) { animation-delay: 0.6s; }
.course-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 140, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.course-card:hover::before {
    left: 100%;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px rgba(255, 140, 0, 0.15),
        0 0 0 2px #ff8c00;
    border-color: #ff8c00;
}

.course-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.course-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.25);
    transition: all 0.3s ease;
}

.course-card:hover .course-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(255, 140, 0, 0.4);
}

.course-info {
    flex: 1;
}

.course-prefix {
    display: inline-block;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.course-name {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    transition: all 0.3s ease;
}

.course-card:hover .course-name {
    color: #ff8c00;
    transform: translateX(5px);
}

.view-button {
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.25);
}

.view-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.view-button:hover::before {
    left: 100%;
}

.view-button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(255, 140, 0, 0.4);
    border-color: white;
}

.view-button::after {
    content: '→';
    margin-left: 0.5rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.view-button:hover::after {
    transform: translateX(3px);
}



@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .course-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .course-left {
        flex-direction: column;
        gap: 1rem;
    }
    
    .course-card {
        padding: 2rem;
    }
    
    .course-name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .course-card {
        padding: 1.5rem;
    }
    
    .course-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .view-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
/* END OF STYLES FROM 1TEST.HTML */
