* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0e1416;
    min-height: 100vh;
    color: #c7d5e0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* ==================== Navbar ==================== */
.navbar {
    background: #1b2838;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo span {
    color: #1b9e77;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

.navbar-menu li {
    display: flex;
}

.navbar-menu a {
    color: #a1b2c1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.navbar-menu a:hover {
    color: #1b9e77;
}

/* Right Section */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.navbar-search-btn {
    background: none;
    border: none;
    color: #a1b2c1;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-search-btn:hover {
    background: rgba(27, 158, 119, 0.2);
    color: #1b9e77;
}

/* Navbar Icons */
.navbar-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1rem;
}

.navbar-icon {
    color: #a1b2c1;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
}

.navbar-icon:hover {
    color: #1b9e77;
    transform: scale(1.1);
}

/* User Menu */
.navbar-user {
    display: flex;
    align-items: center;
}

.navbar-user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.navbar-user-link {
    color: #a1b2c1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.navbar-user-link:hover {
    color: #1b9e77;
    background: rgba(27, 158, 119, 0.1);
}

/* ==================== Search Modal ==================== */
.search-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #161d24;
    border: 1px solid rgba(27, 158, 119, 0.4);
    border-radius: 12px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(27, 158, 119, 0.1);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.search-modal-backdrop.active {
    display: block;
    opacity: 1;
}

.search-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #c7d5e0;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-modal-close:hover {
    background: rgba(193, 57, 43, 0.3);
    color: #ff6b6b;
    transform: rotate(90deg);
}

.search-modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.search-modal-header h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.search-modal-header p {
    color: #a1b2c1;
    font-size: 0.95rem;
}

.search-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-modal-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-modal-input {
    width: 100%;
    padding: 1.2rem;
    background: #0e1416;
    border: 2px solid rgba(27, 158, 119, 0.3);
    border-radius: 8px;
    color: #c7d5e0;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s;
}

.search-modal-input:focus {
    outline: none;
    border-color: #1b9e77;
    box-shadow: 0 0 20px rgba(27, 158, 119, 0.3);
    background: #0a0d10;
}

.search-modal-input::placeholder {
    color: #7a8a94;
}

.search-modal-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.search-modal-select {
    padding: 0.95rem 1rem;
    background: #0e1416;
    border: 1px solid rgba(27, 158, 119, 0.3);
    border-radius: 6px;
    color: #c7d5e0;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.search-modal-select:focus {
    outline: none;
    border-color: #1b9e77;
    box-shadow: 0 0 15px rgba(27, 158, 119, 0.2);
}

.search-modal-select option {
    background: #1b2838;
    color: #c7d5e0;
}

.search-modal-btn {
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, #1b9e77 0%, #16a16c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(27, 158, 119, 0.3);
}

.search-modal-btn:hover {
    background: linear-gradient(135deg, #16a16c 0%, #14825a 100%);
    box-shadow: 0 6px 20px rgba(27, 158, 119, 0.4);
    transform: translateY(-2px);
}

.search-modal-btn:active {
    transform: translateY(0);
}

/* ==================== Hamburger Menu ==================== */
.hamburger-btn {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #1b9e77 0%, #16a16c 100%);
    border: none;
    color: #ffffff;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(27, 158, 119, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(27, 158, 119, 0.5);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.sidebar {
    transition: transform 0.3s ease;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 600px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar-logo {
        font-size: 1.2rem;
    }

    .navbar-menu {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .search-modal {
        padding: 1.5rem;
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }

    .search-modal-header h2 {
        font-size: 1.4rem;
    }

    .search-modal-header p {
        font-size: 0.85rem;
    }

    .search-modal-filters {
        grid-template-columns: 1fr;
    }

    .search-modal-input {
        padding: 1rem;
        font-size: 1rem;
    }

    .search-modal-select {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .search-modal-close {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Page Layout ==================== */
.page-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* ==================== Sidebar ==================== */
.sidebar {
    width: 230px;
    background: #0e1416;
    padding: 1.5rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
    transition: left 0.3s ease;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.sidebar-title {
    color: #8fa3a9;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 0.3rem 0;
}

.sidebar-menu a {
    display: block;
    color: #a1b2c1;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(27, 158, 119, 0.2);
    color: #1b9e77;
}

/* ==================== Content Area ==================== */
.content {
    flex: 1;
    padding: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
}

.container {
    width: 100%;
}

/* ==================== Featured Banner ==================== */
.featured-banner {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1f2e 100%);
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-content h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.featured-content p {
    font-size: 1rem;
    color: #a1b2c1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ==================== Section Title ==================== */
.section-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #1b9e77;
    border-radius: 2px;
}

/* ==================== Buttons ==================== */
.btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
    display: inline-block;
}

.btn-primary {
    background: #1b9e77;
    color: white;
}

.btn-primary:hover {
    background: #16a16c;
    box-shadow: 0 5px 15px rgba(27, 158, 119, 0.3);
}

.btn-secondary {
    background: rgba(27, 158, 119, 0.2);
    color: #1b9e77;
    border: 1px solid #1b9e77;
}

.btn-secondary:hover {
    background: #1b9e77;
    color: white;
}

.btn-danger {
    background: #c1392b;
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: #a0291f;
}

/* ==================== Filter Category ==================== */
.filter-category {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-category button {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: #a1b2c1;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-category button:hover {
    background: rgba(27, 158, 119, 0.2);
    border-color: #1b9e77;
    color: #1b9e77;
}

.filter-category button.active {
    background: #1b9e77;
    color: white;
    border-color: #1b9e77;
}

/* ==================== Articles Grid ==================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ==================== Article Card ==================== */
.article-card {
    background: #161d24;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 158, 119, 0.15);
    border-color: rgba(27, 158, 119, 0.3);
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0e1416;
}

.article-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    background: rgba(27, 158, 119, 0.2);
    color: #1b9e77;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.article-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-description {
    color: #a1b2c1;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4em;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    font-size: 0.85rem;
    color: #7a8a94;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.8rem;
}

.article-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.article-meta-label {
    font-size: 0.75rem;
    color: #7a8a94;
    text-transform: capitalize;
}

.article-meta-value {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: bold;
}

.article-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffd700;
}

.article-price-section {
    margin-bottom: 0;
    padding: 0;
    border: none;
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 0.6rem;
    align-items: center;
}

.article-price-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-price {
    font-size: 1.3rem;
    color: #1b9e77;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.article-original-price {
    color: #7a8a94;
    text-decoration: line-through;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1;
}

.article-discount {
    display: inline-block;
    background: rgba(27, 158, 119, 0.2);
    color: #1b9e77;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    width: fit-content;
    line-height: 1;
}

.article-btn {
    margin: 0;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.article-footer {
    display: none;
}

/* ==================== Forms ==================== */
.form-container {
    background: #161d24;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-container h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #c7d5e0;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #0e1416;
    color: #c7d5e0;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1b9e77;
    box-shadow: 0 0 0 2px rgba(27, 158, 119, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons .btn {
    flex: 1;
}

/* ==================== Messages ==================== */
.success-message {
    background: rgba(76, 175, 80, 0.2);
    color: #66bb6a;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #66bb6a;
}

.error-message {
    background: rgba(193, 57, 43, 0.2);
    color: #ef5350;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ef5350;
}

/* ==================== Article List ==================== */
.article-list {
    background: #161d24;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-list-item {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-info {
    flex-grow: 1;
}

.article-list-info h3 {
    color: #1b9e77;
    margin-bottom: 0.3rem;
}

.article-list-info p {
    color: #7a8a94;
    font-size: 0.9rem;
}

.article-list-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==================== Footer ==================== */
footer {
    background: #1b2838;
    color: #a1b2c1;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==================== Responsive ==================== */

/* Tablet & Medium Devices (768px and down) */
@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1rem;
    }

    .navbar-container {
        flex-wrap: wrap;
    }

    .navbar-logo {
        font-size: 1.3rem;
    }

    .navbar-menu {
        gap: 1rem;
        font-size: 0.95rem;
    }

    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 1rem;
    }

    .content {
        border-left: none;
        padding: 1.5rem 1rem;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .featured-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .featured-banner h1 {
        font-size: 1.8rem;
    }

    .article-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-list-actions {
        width: 100%;
    }

    .article-list-actions .btn {
        flex: 1;
    }

    .search-header h1 {
        font-size: 1.6rem;
    }
}

/* Mobile Devices (480px and down) */
@media (max-width: 480px) {
    * {
        border-radius: 6px !important;
    }

    body {
        font-size: 0.95rem;
    }

    /* Navbar adjustments */
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar-logo {
        font-size: 1.1rem;
    }

    .navbar-menu {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .navbar-menu a {
        padding: 0.3rem 0.5rem;
    }

    .search-toggle {
        font-size: 1rem;
        padding: 0.3rem 0.5rem;
    }

    /* Search Modal */
    .search-modal {
        padding: 1.5rem;
        max-width: 95vw;
        width: 95vw;
    }

    .search-modal-header h2 {
        font-size: 1.4rem;
    }

    .search-modal-header p {
        font-size: 0.85rem;
    }

    .search-modal-input {
        padding: 0.9rem;
        font-size: 1rem;
    }

    .search-modal-select {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .search-modal-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .search-modal-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-modal-close {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.3rem;
        top: 0.8rem;
        right: 0.8rem;
    }

    /* Layout adjustments */
    .page-layout {
        flex-direction: column;
    }

    /* Hamburger Menu & Sidebar Drawer */
    .hamburger-btn {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
        z-index: 500;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        position: fixed;
        left: -300px;
        top: 55px;
        width: 280px;
        height: calc(100vh - 55px);
        background: #1b2838;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 501;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 1rem;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        padding: 1rem 0.75rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .article-card {
        border-radius: 6px;
    }

    .article-card-image {
        height: 150px;
    }

    .article-card-content {
        padding: 0.75rem;
    }

    .article-card-title {
        font-size: 0.95rem;
    }

    .article-card-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .featured-banner {
        padding: 1.5rem 1rem;
    }

    .featured-content h1 {
        font-size: 1.5rem;
    }

    .featured-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .search-header h1 {
        font-size: 1.4rem;
    }

    .search-info {
        font-size: 0.9rem;
    }

    .no-results {
        padding: 2rem 0.75rem;
        font-size: 1rem;
    }

    .sidebar-title {
        font-size: 0.7rem;
    }

    .sidebar-menu a {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* Small Mobile Devices (360px and down) */
@media (max-width: 360px) {
    .navbar-logo {
        font-size: 1rem;
    }

    .navbar-menu {
        gap: 0.3rem;
        font-size: 0.8rem;
    }

    .navbar-menu a {
        padding: 0.2rem 0.3rem;
    }

    .hamburger-btn {
        width: 3rem;
        height: 3rem;
        bottom: 1.5rem;
        right: 1rem;
        font-size: 1.3rem;
    }

    .sidebar {
        width: 250px;
    }

    .search-modal {
        padding: 1.2rem;
        max-width: 98vw;
    }

    .search-modal-header h2 {
        font-size: 1.2rem;
    }

    .search-modal-close {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .article-card-image {
        height: 120px;
    }

    .featured-content h1 {
        font-size: 1.3rem;
    }

    .featured-content p {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .search-header h1 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ==================== Search Results ==================== */
.search-header {
    margin-bottom: 2rem;
}

.search-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.search-info {
    color: #a1b2c1;
    font-size: 1rem;
}

.search-info strong {
    color: #1b9e77;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #8fa3a9;
    font-size: 1.1rem;
}

/* ==================== Quill Editor Styling ==================== */
/* Container styling */
.ql-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: #c7d5e0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1f23;
}

.ql-editor {
    padding: 1rem;
    min-height: 300px;
    background: #1a1f23;
}

.ql-editor.ql-blank::before {
    color: #7a8a94;
    font-style: italic;
}

/* Toolbar styling */
.ql-toolbar {
    background: #14191e;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ql-toolbar.ql-snow {
    padding: 0.5rem;
}

.ql-toolbar.ql-snow .ql-formats {
    margin-right: 0.5rem;
}

.ql-toolbar.ql-snow .ql-stroke {
    stroke: #a1b2c1;
}

.ql-toolbar.ql-snow .ql-stroke.ql-action:hover,
.ql-toolbar.ql-snow .ql-stroke.ql-action.ql-active,
.ql-toolbar.ql-snow .ql-stroke.ql-action:focus,
.ql-toolbar.ql-snow .ql-stroke.ql-action.ql-selected,
.ql-toolbar.ql-snow a.ql-action:hover,
.ql-toolbar.ql-snow a.ql-action.ql-active,
.ql-toolbar.ql-snow a.ql-action:focus,
.ql-toolbar.ql-snow a.ql-action.ql-selected {
    stroke: #1b9e77;
}

.ql-toolbar.ql-snow .ql-fill,
.ql-toolbar.ql-snow .ql-stroke.ql-fill {
    fill: #a1b2c1;
}

.ql-toolbar.ql-snow .ql-fill.ql-action:hover,
.ql-toolbar.ql-snow .ql-fill.ql-action.ql-active,
.ql-toolbar.ql-snow .ql-stroke.ql-fill.ql-action:hover,
.ql-toolbar.ql-snow .ql-stroke.ql-fill.ql-action.ql-active {
    fill: #1b9e77;
}

.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active,
.ql-toolbar.ql-snow button:focus,
.ql-toolbar.ql-snow button.ql-selected,
.ql-toolbar.ql-snow a:hover,
.ql-toolbar.ql-snow a.ql-active,
.ql-toolbar.ql-snow a:focus,
.ql-toolbar.ql-snow a.ql-selected {
    color: #1b9e77;
}

.ql-toolbar.ql-snow .ql-picker-label {
    color: #a1b2c1;
}

.ql-picker-options {
    background: #14191e;
    color: #a1b2c1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ql-picker-item:hover,
.ql-picker-item.ql-selected,
.ql-picker-item:focus {
    color: #1b9e77;
    background: rgba(27, 158, 119, 0.2);
}

/* Color picker styling */
.ql-color-picker {
    background: #14191e;
}

.ql-color-label {
    background-color: transparent;
}

/* Font selector styling */
.ql-font-serif {
    font-family: Georgia, serif;
}

.ql-font-monospace {
    font-family: 'Courier New', monospace;
}

/* Better toolbar organization */
.ql-toolbar.ql-snow .ql-formats {
    margin-right: 1rem;
}

/* Color picker improvements */
.ql-color, .ql-background {
    display: inline-block;
}

.ql-color::before, .ql-background::before {
    border-bottom: 3px solid #1b9e77;
}

.ql-toolbar.ql-snow .ql-color-picker,
.ql-toolbar.ql-snow .ql-icon-picker {
    width: 28px;
    height: 28px;
}

/* Video and image icons */
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
    max-height: 300px;
    overflow-y: auto;
}

/* Separator line between toolbar groups */
.ql-toolbar.ql-snow .ql-formats {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1rem;
}

.ql-toolbar.ql-snow .ql-formats:last-child {
    border-right: none;
}

/* Editor text styling */
.ql-editor h1 {
    font-size: 2rem;
    color: #ffffff;
    margin: 1rem 0 0.5rem 0;
}

.ql-editor h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 1rem 0 0.5rem 0;
}

.ql-editor blockquote {
    border-left: 4px solid #1b9e77;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: rgba(27, 158, 119, 0.1);
    color: #a1b2c1;
}

.ql-editor code-block {
    background: #0a0c0e;
    border-left: 3px solid #1b9e77;
}

.ql-editor a {
    color: #1b9e77;
    text-decoration: underline;
}

.ql-editor li {
    margin: 0.25rem 0;
}

.ql-editor ol,
.ql-editor ul {
    padding-left: 1.5rem;
}

/* Detail Description Styling */
.detail-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #c7d5e0;
}

.detail-description h1,
.detail-description h2,
.detail-description h3 {
    color: #ffffff;
    margin: 1.5rem 0 0.5rem 0;
}

.detail-description h1 {
    font-size: 1.8rem;
}

.detail-description h2 {
    font-size: 1.5rem;
}

.detail-description h3 {
    font-size: 1.2rem;
}

.detail-description blockquote {
    border-left: 4px solid #1b9e77;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: rgba(27, 158, 119, 0.1);
    color: #a1b2c1;
}

.detail-description code {
    background: #1a1f23;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: #a1b2c1;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.detail-description pre {
    background: #0a0c0e;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    border-left: 3px solid #1b9e77;
    margin: 1rem 0;
}

.detail-description ol,
.detail-description ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.detail-description li {
    margin: 0.5rem 0;
}

.detail-description a {
    color: #1b9e77;
    text-decoration: underline;
}

.detail-description a:hover {
    color: #2db898;
}

.detail-description strong {
    color: #ffffff;
    font-weight: 600;
}

.detail-description em {
    color: #d4e4ed;
}

/* Images in description */
.detail-description img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Video embeds in description */
.detail-description iframe {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Code styling in description */
.detail-description code {
    background: #1a1f23;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: #a1b2c1;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.detail-description pre {
    background: #0a0c0e;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    border-left: 3px solid #1b9e77;
    margin: 1rem 0;
}

.detail-description pre code {
    background: transparent;
    padding: 0;
    color: #a1b2c1;
}

/* Table styling */
.detail-description table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.detail-description table td,
.detail-description table th {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    text-align: left;
}

.detail-description table th {
    background: rgba(27, 158, 119, 0.2);
    color: #ffffff;
    font-weight: 600;
}

/* Superscript and subscript */
.detail-description sup,
.detail-description sub {
    font-size: 0.8em;
}

/* Markup elements */
.detail-description mark {
    background: rgba(27, 158, 119, 0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
}

/* Quill alignment classes */
.detail-description .ql-align-left {
    text-align: left;
}

.detail-description .ql-align-center {
    text-align: center;
}

.detail-description .ql-align-right {
    text-align: right;
}

.detail-description .ql-align-justify {
    text-align: justify;
}

/* Quill direction classes */
.detail-description .ql-direction-rtl {
    direction: rtl;
    text-align: inherit;
}

.detail-description .ql-indent-1 {
    margin-left: 3em;
}

.detail-description .ql-indent-2 {
    margin-left: 6em;
}

.detail-description .ql-indent-3 {
    margin-left: 9em;
}

.detail-description .ql-indent-4 {
    margin-left: 12em;
}

.detail-description .ql-indent-5 {
    margin-left: 15em;
}

.detail-description .ql-indent-6 {
    margin-left: 18em;
}

.detail-description .ql-indent-7 {
    margin-left: 21em;
}

.detail-description .ql-indent-8 {
    margin-left: 24em;
}

/* Responsive Quill Editor */
@media (max-width: 768px) {
    #editor {
        height: 250px !important;
    }

    .ql-toolbar {
        flex-wrap: wrap;
    }

    .ql-toolbar.ql-snow .ql-formats {
        margin-bottom: 0.5rem;
    }
}