/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #1e3a5f;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Adjust as needed, e.g., 100-900 */
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

h1
{
    font-family: Circular std bold, sans-serif;
    font-size: clamp(28px, 4vw, 42px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #1e3a5f;
    text-decoration: none;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1e3a5f;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4fd1c5;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 209, 197, 0.4);
}

.btn-secondary {
    background: #e8f4f8;
    color: #4fd1c5;
}

.btn-secondary:hover {
    background: #d5eff0;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 5px;
}

.btn-large {
    font-size: 16px;
    padding: 14px 30px;
}

/* ============================================
   LAYOUT
   ============================================ */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 40px 0;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-header {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.admin-tabs a {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e3a5f;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-tabs a.active {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: white;
}

.admin-tabs a:hover:not(.active) {
    background: #e8f4f8;
}

/* ============================================
   TABLES
   ============================================ */
.content-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-table table {
    width: 100%;
    min-width: 600px;
}

.content-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #1e3a5f;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.content-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.content-table tr:hover {
    background: #f8fafc;
}

/* ============================================
   FORMS
   ============================================ */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3a5f;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4fd1c5;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ============================================
   WYSIWYG EDITOR
   ============================================ */
.editor-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.editor-toolbar {
    background: #f8fafc;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.editor-btn {
    padding: 8px 12px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #1e3a5f;
}

.editor-btn:hover {
    background: #e2e8f0;
}

.editor-btn.active {
    background: #4fd1c5;
    color: white;
}

.editor-toggle {
    margin-left: auto;
    padding: 8px 16px;
    background: #4fd1c5;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.editor-toggle:hover {
    background: #38b2ac;
}

#editor {
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 15px;
    min-height: 450px;
    max-height: 450px;
    overflow-y: auto;
    background: white;
    font-size: 14px;
}

#html-editor {
    display: none;
    width: 100%;
    min-height: 400px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #f8f8f8;
    color: #000;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
    max-width: 450px;
    margin: 80px auto;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #1e3a5f;
}

.login-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

.error {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #fecaca;
}

/* ============================================
   HOMEPAGE
   ============================================ */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d5eff0 100%);
    border-radius: 15px;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 20px;
    color: #1e3a5f;
    font-family: Circular std bold, sans-serif;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #4a5568;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    margin-bottom: 60px;
}

.section-title {
    color: #1e3a5f;
    margin-bottom: 30px;
    font-size: clamp(24px, 4vw, 32px);
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.content-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.content-card h3 {
    color: #1e3a5f;
    margin-bottom: 15px;
    font-size: 20px;
}

.content-card h3 a {
    color: inherit;
    text-decoration: none;
}

.content-card h3 a:hover {
    color: #4fd1c5;
}

.meta-info {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.category-badge {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.category-badge-small {
    display: inline-block;
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    color: #1e3a5f;
    margin-bottom: 15px;
    font-family: Circular std bold, sans-serif;
}

.page-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: #64748b;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state i {
    font-size: 64px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #64748b;
    margin-bottom: 10px;
}

.empty-state p {
    color: #94a3b8;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb a {
    color: #4fd1c5;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #38b2ac;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #cbd5e0;
}

.breadcrumb .current {
    color: #64748b;
}

/* ============================================
   BLOG SINGLE PAGE
   ============================================ */
.blog-single {
    background: white;
    padding: 30px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 95%;
    margin: 0 auto 60px;
}

.blog-single h1 {
    color: #1e3a5f;
    margin-bottom: 20px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    font-family: Circular std bold, sans-serif;
}

.blog-meta {
    color: #64748b;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
}

.blog-content {
    color: #1e3a5f;
    line-height: 1.8;
    font-size: 15px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-content h2 {
    margin-top: 15px;
    margin-bottom: 8px;
    color: #1e3a5f;
    font-size: clamp(22px, 3vw, 28px);
}

.blog-content h3 {
    margin-top: 15px;
    margin-bottom: 7px;
    color: #1e3a5f;
    font-size: clamp(18px, 2.5vw, 22px);
}

.blog-content p {
    margin-bottom: 15px;
}

.blog-content ul,
.blog-content ol {
    margin: 5px 0 10px 5px;
}

.blog-content li {
    margin-bottom: 8px;
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
    margin: 60px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.related-thumbnail {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

.related-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #94a3b8;
    font-size: 48px;
}

.related-content {
    padding: 20px;
}

.related-category {
    display: inline-block;
    background: #e8f4f8;
    color: #4fd1c5;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.related-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-content h3 a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s;
}

.related-content h3 a:hover {
    color: #4fd1c5;
}

.related-meta {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

/* ============================================
   BLOG LIST GRID
   ============================================ */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card,
.blog-card-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover,
.blog-card-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-thumbnail {
    width: 100%;
    height: 220px;
    display: block;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    text-decoration: none;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #94a3b8;
    font-size: 64px;
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-categories {
    margin-bottom: 12px;
}

.blog-card h2,
.blog-card-content h2 {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 12px;
    line-height: 1.3;
    flex: 1;
    color: #1e3a5f;
}

.blog-card h2 a,
.blog-card-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h2 a:hover,
.blog-card-content h2 a:hover {
    color: #4fd1c5;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    gap: 20px;
}

.pagination-info {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e3a5f;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
}

.pagination a:hover:not(.disabled) {
    background: #4fd1c5;
    color: white;
    border-color: #4fd1c5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
}

.pagination .active {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: white;
    border-color: #4fd1c5;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .ellipsis {
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-weight: 600;
    color: #94a3b8;
}

.pagination-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px !important;
}

/* ============================================
   BLOG LAYOUT WITH SIDEBAR TOC
   ============================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: relative;
}
.toc-mobile {
    display: none;
}

.toc-desktop {
    display: block;
}

.toc-sticky {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.toc-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.toc-title i {
    color: #4fd1c5;
}

.toc-nav {
    font-size: 14px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    margin: 0;
}

.toc-link {
    display: block;
    padding: 12px 7px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s;
    line-height: 1.4;
}

.toc-link:hover {
    color: #4fd1c5;
    background: #f8fafc;
    border-left-color: #4fd1c5;
}

.toc-link.active {
    color: #4fd1c5;
    background: #e8f4f8;
    border-left-color: #4fd1c5;
    font-weight: 600;
}

.toc-level-1 {
    counter-increment: toc-counter;
    position: relative;
}

.toc-level-1 .toc-link {
    padding-left: 45px;
}

.toc-level-1 .toc-link::before {
    content: counter(toc-counter);
    position: absolute;
    left: 1px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.toc-level-1 .toc-link.active::before {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 100%);
    box-shadow: 0 4px 12px rgba(79, 209, 197, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.toc-level-2 {
    padding-left: 20px;
}

.toc-level-2 .toc-link {
    padding-left: 40px;
        position: relative; /* required for ::before positioning */

}

.toc-level-2 .toc-link::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 22px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #4fd1c5;
    border-radius: 50%;
    transition: all 0.3s;
}
.toc-level-2 .toc-link:hover::before {
    background: #4fd1c5;
    transform: translateY(-50%) scale(1.3);
}

.toc-level-2 .toc-link.active::before {
    background: #4fd1c5;
    width: 10px;
    height: 10px;
}

.toc-loading,
.toc-empty {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
    padding: 10px 0;
}

/* Blog Content in Layout */
.blog-layout .blog-single {
    margin: 0;
    max-width: 100%;
}

/* Categories Header (below title) */
.blog-categories-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-categories-header .category-badge {
    margin-right: 8px;
}

/* Admin Edit Section */
.admin-edit-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.admin-edit-section .btn {
    font-size: 15px;
    padding: 12px 30px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}




/* ============================================
   RESPONSIVE - TABLET (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-single {
        max-width: 100%;
        padding: 40px 30px;
    }
        .blog-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

    .toc-sticky {
        padding: 20px;
    }

    .toc-title {
        font-size: 15px;
    }

    .toc-link {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }
    .breadcrumb
    {
        display: none;
    }

    nav {
        justify-content: space-between;
    }

    /* Hero Section */
    .hero-section {
        padding: 60px 20px;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    /* Hide desktop TOC, show mobile TOC */
    .toc-desktop {
        display: none;
    }

    .toc-mobile {
        display: block;
        margin: 20px 0;
    }

    .toc-mobile .toc-sticky {
        position: relative;
        top: 0;
        max-height: 400px;
        overflow-y: auto;
    }

    .blog-categories-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 20px;
    }

    /* Content Grids */
    .content-grid,
    .blogs-grid,
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Blog Single */
    .blog-single {
        padding: 30px 20px;
        max-width: 100%;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px;
        padding: 12px 15px;
    }

    /* Tables */
    .content-table {
        overflow-x: scroll;
    }

    .content-table td,
    .content-table th {
        padding: 10px;
        font-size: 13px;
    }

    /* Admin Tabs */
    .admin-tabs a {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Editor */
    .editor-container {
        padding: 20px 15px;
    }

    .editor-toolbar {
        padding: 8px;
    }

    .editor-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .editor-toggle {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Pagination */
    .pagination-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }

    .pagination-info {
        text-align: center;
    }

    .pagination {
        justify-content: center;
    }

    .pagination-nav {
        display: none;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 38px;
    }

    /* Buttons */
    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .btn-large {
        font-size: 14px;
        padding: 12px 25px;
    }

    /* Form Actions */
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Login */
    .login-container {
        margin: 40px auto;
    }

    .login-card {
        padding: 30px 20px;
    }
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toc-sidebar {
        position: relative;
        order: 2;
        margin-top: 40px;
    }

    .toc-sticky {
        position: relative;
        top: 0;
        max-height: none;
    }

    .blog-layout .blog-single {
        order: 1;
    }

    .blog-categories-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 20px;
    }
    
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .blog-thumbnail {
        height: 180px;
    }

    .related-thumbnail {
        height: 150px;
    }

    .content-card,
    .blog-card-content {
        padding: 20px;
    }

    .admin-header {
        padding: 20px;
    }

    .form-card {
        padding: 20px;
    }
    
    
    
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    header,
    .admin-tabs,
    .pagination-wrapper,
    .btn,
    .breadcrumb,
    .related-posts {
        display: none;
    }

    .blog-single,
    .content-card {
        box-shadow: none;
        padding: 0;
    }

    body {
        background: white;
    }
}