/* Base Styles */
:root {
    --primary-color: #ffffff;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    
    /* Dark theme colors */
    --dark-bg-gradient: linear-gradient(to bottom, #201D2A, #000000);
    --dark-text-color: #ffffff;
    --dark-border-color: #444;
    --dark-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
    background-image: var(--dark-bg-gradient);
    color: var(--dark-text-color);
}

a {
    text-decoration: none;
    color: #ffffff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header Styles */
.main-header {
    background-color: #000b1b;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    z-index: 100;
    transition: all 0.3s ease;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle.active i:before {
    content: "\f00d"; /* Change to X icon when active */
}

.main-nav ul {
    display: flex;
    align-items: center;
    color: #b9b9b9;
    justify-content: flex-start;
    width: 100%;
}

.main-nav li {
    margin-right: 20px;
    margin-left: 0;
    position: relative;
}

.main-nav a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav i {
    margin-right: 5px;
}

/* Live Search */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
}

/* New Search Box Styles */
.search-box-container {
    position: relative;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.search-box-form {
    display: flex;
    align-items: center;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-box-wrapper:focus-within {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    background-color: #fff;
}

.search-box-icon {
    color: #666;
    margin-right: 8px;
}

#search-box-input {
    border: none;
    background: transparent;
    padding: 8px 5px;
    font-size: 14px;
    width: 180px;
    outline: none;
}

.search-box-button {
    background-color: #5c6bc0;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box-button:hover {
    background-color: #3f51b5;
}

.search-box-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 10px;
    border: 1px solid #eaeaea;
    animation: fadeIn 0.3s ease;
}

.search-box-results.loading {
    display: block;
    min-height: 80px;
    position: relative;
}

.search-box-results.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5c6bc0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-box-results.active {
    display: block;
}

.search-box-results .search-results-list {
    padding: 0;
    margin: 0;
}

.search-box-results .search-result-item {
    border-bottom: 1px solid #f0f0f0;
}

.search-box-results .search-result-item:last-child {
    border-bottom: none;
}

.search-box-results .search-result-item a {
    display: flex;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    align-items: center;
}

.search-box-results .search-result-item a:hover {
    background-color: #f8f9fa;
}

.search-box-results .search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-box-results .search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-box-results .search-result-content {
    flex: 1;
}

.search-box-results .search-result-title {
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.3;
}

.search-box-results .search-result-category {
    font-size: 11px;
    color: #5c6bc0;
    margin-bottom: 4px;
    font-weight: 500;
}

.search-box-results .search-result-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.search-box-results .more-results {
    padding: 10px 15px;
    background: #f5f5f5;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.search-box-results .more-results a {
    color: #5c6bc0;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
}

.search-box-results .more-results a:hover {
    text-decoration: underline;
}

.search-box-results .no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modern search styling */
.search-form.modern {
    margin: 0 10px;
    display: flex !important;
}

.search-form.modern .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form.modern .search-icon-inside {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-form.modern input {
    padding: 10px 15px 10px 40px;
    border: none;
    background: transparent;
    color: #fff;
    width: 180px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-form.modern input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.search-form.modern input:focus {
    outline: none;
    width: 220px;
}

.search-form.modern input:focus + .search-icon-inside {
    color: #fff;
}

.search-form.modern button {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    margin-right: 2px;
    transition: all 0.3s ease;
}

.search-form.modern button:hover {
    background: var(--primary-color-dark);
    transform: scale(1.05);
}

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #252935;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-search-results .search-results-list {
    padding: 0;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
}

.live-search-results .search-result-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.live-search-results .search-result-item:last-child {
    border-bottom: none;
}

.live-search-results .search-result-item a {
    display: flex;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
    align-items: center;
}

.live-search-results .search-result-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.live-search-results .search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.live-search-results .search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-search-results .search-result-content {
    flex: 1;
}

.live-search-results .search-result-title {
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.3;
}

.live-search-results .search-result-category {
    font-size: 11px;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 500;
}

.live-search-results .search-result-excerpt {
    font-size: 12px;
    color: #b9b9b9;
    line-height: 1.4;
}

.live-search-results.loading {
    position: relative;
    min-height: 80px;
    display: block;
}

.live-search-results.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    border-radius: 50%;
    border: 3px solid #333;
    border-top: 3px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

.live-search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
}

.live-search-results li {
    padding: 0;
    margin: 0;
}

.live-search-results li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    font-size: 14px;
}

.live-search-results li a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 22px;
}

.live-search-results li a:before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.live-search-results li a:hover:before {
    opacity: 1;
    transform: translateX(0);
}

.live-search-results .more-results {
    padding: 12px 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

.live-search-results .more-results a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: block;
    transition: all 0.2s ease;
}

.live-search-results .more-results a:hover {
    color: #fff;
}

.live-search-results .no-results {
    padding: 18px;
    text-align: center;
    color: #b9b9b9;
    font-size: 14px;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:hover {
    background-color: var(--light-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Search Form */
.search-icon {
    position: relative;
}

.search-form {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    width: 250px;
}

.search-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.search-form button {
    position: absolute;
    right: 15px;
    top: 18px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.search-icon:hover .search-form {
    display: block;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay-search-form {
    width: 80%;
    max-width: 600px;
    position: relative;
}

.overlay-search-form input {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 4px;
}

.overlay-search-form button {
    background: none;
    border: none;
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.2rem;
    cursor: pointer;
}

#close-search {
    color: #fff;
    position: absolute;
    right: -40px;
    top: 15px;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.article-card {
    background: #252934;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.article-image {
    height: 180px;
    overflow: hidden;
}

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

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

.article-content {
    padding: 15px;
    background-color: #252935;
    color: #ffffff;
    border-color: #ffffff;
    border-radius: 0 0 8px 8px;
    border-width: 0 0 6px 6px;
}
.article-content-post {
    padding: 5px;
    background-color: #292E3B;
    color: #ffffff;
    border-color: #ffffff;
    border-radius: 0 0 8px 8px;
    border-width: 0 0 6px 6px;
}

/* Comment Section */
.comment-section {
    margin-top: 40px;
    padding: 30px;
    background: #292E3B;
    border-radius: 8px;
}

.comment-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.comment-form {
    background: #252935;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comment-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    background: #252935;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: #ffffff;
}

.comment-date {
    color: #b9b9b9;
    font-size: 0.9em;
}

.comment-content {
    line-height: 1.6;
    color: #ffffff;
}

.no-comments {
    text-align: center;
    padding: 20px;
    background: #252935;
    border-radius: 8px;
    color: #b9b9b9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px 5px 0;
    background: #252935;
    color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.page-link:hover {
    background: var(--primary-color);
    color: #252935;
}

.page-link.active {
    background: var(--primary-color);
    color: #252935;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.category-tag {
    background-color: #000b1b;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.views-count {
    font-size: 0.8rem;
    color: #ffffff;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-excerpt {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

.article-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

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

.author-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: right;
}

/* Section Headings */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.section-heading h2 {
    font-size: 1.5rem;
    color: #ffffff;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
}

/* Article Page */
.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.article-main {
    background: #292E3B;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 25px;
}

.article-featured-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-title-large {
    font-size: 2rem;
    margin: 15px 0;
    line-height: 1.3;
}

.article-meta-large {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.article-author-large {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.article-date {
    color: #ffffff;
    font-size: 0.9rem;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body p,
.article-body ul,
.article-body ol {
    margin-bottom: 20px;
}

.article-body h2,
.article-body h3 {
    margin: 30px 0 15px;
}

.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
}

.article-tag {
    background: var(--light-color);
    padding: 5px 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.article-views {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
}

.article-views i {
    margin-right: 5px;
    color: var(--primary-color);
}
/* Social Sharing */
.social-sharing {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.social-sharing h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ffffff;
    text-align: right;
}

.social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.social-button.whatsapp {
    background-color: #25d366;
}

.social-button.email {
    background-color: #ea4335;
}

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

.sidebar-widget {
    background: #292E3B;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: #ffffff;
}

.popular-posts-widget .article-card {
    background: #343a4d;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
}

.popular-posts-widget .article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.popular-posts-widget .article-card:last-child {
    margin-bottom: 0;
}

.popular-posts-widget .article-image {
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.popular-posts-widget .article-content {
    padding: 15px 10px 5px;
}
.popular-posts-widget .article-content-post {
    padding: 15px 10px 5px;
}

.popular-posts-widget .article-title {
    font-size: 1rem;
    margin-bottom: 10px;
    padding: 0 5px;
}

.categories-widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.categories-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-widget a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-widget .category-count {
    background: var(--light-color);
    color: black;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Footer */
.main-footer {
    background: #1f1f1f;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

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

.footer-widget a {
    color: #ddd;
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Admin Panel */
.admin-container {
    background: #000B1A;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.admin-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #1a252f;
}

.btn-danger {
    background: var(--accent-color);
}

.btn-danger:hover {
    background: #c0392b;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--light-color);
    font-weight: 600;
}

.admin-table tr:hover {
    background: #f9f9f9;
}

.admin-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 200px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-content {
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 30px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header and Navigation */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }
    
    .logo {
        flex: 1;
        text-align: left;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        width: 100%;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        background: #292E3B;
        z-index: 99;
        transition: all 0.3s ease;
        padding-top: 70px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    
    .main-nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-left: 0;
    }
    
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .main-nav ul li a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Center search box in mobile view */
    .main-nav li.search-box-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .search-box-form {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .search-box-wrapper {
        width: 100%;
    }
    
    /* Mobile search styling */
    .search-container {
        width: 100%;
        display: flex;
    }
    
    .search-form.modern {
        margin: 15px 20px;
        display: flex !important;
        width: 100%;
    }
    
    .search-form.modern .search-input-wrapper {
        width: 100%;
        display: flex;
    }
    
    .search-form.modern input {
        width: 100%;
    }
    
    .live-search-results {
        width: 90%;
        left: 5%;
        right: 5%;
    }
    
    /* Article Layout */
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .dropdown-content {
        width: 100%;
        left: 0;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .article-card {
        width: 100%;
        margin-bottom: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
    }
    
    .article-card:hover {
        transform: translateY(-5px);
    }
    
    .article-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* Comment Form */
    .comment-form {
        width: 100%;
        padding: 15px;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .article-meta-large {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-author-large {
        margin-bottom: 10px;
    }
    
    .article-meta, .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-meta > span, .article-footer > div {
        margin-bottom: 5px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    /* Enhanced mobile styling */
    .article-card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    
    .article-title {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Improved buttons and forms */
    button, 
    input[type="submit"] {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    /* Better spacing */
    .section-heading h2 {
        margin-bottom: 20px;
        font-size: 1.4rem;
    }
}