/*
Theme Name: Jet Ödev
Theme URI: https://jetodev.com
Author: Mehmet Ali
Description: Wordpress için hazırladığım tema
Version: 1.5
Text Domain: jetodevtema
*/

:root {
    --primary: #6366f1;
    /* Indigo */
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-soft: #e0e7ff;
    --secondary: #0f172a;
    /* Slate 900 */
    --accent: #f43f5e;
    /* Rose / Coral */
    --accent-light: #ffe4e6;
    --white: #ffffff;
    --bg-main: #fafaf9;
    /* Warm off-white */
    --text-main: #3f3f46;
    --text-heading: #18181b;
    --text-muted: #71717a;
    --border: #e4e4e7;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-sm: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 16px 36px -4px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 24px 48px -8px rgba(99, 102, 241, 0.15);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Syne', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

input,
button,
textarea,
select {
    font-family: inherit;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Top Bar */
.header-top-bar {
    background: var(--secondary);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.7rem 0;
    font-weight: 600;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
}

.top-meta a:hover {
    color: #fff;
}

.sep {
    margin: 0 8px;
    opacity: 0.3;
}

.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-main-wrap {
    background: transparent;
    position: relative;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Scroll Effect */
.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Admin Bar Fixes */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
}

.site-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    font-family: 'Syne', sans-serif;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-accent {
    color: transparent;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    cursor: pointer;
    padding: 0.5rem;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu .menu-item a {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0;
    color: var(--text-heading);
    letter-spacing: -0.01em;
    position: relative;
}

.nav-menu .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-menu .menu-item a:hover {
    color: var(--primary);
}

.nav-menu .menu-item a:hover::after {
    width: 100%;
}

/* Mega Menu */
.menu-item {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    border: 1px solid var(--border);
}

.menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mega-title {
    font-weight: 900;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.mega-col a {
    display: block;
    padding: 0.4rem 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.mega-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.header-search-simple {
    flex: 1;
    max-width: 300px;
}

.search-form-header {
    display: flex;
    background: #f1f5f9;
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-form-header:focus-within {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15), inset 0 0 0 1px var(--primary-light);
    transform: translateY(-1px);
}

.search-form-header .search-field {
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    width: 100%;
    outline: none;
    font-size: 16px;
    /* Prevents iOS auto-zoom */
    font-weight: 500;
    color: var(--text-heading);
}

.search-form-header .search-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-form-header .search-submit {
    background: transparent;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form-header .search-submit:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Mobile Nav Drawer Styles */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* WP Admin Bar Fix */
.admin-bar .mobile-nav-drawer {
    top: 32px;
    height: calc(100% - 32px);
}

@media (max-width: 782px) {
    .admin-bar .mobile-nav-drawer {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-nav-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.mobile-nav-header .site-logo {
    font-size: 1.5rem;
}

.mobile-menu-close {
    font-size: 1.75rem;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-heading);
    transition: 0.2s;
}



.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.mobile-menu {
    list-style: none;
    margin-top: 1rem;
}

.mobile-menu-item {
    border-bottom: 1px solid #f8fafc;
}

.mobile-menu-item:last-child {
    border: none;
}

.mobile-menu-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.mobile-menu-item .submenu {
    display: none;
    list-style: none;
    padding: 0.5rem 0 1.5rem 1.25rem;
}

.mobile-menu-item.open .submenu {
    display: block;
}

.mobile-menu-item.open svg {
    transform: rotate(180deg);
}

.submenu li a {
    padding: 0.65rem 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.mobile-nav-drawer.active .mobile-menu-item {
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-drawer.active .mobile-menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-drawer.active .mobile-menu-item:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav-drawer.active .mobile-menu-item:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav-drawer.active .mobile-menu-item:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav-drawer.active .mobile-menu-item:nth-child(5) {
    animation-delay: 0.3s;
}

.hero-section {
    background: var(--gradient-hero);
    position: relative;
    color: #ffffff;
    padding: 10rem 0 8rem;
    text-align: center;
    z-index: 10;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% -20%, rgba(99, 102, 241, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 120%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+PGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvc3ZnPg==');
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.hero-title .highlight {
    color: transparent;
    background: linear-gradient(135deg, #818cf8, #c084fc, #e879f9);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 400;
    line-height: 1.6;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-search-box {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 100px;
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero-search-box:focus-within {
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.6),
        0 0 0 6px rgba(129, 140, 248, 0.25),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.search-inputs {
    display: flex;
    gap: 0;
    align-items: center;
}

.input-group {
    position: relative;
}

.input-group:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    min-width: 220px;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    background: transparent;
    cursor: pointer;
}

.custom-select-trigger .custom-chevron {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-wrapper.open .custom-chevron {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-select-option {
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.custom-select-option:last-child {
    margin-bottom: 0;
}

.custom-select-option:hover {
    background: #f8fafc;
    color: #0f172a;
}

.custom-select-option.selected {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.search-keyword {
    flex: 1;
}

.search-keyword input {
    width: 100%;
    padding: 1.25rem 2rem;
    border-radius: 0;
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    outline: none;
    background: transparent;
    color: #0f172a;
}

.search-keyword input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.hero-search-btn {
    background: var(--gradient-accent);
    color: #ffffff;
    border: none;
    padding: 0 3rem;
    height: 64px;
    margin-left: 0.5rem;
    border-radius: 100px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px -6px rgba(168, 85, 247, 0.6);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(168, 85, 247, 0.8);
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
}

@media (max-width: 768px) {
    .hero-search-box {
        border-radius: 32px;
        padding: 0.75rem;
    }

    .search-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-group {
        width: 100%;
    }

    .input-group:first-child::after {
        display: none;
    }

    .custom-select-trigger,
    .search-keyword input {
        width: 100%;
        text-align: left;
        padding: 1.1rem 1.25rem;
        background: #f8fafc;
        border-radius: 20px;
        font-size: 16px !important;
    }

    .custom-select-options {
        border-radius: 20px;
    }

    .hero-search-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
        border-radius: 20px;
    }
}

.hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 600;
    font-size: 0.95rem;
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    color: #e879f9;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Layout */
.site-content {
    padding: 4rem 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr 320px;
    }
}

.section-title {
    font-size: 2rem;
    letter-spacing: -1px;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--primary);
    border-radius: 5px;
    margin-top: 10px;
}

/* Tabs */
.tab-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.tab-item {
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-item.current,
.tab-item:hover {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Book Cards - Vertical Grid */
.post-grid-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.book-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
}

.book-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.book-cover {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grade-badge-float {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.book-info {
    padding: 1.25rem;
}

.book-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.book-title a:hover {
    color: var(--primary);
}

.btn-solve {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    background: var(--bg-main);
    color: var(--text-heading);
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.btn-solve:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.grade-list-sidebar {
    display: grid;
    gap: 0.75rem;
}

.grade-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.grade-link.active,
.grade-link:hover {
    border-color: var(--primary-light);
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.grade-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.tag-list a {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tag-list a:hover {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 120%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.footer-newsletter {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.8) 0%, rgba(30, 27, 75, 0.9) 100%);
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.newsletter-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: #94a3b8;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.25rem;
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.newsletter-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    color: #fff;
    margin-bottom: 1.5rem;
    display: block;
    font-size: 1.75rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #64748b;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #94a3b8;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-title {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-nav a {
    display: block;
    padding: 0.6rem 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: #94a3b8;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
}

.footer-bottom {
    background: #020617;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: #475569;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-bottom-links a {
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.footer-bottom-links a:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -1rem;
    color: #475569;
    pointer-events: none;
}

@media (max-width: 768px) {
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-grid {
        gap: 3.5rem;
        padding: 4rem 0;
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-desc {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links-grid {
        justify-content: center;
        text-align: left;
        /* Keep text left-aligned within the 2-column grid for readability */
        display: inline-grid;
        /* Allow it to be centered as a block */
        grid-template-columns: repeat(2, auto);
        gap: 0.5rem 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Ads */
.ad-placeholder-wide {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1rem;
    border: 2px dashed #cbd5e1;
}

.ad-label {
    font-size: 10px;
    font-weight: 900;
    background: #cbd5e1;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.ad-content-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 800;
    padding: 2rem;
}

.ad-margin {
    margin: 3rem 0;
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0;
    }

    .header-search-simple {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .search-inputs {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-search-btn {
        padding: 1rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .post-grid-vertical {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .book-info {
        padding: 1rem;
    }

    .book-title {
        font-size: 0.95rem;
    }

    .grade-badge-float {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .lesson-layout {
        grid-template-columns: 1fr;
    }

    .lesson-sidebar {
        order: 2;
    }

    .lesson-content {
        order: 1;
    }

    .answer-title {
        font-size: 1.4rem;
        padding: 1rem;
    }

    .answer-header {
        padding: 1rem;
    }

    .tab-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }

    .nav-btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .lesson-sidebar .sidebar-card {
        position: static;
    }
}

@media (max-width: 480px) {
    .post-grid-vertical {
        grid-template-columns: 1fr 1fr;
    }
}

/* Lesson / Answer Page Specific Styles */
.lesson-page-wrapper {
    padding: 2rem 0 5rem;
    background: var(--bg-main);
}

.lesson-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.lesson-breadcrumbs a:hover {
    color: var(--primary);
}

.lesson-breadcrumbs .sep {
    opacity: 0.5;
}

.lesson-breadcrumbs .current {
    color: var(--text-heading);
}

/* Back to Book Button */
.back-link-wrapper {
    margin-bottom: 1.25rem;
}

.back-to-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 0;
}

.back-to-book-btn svg {
    transition: transform 0.3s ease;
}

.back-to-book-btn:hover {
    color: var(--primary);
}

.back-to-book-btn:hover svg {
    transform: translateX(-5px);
}

/* Book Header Card */
.book-header-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.book-header-cover {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.book-header-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-header-info h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-heading);
}

.book-header-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.meta-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-heading);
}

@media (max-width: 768px) {
    .book-header-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .book-header-cover {
        width: 140px;
        margin: 0 auto;
    }

    .book-header-title {
        font-size: 1.5rem;
    }

    .book-header-meta {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .meta-box {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1.25rem;
    }
}

.lesson-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .lesson-layout {
        grid-template-columns: 320px 1fr;
    }
}

/* Lesson Sidebar */
.lesson-sidebar .sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.sidebar-lesson-title {
    padding: 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
}

.unit-list {
    display: flex;
    flex-direction: column;
}

.unit-item {
    border-bottom: 1px solid var(--border);
}

.unit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.unit-header:hover {
    background: #f1f5f9;
}

.unit-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    flex: 1;
}

.unit-range {
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 20px;
    margin: 0 10px;
    font-weight: 600;
}

.unit-icon {
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.unit-item.active .unit-icon {
    transform: rotate(180deg);
}

.unit-item.active .unit-header {
    background: #eff6ff;
    border-bottom-color: #dbeafe;
}

.unit-item.active .unit-name {
    color: #2563eb;
}

.page-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.unit-item.active .page-links {
    max-height: 650px;
    overflow-y: auto;
    border-bottom: 1px solid #e2e8f0;
}

/* Premium Scrollbar for Page Links */
.page-links::-webkit-scrollbar {
    width: 5px;
}

.page-links::-webkit-scrollbar-track {
    background: #f8fafc;
}

.page-links::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.page-links::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.page-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.page-link:hover {
    background: #f8fafc;
    color: #2563eb;
    transform: translateX(5px);
}

.page-link.current {
    background: #f0f7ff;
    color: #2563eb;
    font-weight: 600;
    border-left-color: #2563eb;
}

.p-icon {
    margin-right: 8px;
    font-size: 1rem;
    opacity: 0.7;
}

/* Main Content: Answer Card */
.answer-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.answer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.answer-title {
    font-size: 1.75rem;
    line-height: 1.2;
    text-align: center;
}

.answer-tabs-wrapper {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.answer-tabs {
    display: flex;
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border);
    gap: 6px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 0.8rem 2.5rem;
    border-radius: 10px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.tab-btn .icon {
    font-size: 1.1rem;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tab-btn:not(.active):hover {
    background: #f1f5f9;
    color: var(--text-heading);
}

.tab-content {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.image-viewer {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-viewer img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    display: block;
    margin: 0 auto;
}

.solution-overlay {
    background: #f1f5f9;
}

/* Minimal Book Dashboard Styles */
.book-dashboard {
    padding: 2rem;
}

.dashboard-header-minimal {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.minimal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
}

.page-finder-minimal {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.finder-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.finder-label-mini {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.finder-right {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 300px;
}

.finder-right input {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
}

.finder-right input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-find-mini {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-find-mini:hover {
    background: var(--secondary);
}

.dashboard-units-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.unit-card-mini {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.2s ease;
}

.unit-card-mini:hover {
    border-color: var(--primary);
    background: #f8fafc;
    transform: translateX(3px);
}

.u-mini-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.u-mini-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
    line-height: 1.2;
}

.u-mini-range {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.u-mini-arrow {
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 400;
    transition: 0.2s;
}

.unit-card-mini:hover .u-mini-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .finder-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .finder-right {
        max-width: 100%;
        width: 100%;
    }

    .dashboard-units-grid-mini {
        display: none;
    }
}

@media (max-width: 640px) {
    .dashboard-welcome h2 {
        font-size: 1.4rem;
    }

    .book-dashboard {
        padding: 1.5rem;
    }

    .finder-input-group {
        flex-direction: column;
    }

    .btn-find {
        padding: 1rem;
    }
}

.page-nav-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
}

/* Desktop minimalist refinement */
@media (min-width: 641px) {
    .nav-btn {
        background: #f8fafc;
        border-color: #e2e8f0;
    }

    .nav-btn:hover {
        background: #fff;
        border-color: var(--primary);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
    }

    .nav-btn.prev:hover .nav-title {
        transform: translateX(-5px);
    }

    .nav-btn.next:hover .nav-title {
        transform: translateX(5px);
    }
}

/* Default Box Style (for fallback or before media query) - Simplified */
@media (max-width: 640px) {
    .nav-btn {
        background: #fff;
        border: 1px solid var(--border);
        padding: 1rem 1.5rem;
        border-radius: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    .nav-btn:hover {
        border-color: var(--primary);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
    }
}

.nav-btn.next {
    text-align: right;
    align-items: flex-end;
}

.nav-btn.prev {
    text-align: left;
    align-items: flex-start;
}

.nav-dir {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 800;
}

.nav-title {
    font-size: 1.05rem;
    color: var(--text-heading);
    font-weight: 800;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-btn:hover .nav-title {
    color: var(--primary);
}

@media (max-width: 640px) {
    .nav-buttons {
        flex-direction: row;
        gap: 0.8rem;
    }

    .nav-btn {
        padding: 0.6rem 0.8rem;
        border-radius: 12px;
        flex: 1;
        min-width: 0;
    }

    .nav-btn .nav-dir {
        display: none;
    }

    .nav-btn .nav-title {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* If only one button exists, keep it on its respective side */
    .nav-buttons:not(:has(.prev)) .next {
        margin-left: auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Authentication Pages */
.auth-page-wrapper {
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, var(--primary-soft), transparent);
}

.auth-container {
    width: 600px !important;
    max-width: 100% !important;
    margin: 0 auto;
}

.auth-card {
    width: 100%;
    background: #fff;
    padding: 4rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-heading);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.input-control {
    width: 100%;
    padding: 1rem 1rem 1rem 45px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.input-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-pass {
    color: var(--primary);
}

.btn-auth-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-auth-submit:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Compact Premium Lesson Cards */
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.lesson-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.lesson-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

.lesson-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: 0.4s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.lesson-card:hover .lesson-icon-circle {
    transform: scale(1.1);
    color: #fff;
}

.lesson-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-heading);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.lesson-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(241, 245, 249, 0.8);
    padding: 4px 12px;
    border-radius: 99px;
}

/* Vibrant Icon Gradients */
.cat-matematik .lesson-icon-circle {
    color: #f59e0b;
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
}

.cat-turkce .lesson-icon-circle {
    color: #ef4444;
    background: linear-gradient(135deg, #fff 0%, #fee2e2 100%);
}

.cat-ingilizce .lesson-icon-circle {
    color: #3b82f6;
    background: linear-gradient(135deg, #fff 0%, #dbeafe 100%);
}

.cat-fen .lesson-icon-circle {
    color: #10b981;
    background: linear-gradient(135deg, #fff 0%, #d1fae5 100%);
}

.cat-hayat .lesson-icon-circle {
    color: #8b5cf6;
    background: linear-gradient(135deg, #fff 0%, #ede9fe 100%);
}

.cat-sosyal .lesson-icon-circle {
    color: #f97316;
    background: linear-gradient(135deg, #fff 0%, #ffedd5 100%);
}

.cat-din .lesson-icon-circle {
    color: #06b6d4;
    background: linear-gradient(135deg, #fff 0%, #cffafe 100%);
}

.lesson-card:hover.cat-matematik .lesson-icon-circle {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.lesson-card:hover.cat-turkce .lesson-icon-circle {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.lesson-card:hover.cat-ingilizce .lesson-icon-circle {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.lesson-card:hover.cat-fen .lesson-icon-circle {
    background: linear-gradient(135deg, #10b981, #059669);
}

.lesson-card:hover.cat-hayat .lesson-icon-circle {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.lesson-card:hover.cat-sosyal .lesson-icon-circle {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.lesson-card:hover.cat-din .lesson-icon-circle {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.auth-switch {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 800;
}

.reg-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -0.5rem 0 2rem;
    font-style: italic;
}

/* Header User State */
.welcome-text {
    font-weight: 500;
}

.welcome-text strong {
    color: var(--accent);
}

/* Search & Category Meta */
.search-count,
.category-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: -1.75rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Unit Accordion Arrow */
.unit-header svg {
    transition: transform 0.3s ease;
}

.unit-item.active .unit-header svg {
    transform: rotate(180deg);
}

/* No Solution Content */
.no-solution {
    padding: 4rem 2rem;
    text-align: center;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border);
}

.no-solution p {
    color: var(--text-muted);
    font-weight: 600;
}

/* Contact Page Styles */
.contact-page-wrapper {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #fff 0%, var(--bg-main) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    max-width: 600px;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.method-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.method-text h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.method-text p {
    font-weight: 600;
    color: var(--primary);
}

.contact-map-placeholder {
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.contact-map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    backdrop-filter: blur(2px);
}

.form-card {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px;
}

.form-title {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.odevjet-contact-form .form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-heading);
}

.odevjet-contact-form .input-control {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
    margin-bottom: 1.5rem;
}

.odevjet-contact-form .input-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.odevjet-contact-form select.input-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}

@media (max-width: 768px) {
    .form-card {
        padding: 2rem;
    }
}

/* Homepage Sidebar Enhancements */
.sidebar-sub-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.popular-lessons-sidebar {
    margin-bottom: 1.5rem;
}

.grade-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mini-grade-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mini-grade-box:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.box-num {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.box-txt {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mini-grade-box:hover .box-num,
.mini-grade-box:hover .box-txt {
    color: #fff;
}

/* Clean & Premium Pagination */
@media (min-width: 769px) {
    .secondary-content {
        margin-top: 6.5rem;
        /* Baslik yuksekligi kadar asagi itiyoruz */
    }
}

/* Category SEO Description */
.category-seo-description {
    background: #fff;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.category-seo-description p {
    margin-bottom: 1rem;
}

.category-seo-description strong {
    color: var(--text-heading);
}

/* FAQ Section */
.category-faq-section {
    margin-bottom: 4rem;
}

.faq-title {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-heading);
    user-select: none;
}

.faq-icon {
    transition: 0.3s;
    color: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fcfdfe;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Mobile Lesson Selector */
.mobile-lesson-selector {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.mobile-selector-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}

.mobile-lesson-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-lesson-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

.mobile-lesson-link.active {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.mobile-lesson-link.active .m-lesson-name {
    color: var(--primary);
}

.m-lesson-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
}

.m-lesson-name {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.95rem;
}

/* Mobile Quick Access (Homepage Only) */
.mobile-quick-access {
    display: none;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {

    /* Genel Konteyner Ayari */
    .content-header.seo-header {
        padding-bottom: 0.5rem;
    }

    /* Sinif Secimi: 4'lu Izgara Yapisi */
    .tab-filters {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 5px 0 15px;
        margin: 0;
    }

    .tab-item {
        padding: 8px 2px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        text-align: center;
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        white-space: nowrap;
    }

    .tab-item.current {
        background: var(--primary) !important;
        color: #fff !important;
        border-color: var(--primary) !important;
    }

    .mobile-quick-access {
        display: block;
        margin-top: 1rem;
    }

    .mobile-qa-title {
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--text-heading);
        margin-bottom: 1rem;
    }

    .mobile-qa-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .qa-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        background: #fff;
        border: 1px solid var(--border);
        padding: 10px 4px;
        border-radius: 12px;
        text-decoration: none;
        transition: 0.3s;
    }

    .qa-item:active {
        background: var(--primary-soft);
        border-color: var(--primary);
    }

    .qa-num {
        width: 32px;
        height: 32px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-weight: 800;
        color: var(--primary);
        font-size: 0.9rem;
    }

    .qa-label {
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--text-heading);
        white-space: nowrap;
    }

    /* Ders Secimi: 4'lu Izgara Yapisi */
    .mobile-lesson-selector {
        display: block;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0 0 2rem;
    }

    .mobile-selector-title {
        font-size: 0.9rem;
        font-weight: 800;
        color: var(--text-heading);
        margin-bottom: 12px;
        padding-left: 0;
    }

    .mobile-lesson-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 0;
    }

    .mobile-lesson-link {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        background: #fff;
        padding: 10px 4px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        min-width: 0;
        /* Grid icinde esnemesi icin */
    }

    .mobile-lesson-link.active {
        background: #fff;
        border-color: var(--primary);
        border-width: 2px;
    }

    .m-lesson-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #f8fafc;
        margin: 0;
        font-size: 1.1rem;
    }

    .m-lesson-name {
        font-size: 0.65rem;
        text-align: center;
        color: var(--text-heading);
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* Fix for lint */
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.2;
    }

    /* Desktoppan gelen gereksiz widgetlari mobilde gizle */
    .secondary-content .sidebar-widget:first-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .main-layout {
        flex-direction: column !important;
        gap: 2rem;
    }

    .primary-content,
    .secondary-content {
        width: 100% !important;
    }

    .book-dashboard {
        padding: 1.5rem 1rem !important;
    }

    .dashboard-units-grid {
        grid-template-columns: 1fr !important;
    }

    .answer-card {
        margin: 0 -0.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .section-title {
        font-size: 1.4rem !important;
        word-wrap: break-word;
    }
}

/* Text Solution Content Styles */
.text-solution-content {
    padding: 2.5rem;
    background: #fff;
    color: var(--text-main);
    line-height: 1.8;
    font-size: 1.05rem;
}

.text-solution-content p {
    margin-bottom: 1.5rem;
}

.text-solution-content strong {
    color: var(--text-heading);
    font-weight: 700;
}

.text-solution-content ul,
.text-solution-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.text-solution-content li {
    margin-bottom: 0.5rem;
}

.text-solution-content h2,
.text-solution-content h3 {
    margin: 2rem 0 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Sayfa - Cozum Tablari Gelistirme */
.answer-tabs {
    margin-bottom: 1rem;
}

.solution-container .image-viewer {
    border-bottom: 1px solid var(--border);
    background: #fdfdfd;
}

@media (max-width: 768px) {
    .text-solution-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* News Archive Page Styles */
.news-archive-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.news-header {
    margin-bottom: 3rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.news-archive-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.news-archive-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.news-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.news-card-image {
    height: 100%;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
    align-self: flex-start;
}

/* Sidebar Extensions */
.grade-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grade-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.grade-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.grade-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.featured-book-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.fb-img {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.fb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-info {
    flex: 1;
}

.fb-title {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}

/* No News State */
.no-news-box {
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.no-news-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

@media (max-width: 992px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        height: 220px;
    }

    .news-card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-archive-title {
        font-size: 2rem;
    }
}

/* Static Pages (About, Privacy, etc.) */
.static-page-wrapper {
    padding: 3rem 0 5rem;
    min-height: 70vh;
}

.static-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.static-header {
    padding: 3rem 3rem 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.static-title {
    font-size: 2.5rem;
    color: var(--text-heading);
}

.static-content {
    padding: 3rem;
    line-height: 1.8;
}

.static-content h2 {
    margin: 2.5rem 0 1.2rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.static-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-hero {
    margin: -3rem -3rem 3rem;
    height: 350px;
    overflow: hidden;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features-grid-static {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 3rem 0;
}

.f-static-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.f-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.f-static-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.f-static-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .static-header,
    .static-content {
        padding: 1.5rem;
    }

    .static-title {
        font-size: 1.8rem;
    }

    .features-grid-static {
        grid-template-columns: 1fr;
    }

    .about-hero {
        margin: -1.5rem -1.5rem 2rem;
        height: 200px;
    }
}

.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    width: 100%;
    border-top: 1px solid #f1f5f9;
}

.pagination-wrapper ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.pagination-wrapper a.page-numbers:hover {
    background: #f1f5f9;
    color: var(--primary) !important;
}

.pagination-wrapper .page-numbers.current {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pagination-wrapper .prev.page-numbers,
.pagination-wrapper .next.page-numbers {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0 1.25rem;
    min-width: 100px;
    color: var(--text-heading);
    margin: 0 0.5rem;
}

.pagination-wrapper .prev.page-numbers:hover,
.pagination-wrapper .next.page-numbers:hover {
    border-color: var(--primary);
    background: #fff;
    color: var(--primary) !important;
}

.pagination-wrapper .dots {
    color: var(--text-muted);
    padding: 0 0.5rem;
}

@media (max-width: 768px) {

    .pagination-wrapper .prev.page-numbers,
    .pagination-wrapper .next.page-numbers {
        min-width: auto;
        padding: 0 0.75rem;
    }
}

/* Book Description Styles */
.book-short-desc {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.book-long-desc {
    display: block !important;
    width: 100%;
    background: #ffffff !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 3rem !important;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.book-long-desc h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-main);
}

.book-content-text {
    color: var(--text-main);
    line-height: 1.7;
}

.book-content-text p {
    margin-bottom: 1rem;
}


/* Book Short Description Styled Like Category Intro */
.book-short-desc-styled {
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* Add a visual indicator/border on left to make it pop */
.book-short-desc-styled::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}


/* Book Intro Card (Short Description Box) */
.book-intro-card {
    display: block !important;
    width: 100%;
    margin: 2rem 0 3rem;
    padding: 2rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    color: #94a3b8;
    line-height: 1.8;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Mobile Fixes for New Description Boxes */
@media (max-width: 768px) {

    .book-intro-card,
    .book-long-desc {
        padding: 1.25rem !important;
        margin: 1.5rem 0 !important;
        border-radius: 12px !important;
    }

    .book-long-desc {
        margin-top: 2rem !important;
    }
}


/* Book Description Lists Styling */
/* Book Description Lists Styling */
.book-content-text ul,
.book-content-text ol {
    margin: 1rem 0 1.5rem 2rem !important;
    padding-left: 1rem !important;
    list-style-position: outside !important;
}

.book-content-text li {
    margin-bottom: 0.5rem !important;
    padding-left: 0.5rem;
}

.book-content-text ul {
    list-style-type: disc !important;
}

.book-content-text ol {
    list-style-type: decimal !important;
}

/* Category Description Lists Styling */
.category-description ul,
.category-description ol,
.category-intro ul,
.category-intro ol {
    margin: 1rem 0 1.5rem 2rem !important;
    padding-left: 1rem !important;
    list-style-position: outside !important;
}

.category-description li,
.category-intro li {
    margin-bottom: 0.5rem !important;
    padding-left: 0.5rem;
}

.category-description ul,
.category-intro ul {
    list-style-type: disc !important;
}

.category-description ol,
.category-intro ol {
    list-style-type: decimal !important;
}


/* Global Reset for Lists in Descriptions */
.category-description ul li,
.category-description ol li,
.book-content-text ul li,
.book-content-text ol li {
    display: list-item !important;
    margin-left: 10px !important;
}

.category-description ul,
.category-intro ul,
.book-content-text ul {
    padding-left: 40px !important;
}


/* FORCE RESET CATEGORY LISTS - FINAL */
.category-description ul,
.category-description ol,
.category-intro ul,
.category-intro ol {
    display: block !important;
    margin: 1.5rem 0 1.5rem 3rem !important;
    padding: 0 !important;
    list-style-position: outside !important;
}

.category-description li,
.category-intro li {
    display: list-item !important;
    margin-bottom: 0.5rem !important;
}

.category-description ul,
.category-intro ul {
    list-style-type: disc !important;
}

.category-description ol,
.category-intro ol {
    list-style-type: decimal !important;
}


/* FINAL LIST STYLING FIX - OVERRIDE ALL */
.book-content-text ul,
.book-content-text ol,
.category-intro-card ul,
.category-intro-card ol,
.category-seo-description ul,
.category-seo-description ol {
    margin: 1rem 0 1.5rem 2.5rem !important;
    padding-left: 0 !important;
    list-style-position: outside !important;
    display: block !important;
}

.book-content-text li,
.category-intro-card li,
.category-seo-description li {
    margin-bottom: 0.5rem !important;
    padding-left: 0.5rem !important;
    display: list-item !important;
}

.book-content-text ul,
.category-intro-card ul,
.category-seo-description ul {
    list-style-type: disc !important;
}

.book-content-text ol,
.category-intro-card ol,
.category-seo-description ol {
    list-style-type: decimal !important;
}

/* -------------------------------------------------------------------------- */
/*  Single Kitap Sayfasi - Layout Adjustments (Finder Integration)            */
/* -------------------------------------------------------------------------- */

/* Finder Wrapper Styling - Clean integration */
.lesson-finder {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Remove internal padding from the copied dashboard component */
.lesson-finder .book-dashboard {
    padding: 0 !important;
}

.lesson-finder .page-finder-minimal {
    margin-bottom: 0 !important;
    border: none;
    background: transparent;
    padding: 0;
}

.lesson-finder .dashboard-header-minimal {
    padding: 0 0 1rem 0 !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid #f1f5f9;
}

.lesson-finder .minimal-title {
    font-size: 1.1rem;
}

/* 
   Mobile Layout (Order Switching) 
   <= 1023px because the theme breaks to 1-col at 1024px usually or 768px.
   The theme uses 768px for sidebar switch.
   But we want to ensure sidebar logic works smoothly.
*/
@media (max-width: 1023px) {
    .single-kitap-sayfasi .lesson-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* 1. Finder (Unit & Page Selection) - TOP */
    .single-kitap-sayfasi .lesson-finder {
        order: 1;
        margin-bottom: 0;
    }

    /* 2. Sidebar (Units List) - MIDDLE */
    .single-kitap-sayfasi .lesson-sidebar {
        order: 2;
    }

    /* 3. Content (Solution) - BOTTOM */
    .single-kitap-sayfasi .lesson-content {
        order: 3;
    }
}

/* Desktop Grid Layout: Sidebar Left, Content Right (Finder on top of content) */
@media (min-width: 1024px) {
    .single-kitap-sayfasi .lesson-layout {
        display: grid;
        grid-template-columns: 320px 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "sidebar finder"
            "sidebar content";
        gap: 2rem;
        align-items: stretch;
    }

    .single-kitap-sayfasi .lesson-sidebar {
        grid-area: sidebar;
        height: auto;
    }

    .single-kitap-sayfasi .lesson-finder {
        grid-area: finder;
        margin-bottom: 0;
    }

    .single-kitap-sayfasi .lesson-content {
        grid-area: content;
    }
}