@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #ffffff;
    --fg: #0a0a0a;
    --acc: #ff5c00;
    --acc-rgb: 255, 92, 0;
    --acc-soft: #fff1e6;
    --sub: #555555;
    --surface: #f8f8f8;
    --border: rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --max-width: 1320px;
}

.nav-left a {
    font-size: clamp(1.5rem, 5vw, 2rem);
}

/* --- Breadcrumb --- */
.breadcrumb-area {
    padding: 160px 0 80px;
    background-image: url('assets/img/breadcurmb.png');
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    color: var(--fg);
    margin-bottom: 40px;
}

.breadcrumb-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 1;
}

.breadcrumb-area .wrap {
    position: relative;
    z-index: 2;
}

.breadcrumb-area h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    line-height: 1.1;
}

.breadcrumb-area h1 span {
    color: var(--acc);
}

.breadcrumb-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb-links a {
    color: var(--sub);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-links a:hover {
    color: var(--acc);
}

.breadcrumb-links .sep {
    color: var(--acc);
    opacity: 0.5;
}

.breadcrumb-links .current {
    color: var(--fg);
}

/* Visibility Helpers */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .wrap {
        padding: 0 16px;
    }
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--fg);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

body {
    line-height: 1.6;
}

/* --- Typo --- */
h1,
h2,
h3,
.serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

.bold {
    font-weight: 700;
}

/* --- 3D BOOK ENGINE --- */
.book-3d-wrap {
    perspective: 1500px;
    width: 320px;
    height: 440px;
    margin: 0 auto;
    cursor: grab;
}

.book-3d-wrap:active {
    cursor: grabbing;
}

.book-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    transform: rotateY(-20deg) rotateX(10deg);
}

.book-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px 12px 12px 4px;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1);
}

.book-front {
    background: #fff;
    z-index: 2;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
}

.book-back {
    background: #eee;
    transform: rotateY(180deg) translateZ(40px);
    z-index: 1;
}

.book-spine {
    position: absolute;
    width: 40px;
    height: 100%;
    left: -20px;
    background: #0a0a0a;
    transform: rotateY(-90deg);
    transform-origin: right;
    border-radius: 4px 0 0 4px;
}

.book-pages {
    position: absolute;
    width: 38px;
    height: 98%;
    top: 1%;
    right: 2px;
    background: linear-gradient(90deg, #fff 0%, #e0e0e0 100%);
    transform: translateZ(-20px) rotateY(90deg);
}

/* --- Layout Primitives --- */
.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .wrap {
        padding: 0 16px;
    }
}

.section {
    padding: 80px 0;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 20px;
}

.bento-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 92, 0, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 92, 0, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.bento-card:hover::before {
    opacity: 1;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--acc);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 92, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 92, 0, 0.3);
}

.btn-black {
    background: var(--fg);
    color: #fff;
}

.btn-black:hover {
    background: #000;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SMART ASSET BLENDING (Auto-Background Removal) --- */
.book-card-thumb img {
    /* No filters as requested */
    mix-blend-mode: normal !important;
    filter: none !important;
    transition: none !important;
}

.book-card:hover .book-card-thumb img {
    filter: none !important;
    transform: none !important;
}

.sponsor-banner img {
    filter: none !important;
    transition: all 0.3s ease;
}

.sponsor-banner:hover img {
    filter: none !important;
    transform: none !important;
}

.book-face.book-front {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent !important;
}

#features {
    background: var(--bg);
    padding: 100px 0;
}

/* Marketplace Header Clone */
.market-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.market-header .serif {
    font-size: 3.2rem;
    line-height: 1.1;
}

.market-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Global Responsive Spacing */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 60px;
}

/* Step-by-Step Section */
.section-steps {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.step-item {
    text-align: center;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--acc);
    margin-bottom: 15px;
}

.step-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--sub);
}

/* Subscription Package */
.subscription-package {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    border: 2px dashed var(--acc);
}

.package-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.package-desc {
    color: var(--sub);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.package-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.package-item {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.package-icon {
    font-size: 1.5rem;
    color: var(--acc);
    margin-bottom: 10px;
}

.package-item .small-desc {
    font-size: 0.85rem;
    color: var(--sub);
}

/* Pricing List */
.pricing-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 40px auto;
    display: grid;
    gap: 15px;
}

.pricing-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.pricing-list i {
    color: var(--acc);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-left {
    flex: 0 0 200px;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-right {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}


.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px;
}


.main-nav.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--fg);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--acc);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--acc);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--fg);
    transition: all 0.3s ease;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-center {
        flex: 0;
    }

    .nav-left {
        flex: 1;
    }

    .nav-right {
        flex: 1;
        justify-content: flex-end;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        display: flex !important;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-right {
        gap: 12px;
    }

    .nav-auth {
        gap: 10px;
    }

    .nav-auth .btn {
        padding: 8px 16px !important;
        font-size: 0.8rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        display: flex !important;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
    }

    /* Burger Animation */
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.btn-view-all {
    background: var(--acc);
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.btn-view-all:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(var(--acc-rgb), 0.2);
}

/* --- BOOKSTORE LAYOUT --- */
.bookstore-grid {
    display: flex;
    flex-wrap: nowrap;
    /* Swiper needs this */
    background: transparent;
}

.book-card:first-child {
    border-left: none;
}

.book-card:last-child,
.sponsor-banner {
    border-right: none;
}

.book-card {
    width: 100%;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: none;
    background: transparent;
    height: 100%;
    box-sizing: border-box;
}

.course-swiper {
    width: 100%;
    height: 100%;
}

.book-card:hover {
    background: rgba(var(--acc-rgb), 0.03);
}

.book-card-thumb {
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.book-card-thumb img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
}

.book-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card-short-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.book-card-rating {
    color: #ffd700;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.book-card-author {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 5px;
}

.book-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--acc);
}

.market-content-flex {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 769px) {
    .market-content-flex {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }

    .course-display-area {
        flex: 0 0 75%;
        width: 75%;
    }

    .sponsor-banner {
        flex: 0 0 25%;
        width: 25%;
        margin-top: 0 !important;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-left: 1px solid var(--border);
        background: transparent;
        border-radius: 0;
        overflow: visible;
        padding: 0 30px;
    }

    .sponsor-banner img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        max-width: 100%;
    }
}

/* Sponsor Banner Styling */
.sponsor-banner {
    width: 100%;
    overflow: visible;
}

.sponsor-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}



@media (max-width: 768px) {
    .main-nav {
        padding: 20px 24px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    /* Steps */
    .step-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Subscription Package */
    .subscription-package {
        padding: 30px 20px;
        border-width: 1px;
    }

    .package-title {
        font-size: 1.8rem;
    }

    .package-desc {
        font-size: 0.95rem;
    }

    .package-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Nav links already handled by the mobile menu styles above */

    /* Marketplace Overhaul (Mobile-First Grandeur) */
    .market-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .market-header .serif {
        font-size: 2rem;
    }

    .book-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .bookstore-grid {
        flex-direction: column;
        gap: 0;
    }

    .swiper-wrapper {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        transform: none !important;
    }

    .swiper-slide {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .swiper-slide:nth-child(n+5) {
        display: none !important;
    }

    .book-card {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 40px 24px;
        border: none;
        border-bottom: 1px solid var(--border);
        text-align: left;
        background: transparent;
    }

    .book-card:last-child {
        border-bottom: none;
    }

    .book-card-thumb {
        height: 250px;
        aspect-ratio: auto;
        justify-content: center;
        margin-bottom: 20px;
        background: transparent;
    }

    .book-card-thumb img {
        max-width: 100%;
        transform: none;
        filter: none;
    }

    .mobile-course-list {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .sponsor-banner {
        flex: 1 1 100%;
        max-width: 100%;
        height: auto;
        border: none;
        background: transparent;
        margin-top: 40px;
        padding: 0;
        border-top: 1px solid var(--border);
        padding-top: 40px;
    }

    .sponsor-banner img {
        border-radius: 0;
        box-shadow: none;
        width: 100%;
    }
}