/* Skill Elevator Core Styles */

:root {
    --color-primary: #5031fa;
    --color-primary-dark: #361ed2;
    --color-secondary: #ffa927;
    --color-background: #f5f7fb;
    --color-surface: #ffffff;
    --color-muted: #6f7d9c;
    --color-text: #1a1f36;
    --color-accent: #14b8a6;
    --shadow-soft: 0 20px 40px rgba(28, 35, 54, 0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.top-bar .container {
    padding: 0 0.75rem;
    width: 100% !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: relative;
    max-height: none !important;
    height: auto !important;
    box-sizing: border-box;
}

.site-header {
    background: linear-gradient(90deg, rgba(80, 49, 250, 0.95), rgba(20, 184, 166, 0.95));
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    flex-shrink: 0;
    max-height: none !important;
    height: auto !important;
    contain: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide scrollbar on header and all parent containers */
.site-header::-webkit-scrollbar,
.top-bar::-webkit-scrollbar,
.top-bar .container::-webkit-scrollbar,
.header-actions::-webkit-scrollbar,
.auth-links::-webkit-scrollbar,
.user-menu::-webkit-scrollbar,
.user-menu-dropdown::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.site-header,
.top-bar,
.top-bar .container,
.header-actions,
.auth-links,
.user-menu,
.user-menu-dropdown {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Ensure no scrollbar appears anywhere in header hierarchy */
.site-header *,
.top-bar *,
.header-actions *,
.auth-links *,
.user-menu * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.site-header *::-webkit-scrollbar,
.top-bar *::-webkit-scrollbar,
.header-actions *::-webkit-scrollbar,
.auth-links *::-webkit-scrollbar,
.user-menu *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.top-bar {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    box-sizing: border-box;
    position: relative;
    max-height: none !important;
    height: auto !important;
    contain: none !important;
    margin: 0 !important;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    min-width: 100% !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    overflow: visible !important;
    max-height: none !important;
}

.branding {
    flex-shrink: 0;
    min-width: 0;
    max-width: 240px;
}

.branding .logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.branding .logo .logo-text {
    white-space: nowrap;
}

.branding .logo .logo-text span {
    color: var(--color-secondary);
}

.branding .logo .logo-caption {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.15rem;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    margin-left: 1rem;
    overflow: visible !important;
    position: relative;
    width: auto;
    max-width: none;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
    max-width: 170px;
    width: 100%;
}

.search-form input {
    border: none;
    background: transparent;
    color: #fff;
    padding: 0.5rem 0.75rem;
    min-width: 0;
    max-width: 130px;
    width: 100%;
    flex: 1 1 auto;
    font-size: 0.9rem;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
}

.search-form button {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.primary-nav {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    margin-left: 0.5rem;
}

.primary-nav ul {
    display: flex;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
    min-width: 0;
}

.primary-nav li {
    flex-shrink: 0;
    min-width: fit-content;
}

.primary-nav a {
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    white-space: nowrap;
    font-size: 0.85rem;
    display: block;
}

.primary-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
    min-width: 0;
    overflow: visible !important;
}

.auth-links .btn {
    margin: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: fit-content;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
    display: inline-block;
    z-index: 10000;
    overflow: visible !important;
}

.user-menu * {
    overflow: visible !important;
    max-height: none !important;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.user-menu-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-menu-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: #fff;
    margin-left: 0.2rem;
}

.user-menu-toggle[aria-expanded="true"] .user-menu-chevron {
    transform: rotate(180deg);
}

/* Completed course styles */
.completed-label {
    color: #28a745; /* green */
    font-weight: 600;
}

.progress-bar span.completed {
    background: #28a745 !important;
}

.user-menu-dropdown {
    position: fixed !important;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 10001 !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    max-height: none !important;
    height: auto !important;
    border: 1px solid rgba(80, 49, 250, 0.1);
    /* Prevent any clipping */
    clip: auto !important;
    clip-path: none !important;
    /* Ensure it's outside any containing block */
    contain: none !important;
    /* Prevent scrollbar */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.user-menu-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(80, 49, 250, 0.05);
    border-bottom: 1px solid rgba(80, 49, 250, 0.1);
    overflow: visible !important;
    max-height: none !important;
}

.user-menu-profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(80, 49, 250, 0.3);
}

.user-menu-profile-info {
    flex: 1;
    min-width: 0;
}

.user-menu-profile-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-profile-email {
    font-size: 0.8rem;
    color: var(--color-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-divider {
    height: 1px;
    background: rgba(80, 49, 250, 0.1);
    margin: 0;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* When dropdown is open, ensure no scrollbars appear anywhere */
body:has(.user-menu-dropdown.show),
html:has(.user-menu-dropdown.show),
.site-header:has(.user-menu-dropdown.show),
.top-bar:has(.user-menu-dropdown.show) {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body:has(.user-menu-dropdown.show)::-webkit-scrollbar,
html:has(.user-menu-dropdown.show)::-webkit-scrollbar,
.site-header:has(.user-menu-dropdown.show)::-webkit-scrollbar,
.top-bar:has(.user-menu-dropdown.show)::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.user-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(80, 49, 250, 0.1);
    cursor: pointer;
    overflow: visible !important;
    max-height: none !important;
}

.user-menu-item:first-child {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.user-menu-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.user-menu-item:hover {
    background: rgba(80, 49, 250, 0.12);
}

.user-menu-item-logout {
    color: #dc2626;
}

.user-menu-item-logout:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.4rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--color-secondary);
    color: #1a1f36;
    box-shadow: 0 12px 24px rgba(255, 169, 39, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(255, 169, 39, 0.45);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-primary);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    background: rgba(80, 49, 250, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(80, 49, 250, 0.2);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(80, 49, 250, 0.25);
}

.category-nav {
    padding: 0.5rem 0;
    position: relative;
    overflow: visible;
    width: 100%;
}

.category-nav .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    position: relative;
    width: 100%;
}

.category-toggle {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.icon-chevron {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.category-toggle[aria-expanded="true"] .icon-chevron {
    transform: rotate(-135deg);
}

.category-menu {
    display: none;
    position: fixed;
    top: 150px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-surface);
    box-shadow: 0 8px 24px rgba(28, 35, 54, 0.15);
    border-top: 1px solid rgba(80, 49, 250, 0.1);
    z-index: 999;
    max-height: calc(100vh - 150px);
    overflow: hidden;
}

.category-menu.open {
    display: block;
}

.category-menu-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 400px;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0;
    border-right: 1px solid rgba(80, 49, 250, 0.1);
    background: #fafbfc;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    min-width: 280px;
}

.category-list li {
    margin: 0;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}

.category-list a:hover,
.category-list a.active {
    background: var(--color-surface);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.category-list img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.courses-panel {
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.courses-panel h3 {
    margin: 0 0 1.5rem;
    font-size: 1.3rem;
    color: var(--color-text);
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(80, 49, 250, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.course-item {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.course-item h4,
.course-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.courses-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.course-item {
    padding: 1rem;
    border: 1px solid rgba(80, 49, 250, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.course-item:hover {
    background: rgba(80, 49, 250, 0.05);
    border-color: var(--color-primary);
    transform: translateX(4px);
}

.course-item a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
}

.course-item h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.course-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.courses-panel-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--color-muted);
}

.site-main {
    padding-top: 2rem;
    flex: 1 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.hero-section {
    background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 55%),
                radial-gradient(circle at top left, rgba(80, 49, 250, 0.25), transparent 60%),
                var(--color-background);
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-categories {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-muted);
}

.hero-categories ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-categories a {
    color: var(--color-primary);
    font-weight: 600;
}

.hero-slider {
    display: grid;
    gap: 1rem;
}

.hero-slider .slide {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.hero-slider .slide h3 {
    margin: 0 0 0.6rem;
}

.hero-slider .slide.aws {
    background: linear-gradient(135deg, rgba(255, 169, 39, 0.9), rgba(80, 49, 250, 0.9));
}

.hero-slider .slide.microsoft {
    background: linear-gradient(135deg, rgba(80, 49, 250, 0.9), rgba(20, 184, 166, 0.9));
}

.hero-slider .slide.ibm {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.9), rgba(80, 49, 250, 0.9));
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-heading p {
    color: var(--color-muted);
    max-width: 640px;
    margin: 0 auto;
}

.featured-courses {
    padding: 3rem 0;
}

.course-grid {
    display: grid;
    /* Auto-fit as many columns as will fit at a reasonable card width */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.section-footer {
    margin-top: 3rem;
    text-align: center;
}

.course-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-thumb {
    position: relative;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.course-thumb img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    padding: 1rem;
}

.course-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.course-category:has(img) {
    background: transparent;
    padding: 0;
}

.course-category img {
    display: inline-block;
    vertical-align: middle;
    height: 24px;
    width: auto;
    max-width: 100%;
    background: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.course-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.course-body h3 {
    margin: 0;
    font-size: 1.2rem;
}

.course-body p {
    margin: 0;
    color: var(--color-muted);
}

.course-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.course-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.benefits {
    padding: 3rem 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.benefit-card img {
    width: 64px;
    margin: 0 auto 1rem;
}

.vendors {
    padding: 3rem 0;
}

.vendors .section-heading {
    text-align: center !important;
}

.vendors .section-heading h2 {
    text-align: center !important;
}

.vendor-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

/* When there's only one vendor, center it with max width */
.vendor-carousel .vendor:only-child {
    max-width: 400px;
    margin: 0 auto;
}

.vendor {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}

.vendor img {
    height: 48px;
    margin: 0 auto 0.75rem;
    display: block;
}

.vendor-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 auto 0.75rem;
    text-align: center;
    min-width: 100px;
}

.vendor p {
    text-align: center;
    margin: 0;
}

.testimonials {
    padding: 3rem 0;
}

.testimonials .section-heading {
    text-align: center !important;
}

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
}

/* When there's only one testimonial, center it with max width */
.testimonial-grid blockquote:only-child {
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-grid blockquote {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 0;
    box-shadow: var(--shadow-soft);
    text-align: center;
    width: 100%;
    max-width: 600px;
    flex: 0 1 auto;
    min-width: 280px;
}

.testimonial-grid blockquote p {
    text-align: center;
}

.testimonial-grid footer {
    margin-top: 1rem;
    color: var(--color-muted);
    text-align: center;
}

.cta {
    padding: 4rem 0;
    background: linear-gradient(120deg, rgba(80, 49, 250, 0.92), rgba(20, 184, 166, 0.92));
    color: #fff;
}

.cta-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-hero {
    padding: 4rem 0 2rem;
    background: var(--color-surface);
    border-bottom: 1px solid rgba(80, 49, 250, 0.1);
}

.page-hero .container {
    text-align: center;
}

.page-hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.page-hero p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-muted);
}

.courses-page {
    padding: 3rem 0;
}

.courses-page .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.filters {
    position: sticky;
    top: 120px;
}

.filter-form {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.2rem;
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
}

select,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    border: 1px solid rgba(80, 49, 250, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.8rem;
    font: inherit;
    width: 100%;
}

.form-actions {
    display: flex;
    gap: 0.6rem;
}

.results-summary {
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.empty-state {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.pagination a {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.pagination a.active {
    background: var(--color-primary);
    color: #fff;
}

.course-hero {
    padding: 3rem 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.course-hero .container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.course-meta {
    display: flex;
    gap: 0.75rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-meta span {
    background: rgba(80, 49, 250, 0.12);
    color: var(--color-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}

.course-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
}

.course-actions .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.course-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    color: var(--color-muted);
}

.course-overview {
    padding: 3rem 0;
}

.course-overview .container {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3rem;
}

.course-syllabus .module {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.course-sidebar {
    display: grid;
    gap: 1.5rem;
}

.instructor-card,
.course-highlights,
.enroll-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.review-rating span {
    color: #f6c042;
    font-size: 1.1rem;
}

.site-footer {
    background: #0e1329;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    margin-top: auto;
}

.footer-top {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.footer-brand .logo span {
    color: var(--color-secondary);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul,
.footer-blog ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    height: 24px;
    width: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
}

.alert {
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.alert-success {
    background: rgba(20, 184, 166, 0.15);
    color: #0f766e;
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.auth-page {
    padding: 4rem 0;
}

.auth-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.auth-card {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.auth-card h1 {
    margin-top: 0;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form .dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.auth-form .checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.auth-form .checkbox input {
    width: auto;
}

.auth-showcase {
    background: linear-gradient(135deg, rgba(80, 49, 250, 0.12), rgba(20, 184, 166, 0.12));
    padding: 2.5rem;
    border-radius: var(--radius-md);
}

.auth-showcase ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--color-muted);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: var(--color-muted);
}

.auth-switch a {
    color: var(--color-primary);
    font-weight: 600;
}

.dashboard {
    padding: 3rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.panel {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    min-height: 260px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.panel-header a {
    color: var(--color-primary);
}

.progress-list,
.sessions-list,
.certifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.2rem;
}

.progress-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
}

.progress-list .thumb img {
    border-radius: var(--radius-sm);
    height: 80px;
    object-fit: cover;
}

.progress-bar {
    background: rgba(80, 49, 250, 0.12);
    border-radius: 999px;
    height: 8px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: var(--color-primary);
    border-radius: 999px;
}

.course-feedback-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.course-feedback-links .btn-sm {
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.course-certificate {
    margin-top: 1rem;
}

.course-certificate .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.progress-indicator {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(80, 49, 250, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.sessions-list li,
.certifications-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sessions-list h3,
.certifications-list h3 {
    margin: 0 0 0.4rem;
}

.page-section {
    padding: 4rem 0;
}

.page-section.alt {
    background: #fafbfc;
    border-top: 1px solid rgba(80, 49, 250, 0.08);
    border-bottom: 1px solid rgba(80, 49, 250, 0.08);
}

.page-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--color-text);
}

.page-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.8rem;
    color: var(--color-text);
}

.page-section p {
    color: var(--color-muted);
    line-height: 1.8;
    margin: 0 0 1.2rem;
}

.page-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.page-section li {
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.cards-grid article {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(80, 49, 250, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cards-grid article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 49, 250, 0.1);
}

.logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.logos span {
    background: rgba(80, 49, 250, 0.08);
    color: var(--color-primary);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
}

.logos span:has(img) {
    padding: 0;
    display: inline-block;
    width: fit-content;
    background: transparent;
}

.callout {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(80, 49, 250, 0.15);
    box-shadow: 0 2px 8px rgba(80, 49, 250, 0.08);
}

.contact-info {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.6rem;
}

.contact-info a {
    color: var(--color-primary);
}

.contact-form .dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.faq-list {
    display: grid;
    gap: 1.5rem;
}

.faq-list article {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 1.5rem;
    justify-content: center;
    justify-items: center;
}

.cert-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.cert-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto;
}

.cert-card .vendor {
    color: var(--color-primary);
    font-weight: 600;
}

.legal-content {
    display: grid;
    gap: 1.5rem;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.legal-content ul {
    padding-left: 1.2rem;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.sitemap-grid ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.sitemap-grid a {
    color: var(--color-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card img {
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    display: grid;
    gap: 0.8rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.blog-post-hero {
    padding: 3rem 0 1rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.blog-post-hero h1 {
    margin: 0;
}

.blog-post-hero .author,
.blog-post-hero .post-date {
    color: var(--color-muted);
}

.blog-post-cover {
    padding: 2rem 0;
}

.blog-post-content {
    padding: 2rem 0;
    display: grid;
    gap: 1.5rem;
}

.blog-post-content h2 {
    margin-top: 2rem;
}

.blog-post-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

.related-posts .blog-grid {
    margin-top: 2rem;
}

.jobs-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.jobs-list article {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.8rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.support-card {
    background: var(--color-surface);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1rem;
}

.support-card ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.support-card a {
    color: var(--color-primary);
}

.enroll-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1rem;
    max-width: 640px;
}

.enroll-form {
    display: grid;
    gap: 1rem;
}

.muted {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.admin-page {
    padding: 3rem 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--color-surface);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.6rem;
    text-align: center;
}

.metric-card span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.metric-card strong {
    font-size: 2rem;
    color: var(--color-primary);
}

.form-wrapper {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    max-width: 780px;
}

.admin-form {
    display: grid;
    gap: 1.2rem;
}

.admin-form .dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-form .checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.table-wrapper {
    overflow-x: auto;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(80, 49, 250, 0.08);
}

.admin-table thead {
    background: rgba(80, 49, 250, 0.08);
}

.table-actions {
    display: flex;
    gap: 0.6rem;
}

.table-actions a {
    color: var(--color-primary);
    font-weight: 600;
}

.table-actions .danger {
    color: #dc2626;
}

/* Course Content Tables */
.course-content table,
.module table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.course-content table thead,
.module table thead {
    background: rgba(80, 49, 250, 0.1);
}

.course-content table th,
.module table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid rgba(80, 49, 250, 0.2);
}

.course-content table td,
.module table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(80, 49, 250, 0.08);
    color: var(--color-muted);
}

.course-content table tbody tr:last-child td,
.module table tbody tr:last-child td {
    border-bottom: none;
}

.course-content table tbody tr:hover,
.module table tbody tr:hover {
    background: rgba(80, 49, 250, 0.05);
}

.course-content table[border="1"],
.module table[border="1"] {
    border: 1px solid rgba(80, 49, 250, 0.15);
}

.course-content table[border="1"] th,
.course-content table[border="1"] td,
.module table[border="1"] th,
.module table[border="1"] td {
    border: 1px solid rgba(80, 49, 250, 0.15);
}

/* Remove borders from tables in module descriptions (courses/show.php) */
.course-syllabus .module > div table {
    border: none !important;
}

.course-syllabus .module > div table[border="1"] {
    border: none !important;
}

.course-syllabus .module > div table th,
.course-syllabus .module > div table td {
    border: none !important;
}

.course-syllabus .module > div table[border="1"] th,
.course-syllabus .module > div table[border="1"] td {
    border: none !important;
}

/* Modal styles for custom site modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 30, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}
.modal-overlay.show {
    display: flex;
}
.modal-dialog {
    max-width: 900px;
    width: 100%;
}
.modal-content {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(28,35,54,0.18);
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: none;
    background: linear-gradient(90deg, rgba(80,49,250,0.95), rgba(20,184,166,0.95));
    color: #fff;
}
.modal-title {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
}
.modal-body {
    padding: 1.25rem 1.5rem 2rem;
    color: #222;
    line-height: 1.7;
    font-size: 0.98rem;
}
.modal-body p { margin-bottom: 0.9rem; }
.modal-body a { color: var(--color-primary); font-weight:600; }
.modal-footer {
    padding: 0.75rem 1.25rem;
    border-top: none;
    text-align: right;
}
.btn-close {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

/* Slight backdrop blur for focus */
.modal-overlay.show { backdrop-filter: blur(4px); }

/* Custom scrollbar inside modal body */
.modal-body::-webkit-scrollbar { width: 10px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 8px; }

@media (max-width: 720px) {
    .modal-dialog { max-width: 96%; }
    .modal-body { padding: 1rem; font-size: 0.95rem; }
}

/* Coupon Styles */
.coupon-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
}

.text-success {
    color: #10b981;
    font-weight: 500;
}

.text-error {
    color: #ef4444;
    font-weight: 500;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

