/* === Variables & Reset === */
:root {
    --primary-yellow: #FFB606;
    --primary-hover: #e5a300;
    --dark-bg: #1A1A1A;
    --text-dark: #1A1A1A;
    --text-grey: #666666;
    --light-grey: #F9F9F9;
    --border-color: #E5E5E5;
    --font-main: 'Noto Sans Georgian', sans-serif;
    --container-width: 1240px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
button { font-family: var(--font-main); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Top Bar === */
.top-bar {
    background-color: var(--primary-yellow);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000;
}

.social-links a {
    margin-left: 15px;
    font-size: 16px;
    color: #000;
}

/* === Header === */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
}

.logo-icon i {
    font-size: 32px;
    color: #000;
    /* Creating the Owl/Cap effect from the image */
    position: relative;
}
.logo-icon i::after {
    content: '\f19d'; /* FontAwesome cap */
    font-family: "Font Awesome 6 Free";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--primary-yellow);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.logo-text {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 400;
}
.logo-text span {
    font-weight: 800;
    display: block;
}

.nav-menu ul {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: #000;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}
.btn-outline:hover {
    background: #f8f8f8;
}

.burger-menu { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* === Page Hero === */
.page-hero {
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    position: relative;
    padding: 60px 0;
    color: #fff;
}

.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;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 14px;
    opacity: 0.9;
}
.breadcrumbs i { font-size: 10px; margin: 0 8px; }
.breadcrumbs span { opacity: 0.7; }

/* === Main Layout (Sidebar + Content) === */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 20px;
}

/* Sidebar */
.sidebar {
    position: relative;
}

.filter-box {
    background: #fff;
}

.filter-box h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--primary-yellow);
    padding-bottom: 10px;
    display: inline-block;
}

.filter-group {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}
.filter-group:first-of-type { padding-top: 0; }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
}

.filter-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.filter-header i {
    font-size: 12px;
    color: var(--primary-yellow);
    transition: transform 0.3s;
}

.filter-group.active .filter-header i {
    transform: rotate(180deg);
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: #444;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f0f0f0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}
.filter-actions .btn {
    flex: 1;
    font-size: 13px;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Content Area */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #555;
}

.sort-dropdown {
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid System */
.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Course Card */
.course-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.course-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card-img {
    height: 220px;
    position: relative;
}

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

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-orange { background: #FDEBD0; color: #E67E22; }
.badge-cyan { background: #E0F2F1; color: #009688; }
.badge-purple { background: #F3E5F5; color: #9C27B0; }

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-body p {
    font-size: 13px;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: 600;
    font-size: 16px;
}

.new-price {
    color: var(--primary-yellow);
    font-weight: 800;
    font-size: 24px;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.card-footer i { margin-right: 5px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    align-items: center;
}

.page-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E0C988;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #BFA55A;
    font-weight: 600;
}

.page-link.active, .page-link:hover {
    background-color: var(--primary-yellow);
    color: #fff;
    border-color: var(--primary-yellow);
}

.page-link.prev, .page-link.next {
    border: none;
    color: #BFA55A;
    font-size: 14px;
}

.dots { color: #BFA55A; font-weight: 700; letter-spacing: 2px; }

/* === Newsletter === */
.newsletter-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-text h2 {
    font-size: 28px;
    font-weight: 800;
    color: #000;
}
.news-text h2 span { color: var(--primary-yellow); }
.news-text p {
    color: var(--text-grey);
    margin-top: 5px;
    font-size: 14px;
}

.news-form {
    display: flex;
    gap: 10px;
}

.news-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px;
    outline: none;
}

/* === Footer === */
.main-footer {
    padding: 60px 0 20px;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

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

.footer-col a {
    font-size: 14px;
    color: #333;
}
.footer-col a:hover { color: var(--primary-yellow); }

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-yellow);
    font-weight: 700;
}
.contact-item span {
    color: #333;
    font-weight: 500;
}
.mt-4 { margin-top: 25px; }

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
}

.socials {
    font-size: 18px;
    color: #000;
}
.socials i { margin-left: 15px; }

/* === Responsive === */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 240px 1fr;
    }
    .course-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar, .main-nav, .search-btn {
        display: none;
    }
    
    .burger-menu {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1; /* Sidebar on top or hidden */
        margin-bottom: 30px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .news-form {
        flex-direction: column;
        width: 100%;
    }
    .news-form input { width: 100%; }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}