/* === VARIABLES & RESET === */
:root {
    --primary: #ffb606;
    --dark: #1a1a1a;
    --gray: #666;
    --border: #e5e5e5;
    --font: 'Noto Sans Georgian', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--dark); background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* === TOP BAR === */
.top-bar { background: var(--primary); padding: 10px 0; font-size: 13px; font-weight: 700; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-left a { margin-right: 20px; display: inline-flex; align-items: center; gap: 6px; }
.top-right a { margin-left: 15px; font-size: 16px; }

/* === HEADER === */
header { padding: 20px 0; border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 1000; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 400; line-height: 1.1; color: #000; }
.logo span { font-weight: 900; display: block; }

.main-nav ul { display: flex; gap: 25px; }
.main-nav a { font-weight: 700; font-size: 14px; color: #333; }
.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.search-icon { font-size: 18px; cursor: pointer; }
.btn-auth { background: var(--primary); border: none; padding: 10px 25px; border-radius: 6px; font-weight: 700; }
.btn-auth:hover { background: #e5a300; }

/* === HERO === */
.hero {
    height: 550px;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1950&q=80') center/cover;
    position: relative; display: flex; align-items: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.hero-content { position: relative; z-index: 2; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.hero-text { width: 50%; color: #fff; }
.hero-text h2 { font-size: 28px; font-weight: 500; margin-bottom: 5px; opacity: 0.9; }
.hero-text h1 { font-size: 60px; font-weight: 900; line-height: 1.1; }

.video-box {
    width: 500px; height: 300px; background: #1a1a1a; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); position: relative;
}
.play-btn { width: 0; height: 0; border-top: 20px solid transparent; border-bottom: 20px solid transparent; border-left: 35px solid #fff; }

/* === SECTIONS & SLIDERS === */
.section { padding: 70px 0; }
.section-title { font-size: 32px; font-weight: 900; margin-bottom: 40px; color: #000; }

/* Slider Logic */
.slider-wrapper { overflow: hidden; }
.slider-track {
    display: flex; gap: 30px; overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 20px; /* სქროლბარის დასამალად */
    scrollbar-width: none; /* Firefox */
}
.slider-track::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.course-card, .lect-card {
    min-width: 380px; /* ფიქსირებული სიგანე რომ სლაიდერმა იმუშაოს */
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; transition: 0.3s;
}
.lect-card { min-width: 280px; text-align: center; }

/* Course Card Styles */
.course-img { height: 220px; position: relative; background-size: cover; background-position: center; }
.c-badge {
    position: absolute; top: 20px; left: 20px; padding: 8px 14px; border-radius: 4px;
    font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 8px; z-index: 2;
}
.bg-orange { background: #fdebd0; color: #e67e22; }
.bg-cyan { background: #d1f2eb; color: #00897b; }
.bg-purple { background: #ebdef0; color: #8e44ad; }

.c-lecturer {
    position: absolute; bottom: 15px; left: 20px; color: #fff; line-height: 1.2; z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.c-lecturer span { font-size: 18px; font-weight: 800; display: block; }
.c-body { padding: 25px; }
.c-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.c-desc { font-size: 13px; color: #777; line-height: 1.6; margin-bottom: 20px; }
.c-price { text-align: right; margin-bottom: 20px; font-weight: 900; }
.p-old { text-decoration: line-through; color: #999; font-size: 16px; margin-right: 8px; }
.p-new { color: var(--primary); font-size: 28px; }
.c-footer { border-top: 1px solid var(--border); padding-top: 15px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }

/* Lecturer Card Styles */
.lect-img-box {
    width: 100%; height: 260px; background: #f0f0f0; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
}
.lect-img-box img { width: 100%; height: 100%; object-fit: cover; }
.lect-badge { position: relative; top: -14px; display: inline-flex; padding: 8px 14px; border-radius: 4px; font-size: 11px; font-weight: 700; align-items: center; gap: 5px; }
.lect-info { padding-bottom: 25px; }
.lect-info h3 { font-size: 18px; font-weight: 800; line-height: 1.2; margin-bottom: 5px; }
.lect-info p { font-size: 13px; color: #777; margin-bottom: 20px; font-weight: 600; }
.lect-btn { background: #fff; border: 1px solid var(--primary); padding: 8px 30px; border-radius: 6px; font-weight: 700; }
.lect-btn:hover { background: var(--primary); }

/* Slider Navigation */
.slider-nav-container { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; }
.slider-arr { display: flex; gap: 15px; }
.arr-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e0c988; background: #fff; color: #bfa55a;
    display: flex; justify-content: center; align-items: center; transition: 0.3s;
}
.arr-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.progress-bar { height: 3px; background: #eee; flex-grow: 1; margin: 0 30px; position: relative; }
.fill { width: 20%; height: 100%; background: var(--primary); position: absolute; left: 0; }
.btn-outline { background: transparent; border: 1px solid #ddd; padding: 10px 24px; border-radius: 6px; font-weight: 700; }

/* === CATEGORIES === */
.categories-section {
    background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1950&q=80') center/cover fixed;
    position: relative; text-align: center; color: #fff; padding: 80px 0;
}
.cat-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.cat-content { position: relative; z-index: 2; }
.light-title { font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.subtitle { color: #ccc; margin-bottom: 50px; opacity: 0.9; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-item {
    padding: 24px; border-radius: 6px; display: flex; align-items: center; gap: 20px; text-align: left; transition: transform 0.3s;
}
.cat-item:hover { transform: translateY(-5px); }
.cat-item i { font-size: 28px; color: #fff; }
.cat-item span { font-weight: 700; font-size: 15px; line-height: 1.3; color: #fff; }
/* Cat colors */
.cl-red { background: #c0392b; }
.cl-orange { background: #e65100; }
.cl-yellow { background: #fbc02d; }
.cl-brown { background: #6d4c41; }
.cl-purple { background: #7b1fa2; }
.cl-cyan { background: #00acc1; }
.cl-green { background: #43a047; }
.cl-violet { background: #5e35b1; }
.cl-darkteal { background: #006064; }

/* === TESTIMONIALS === */
.testimonials { position: relative; padding: 80px 0; overflow: hidden; }
.testimonials-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    filter: brightness(0.3); z-index: 1;
}
.testimonials-container { position: relative; z-index: 2; }
.testimonials-wrapper { position: relative; margin-top: 60px; padding: 0 60px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.testimonial-card {
    background: #fff; border-radius: 15px; padding: 20px 20px 30px 20px;
    position: relative; margin-top: 40px; overflow: visible; text-align: left; transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-5px); }
.avatar-wrapper {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 80px; border-radius: 50%; border: 5px solid #fff;
    background: #fff; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.avatar { width: 100%; height: 100%; object-fit: cover; }
.quote-icon { position: absolute; top: 20px; right: 20px; color: var(--primary); font-size: 36px; }
.testi-content { margin-top: 40px; }
.testi-content h4 { color: #000; font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.handle { color: #888; font-size: 12px; display: block; margin-bottom: 15px; }
.testi-content p { color: #444; font-size: 13px; line-height: 1.6; margin-bottom: 20px; min-height: 80px; }
.stars { color: var(--primary); font-size: 14px; }
.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 45px; height: 45px; border-radius: 50%; background: #fff; border: none;
    color: var(--primary); font-size: 18px; cursor: pointer; display: flex;
    justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s; z-index: 10;
}
.nav-arrow:hover { background: var(--primary); color: #fff; }
.prev-arrow { left: 0; }
.next-arrow { right: 0; }

/* === NEWSLETTER & FOOTER === */
.news-section { padding: 50px 0; border-bottom: 1px solid var(--border); background: #fff; }
.news-wrapper { display: flex; justify-content: space-between; align-items: center; }
.news-text h2 { font-size: 28px; font-weight: 800; color: #000; }
.news-form input { padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; width: 350px; }
.news-form button { background: var(--primary); border: none; padding: 12px 24px; border-radius: 6px; font-weight: 700; }

footer { padding: 60px 0 20px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: #000; }
.footer-col a { font-size: 14px; color: #333; }
.contact-item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); }
.contact-item span { color: #333; font-size: 15px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; color: #888; font-size: 13px; }
.socials { display: flex; gap: 15px; font-size: 20px; color: #000; }

/* === AUTH MODAL (Pixel Perfect) === */
.auth-modal {
    display: none; /* დამალულია */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 2000;
    justify-content: center; align-items: center;
}

.auth-content {
    background: #fff; width: 420px; padding: 30px; border-radius: 12px;
    position: relative; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-auth {
    position: absolute; top: -15px; right: -15px;
    width: 32px; height: 32px; background: var(--primary); color: #fff;
    border-radius: 4px; display: flex; justify-content: center; align-items: center;
    cursor: pointer; font-size: 18px;
}

.auth-title { font-size: 24px; font-weight: 800; color: #000; margin-bottom: 5px; }
.auth-subtitle { font-size: 13px; color: #777; margin-bottom: 25px; }

.auth-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.auth-tab {
    padding: 10px 25px; border-radius: 20px; font-size: 13px; font-weight: 700; border: 1px solid #eee; background: #fff;
}
.auth-tab.active { background: var(--primary); border-color: var(--primary); color: #000; }

.input-group { position: relative; margin-bottom: 15px; }
.auth-input {
    width: 100%; padding: 12px 15px; border: 1px solid #e0e0e0; border-radius: 6px;
    font-size: 14px; outline: none; transition: 0.3s;
}
.auth-input:focus { border-color: var(--primary); }

/* Flag Select Style inside Input */
.flag-select {
    position: absolute; left: 1px; top: 1px; height: calc(100% - 2px);
    background: #fff; padding: 0 10px; display: flex; align-items: center; gap: 5px;
    border-right: 1px solid #eee; border-radius: 6px 0 0 6px; font-size: 13px; font-weight: 700;
}
.input-group input[type="text"] { padding-left: 95px; } /* ადგილი დროშისთვის */

.password-group .toggle-password {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    color: #999; cursor: pointer;
}

.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 20px; }
.checkbox-container { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.forgot-pass { color: var(--primary); font-weight: 600; }

.auth-submit-btn {
    width: 100%; background: var(--primary); border: none; padding: 12px;
    border-radius: 6px; font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.auth-submit-btn:hover { background: #e5a300; }

.google-btn {
    width: 100%; background: #fff; border: 1px solid #ddd; padding: 12px;
    border-radius: 6px; font-weight: 600; font-size: 14px; display: flex;
    justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px;
}
.google-btn:hover { background: #f9f9f9; }

.auth-footer { font-size: 12px; color: #777; }
.auth-footer a { color: var(--primary); font-weight: 700; margin-left: 5px; }

/* Responsive */
@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .top-bar, .main-nav, .search-icon { display: none; }
    .hero-content { flex-direction: column; text-align: center; }
    .video-box { width: 100%; }
    .cat-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-arrow { display: none; }
}