/* ========================================== */
/* GLOBAL RESET & TYPOGRAPHY                  */
/* ========================================== */
/* ========================================== */
/* GLOBAL RESET & TYPOGRAPHY                  */
/* ========================================== */

/* ========================================== */
/* GLOBAL RESET & TYPOGRAPHY                  */
/* ========================================== */

/* 1. Light Weight (Used for thinner text) */
@font-face {
    font-family: 'Futura PT';
    src: url('/fonts/FuturaPTLight.otf') format('opentype');
    font-weight: 300; 
    font-style: normal;
}

/* 2. Regular / Book Weight (Used for standard body text) */
@font-face {
    font-family: 'Futura PT';
    src: url('/fonts/FuturaPTBook.otf') format('opentype');
    font-weight: normal; /* This equals 400 */
    font-style: normal;
}

/* 3. Medium Weight (Slightly thicker than normal) */
@font-face {
    font-family: 'Futura PT';
    src: url('/fonts/FuturaPTMedium.otf') format('opentype');
    font-weight: 500; 
    font-style: normal;
}

/* 4. Bold / Demi Weight (Used for headers and bold tags) */
@font-face {
    font-family: 'Futura PT';
    src: url('/fonts/FuturaPTDemi.otf') format('opentype');
    font-weight: bold; /* This equals 700 */
    font-style: normal;
}

:root {
    --text-main: #000000;
    --bg-main: #ffffff;
    --grey-light: #f4f4f4;
    --footer-bg: #4a4a4a;
}
body {
    /* Update the font-family here! */
    font-family: 'Futura PT', Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



/* ========================================== */
/* NAVIGATION                                 */
/* ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 40px 5%;
}

.nav-brand {
    font-size: 3rem;
    text-decoration: none;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
}

.nav-links a.active {
    font-weight: bold; /* Highlights the current page */
}

.cart-badge {
    background-color: #3b82f6;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    display: none;
    vertical-align: text-top;
}

.cart-badge.has-items {
    display: inline-block;
}

/* ========================================== */
/* SEARCH BARS                                */
/* ========================================== */
.search-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 40px 15px 20px;
    border: none;
    border-radius: 30px;
    background: var(--grey-light);
    font-family: inherit;
    font-size: 1.1rem;
    box-sizing: border-box;
}

/* ========================================== */
/* HOMEPAGE SPECIFIC                          */
/* ========================================== */
.hero-section {
    text-align: center;
    padding: 100px 5% 50px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 50px;
}

/* ========================================== */
/* 3D LIBRARY PAGE LAYOUT                     */
/* ========================================== */
.library-layout {
    display: flex;
    padding: 0 5%;
    gap: 50px;
    margin-bottom: 80px;
}

/* Sidebar */
.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.sidebar h3 {
    margin: 20px 0 5px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 5px;
    font-size: 1rem;
    cursor: pointer;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
}

.controls-row {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns like the mockup */
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    background: var(--grey-light);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* Fixed height for uniformity */
    margin-bottom: 10px;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.load-more {
    text-align: center;
    margin-top: 60px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

/* ========================================== */
/* FOOTER                                     */
/* ========================================== */
.site-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    margin-top: auto; /* Pushes footer to bottom */
    font-size: 0.8rem;
}

.footer-col h4 {
    margin: 0 0 5px 0;
    font-size: 0.8rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
}

/* ========================================== */
/* HOMEPAGE SPECIFIC UPDATES (MOCKUP)         */
/* ========================================== */

/* Navigation Updates */
.navbar {
    padding: 30px 5%;
    align-items: center;
}
.nav-brand {
    font-size: 2rem;
    font-weight: 500;
}
.nav-links {
    font-weight: 300;
    font-size: 1.1rem;
    align-items: center;
}
.nav-links a.active {
    font-weight: normal;
}

/* Hero Section Updates */
.hero-section {
    padding: 120px 5% 100px 5%;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-subheadline {
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 60px auto;
    font-size: 1.3rem;
    line-height: 1.5;
    color: #333;
}

/* Search Bar Updates */
.search-container {
    max-width: 600px;
}

.search-input {
    background: var(--grey-light);
    border-radius: 50px;
    padding: 18px 50px 18px 30px;
    font-size: 1.1rem;
    font-weight: 300;
    color: #666;
    outline: none;
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    pointer-events: none;
}

/* Footer Layout Updates */
.site-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 20px;
    padding: 60px 5% 40px 5%;
    text-align: left;
}

.footer-col {
    text-align: left !important;
}

.footer-brand {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.brand-col p {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.4;
    color: #ddd;
}

.link-col h4 {
    margin: 0 0 5px 0;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: lowercase;
}

.link-col ul {
    margin-bottom: 15px;
}

.link-col li a, .legal-col li a {
    font-weight: 300;
    color: #ddd;
}

.legal-col {
    /* Removed flex so header and list stack vertically */
}

.legal-col ul {
    margin-top: 0;
}

.subscribe-col {
    text-align: right !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.subscribe-col p {
    font-size: 0.8rem;
    font-weight: 300;
    color: #ddd;
    margin-bottom: 10px;
}

.subscribe-col h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

/* ========================================== */
/* 3D LIBRARY SPECIFIC UPDATES                */
/* ========================================== */

.library-search {
    max-width: 100% !important;
}

.sidebar li.active-filter {
    text-decoration: underline;
    font-weight: bold;
}

.nav-links a.active {
    font-weight: bold !important;
}

/* ========================================== */
/* COURSES PAGE                               */
/* ========================================== */

.courses-hero {
    text-align: center;
    padding: 60px 5% 80px 5%;
}

.courses-hero h1 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.courses-hero p {
    font-size: 1.3rem;
    font-weight: 300;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.course-card {
    display: flex;
    flex-direction: column;
}

.course-image-wrapper {
    background: var(--grey-light);
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-bottom: 20px;
}

.course-details {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.course-title {
    font-size: 1.4rem;
    font-weight: bold;
}

.course-price {
    font-size: 1.2rem;
    font-weight: normal;
}

/* ========================================== */
/* ABOUT PAGE & CONTACT FORM                  */
/* ========================================== */

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 5%;
}

.about-text h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: 0;
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 20px;
}

.contact-wrapper {
    background-color: var(--grey-light);
    padding: 50px;
}

.contact-wrapper h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    font-family: 'Futura PT', Arial, sans-serif;
    font-size: 1rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: var(--bg-main);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #999;
}

.submit-btn {
    background-color: var(--text-main);
    color: var(--bg-main);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-family: 'Futura PT', Arial, sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s ease;
}

.submit-btn:hover {
    opacity: 0.8;
}

@media (max-width: 800px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* ========================================== */
/* CART PAGE                                  */
/* ========================================== */

.cart-layout {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 5%;
    text-align: center;
}

.cart-layout h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.cart-summary {
    background-color: var(--grey-light);
    padding: 40px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 30px;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.cart-items li {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 300;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    padding-top: 20px;
}

.checkout-btn {
    background-color: var(--text-main);
    color: var(--bg-main);
    padding: 20px;
    font-size: 1.2rem;
    font-family: 'Futura PT', Arial, sans-serif;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s ease;
}

.checkout-btn:hover {
    opacity: 0.8;
}

/* ========================================== */
/* DASHBOARD PAGE                             */
/* ========================================== */

.dashboard-layout {
    max-width: 1200px;
    margin: 50px auto 100px auto;
    padding: 0 5%;
}

.dashboard-layout h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 50px;
}

.dashboard-section {
    margin-bottom: 60px;
}

.dashboard-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 25px;
}

/* Course Progress Grid */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.progress-card {
    background-color: var(--grey-light);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.progress-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.progress-card progress {
    width: 100%;
    height: 10px;
    margin-bottom: 20px;
    appearance: none;
}

.progress-card progress::-webkit-progress-bar {
    background-color: #ddd;
    border-radius: 5px;
}

.progress-card progress::-webkit-progress-value {
    background-color: var(--text-main);
    border-radius: 5px;
}

.resume-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 10px 20px;
    font-family: 'Futura PT', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.resume-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
}

/* Asset Library Grid */
.asset-library-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.asset-card {
    display: flex;
    flex-direction: column;
}

.asset-thumbnail {
    background-color: var(--grey-light);
    aspect-ratio: 1;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.download-link {
    color: var(--text-main);
    text-decoration: underline;
    font-weight: 500;
    font-size: 1rem;
}

/* ========================================== */
/* COURSE VIEWER                              */
/* ========================================== */

.viewer-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 40px;
    padding: 40px 5%;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .viewer-layout {
        grid-template-columns: 1fr;
    }
}

.course-sidebar {
    background: var(--grey-light);
    padding: 20px;
    height: calc(100vh - 150px);
    overflow-y: auto;
    border-radius: 8px;
}

.playlist-chapter {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
}

.playlist-chapter:first-of-type {
    margin-top: 0;
}

.playlist-lessons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.playlist-lessons li {
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.playlist-lessons li:hover {
    background: #e0e0e0;
}

.playlist-lessons li.completed {
    text-decoration: line-through;
    color: #666;
}

.playlist-lessons li.active {
    font-weight: bold;
    background: var(--text-main);
    color: var(--bg-main);
}

.playlist-lessons li.active:hover {
    background: var(--text-main);
}

.video-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.video-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-metadata {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.lesson-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
}

.complete-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 10px 20px;
    font-size: 1rem;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.complete-btn:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

.lesson-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* ========================================== */
/* PRODUCT CARD BUTTON UPDATES                */
/* ========================================== */

.product-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.direct-buy-btn {
    background-color: var(--text-main, #333);
    color: var(--bg-main, #fff);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    z-index: 2;
}

.direct-buy-btn:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* ========================================== */
/* PRODUCT DETAILS PAGE                       */
/* ========================================== */

.navigation-bar {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-breadcrumb {
    color: var(--grey-dark, #94a3b8);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: capitalize;
}

.back-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--grey-dark, #64748b);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.back-link:hover {
    color: var(--text-main, #0f172a);
    transform: translateX(-4px);
}

.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 5%;
    align-items: start;
}

@media (max-width: 900px) {
    .details-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.gallery-section {
    background: var(--grey-light, #f4f4f4);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    padding: 20px;
}

.gallery-section img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.details-content {
    display: flex;
    flex-direction: column;
}

.details-content h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.price-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-main, #333);
    margin: 0 0 30px 0;
}

.primary-cta-btn {
    background-color: var(--text-main, #333);
    color: var(--bg-main, #fff);
    border: none;
    padding: 18px 30px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
}

.primary-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 40px;
}

.specifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    background: var(--grey-light, #f4f4f4);
    padding: 30px;
    border-radius: 8px;
}

.spec-item {
    font-size: 1rem;
    color: #333;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-item strong {
    font-weight: bold;
}

/* ========================================== */
/* ADMIN PORTAL                               */
/* ========================================== */

.admin-container {
    max-width: 1400px;
    margin: 50px auto 100px auto;
    padding: 0 5%;
}

.admin-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.mode-toggle {
    display: flex;
    background: var(--grey-light);
    border-radius: 8px;
    overflow: hidden;
}

.mode-toggle button {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-toggle button.active {
    background: var(--text-main);
    color: var(--bg-main);
}

.admin-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.admin-left-col h2,
.admin-right-col h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--grey-light);
    padding-bottom: 10px;
}

#inventory-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-save {
    background-color: var(--text-main);
    color: var(--bg-main);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: inherit;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 2;
    transition: opacity 0.2s;
}

.btn-save:hover {
    opacity: 0.8;
}

.btn-clear {
    background-color: transparent;
    color: var(--text-main);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: inherit;
    border: 1px solid var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
}

.btn-clear:hover {
    background-color: var(--grey-light);
}

/* Scrollbar styling for inventory feed */
#inventory-feed::-webkit-scrollbar {
    width: 6px;
}

#inventory-feed::-webkit-scrollbar-track {
    background: var(--grey-light);
    border-radius: 4px;
}

#inventory-feed::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.btn-delete {
    background-color: #ef4444;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: inherit;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    transition: opacity 0.2s;
}

.btn-delete:hover {
    opacity: 0.8;
}

/* OAuth Button */
.oauth-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: box-shadow 0.2s, background-color 0.2s;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}

.oauth-btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.divider span {
    padding: 0 10px;
    color: #666;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ========================================== */
/* RESPONSIVE DESIGN (MOBILE & TABLET)        */
/* ========================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .product-grid, .asset-library-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Global Layout Fixes */
    html, body {
        overflow-x: hidden;
    }

    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        gap: 25px;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    /* Global Padding Reduction */
    .library-layout, .viewer-layout, .details-layout, .cart-layout, .course-details, .playlist-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .course-details {
        flex-direction: column;
        gap: 20px;
    }

    /* Footer */
    .site-footer {
        grid-template-columns: 1fr !important;
        padding: 40px 15px !important;
        gap: 40px;
        text-align: center;
    }

    .footer-col.legal-col {
        justify-content: center;
    }

    .footer-col.subscribe-col {
        text-align: center !important;
        align-items: center;
        justify-content: center;
    }
    
    .footer-col.subscribe-col > div {
        justify-content: center !important;
    }

    /* Layout Grids */
    .library-layout {
        flex-direction: column;
        gap: 30px;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .product-grid, .course-grid, .asset-library-grid {
        grid-template-columns: 1fr;
    }

    .course-grid {
        gap: 30px;
    }
    
    /* Other sections */
    .about-layout {
        grid-template-columns: 1fr;
    }

    .progress-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-items li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}