/* Import Google Font Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #F96700;
    --primary-hover: #e05a00;
    --bg-color: #f5f5f5;
    --header-color: #191919;
    --content-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--header-color);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: 30px;
}

.desktop-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.desktop-menu a:hover {
    color: var(--primary-color);
}

.desktop-menu a.active {
    color: var(--primary-color);
}

/* Mobile Toggles */
.mobile-sidebar-toggle,
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    display: none;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.mobile-dropdown-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #333;
    transition: background 0.3s;
}

.mobile-dropdown-menu a:hover {
    background: #2a2a2a;
}

.mobile-dropdown-menu a.active {
    color: var(--primary-color);
    background: #2a2a2a;
}

/* Main Container */
.main-container {
    padding: 30px 0;
}

.main-container .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    background: var(--content-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.menu-section {
    margin-bottom: 25px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.menu-list {
    list-style: none;
}

.menu-list li {
    margin-bottom: 5px;
}

.menu-link {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
}

.menu-link:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.menu-link.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

/* Content Area */
.content-area {
    background: var(--content-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    min-height: 500px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 25px 0 15px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #34495e;
    margin: 20px 0 10px;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body ul, .article-body ol {
    margin: 15px 0 15px 30px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    cursor: zoom-in;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-body img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-body a.glightbox {
    display: inline-block;
    line-height: 0;
}

.article-body video {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* GLightbox Custom Style */
.glightbox-clean .gslide-description {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    color: #fff;
}

.glightbox-clean .gprev,
.glightbox-clean .gnext {
    background: var(--primary-color);
}

.glightbox-clean .gprev:hover,
.glightbox-clean .gnext:hover {
    background: var(--primary-hover);
}

.glightbox-clean .gclose {
    background: var(--primary-color);
    opacity: 1;
}

.glightbox-clean .gclose:hover {
    background: var(--primary-hover);
}

.glightbox-clean .gslide-image img {
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.article-date {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 400;
}

.no-content {
    text-align: center;
    padding: 60px 20px;
}

.no-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-content p {
    font-size: 16px;
    font-weight: 400;
    color: #7f8c8d;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

/* Tablet & Mobile */
@media (max-width: 768px) {
    /* Hide desktop menu */
    .desktop-menu {
        display: none;
    }
    
    /* Show mobile toggles */
    .mobile-sidebar-toggle {
        display: block;
        order: -1; /* Place first (left side) */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Adjust header container for mobile */
    .header-container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Show dropdown when active */
    .mobile-dropdown-menu.active {
        display: block;
    }
    
    .main-container .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        z-index: 150;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
        border: none;
        border-radius: 0;
    }
    
    .sidebar.active {
        display: block;
    }
    
    .content-area {
        padding: 25px;
        border: 2px solid var(--border-color);
    }
    
    .article-title {
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-body {
        font-size: 15px;
    }
}