
.signup-body {
    position: relative;
    background-image: url('/images/hero2.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    z-index: 1; 
}

.signup-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 👈 darkness level */
    z-index: -1; 
}

.form-container{
    position: relative;
    z-index: 2; 
    width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;    
}

.gender-details {
    margin: 10px;
    padding: 4px;
}

.form-button {
    width: 300px;
    padding: 10px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-create {
    background-color: #000000;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    margin: 10px 0;
    cursor: pointer; 
}

.container2 {
    position: relative;
    width: 100%;
    padding-left: 10px;
    text-align: right;
}

/* Add this in your global CSS file */
.spinner {
    display: none;
    width: 100%;
    text-align: center;
}

.spinner div {
    width: 40px;
    height: 40px;
    margin: auto;
    border: 4px solid #a9712f;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.pathway-nav {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 10px 0;
    white-space: nowrap;
    scroll-behavior: smooth;
    border-bottom: 1px solid #ccc;
    scrollbar-width: thin;
}


.pathway-nav::-webkit-scrollbar {
    height: 6px;
}

.pathway-nav::-webkit-scrollbar-thumb {
    background-color: #a9712f;
    border-radius: 4px;
}

.pathway-nav button {
    flex: 0 0 auto;
    background-color: #f8f6f3;
    border: 1px solid #a9712f;
    color: #a9712f;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.pathway-nav button:hover {
    background-color: #a9712f;
    color: white;
}

.course-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 10px;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    /* width: 100%; */
}

.scroll-card {
    flex: 0 0 300px;
    /* fixed width */
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* min-height: 350px; */
}

.scroll-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.pathway-group {
    width: 100%;
}

.course-level-section{
    width: 100%;
}
/* Shared header style */
.collapsible-header {
    cursor: pointer;
    color: #fff;
    padding: 14px 18px;
    margin: 12px 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Beginner – soft gold (approachable, warm) */
.collapsible-header.beginner {
    background: linear-gradient(135deg, #d4af37, #b8860b);
}

/* Intermediate – charcoal with subtle gold edge */
.collapsible-header.intermediate {
    background: linear-gradient(135deg, #444, #222);
    border-left: 6px solid #d4af37;
}

/* Advanced – deep black with warm golden accent */
.collapsible-header.advanced {
    background: #000;
    border-left: 6px solid #b8860b;
}

/* Hover animation */
.collapsible-header:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

/* Chevron rotation */
.collapsible-header i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.collapsible-header.open i {
    transform: rotate(90deg);
}

/* Collapsible content */
.collapsible-content {
    display: none;
    padding: 16px;
    margin: 8px 0 18px;
    border-radius: 8px;
    background: #fafafa;
    border-left: 4px solid #ccc;
    animation: fadeIn 0.3s ease;
}

.collapsible-content.open {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.course-scroll-container::-webkit-scrollbar-thumb {
    background-color: #a9712f;
    border-radius: 4px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(700px, 1fr));
    /* grid-template-columns: repeat(2, 450px); */
    gap: 20px;
    margin: 40px auto;
    /* max-width: 1100px; */
    width: 100%;
}

.benefit-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: #181818;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px 20px;
    /* box-shadow: 0 4px 8px rgba(18, 95, 139, 0.05); */
    /* box-shadow: 0 4px 0px rgba(6, 141, 219, 0.669); */
    box-shadow: 4px 0px 0px rgba(255, 210, 7, 0.38);
    border: 1px solid #e1e1e1;
    transition: box-shadow 0.3s ease;
    transition: transform 0.2s ease-in-out;
}

.benefit-crud{
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    gap: 10px;
    background-color: #fff;
    padding: 10px 10px;
    margin-bottom: 10px;
}
.benefit-card:hover {
    transform: translateY(-4px);
     /* box-shadow: 0 4px 8px rgba((255, 210, 7, 0.38)) */
    box-shadow: 0 4px 8px rgba((255, 210, 7, 0.38));
    /* box-shadow: 4px 0px 0px rgba(255, 210, 7, 0.38); */
    border: 1px solid #edc70b82;
    transition: box-shadow 0.3s ease;
    transition: transform 0.2s ease-in-out;
}

.benefit-profile img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
}

.benefit-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.benefit-details p {
    margin-top: 4px;
    font-size: 14px;
    color: #dab40c;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    scroll-behavior: smooth;
}

.course-card2 {
    min-width: 250px;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 10px;
}

.course-card {
    min-width: 250px;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}


.course-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 10px;
}

.course-card2 img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 10px;
}

.course-card:hover {
    transform: translateY(-5px);
}

.btn-secondary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #0056b3;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    background-color: #f8f8f8;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #e0e0e0;
    border-color: #888;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
    font-weight: bold;
}

.btn-show {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn-register {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
}

.btn-register:hover {
    background-color: #0056b3;
}

.event_section{
    width: 100%;
    /* background-color: #007BFF; */
    margin: auto;
    /* padding: 20px; */

}

.event_container{
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
    /* height: 620px; */

}

.event_details {
    width: 100%;
    padding: 20px 10px;
    background-color: #ffffff;
    
}

.event_details img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-block {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #fff;
    /* optional, lets the colors you add pop */
}

.about-block h2 {
    text-align: center;
    color: #bfa046;
    margin-bottom: 20px;
}
.about-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.about-image,
.about-content {
    flex: 1;
    /* Each takes 50% of space */
}

.about-image img {
    width: 100%;
    /* Fill the flex area */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15);
}

.about-content {
    text-align: justify;
    line-height: 1.6;
}


.about-style{
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

/* About Page */
.about-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    gap: 32px;
}

.about-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.about-block div {
    font-size: 1rem;
    line-height: 1.7;
}

/* Add playful icons for each block */
.about-block::before {
    font-size: 1.6rem;
    margin-right: 10px;
    vertical-align: middle;
    color: #d4af37;
    display: inline-block;
}


.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.gallery-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    width: 220px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gallery-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}


.img-modal {
    position: fixed;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.new-hero{
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 20px;
    padding: 20px 0px;
}



.hero-content{
    width: 100%;
    /* display: flex; */
}

.hero-details{
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-card {
    width: 100%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s; 
}

.course-card:hover {
    transform: translateY(-5px);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
}

.article-card2 {
    background: rgb(255, 255, 255);
    /* background: rgb(163, 131, 4); */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
}

.article-card2-link {
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    cursor: pointer;
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-card2:hover {
    cursor: pointer;
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-card2 img {
    border-radius: 8px;
    margin-bottom: 10px;
    width: 100%;
    height: 100px;
    object-fit: contain;
}

/* Article content */
.article-card2 p {
    color: #555;
    /* color: #000000; */
    line-height: 1.6;
}

/* Article footer with date */
.article-card2 small {
    color: #999;
    font-size: 0.85rem;
}

/* Style the tab content container */
.tab-content {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 25px;
  margin-top: 15px;
  border-radius: 5px;
  min-height: 200px;
  width: 90%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Style the tab list (horizontal menu) */
.tab-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    overflow-x: auto;
    /* Enable horizontal scroll if needed */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll for mobile */
    border-bottom: 2px solid #ccc;
    margin-top: 30px;
    width: 100vw;
    /* Full device width */
}

.tab-list::-webkit-scrollbar {
    height: 6px;
    /* Thin scrollbar */
}

.tab-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.tab-list li {
    flex: 0 0 auto;
    /* Prevent shrinking */
    margin-right: 10px;
}

.tab-list li a {
    display: inline-block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    background-color: #f5f5f5;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Keep text on one line */
}

.tab-list li.active a {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-bottom: none;
    color: #007bff;
}

.tab-list li a:hover {
    background-color: #eaeaea;
    color: #007bff;
}

.content-section {
    display: none;
}

.content-section:first-child {
    display: block;
}

.sidebar button.nav-tab {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0.5em 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sidebar button.nav-tab:hover {
    background-color: #f0f0f0;
}

/* === Dashboard Container === */
.dashboard-container {
    display: flex;
    flex-direction: row;
    /* Moves sidebar to the right */
    min-height: 100vh;
    background-color: #f9f9f9;
    font-family: 'Segoe UI', sans-serif;
    width: 100%;
}

/* === Sidebar === */

.sidebar {
    width: 200px;
    background-color: #5b5338;
    color: #fff;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
}

.sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: gold;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li,
.sidebar h2 {
    text-align: left;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #444;
} 

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar .dropdown-btn {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    font-size: 0.95rem;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.sidebar .dropdown-btn:hover {
    background-color: #444;
}

.sidebar .dropdown-container {
    display: none;
    padding-left: 12px;
    margin-top: 6px;
}

.sidebar .dropdown-container a {
    font-size: 0.9rem;
    color: #ddd;
}

.sidebar .dropdown-container p,
.sidebar .dropdown-container li {
    font-size: 0.85rem;
    color: #ccc;
    margin: 5px 0;
}


/* === Main Content === */
.main-content {
    /* flex: 1;
    padding: 30px;
    min-width: 0;
    width: 100%; */
    /* helps prevent overflow */
    margin-left: 200px;
        /* Same as sidebar width */
        padding: 30px;
        flex-grow: 1;
        min-height: 100vh;
        background-color: #f5f6fa;
}

.main-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* === Course Progress Section === */
.progress-summary {
    margin-bottom: 40px;
}

.course-card {
    background: white;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #4fc3f7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    width: 100%;
    background: #eee;
    height: 10px;
    border-radius: 5px;
    margin: 5px 0 10px;
    overflow: hidden;
}

.progress-bar .filled {
    height: 100%;
    background: #4fc3f7;
    transition: width 0.4s ease;
}

/* === Gamification Section === */
.gamification {
    background: #fff;
    padding: 20px;
    margin-bottom: 40px;
    border-left: 5px solid goldenrod;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gamification .badges {
    margin-top: 10px;
}

.badge {
    display: inline-block;
    background-color: goldenrod;
    color: #fff;
    padding: 5px 12px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* === Chart Section === */
.charts {
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 5px solid teal;
}

canvas {
    width: 100% !important;
    height: auto !important;
    margin-top: 20px;
}

.hamburger {
    display: none;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}
/* 
.stats-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    flex: 1 1 calc(25% - 20px);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #f1f1f1;
    min-width: 220px;
    box-sizing: border-box;
}

.stat-box h4 {
    margin: 10px 0;
    font-size: 1.1rem;
}

.stat-box p {
    font-size: 1.6rem;
    font-weight: bold;
} */

.stats-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    /* center align on wider screens */
}

.stat-box {
    flex: 1 1 calc(25% - 20px);
    /* 4 per row on desktop */
    min-width: 220px;
    /* stop shrinking too much */
    max-width: 280px;
    /* optional: keep them from stretching too far */

    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    background: #f9f9f9;
    box-sizing: border-box;
    color: #000;

    /* style effects */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

/* Headings inside stat-box */
.stat-box h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #444;
}

/* Numbers inside stat-box */
.stat-box p {
    font-size: 1.6rem;
    font-weight: bold;
    color: #222;
    margin: 0;
}

/* Color variations */
.stat-box.light-blue {
    background: #e3f2fd;
    color: #0d47a1;
}

.stat-box.light-pink {
    background: #fce4ec;
    color: #880e4f;
}

.stat-box.light-yellow {
    background: #fff8e1;
    color: #f57f17;
}

.stat-box.light-grey {
    background: #f5f5f5;
    color: #424242;
}

.analytics-wrapper {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.analytics-filters {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.course-card3 {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.course-card3 img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.progress-bar {
    height: 6px;
    background: #cfd8dc;
    margin-top: 4px;
    border-radius: 4px;
}

.progress-bar .filled {
    height: 100%;
    background: #2196f3;
}

.sidebar-nav {
    list-style: none;
    padding-left: 0;
}

.sidebar-nav ul{
    padding-left: 0;
    text-align: left;
}

.sidebar-nav li {
    margin: 10px 0;
}

.dropdown-container,
.sub-dropdown {
    display: none;
    list-style: none;
    margin-left: 10px;
}

.dropdown-btn,
.sub-dropdown-btn {
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    width: 100%;
    cursor: pointer;
    padding: 5px 10px;
}

.dropdown-btn:hover,
.sub-dropdown-btn:hover,
.sidebar-nav a:hover {
    background-color: #444;
}

/* .modules-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 10px 0;
}

.module-card {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    background: #f4f4f4;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} */

.pathway-section {
    margin-top: 20px;
}

.course-section {
    margin-bottom: 40px;
}

.course-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.modules-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.modules-scroll::-webkit-scrollbar {
    height: 8px;
}

.modules-scroll::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 4px;
}

.module-card {
    /* min-width: 220px; */
    width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.module-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.module-card a {
    display: inline-block;
    margin-top: 10px;
    background-color: #2196f3;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.article-card a {
    display: inline-block;
    margin-top: 10px;
    /* background-color: #2196f3; */
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.article-card2 a {
    display: inline-block;
    margin-top: 10px;
    background-color: #2196f3;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.module-card a:hover {
    background-color: #1976d2;
}

.module-card:hover {
    transform: translateY(-3px);
}

.course-section {
    margin-bottom: 40px;
}

.nav-tab.active {
    font-weight: bold;
    background: #444;
}

.profile-container {
  padding: 20px;
}

.profile-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
}

.profile-pic-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.learning-container {
    display: flex;
    width: 100%;
}

/* Mini Lesson Sidebar */
.lesson-sidebar {
    width: 220px;
    position: sticky;
    top: 0;
    height: 100vh; /* Full screen height */
    overflow-y: auto; /* Scroll only inside sidebar if too many items */
    background: #f9f9f9; /* Or transparent if you want */
    border-right: 1px solid #ddd;
    padding: 10px;
}

/* Responsive: Sidebar at top on mobile */


.lesson-sidebar h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.lesson-list {
    list-style: none;
    padding: 0;
}

.lesson-list li {
    margin-bottom: 8px;
}

.lesson-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #444;
    transition: background 0.2s;
}

.lesson-list a:hover {
    background: #e3f2fd;
}

.lesson-list .active-lesson a {
    background: #2196f3;
    color: white;
}

/* Lesson Content */
.lesson-content {
    flex: 1;
    padding: 20px;
    background: #fff;
    min-height: calc(100vh - 60px);
}

.lesson-video {
    margin-bottom: 20px;
    width: 100%;
}

.lesson-video iframe {
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* .lesson-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.lesson-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
} */

/* Quiz Results Overlay */
#quizResultsOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.overlay-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.overlay-content h2 {
    margin-bottom: 15px;
}

.overlay-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.overlay-content button {
    margin: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.overlay-content button:first-of-type {
    background: #2196f3;
    color: white;
}

.overlay-content button:nth-of-type(2) {
    background: #4caf50;
    color: white;
}

.overlay-content button:last-of-type {
    background: #f44336;
    color: white;
}

/* Make lesson + sidebar flex layout */


.no-bg {
    background: none;
    border: none;
    padding: 5px 0;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
}

.no-bg:hover {
    color: #007bff;
    text-decoration: underline;
    background: none;
}

.lesson-list {
    list-style: none;
    padding-left: 15px;
}

.lesson-list li {
    margin: 5px 0;
}

.chatbox {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    background: #fafafa;
}

.message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 70%;
}

.message.user {
    background: #007bff;
    color: white;
    margin-left: auto;
    text-align: right;
}

.message.ai {
    background: #eee;
    color: black;
    margin-right: auto;
    text-align: left;
}

.quiz-review {
    margin-bottom: 15px;
}

.quiz-review p {
    margin: 4px 0;
}

.quiz-review .correct {
    color: green;
    font-weight: bold;
}

.quiz-review .wrong {
    color: red;
    font-weight: bold;
}

.quiz-review .ai-feedback {
    background: #eef6ff;
    border-left: 4px solid #3b82f6;
    padding: 6px 10px;
    margin-top: 6px;
    border-radius: 5px;
    font-size: 14px;
}
.ai-tutor {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 320px;
    /* default width */
    max-height: 500px;
    min-height: 200px;
    /* prevent collapsing too small */
    min-width: 250px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    z-index: 1000;

    resize: both;
    /* ✅ allow dragging resize */
    overflow: hidden;
    /* keep contents inside */
}

.ai-tutor.collapsed {
    height: auto;
    max-height: none;
}

.ai-tutor-header {
    background: #0078d7;
    color: #fff;
    padding: 6px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    /* hint draggable */
}

.ai-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.ai-messages {
    flex: 1;
    padding: 6px;
    overflow-y: auto;
    min-height: 150px;
    max-height: 100%;
    /* adapt with resize */
}

/* ✅ User & Bot messages */
.msg.user {
    align-self: flex-end;
    background: #2563eb;
    color: #fff;
    border-radius: 12px 12px 0 12px;
    padding: 6px;
    margin: 4px;
    max-width: 90%;
    text-align: right;
    word-wrap: break-word;
}

/* .msg.bot {
    align-self: flex-start;
    background: #f1f0f0;
    border-radius: 12px 12px 12px 0;
    padding: 8px;
    margin: 6px;
    max-width: 90%;
    text-align: left;
    line-height: 1.4em;
    word-wrap: break-word;
} */

/* ✅ Formatting inside bot messages */
/* .msg.bot h3,
.msg.bot h4 {
    margin: 4px 0;
    color: #0078d7;
}

.msg.bot ul,
.msg.bot ol {
    margin: 4px 0 4px 18px;
}

.msg.bot code {
    background: #eee;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.msg.bot pre {
    background: #272822;
    color: #f8f8f2;
    padding: 8px;
    border-radius: 6px;
    overflow-x: auto;
} */

/* 🔹 Base chatbox styles (already good) */
.ai-tutor {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 380px;
    max-width: 90vw;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.ai-tutor-header {
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
}

.ai-messages {
    height: 260px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.ai-msg {
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 85%;
}

.ai-msg.user {
    align-self: flex-end;
    background: #e5f0ff;
}

.ai-msg.bot {
    align-self: flex-start;
    background: #f6f6f6;
}

.ai-input-row {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid #eee;
}

.ai-input-row input,
.ai-input-row select {
    flex: 1;
    padding: 8px 10px;
}

.ai-input-row button {
    padding: 8px 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

/* 🔹 Markdown formatting for bot replies */
.ai-msg.bot h3,
.ai-msg.bot h4 {
    margin: 4px 0;
    color: #0078d7;
}

.ai-msg.bot ul,
.ai-msg.bot ol {
    margin: 4px 0 4px 18px;
}

.ai-msg.bot code {
    background: #eee;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.ai-msg.bot pre {
    background: #272822;
    color: #f8f8f2;
    padding: 8px;
    border-radius: 6px;
    overflow-x: auto;
}

/* ✅ Suggestions */
.ai-suggestions {
    margin: 4px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.sugg-btn {
    background: #6d6d6d;
    border: none;
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    color: #fff;
}

.sugg-btn:hover {
    background: #393838;
}

.submissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.submission-card {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    width: 250px;
    background: #f9f9f9;
}

.submission-card h3 {
    margin: 5px 0;
}

.ai-feedback-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 8px;
    border-radius: 6px;
    margin-top: 10px;
}

.module-card.locked {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.locked-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #ccc;
    color: #333;
    font-size: 12px;
    border-radius: 4px;
}

.parent-section {
    margin-top: 15px;
    padding: 10px;
    /* background: #f9f9f9; */
    border-radius: 6px;
    font-size: 14px;

}

.parent-section h3 {
    margin-bottom: 8px;
}

.parent-section ul {
    list-style: none;
    padding: 0;
}

.parent-section li {
    padding: 4px 0;
}

.parent-request-form .btn-approve {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.parent-request-form .btn-approve:hover {
    background: #388e3c;
}

.parent-request-form .btn-reject {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.parent-request-form .btn-reject:hover {
    background: #b71c1c;
}

/* Table for classmates */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.styled-table th,
.styled-table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.styled-table th {
    background-color: #f4f4f4;
}

/* Cards for teachers */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    width: 220px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    text-align: center;
}

.card-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: contain;
}

.card-body p {
    margin: 5px 0;
    font-size: 14px;
}

.badges-section {
    margin-top: 30px;
    text-align: center;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.badge-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    font-size: 2rem;
}

.badge-name {
    font-weight: bold;
    color: #333;
    margin: 8px 0 4px;
}

.badge-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 5px;
    border: 2px solid #e0e0e0;
}

/* .badge-date {
    font-size: 0.85rem;
    color: #777;
} */

.badge-date,
.badge-module {
    font-size: 12px;
    color: #555;
    margin: 0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.badge-card {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 12px;
}

.badge-icon {
    font-size: 2rem;
}

.badge-name {
    font-weight: bold;
    color: #333;
    margin: 8px 0 4px;
}

.badge-date {
    font-size: 0.8rem;
    color: #777;
}

/* Profile Achievements */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.achievement-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.badge-pill {
    background: gold;
    color: #000;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.badge-placeholder {
    font-size: 50px;
    line-height: 80px;
    margin-bottom: 5px;
}
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(197, 197, 197, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* The breathing animation */
.spin img {
    width: 120px;
    height: 120px;
    animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}


/* 🔹 VIEW MODE TOGGLE BUTTONS */
/* .lesson-view-mode {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.lesson-view-mode button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #f0f0f0;
    cursor: pointer;
    font-weight: 500;
    color: #111;
    transition: 0.3s;
}

.lesson-view-mode button:hover {
    background: #e5e5e5;
}

.lesson-view-mode button.active {
    background: #007bff;
    color: #fff;
} */

/* 🔹 NOTE VIEW */
/* .lesson-note {
    line-height: 1.6;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
} */

/* 🔹 SLIDES VIEW */
/* .lesson-slides {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
} */

/* 🔹 SLIDE CARD */
/* .slide-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    min-height: 350px;
    animation: fadeSlide 0.5s ease-in-out;
}

.slide-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.slide-body {
    line-height: 1.6;
    font-size: 17px;
    margin-top: 10px;
}

.slide-body img {
    max-width: 90%;
    display: block;
    margin: 10px auto;
    border-radius: 8px;
} */

/* 🔹 SLIDE NAVIGATION */
/* .slide-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.slide-controls button {
    padding: 8px 14px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.slide-controls button:hover:not(:disabled) {
    background: #0056b3;
}

.slide-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
} */

/* 🔹 FULLSCREEN BUTTON */
/* .fullscreen-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.3s;
    color: #333;
}

.fullscreen-btn:hover {
    transform: scale(1.2);
    color: #007bff;
} */

/* 🔹 TEXT CUSTOMIZATION BAR */
/* .text-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.text-controls label {
    font-weight: 600;
}

.text-controls button,
.text-controls select {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}

.text-controls button:hover,
.text-controls select:hover {
    background: #eee;
} */

/* 🔹 FULLSCREEN PRESENTATION MODE */
/* :fullscreen .lesson-slides {
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

:fullscreen .slide-box {
    background: #1a1a1a;
    color: #fff;
    box-shadow: none;
    border: none;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

:fullscreen .slide-title {
    color: #4da3ff;
}

:fullscreen .slide-controls button {
    background: #4da3ff;
}

:fullscreen .fullscreen-btn {
    color: #fff;
}

:fullscreen .fullscreen-btn:hover {
    color: #4da3ff;
    transform: scale(1.2);
} */

/* 🔹 ANIMATION */
/* @keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

/* 🔹 VIEW MODE TOGGLE BUTTONS */
.lesson-view-mode {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.lesson-view-mode button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #f0f0f0;
    cursor: pointer;
    font-weight: 500;
    color: #111;
    transition: 0.3s;
    font-size: 0.95em;
}

.lesson-view-mode button:hover {
    background: #e5e5e5;
}

.lesson-view-mode button.active {
    background: #007bff;
    color: #fff;
}

/* 🔹 NOTE VIEW */
.lesson-note {
    line-height: 1.6;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 🔹 SLIDES VIEW */
.lesson-slides {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* 🔹 Lesson Note Images */
.lesson-note img {
    display: block;
    max-width: 100%;
    /* Fit container width */
    height: auto;
    /* Maintain aspect ratio */
    margin: 12px auto;
    /* Center the image */
    border-radius: 10px;
    /* Smooth rounded corners */
    object-fit: contain;
    /* Keep the full image visible */
}

/* 🔹 Slide Images */
.slide-body img {
    display: block;
    max-width: 100%;
    /* Fully responsive width */
    height: auto;
    /* Maintain aspect ratio */
    margin: 12px auto;
    border-radius: 10px;
    object-fit: contain;
    max-height: 70vh;
    /* Prevent overly tall images */
}

/* 🔹 SLIDE CARD */
.slide-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    min-height: 350px;
    animation: fadeSlide 0.5s ease-in-out;
}

.slide-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.slide-body {
    line-height: 1.6;
    font-size: 17px;
    margin-top: 10px;
}

/* .slide-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 8px;
} */

/* 🔹 SLIDE NAVIGATION */
.slide-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.slide-controls button {
    padding: 8px 14px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.slide-controls button:hover:not(:disabled) {
    background: #0056b3;
}

.slide-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 🔹 FULLSCREEN BUTTON */
.fullscreen-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.3s;
    color: #333;
}

.fullscreen-btn:hover {
    transform: scale(1.2);
    color: #007bff;
}

/* 🔹 TEXT CUSTOMIZATION BAR */
.text-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.text-controls label {
    font-weight: 600;
}

.text-controls button,
.text-controls select {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}

.text-controls button:hover,
.text-controls select:hover {
    background: #eee;
}

/* 🔹 FULLSCREEN PRESENTATION MODE */
:fullscreen .lesson-slides {
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

:fullscreen .slide-box {
    background: #1a1a1a;
    color: #fff;
    box-shadow: none;
    border: none;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

:fullscreen .slide-title {
    color: #4da3ff;
}

:fullscreen .slide-controls button {
    background: #4da3ff;
}

:fullscreen .fullscreen-btn {
    color: #fff;
}

:fullscreen .fullscreen-btn:hover {
    color: #4da3ff;
    transform: scale(1.2);
}

/* 🔹 ANIMATION */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

  .btn-download {
      display: inline-block;
      background: #007bff;
      color: #fff;
      padding: 10px 18px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      transition: 0.3s;
  }

  .btn-download:hover {
      background: #0056b3;
  }

  .pagination {
      text-align: center;
      margin: 20px 0;
  }

  .page-link {
      display: inline-block;
      margin: 0 5px;
      padding: 8px 14px;
      border: 1px solid #ccc;
      border-radius: 8px;
      text-decoration: none;
      color: #333;
  }

  .page-link:hover {
      background: #eee;
  }

  .page-link.active {
      background: #007bff;
      color: white;
      border-color: #007bff;
  }
/* Tablet screens (≤1024px) */
@media (max-width: 1024px) {
    .slide-box {
        max-width: 95%;
        padding: 18px;
    }

    .slide-title {
        font-size: 1.3em;
    }

    .slide-body {
        font-size: 16px;
    }

    .lesson-view-mode button {
        font-size: 0.9em;
    }
}

/* Mobile screens (≤600px) */
@media (max-width: 600px) {
    .lesson-view-mode {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .lesson-view-mode button {
        width: 100%;
    }

    .slide-box {
        padding: 14px;
        min-height: 280px;
    }

    .slide-title {
        font-size: 1.1em;
    }

    .slide-body {
        font-size: 15px;
    }

    .slide-controls {
        flex-direction: column;
        gap: 8px;
    }

    .slide-controls button {
        width: 100%;
        font-size: 0.9em;
    }

    .text-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-tutor {
        width: 95%;        /* almost full width */
        right: 2.5%;
        bottom: 0;
        max-height: 70vh; /* 70% of viewport */
    }

    .about-body {
            flex-direction: column;
        }

    .about-content {
        text-align: left;
    }

    .about-section {
        gap: 20px;
    }

    .about-block {
        padding: 18px;
    }

    .about-block h2 {
        font-size: 1.5rem;
    }
    
    .event-container {
        flex-direction: column;
        align-items: center;
        gap: 0px;
        /* display: flex; */
    }

    .event-section {
    padding: 30px;
    max-width: 100%;
    /* width: 100%; */
    margin: auto;
}

    .event-image img {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .article-card2 {
        padding: 15px;
        width: 90%;
    }

    .article-card2 img {
        border-radius: 8px;
        margin-bottom: 10px;
        width: 100%;
        height: 20px;
        object-fit: contain;
    }

    .benefit-card:hover {
        transform: translateY(-4px);
        /* box-shadow: 0 4px 8px rgba((255, 210, 7, 0.38)) */
        box-shadow: 0 4px 8px rgba((255, 210, 7, 0.38));
        /* box-shadow: 4px 0px 0px rgba(255, 210, 7, 0.38); */
        border: 1px solid #edc70b82;
        transition: box-shadow 0.3s ease;
        transition: transform 0.2s ease-in-out;
    }
    .event-details {
        padding: 20px;
    }

    .event-details h1 {
        font-size: 1.5em;
    }

    .event-details p {
        font-size: 1em;
    }

    .event-container {
        flex-direction: column;
        align-items: center;
        gap: 0px;
        /* display: flex; */
    }

    .lesson-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 15px;
}

.lesson-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lesson-number {
  font-weight: bold;
  color: #555;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: white;
}

.status-badge.published { background-color: #4CAF50; }
.status-badge.draft { background-color: #FFC107; }

.lesson-actions button {
  margin-right: 10px;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
}

}

.lesson-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.lesson-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.lesson-card video {
    width: 100%;
    border-radius: 5px;
}



@keyframes spin {
    to {
        transform: rotate(360deg);
    } }