:root {
    --primary: #8B5CF6;
    --secondary: #EC4899;
    --mikrotik: #2563EB;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #ffffff !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1F2937 !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary) !important;
}

.brand-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: #374151 !important;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.navbar i {
    color: #374151 !important;
}

.nav-link i {
    color: #374151 !important;
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--primary) !important;
}

.navbar .fas,
.navbar .far {
    color: #374151 !important;
}

.navbar .nav-link:hover .fas,
.navbar .nav-link:hover .far,
.navbar .nav-link.active .fas,
.navbar .nav-link.active .far {
    color: var(--primary) !important;
}

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

.search-form {
    max-width: 300px;
}

.search-input {
    border: 2px solid #E5E7EB;
    border-radius: 50px 0 0 50px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.btn-search {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 0 50px 50px 0;
    padding: 0 15px;
}

.btn-search:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-hero {
    background: #fff;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.article-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    overflow: hidden;
    position: relative;
}

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

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

.article-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-title a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: var(--gray);
    margin-bottom: 15px;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray);
    font-size: 0.85rem;
    padding-top: 15px;
    border-top: 1px solid #E5E7EB;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.featured-article {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.featured-image {
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 6rem;
    overflow: hidden;
    position: relative;
}

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-content {
    padding: 40px;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.featured-title a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-title a:hover {
    color: var(--primary);
}

.featured-excerpt {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.featured-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--dark);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 15px;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-item {
    padding: 8px 20px;
    background: #fff;
    border-radius: 25px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tag-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.article-detail {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-detail-image {
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 6rem;
    overflow: hidden;
    position: relative;
}

.article-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-content {
    padding: 40px;
}

.article-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.article-detail-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--dark);
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--dark);
}

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

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body code {
    background: var(--light);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.article-body pre {
    background: #1F2937;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body pre code {
    background: none;
    color: #fff;
    padding: 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--gray);
}

.toc-container {
    background: var(--light);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.toc-container h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-link {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.toc-link:hover {
    color: var(--primary);
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E5E7EB;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.share-facebook {
    background: #1877F2;
}

.share-twitter {
    background: #1DA1F2;
}

.share-linkedin {
    background: #0A66C2;
}

.share-whatsapp {
    background: #25D366;
}

.sidebar {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-article {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.sidebar-article-thumb {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-content {
    flex: 1;
}

.sidebar-article-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-article-title a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-article-title a:hover {
    color: var(--primary);
}

.sidebar-article-meta {
    color: var(--gray);
    font-size: 0.8rem;
}

.footer {
    background: var(--dark);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 10px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.footer-copyright,
.footer-credits {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-credits a {
    color: #fff;
    text-decoration: none;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--secondary);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .featured-image,
    .article-detail-image {
        height: 300px;
    }
    
    .featured-title,
    .article-detail-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .search-form {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .featured-image,
    .article-detail-image {
        height: 250px;
    }
    
    .featured-content,
    .article-detail-content {
        padding: 25px;
    }
    
    .featured-title,
    .article-detail-title {
        font-size: 1.5rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .sidebar {
        padding: 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .article-card,
    .category-card {
        padding: 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}