/*
Theme Name: Cobra Driving School
Theme URI: http://onlevelup.com/cobra
Author:  OnLevelUp
Author URI: http://onlevelup.com
Description: A custom WordPress theme named Cobra.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, theme
*/

/* ==============================
   Font Imports
============================== */
@font-face {
    font-family: 'Inter-italic';
    src: url('assets/fonts/Inter-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('assets/fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* ==============================
   Base Styles
============================== */
body {
    color: #444658;
    font-family: "Inter", "Roboto", sans-serif;
    background-color: #f8f8fc;
}

a {
    color: #444658;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: #3f42c5;
}

/* ==============================
   Header Styles
============================== */
.the-header {
  
    
    top: var(--fa07d2d4);
    transition: top .3s ease;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

/* Logo Container */
#logo {
    display: flex;
    align-items: center;
}

#logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #444658;
    font-size: 24px;
    font-weight: 700;
    line-height: 24px;
    /* margin-left: 20px; */
}

/* Logo Image */
.site-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Site Name */
.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #282a37;
    transition: color 0.3s ease;
}

#logo a:hover .site-name {
    color: #3f42c5;
}

/* Navigation Styles */
#menu-main a {
    align-items: center;
    border-radius: 8px;
    color: #282a37;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 500;
    gap: 4px;
}

.navbar {
    padding: 1rem 0;
}

.navbar-nav .nav-item {
    margin: 0 0.5rem;
}

.navbar-nav .nav-link {
    color: #444658;
    font-size: 16px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #3f42c5;
    background-color: rgba(63, 66, 197, 0.1);
}

.navbar-nav .active .nav-link,
.navbar-nav .nav-link.active {
    color: #3f42c5;
    font-weight: 600;
}

/* Dropdown styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #444658;
    font-size: 15px;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(63, 66, 197, 0.1);
    color: #3f42c5;
}

/* Authentication Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

/* Login/Register Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-button {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.login-button:hover {
    background-color: #eff1f3;
}

.register-button {
    background-color: #0073aa;
    color: white;
    border: 1px solid #0073aa;
}

.register-button:hover {
    background-color: #005d8c;
}

/* Profile Menu */
.user-profile-menu {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.profile-toggle:hover {
    background-color: #eff1f3;
}

.profile-icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
    background-size: cover;
    display: inline-block;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-size: cover;
    display: inline-block;
}

.profile-dropdown {
    position: absolute;
    top: 84%;
    right: 0;
    width: 200px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 5px;
    padding: 0;
    list-style: none;
    display: none;
    z-index: 1000;
}

.user-profile-menu:hover .profile-dropdown {
    display: block;
}

.profile-dropdown li {
    margin: 0;
    padding: 0;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.profile-dropdown a:hover {
    background-color: #f5f5f5;
}

.account-icon,
.logout-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: cover;
}

button.button.send-verification-email {
    color: #2271b1;
    border-color: #2271b1;
    background: #f6f7f7;
    vertical-align: top;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}

.account-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
}

.logout-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>');
}

/* ==============================
   Footer Styles
============================== */
.the-footer {
    background-color: #f8f8fc;
    padding: 20px 0;
}

/* Social Links in Footer */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: right;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f8fc;
    color: #444658;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #3f42c5;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Platform-specific colors on hover */
.social-link.facebook:hover {
    background-color: #1877f2;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
}

.social-link.instagram:hover {
    background-color: #e4405f;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
}

.social-link.youtube:hover {
    background-color: #ff0000;
}

/* ==============================
   Download Button Styles
============================== */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-decoration: none;
}

.button-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.button-text {
    display: flex;
    flex-direction: column;
}

.button-subtext {
    font-size: 12px;
    color: #6c757d;
}

.button-main {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

/* Platform-specific styles */
.chrome_extension .button-icon {
    color: #1a73e8;
}

.android_app .button-icon {
    color: #3ddc84;
}

.ios_app .button-icon {
    color: #000;
}

.chrome_extension:hover .button-icon {
    background-color: #1a73e8;
    color: #fff;
}

.android_app:hover .button-icon {
    background-color: #3ddc84;
    color: #fff;
}

.ios_app:hover .button-icon {
    background-color: #000;
    color: #fff;
}

/* ==============================
   Quiz Styles
============================== */
/* Quiz Hero Section */
/*
.quiz-cover-header {
    background: linear-gradient(135deg, #4a6bff 0%, #6b4aff 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.quiz-cover-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.quiz-cover-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}
*/
/* Search Quiz
.quiz-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.quiz-search-field {
    width: 100%;
    padding: 18px 60px 18px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quiz-search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.quiz-search-submit:hover {
    background: #e74c3c;
}

/* Section Styles */
.quiz-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4a6bff;
    border-radius: 2px;
}

*/ .quiz-cover-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.quiz-cover-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.quiz-cover-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.quiz-cover-header p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 14px;
}

.feature i {
    color: #4a6bff;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-cta {
    background-color: #4a6bff;
    border-color: #4a6bff;
    color: white;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #4a6bff;
    color: #4a6bff;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.hero-credits {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.badge {
    background-color: #4a6bff;
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.hero-image {
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: unset;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quiz-search-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quiz-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.search-label {
    font-weight: 600;
    color: #333;
}

.search-input-group {
    display: flex;
    flex: 1;
}

.quiz-search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.quiz-search-submit {
    background-color: #4a6bff;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quiz-search-submit:hover {
    background-color: #45a049;
}

/* Responsive styles */
@media (max-width: 991px) {
    .quiz-cover-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-credits {
        justify-content: center;
    }

    .hero-image {
        margin-top: 30px;
        order: -1;
    }

    .quiz-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .quiz-cover-header {
        padding: 40px 0;
    }

    .quiz-cover-header h1 {
        font-size: 2rem;
    }

    .hero-features {
        gap: 10px;
    }

    .feature {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Popular Quizzes Cards */
.quiz-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.quiz-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quiz-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.quiz-level {
    position: absolute;
    top: 11px;
    right: 15px;
    padding: 0px 10px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quiz-level.beginner {
    background-color: #48bb78;
}

.quiz-level.novice {
    background-color: #f6e05e;
}

.quiz-level.intermediate {
    background-color: #4299e1;
}

.quiz-level.advanced {
    background-color: #ed8936;
}

.quiz-level.expert {
    background-color: #e53e3e;
}

.quiz-card-content {
    padding: 20px;
}

.quiz-card-content h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.quiz-card-content h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.quiz-card-content h3 a:hover {
    color: #4a6bff;
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #718096;
    font-size: 0.9rem;
}

.quiz-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quiz-category {
    background-color: #edf2f7;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4a5568;
}

.view-all-btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 12px 0;
    background-color: #4a6bff;
    color: white;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: #3755e6;
}

/* Quiz Categories/Themes Grid */
.quiz-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.category-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    height: 140px;
    overflow: hidden;
}

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

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    color: #2d3748;
    font-size: 1.1rem;
    margin: 15px 0 5px;
    padding: 0 10px;
}

.quiz-count {
    display: block;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Quiz Filters */
.quiz-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: #4a5568;
}

.filter-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #4a6bff;
    color: white;
    border-color: #4a6bff;
}

.theme-filter {
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Quiz List */
.quiz-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    min-height: 200px;
}

.quiz-list.loading:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.quiz-item {
    display: flex;
    align-items: center;
    background: white;
    position: relative;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.quiz-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quiz-item-image {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.quiz-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz-item-content {
    flex-grow: 1;
    padding: 0 20px;
}

.quiz-item-content h3,
.quiz-item-content h4 {
    margin-bottom: 8px;
}

.quiz-item-content h3 a,
.quiz-item-content h4 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.quiz-item-content h3 a:hover,
.quiz-item-content h4 a:hover {
    color: #4a6bff;
}

.quiz-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.quiz-item-stats {
    display: flex;
    gap: 15px;
    color: #718096;
    font-size: 0.9rem;
}

.quiz-start-btn {
    background-color: #4a6bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.quiz-start-btn:hover {
    background-color: #3755e6;
    color: white;
}

.load-more-btn {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px 0;
    background-color: white;
    color: #4a6bff;
    border: 2px solid #4a6bff;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background-color: #4a6bff;
    color: white;
}

.load-more-btn:disabled {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #a0aec0;
    cursor: default;
}

/* No results */
.no-quizzes,
.no-results {
    background-color: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-quizzes p,
.no-results p {
    font-size: 1.1rem;
    color: #4a5568;
}

/* ==============================
   Pagination Styles
============================== */
.quiz-pagination,
.pagination {
    margin-top: 30px;
    text-align: center;
}

.quiz-pagination .page-numbers,
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: white;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quiz-pagination .page-numbers:hover,
.pagination .page-numbers:hover {
    background-color: #4a6bff;
    color: white;
}

.quiz-pagination .page-numbers.current,
.pagination .page-numbers.current {
    background-color: #4a6bff;
    color: white;
}

/* ==============================
   Single Quiz Page Styles
============================== */
.quiz-single-wrapper {
    padding: 60px 0;
    background-color: #f5f7fa;
}

/* Quiz Header */
.quiz-header {
    margin-bottom: 30px;
}

.quiz-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3748;
}

.quiz-featured-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quiz-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Quiz Content */
.quiz-single {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.quiz-content {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Quiz Footer - Social Sharing */
.quiz-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.quiz-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quiz-share span {
    color: #718096;
    font-weight: 600;
}

.quiz-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform 0.3s;
}

.quiz-share a:hover {
    transform: translateY(-3px);
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-email {
    background-color: #ea4335;
}

/* Comments */
.comments-area {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Sidebar */
.quiz-sidebar {
    position: sticky;
    top: 20px;
}

.quiz-sidebar>div,
.sidebar-widget {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.quiz-sidebar h3,
.sidebar-widget h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    color: #2d3748;
}

/* Related & Popular Quizzes */
.related-quiz-item,
.popular-quiz-item,
.sidebar-quiz-item {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.sidebar-quiz-item {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.sidebar-quiz-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-quiz-image,
.popular-quiz-image,
.sidebar-quiz-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-quiz-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.related-quiz-image img,
.popular-quiz-image img,
.sidebar-quiz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-quiz-image .no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e2e8f0;
}

.sidebar-quiz-image .no-thumbnail i {
    font-size: 1.5rem;
    color: #718096;
}

.related-quiz-content,
.popular-quiz-content,
.sidebar-quiz-content {
    flex-grow: 1;
    padding-left: 15px;
}

/* Category List Styles */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.category-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #4a6bff;
}

.category-list .count {
    color: #a0aec0;
    font-size: 0.9rem;
}

.category-pill {
    display: inline-block;
    padding: 8px 15px;
    background-color: #edf2f7;
    border-radius: 50px;
    color: #4a5568;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.category-pill .count {
    color: #718096;
    font-size: 0.8rem;
    margin-left: 5px;
}

.category-pill:hover {
    background-color: #4a6bff;
    color: #ffffff;
}

.category-pill:hover .count {
    color: rgba(255, 255, 255, 0.8);
}

/* ==============================
   quiz generator promotion
============================== */
.quiz-generator-promotion {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    padding: 20px;
}

.quiz-generator-promotion .footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.quiz-generator-promotion .footer-description {
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.5;
}

.quiz-generator-promotion .footer-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.quiz-generator-promotion .footer-features-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.quiz-generator-promotion .footer-features-list i {
    margin-right: 8px;
    color: #4a6bff;
    width: 20px;
    text-align: center;
}

.quiz-generator-promotion .footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quiz-generator-promotion .footer-cta .btn {
    margin-bottom: 10px;
    padding: 8px 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.quiz-generator-promotion .footer-cta .btn i {
    margin-left: 6px;
    font-size: 12px;
}

.quiz-generator-promotion .free-credits {
    font-size: 12px;
    opacity: 0.7;
    font-style: italic;
}
 

/* ==============================
   Error Page Styles
============================== */
.error-404-wrapper {
    padding: 80px 0;
    background-color: #f5f7fa;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.error-404-content {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.error-icon {
    font-size: 4rem;
    color: #4a6bff;
    margin-bottom: 10px;
}

.error-icon .pulse {
    animation: pulse 2s infinite;
}

.error-title {
    font-size: 5rem;
    font-weight: 800;
    color: #4a6bff;
    margin: 0;
    line-height: 1;
    background: linear-gradient(135deg, #4a6bff 0%, #6b4aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.error-subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.error-description {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 30px;
}

.error-search {
    max-width: 500px;
    margin: 0 auto 30px;
}

.error-search h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.error-search .search-form {
    display: flex;
    position: relative;
}

.error-search .search-field {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.error-search .search-field:focus {
    outline: none;
    border-color: #4a6bff;
}

.error-search .search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #4a6bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.error-search .search-submit:hover {
    background: #3755e6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.error-actions .btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.error-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.error-actions .btn-primary {
    background-color: #4a6bff;
    border-color: #4a6bff;
}

.error-actions .btn-secondary {
    background-color: #718096;
    border-color: #718096;
}

/* ==============================
   Search Results Styles
============================== */
.search-results-wrapper {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3748;
}

.search-query {
    color: #4a6bff;
}

.search-meta {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 20px;
}

.search-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form-container p {
    margin-bottom: 15px;
    color: #4a5568;
}

.search-form {
    display: flex;
    position: relative;
}

.search-field {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #4a6bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #3755e6;
}

.search-filter {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-results-list {
    margin-bottom: 40px;
}

.search-item {
    margin-bottom: 25px;
}

.search-item-inner {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.search-item-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-thumbnail {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

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

.search-thumbnail.no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e2e8f0;
}

.search-thumbnail.no-thumbnail i {
    font-size: 3rem;
    color: #718096;
}

.post-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.post-type-badge.quiz {
    background-color: #4a6bff;
}

.post-type-badge.post {
    background-color: #48bb78;
}

.post-type-badge.page {
    background-color: #ed8936;
}

.search-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.search-entry-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.search-entry-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.search-entry-title a:hover {
    color: #4a6bff;
}

.search-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 15px;
}

.search-entry-meta a {
    color: #4a6bff;
    text-decoration: none;
}

.search-entry-meta a:hover {
    text-decoration: underline;
}

.search-entry-summary {
    color: #4a5568;
    margin-bottom: 20px;
    flex-grow: 1;
}

.search-highlight {
    background-color: rgba(74, 107, 255, 0.15);
    color: #4a6bff;
    font-weight: 600;
    padding: 0 2px;
}

.search-entry-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a6bff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more-btn:hover {
    color: #3755e6;
}

.read-more-btn i {
    transition: transform 0.3s;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Search Suggestions */
.search-suggestions {
    margin-bottom: 30px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.search-suggestions ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #4a5568;
}

.search-suggestions li {
    margin-bottom: 10px;
}

.popular-searches h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 15px;
}

/* Search Help Widget */
.search-tips-list {
    list-style-type: none;
    padding: 0;
}

.search-tips-list li {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    position: relative;
    padding-left: 25px;
}

.search-tips-list li:last-child {
    border-bottom: none;
}

.search-tips-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #4a6bff;
}

/* ==============================
   No Menu Warning
============================== */
.no-menu-warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

/* ==============================
   Animations
============================== */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* ==============================
   Responsive Styles
============================== */
/* Large devices (desktops) */
@media (max-width: 992px) {
    .quiz-sidebar {
        position: static;
        margin-top: 30px;
    }

    .error-title {
        font-size: 4rem;
    }

    .error-subtitle {
        font-size: 1.8rem;
    }

    .popular-quizzes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets) */
@media (max-width: 768px) {
    .auth-buttons {
        gap: 5px;
    }

    .auth-buttons a {
        padding: 6px 10px;
    }

    .login-button span,
    .register-button span {
        display: none;
    }

    .login-icon,
    .register-icon {
        margin-right: 0;
    }

    .username {
        display: none;
    }

    .social-links {
        margin: 20px 0;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .site-logo {
        max-height: 40px;
    }

    .site-name {
        font-size: 1.2rem;
    }

    .download-section {
        gap: 8px;
    }

    .download-button {
        padding: 10px 14px;
    }

    .button-icon {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }

    .button-main {
        font-size: 14px;
    }

    .button-subtext {
        font-size: 11px;
    }

    .quiz-cards {
        grid-template-columns: 1fr;
    }

    .quiz-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quiz-filters,
    .search-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .filter-label {
        margin-bottom: 10px;
    }

    .quiz-item,
    .search-item-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-item-image {
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }

    .search-thumbnail {
        width: 100%;
        height: 200px;
    }

    .quiz-item-content {
        padding: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .quiz-start-btn {
        width: 100%;
        text-align: center;
    }

    .quiz-meta,
    .quiz-title {
        flex-direction: column;
    }

    .quiz-share {
        flex-wrap: wrap;
    }

    .error-404-wrapper {
        padding: 50px 0;
    }

    .error-404-content {
        padding: 30px;
    }

    .error-actions {
        flex-direction: column;
        gap: 10px;
    }

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

    .search-entry-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Small devices (phones) */
@media (max-width: 480px) {
    .site-logo {
        max-height: 35px;
    }

    .site-name {
        font-size: 1rem;
    }

    .quiz-cover-header h1 {
        font-size: 2rem;
    }

    .quiz-categories-grid {
        grid-template-columns: 1fr;
    }

    .section-title,
    .archive-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

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

    .quiz-single {
        padding: 20px;
    }

    .error-title {
        font-size: 3rem;
    }

    .error-subtitle {
        font-size: 1.3rem;
    }

    .error-404-content,
    .error-quiz-section,
    .error-categories {
        padding: 20px;
    }

    .quiz-pagination .page-numbers,
    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        margin: 0 3px;
        font-size: 0.9rem;
    }

    .search-entry-title {
        font-size: 1.3rem;
    }

    .no-results {
        padding: 25px;
    }

    .no-results h2 {
        font-size: 1.5rem;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}


img.card-img-top {
    object-fit: cover;
    max-height: 180px;
}

/* ==============================
   Articles Archive Styles
============================== */
.articles-archive-wrapper {
    padding: 40px 0 60px;
    min-height: 70vh;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #3f42c5 0%, #6366f1 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
}

.category-header__image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

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

.category-header__content {
    flex: 1;
}

.category-header__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.category-header__description {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.category-header__meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.category-header__meta .count {
    font-weight: 600;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-card__thumbnail {
    flex-shrink: 0;
    width: 280px;
    min-height: 200px;
}

.article-card__thumbnail a {
    display: block;
    height: 100%;
}

.article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.article-card__header {
    margin-bottom: 15px;
}

.article-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.article-card__title a {
    color: #1a1a2e;
    font-size: inherit;
    transition: color 0.2s;
}

.article-card__title a:hover {
    color: #3f42c5;
}

.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #6b7280;
}

.article-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card__meta i {
    color: #9ca3af;
}

.article-card__excerpt {
    flex: 1;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 15px;
}

.article-card__excerpt p {
    margin: 0;
}

.article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.article-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3f42c5;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

.article-card__readmore:hover {
    color: #3f42c5;
    gap: 12px;
}

.article-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.article-tag:hover {
    background: #e5e7eb;
    color: #3f42c5;
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
}

.no-articles i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-articles h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 10px;
}

.no-articles p {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Articles Pagination */
.articles-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.articles-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.articles-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: white;
    color: #374151;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.articles-pagination .page-numbers:hover {
    background: #3f42c5;
    color: white;
}

.articles-pagination .page-numbers.current {
    background: #3f42c5;
    color: white;
}

.articles-pagination .prev,
.articles-pagination .next {
    gap: 6px;
}

/* Sidebar Styles */
.articles-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

/* Search Widget */
.search-input-wrapper {
    display: flex;
    gap: 0;
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-field:focus {
    border-color: #3f42c5;
}

.search-submit {
    padding: 12px 18px;
    background: #3f42c5;
    color: white;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit:hover {
    background: #3234a3;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    color: #374151;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.categories-list li a:hover,
.categories-list li.current a {
    background: #3f42c5;
    color: white;
}

.categories-list .count {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Popular Posts Widget */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item:first-child {
    padding-top: 0;
}

.popular-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.popular-post-title:hover {
    color: #3f42c5;
}

.popular-post-date {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.tag-link:hover {
    background: #3f42c5;
    color: white;
}

/* Responsive Styles for Articles Archive */
@media (max-width: 991px) {
    .category-header {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .articles-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .articles-archive-wrapper {
        padding: 25px 0 40px;
    }
    
    .category-header {
        padding: 25px;
    }
    
    .category-header__image {
        width: 80px;
        height: 80px;
    }
    
    .category-header__title {
        font-size: 1.5rem;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-card__thumbnail {
        width: 100%;
        height: 200px;
        min-height: auto;
    }
    
    .article-card__content {
        padding: 20px;
    }
    
    .article-card__title {
        font-size: 1.15rem;
    }
    
    .article-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .articles-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}