@font-face {
    font-family: 'BPG Rioni Vera';
    src: url('../fonts/bpg-rioni-vera-webfont.eot');
    src: url('../fonts/bpg-rioni-vera-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/bpg-rioni-vera-webfont.woff2') format('woff2'),
         url('../fonts/bpg-rioni-vera-webfont.woff') format('woff'),
         url('../fonts/bpg-rioni-vera-webfont.ttf') format('truetype'),
         url('../fonts/bpg-rioni-vera-webfont.svg#bpg_glaho_arialregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #f8f8f8;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-color: #e2e8f0;
    --input-bg: #f9fafb;
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --accent: #d97706;
    --accent-dark: #b45309;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #d97706;
    --color-info: #0d9488;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 10px 30px -5px rgba(13, 148, 136, 0.08);
    --shadow-hover: 0 20px 40px -5px rgba(13, 148, 136, 0.15);
    --combo-discount-color: #ef4444;
    --combo-border-color: #e2e8f0;
    --section-gap: 5rem;
}

body.dark-mode {
    --bg-color: #0c1a1a;
    --card-bg: #142828;
    --text-dark: #f1f5f9;
    --text-gray: #9ca3af;
    --border-color: #1e3a3a;
    --input-bg: #0c1a1a;
    --navbar-bg: rgba(12, 26, 26, 0.95);
    --glass-bg: rgba(20, 40, 40, 0.8);
    --glass-border: rgba(148, 163, 184, 0.15);
    --primary: #2dd4bf;
    --primary-dark: #14b8a6;
    --accent: #fbbf24;
    --accent-dark: #d97706;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 15px -3px rgba(45, 212, 191, 0.2);
    --combo-border-color: #1e3a3a;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'BPG Rioni Vera', 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.w-100 { width: 100%; display: block; }
.mb-10 { margin-bottom: 10px !important; }
.mt-10 { margin-top: 10px !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-accent-green { color: var(--color-success) !important; }
.text-warning { color: var(--accent); }
.text-gray-medium { color: var(--text-gray); font-size: 1rem; display: block; margin-top: 5px; }
.text-danger-small { color: var(--color-danger); font-size: 0.8rem; display: block; margin-top: 5px; }
.text-gray-small { color: var(--text-gray); font-size: 0.85rem; display: block; }
.text-center { text-align: center; }

/* ============================================
   BACKGROUND BLOBS
   ============================================ */
.background-blobs { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; transition: 0.3s; }
.blob-1 { top: -100px; left: -100px; width: 500px; height: 500px; background: #ccfbf1; animation: blobMove 10s infinite alternate; }
.blob-2 { bottom: -100px; right: -100px; width: 400px; height: 400px; background: #fef3c7; animation: blobMove 15s infinite alternate-reverse; }
body.dark-mode .blob { opacity: 0.12; }
body.dark-mode .blob-1 { background: #0f766e; }
body.dark-mode .blob-2 { background: #92400e; }
@keyframes blobMove { from { transform: translate(0, 0); } to { transform: translate(70px, 70px); } }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo { height: 40px; width: auto; }

.logo-icon { font-size: 1.6rem; color: var(--primary); }

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

.nav-links > li > a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-links > li > a:hover { color: var(--primary); }

.auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.hamburger { display: none; font-size: 1.5rem; color: var(--text-dark); }

/* Theme Toggle */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    background: var(--input-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-main {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.btn-pulse { animation: pulse-purple 2s infinite; }

.btn-accent { background: var(--accent) !important; }
.btn-accent:hover { background: var(--accent-dark) !important; box-shadow: 0 5px 15px rgba(32, 178, 170, 0.3); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

body.dark-mode .btn-outline { background: rgba(255, 255, 255, 0.05); border-color: var(--border-color); }
body.dark-mode .btn-outline:hover { background: rgba(129, 140, 248, 0.1); border-color: var(--primary); }

.btn-outline-primary {
    flex: 1;
    text-align: center;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px;
    border-radius: 8px;
    transition: 0.2s;
    background: var(--card-bg);
}

.btn-outline-primary:hover { background: var(--primary); color: white; }

.btn-outline-danger {
    flex: 1;
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    padding: 8px;
    border-radius: 8px;
    background: var(--card-bg);
    transition: 0.2s;
}

.btn-outline-danger:hover { background: var(--color-danger); color: white; }

.btn-full {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-full:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.btn-white:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

.btn-main-xl {
    background: var(--accent);
    color: white !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(32, 178, 170, 0.5);
}

.btn-main-xl:hover {
    background: #179890;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(32, 178, 170, 0.6);
}

.btn-search {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    flex-shrink: 0;
}

.btn-search:hover { background: var(--primary-dark); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: visible;
}

.hero-visual {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.hero-visual canvas {
    width: 100%;
    height: 100%;
}

.hero-planet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 100px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(-20deg);
    opacity: 0.25;
}

.hero-planet::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    filter: blur(6px);
}

@keyframes planetDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40vw, 85vh); }
}

.hero-planet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 100px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(-20deg);
    opacity: 0.25;
}

.hero-planet::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    filter: blur(6px);
}

@keyframes planetDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40vw, 85vh); }
}

.hero-planet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 100px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(-20deg);
    opacity: 0.25;
}

.hero-planet::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    filter: blur(6px);
}

@keyframes planetDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40vw, 85vh); }
}

.hero-planet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 100px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(-20deg);
    opacity: 0.25;
}

.hero-planet::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    filter: blur(6px);
}

@keyframes planetDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40vw, 85vh); }
}

.hero-planet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 100px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(-20deg);
    opacity: 0.25;
}

.hero-planet::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    filter: blur(6px);
}

@keyframes planetDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40vw, 85vh); }
}

.hero-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.badge-new {
    background: var(--card-bg);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.search-box {
    background: var(--card-bg);
    padding: 6px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    margin: 0 auto 2rem;
    max-width: 600px;
    width: 100%;
}

.search-icon {
    padding: 0 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-box input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    color: var(--text-dark);
    padding: 8px 0;
    min-width: 0;
}

.hero-actions { margin-bottom: 2rem; }

.categories-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cat-pill {
    background: var(--glass-bg);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    transition: 0.3s;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    margin-bottom: var(--section-gap);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.view-all:hover { gap: 10px; }

/* ============================================
   GRIDS
   ============================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ============================================
   COURSE CARDS
   ============================================ */
.course-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img-holder {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.course-card:hover .card-img { transform: scale(1.05); }

.price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.meta-tags {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.card-title {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title:hover { color: var(--primary); }

.card-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.card-instructor img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   BOOK CARDS
   ============================================ */
.book-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    height: 100%;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.book-img-holder {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.book-card:hover .book-img { transform: scale(1.05); }

.book-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.book-title:hover { color: var(--primary); }

.book-author {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-desc {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.book-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.book-price-current {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.book-price-original {
    font-size: 0.95rem;
    color: var(--text-gray);
    text-decoration: line-through;
}

.book-footer { margin-top: auto; }

/* ============================================
   ARTICLE CARDS
   ============================================ */
.article-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.article-img-holder {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.article-card:hover .article-img { transform: scale(1.05); }

.article-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-category {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.article-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-title:hover { color: var(--primary); }

.article-excerpt {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-gray);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   COMBO CARDS
   ============================================ */
.combo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.combo-card {
    border: 1px solid var(--combo-border-color);
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
    transition: 0.3s;
}

.combo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.combo-img-holder {
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.combo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.combo-card:hover .combo-img { transform: scale(1.05); }

.combo-card-body {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.combo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.combo-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.combo-courses-list {
    margin: 0 0 20px;
    padding: 15px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
}

.combo-course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--input-bg);
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.combo-course-item:last-child { margin-bottom: 0; }
.combo-course-item .fa-check-circle { color: var(--color-success); margin-left: auto; flex-shrink: 0; }

.price-block {
    text-align: center;
    margin-bottom: 20px;
}

.original-price {
    text-decoration: line-through;
    color: var(--color-danger);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.discounted-price {
    color: var(--color-success);
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1;
}

.discount-ribbon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--combo-discount-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
    z-index: 10;
    border: 3px solid white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   INSTRUCTOR BANNER
   ============================================ */
.instructor-banner {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 24px;
    padding: 3rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.banner-content {
    max-width: 55%;
    z-index: 2;
}

.banner-content h2 {
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    color: white !important;
}

.banner-content p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 20px;
    color: white !important;
    line-height: 1.5;
}

.banner-img {
    font-size: 8rem;
    opacity: 0.15;
    color: white;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.reviewer-info span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 3.5rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   COURSE DETAIL
   ============================================ */
.course-detail-wrapper {
    padding: 3rem 0 5rem;
}

.course-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.course-info-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.course-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.course-header-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-desc-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.what-you-learn-box {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.what-you-learn-box h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.check-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 0.85rem;
}

.lesson-item {
    background: var(--card-bg);
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    cursor: pointer;
}

.lesson-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.1);
}

.play-icon {
    width: 40px;
    height: 40px;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #16a34a;
    transition: 0.3s;
    flex-shrink: 0;
}

body.dark-mode .play-icon { background: rgba(22, 163, 74, 0.2); }
.lesson-item:hover .play-icon { background: var(--primary); color: white; }

.course-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.sticky-course-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    text-align: center;
}

.video-preview-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.2rem;
}

.video-preview-wrapper img { width: 100%; display: block; }

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.video-play-btn {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    transition: 0.3s;
}

.video-preview-wrapper:hover .video-overlay { opacity: 1; }
.video-preview-wrapper:hover .video-play-btn { transform: scale(1.1); }

.price-big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.course-meta-list {
    text-align: left;
    margin: 1.2rem 0;
    background: var(--input-bg);
    padding: 16px;
    border-radius: 14px;
}

.course-meta-list li {
    margin-bottom: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-meta-list li:last-child { margin-bottom: 0; }
.course-meta-list li i { color: var(--primary); width: 18px; text-align: center; }

/* ============================================
   BOOK DETAIL
   ============================================ */
.book-detail-wrapper { padding: 3rem 0 5rem; }

.book-detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.book-detail-cover {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.book-detail-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.book-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.book-detail-author {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.book-detail-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ============================================
   ARTICLE DETAIL
   ============================================ */
.article-detail-wrapper {
    padding: 3rem 24px 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-detail-header { margin-bottom: 2rem; }

.article-detail-category {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.article-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.article-detail-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-detail-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-detail-content p { margin-bottom: 1.5rem; }

/* ============================================
   COMBO PAGE
   ============================================ */
.combo-page-container { padding: 3rem 0 5rem; }

.combo-header {
    margin-bottom: 3rem;
    text-align: center;
}

.combo-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.combo-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ============================================
   AUTH BOXES
   ============================================ */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.auth-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 440px;
}

.auth-box .text-center { margin-bottom: 2rem; }
.auth-box .text-center i { font-size: 2.5rem; color: var(--primary); }
.auth-box h2 { margin: 1rem 0 0.5rem; font-size: 1.5rem; }

.form-group { margin-bottom: 1.2rem; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.3s;
    background: var(--input-bg);
    color: var(--text-dark);
    font-family: inherit;
}

.form-control::placeholder { color: var(--text-gray); opacity: 0.7; }

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-default { background: var(--bg-color); color: var(--text-gray); }
.badge-info { background: #e0e7ff; color: #4338ca; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.footer-logo-img { height: 40px; width: auto; margin-bottom: 1rem; }

.brand-col p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.social-links { display: flex; gap: 10px; }

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: 0.3s;
    font-size: 0.9rem;
}

.social-btn:hover { transform: translateY(-3px); color: white; }
.social-btn.facebook:hover { background: #1877f2; }
.social-btn.instagram:hover { background: #e4405f; }
.social-btn.youtube:hover { background: #ff0000; }
.social-btn.tiktok:hover { background: #000000; }

.newsletter-col {
    background: rgba(239, 246, 255, 0.5);
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid #dbeafe;
}

body.dark-mode .newsletter-col { background: rgba(59, 130, 246, 0.1); border-color: #1e3a8a; }
.newsletter-col h4 { color: var(--primary); margin-bottom: 8px !important; }

.newsletter-col > p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    background: var(--card-bg);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.newsletter-form input {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 14px;
    flex: 1;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.9rem;
    min-width: 0;
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.legal-links a { color: #94a3b8; margin-left: 20px; }
.legal-links a:hover { color: var(--primary); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .course-layout { grid-template-columns: 1fr; }
    .course-sidebar { position: static; }
    .book-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html {
        zoom: 0.8;
    }

    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--navbar-bg);
        flex-direction: column;
        padding: 2rem;
        transition: 0.4s;
        z-index: 999;
        gap: 20px;
        overflow-y: auto;
    }

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

    .auth-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }

    .auth-actions .btn-outline,
    .auth-actions .btn-main { width: 100%; text-align: center; justify-content: center; }

    .hero { padding: 3rem 0 2rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .grid { grid-template-columns: 1fr; }
    .combo-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }

    .instructor-banner {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .banner-content { max-width: 100%; }
    .banner-img { display: none; }

    .check-list { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-col { align-items: center; }
    .brand-col p { max-width: 100%; }
    .footer-logo-img { margin: 0 auto 1rem; display: block; }
    .social-links { justify-content: center; }
    .newsletter-form { max-width: 100%; }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .legal-links a { margin: 0 10px; }

    .search-box { flex-direction: column; padding: 10px; border-radius: 20px; }
    .btn-search { width: 100%; margin-top: 8px; border-radius: 12px; }

    .page-header h1 { font-size: 2rem; }
    .combo-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    input, textarea, select { font-size: 16px !important; }

    .hero h1 { font-size: 1.7rem; }
    .section-header h2 { font-size: 1.2rem; }
    .card-body { padding: 1rem; }
    .article-body { padding: 1rem; }
    .book-body { padding: 1rem; }
    .combo-card-body { padding: 1.2rem; }
    .auth-box { padding: 1.5rem; }
}
