/* MOBILE NAVBAR FIX - Works with existing HTML structure */

/* Base navbar styles */
.navbar {
    background-color: #212121 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid #333 !important;
    min-height: 60px !important;
    padding: 0.5rem 1rem !important;
    position: relative !important;
    z-index: 1050 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.navbar-brand {
    font-size: 28px !important; /* Keep original desktop size */
    font-weight: 600 !important;
    color: white !important;
    padding-left: 15px !important; /* Restore original padding */
    line-height: 1.2 !important;
    margin-right: 2rem !important; /* Restore original margin */
    white-space: nowrap !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    letter-spacing: -0.5px !important;
}

/* Desktop styles (keep existing) */
@media (min-width: 992px) {
    .navbar .container-fluid {
        padding: 0 1rem !important; /* Restore original padding */
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    
    .navbar-collapse {
        flex-grow: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .search-form {
        flex: 0 0 auto !important;
        margin: 0 2rem !important;
        position: relative;
        z-index: 100;
    }
    
    .search-box {
        width: 480px !important;
        max-width: 520px !important;
        min-width: 400px !important;
    }
    
    /* Fixed right side menu positioning */
    .navbar .ms-auto {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
    }
}

/* MOBILE STYLES - Only affects mobile devices */
@media (max-width: 991px) {
    /* Adjust logo for mobile */
    .navbar-brand {
        font-size: 24px !important; /* Smaller on mobile only */
        margin-right: 1rem !important;
        padding-left: 0 !important;
    }
    
    /* Make navbar collapse work properly */
    .navbar-collapse {
        width: 100% !important;
        margin-top: 1rem !important;
    }
    
    /* Stack search and user menu vertically */
    .navbar-collapse > .mx-auto {
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
        order: 1 !important;
    }
    
    .navbar-collapse > .d-flex {
        width: 100% !important;
        margin: 0 !important;
        order: 2 !important;
        justify-content: center !important;
    }
    
    /* Full-width search on mobile */
    .search-form {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        border-radius: 8px !important;
    }
    
    .search-input {
        padding: 12px 16px !important;
        height: 44px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .search-btn {
        padding: 12px 16px !important;
        height: 44px !important;
        border-radius: 0 7px 7px 0 !important;
    }
    
    /* Full-width user menu button on mobile */
    .user-menu-button {
        width: 100% !important;
        min-width: auto !important;
        height: 44px !important;
        padding: 8px 16px !important;
        border-radius: 8px !important;
        justify-content: center !important;
    }
    
    .user-avatar {
        width: 28px !important;
        height: 28px !important;
        margin-right: 8px !important;
    }
    
    .user-menu-button .text-white {
        font-size: 14px !important;
        max-width: none !important;
    }
}

/* Search box base styles */
.search-box {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: visible !important;
}

.search-box:focus-within {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 3px rgba(148, 163, 184, 0.1) !important;
}

.search-input {
    background: transparent !important;
    border: none !important;
    color: #1e293b !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 14px 18px !important;
    height: 48px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.search-input:focus {
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.search-input::placeholder {
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.search-btn {
    background: #1a1a1a !important;
    border: none !important;
    color: white !important;
    padding: 14px 18px !important;
    border-radius: 0 11px 11px 0 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    min-width: 60px !important;
    height: 48px !important;
}

.search-btn:hover {
    background: #000000 !important;
    color: white !important;
}

/* User menu button styles */
.user-menu-button {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    transition: all 0.3s ease !important;
    color: white !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    position: relative;
    overflow: hidden;
    min-width: 120px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.user-menu-button:hover {
    background: #000000 !important;
    border-color: #444 !important;
    color: white !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    border: 2px solid #444 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    flex-shrink: 0 !important;
}

.user-menu-button .text-white {
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-left: 8px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Dropdown menu styles */
.dropdown-menu {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3) !important;
    padding: 6px !important;
    margin-top: 4px !important;
    min-width: 180px !important;
    z-index: 1051 !important;
}

.dropdown-item {
    padding: 10px 16px !important;
    color: white !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    margin: 2px 4px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
}

.dropdown-item:hover {
    background: #f97316 !important;
    color: white !important;
}

.dropdown-item i {
    width: 18px !important;
    margin-right: 10px !important;
}

.dropdown-divider {
    margin: 6px 8px !important;
    border-color: #333 !important;
}

/* Mobile navbar toggler */
.navbar-toggler {
    border: none !important;
    padding: 4px 8px !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Search suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-title {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 14px;
}

.suggestion-category {
    font-size: 12px;
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
}
/* Categories Navigation - Fixed */
.nav-links {
    border-top: 1px solid #333;
    padding: 10px 0 !important;
    background-color: #212121 !important;
    min-height: 50px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.nav-links .nav-link {
    color: white !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    letter-spacing: 0.2px !important;
}

.nav-links .nav-link:hover {
    color: #f97316 !important;
}

/* Clean Publish Button - Fixed */
.publish-btn {
    background-color: #212121 !important;
    border: 1px solid #333 !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 8px 15px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px !important;
}

.publish-btn:hover {
    background-color: #333 !important;
    color: white !important;
    text-decoration: none !important;
}

/* Enhanced User Menu Button - Fixed Dimensions */
.user-menu-button {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    transition: all 0.3s ease !important;
    color: white !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    position: relative;
    overflow: hidden;
    min-width: 120px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.user-menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease;
}

.user-menu-button:hover::before {
    left: 100%;
}

.user-menu-button:hover {
    background: #000000 !important;
    border-color: #444 !important;
    color: white !important;
    transform: none !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.user-menu-button:focus {
    background: #000000 !important;
    border-color: #555 !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.25),
        0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    outline: none !important;
}

/* Enhanced User Avatar - Fixed */
.user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    border: 2px solid #444 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    flex-shrink: 0 !important;
}

.user-menu-button:hover .user-avatar {
    border-color: #666 !important;
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Username styling - Fixed */
.user-menu-button .text-white {
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-left: 8px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.user-menu-button:hover .text-white {
    letter-spacing: 0.3px;
}

/* Fixed right side menu */
.navbar .ms-auto {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

/* Enhanced Dropdown Menu - Fixed */
.dropdown-menu {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3) !important;
    padding: 6px !important;
    margin-top: 4px !important;
    min-width: 180px !important;
    max-width: 200px !important;
    right: 0 !important;
    left: auto !important;
    animation: dropdownFadeIn 0.2s ease !important;
    z-index: 1051 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Dropdown Items */
.dropdown-item {
    padding: 10px 16px !important;
    color: white !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    margin: 2px 4px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.dropdown-item:hover {
    background: #f97316 !important;
    color: white !important;
    transform: none !important;
}

.dropdown-item i {
    width: 18px !important;
    margin-right: 10px !important;
    transition: transform 0.2s ease !important;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

/* Dropdown divider */
.dropdown-divider {
    margin: 6px 8px !important;
    border-color: #333 !important;
}

/* Logout button specific styling */
.dropdown-item[type="submit"] {
    width: 100% !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Prevent text shift/jumping */
* {
    box-sizing: border-box !important;
}

.navbar * {
    transition: none !important;
}

/* Fixed positioning untuk mencegah layout shift */
.navbar, .nav-links {
    will-change: auto !important;
    backface-visibility: hidden !important;
}

/* Badge/notification dot (optional enhancement) */
.user-menu-button .notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #212121;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Mobile responsiveness - Maintain consistency */
@media (max-width: 991px) {
    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        margin: 12px 0 !important;
        border-radius: 10px !important;
    }
    
    .search-form {
        margin: 0 !important;
        flex: 1 !important;
    }
    
    .search-btn {
        border-radius: 0 9px 9px 0 !important;
    }
    
    .user-menu-button {
        min-width: 100px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    .navbar-collapse {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .publish-btn {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .user-menu-button {
        padding: 6px 10px !important;
        border-radius: 10px !important;
    }
    
    .user-avatar {
        width: 28px !important;
        height: 28px !important;
        margin-right: 6px !important;
    }
    
    .user-menu-button .text-white {
        font-size: 13px !important;
    }
    
    .dropdown-menu {
        min-width: 180px !important;
        margin-top: 4px !important;
    }
    
    .dropdown-item {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    .navbar-brand {
        font-size: 24px !important;
        padding-left: 10px !important;
    }
}

@media (max-width: 576px) {
    .search-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 16px !important;
    }
    
    .search-btn {
        padding: 12px 16px !important;
        border-radius: 0 8px 8px 0 !important;
    }
    
    .search-box {
        border-radius: 8px !important;
    }
    
    .navbar-brand {
        font-size: 22px !important;
        padding-left: 10px !important;
    }
}

/* Footer Styles */
.simple-footer {
    background: #212121;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.footer-brand .brand-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.footer-brand .brand-description {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 8px;
    color: white;
    text-decoration: none;
}

.social-link:hover {
    background: #f97316;
    color: white;
}

.footer-section .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.footer-links a:hover {
    color: #f97316;
}

.newsletter-text {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.newsletter-input {
    background: #333;
    border: 1px solid #444;
    border-radius: 6px 0 0 6px;
    color: white;
    padding: 0.5rem 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.newsletter-input:focus {
    background: #333;
    border-color: #f97316;
    color: white;
    outline: none;
    box-shadow: none;
}

.newsletter-input::placeholder {
    color: #999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.newsletter-btn {
    background: #f97316;
    border: 1px solid #f97316;
    border-radius: 0 6px 6px 0;
    color: white;
    padding: 0.5rem 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.newsletter-btn:hover {
    background: #ea580c;
    color: white;
}

.footer-bottom {
    background: #1a1a1a;
    padding: 1rem 0;
    border-top: 1px solid #333;
}

.copyright {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.footer-bottom-links a:hover {
    color: #f97316;
}

/* === Base Styles === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    background-color: #f3f4f6;
}

.content-container {
    padding: 30px 0;
}

/* === Author Info (News Article) === */
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 5px; /* Additional padding specifically for author info */
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.author-title {
    color: #6c757d;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* === Main Article === */
.main-article {
    margin-bottom: 30px;
    padding: 0 5px;
}

.main-article h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.category-tag {
    color: #f97316;
    font-weight: 500;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.category-tag1 {
    color: #f97316;
    margin-bottom: 10px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* === Main Article Image === */
.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 12px;
}

/* === Side Articles === */
/* Elegant Article Link Styling for Sidebar Articles */
.side-article-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s ease;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.side-article-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background-color: #fafafa;
}

/* Content area styling */
.side-article-content {
    flex: 1;
    padding-right: 15px;
    position: relative;
}

/* Title styling */
.side-article-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.side-article-link:hover .side-article-content h2 {
    color: #333;
}

/* Article summary styling */
.article-summary {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.side-article-link:hover .article-summary {
    color: #495057;
}

/* Category tag styling */
.side-article-content .category-tag {
    color: #f97316;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Elegant underline effect for category */
.side-article-content .category-tag::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #f97316;
    transition: width 0.3s ease;
}

.side-article-link:hover .category-tag::after {
    width: 100%;
}

/* Image styling */
.side-article-image {
    width: 180px;
    height: 110px;
    border-radius: 6px;
    object-fit: cover;
    transition: all 0.7s ease;
}

.side-article-link:hover .side-article-image {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Read more link with elegant animation */
.read-more-indicator {
    position: absolute;
    bottom: 0;
    right: 15px;
    font-size: 14px;
    color: #212121;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.side-article-link:hover .read-more-indicator {
    opacity: 1;
    transform: translateX(0);
}

/* === Featured Article Section === */
.featured-article {
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    height: 270px;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.featured-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* === Section Headers === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.show-more {
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.show-more:hover {
    text-decoration: underline;
    color: #ea580c;
}

.show-more-icon {
    color: #f97316;
    font-size: 20px;
}

/* === Latest Article === */
.latest-article {
    margin-bottom: 20px;
}

.latest-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.latest-article h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* === Author Info (Small) === */
.author-small {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.author-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.author-name-small {
    font-size: 14px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

footer {
    background-color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

footer .social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Elegant Article Link Styling */
.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.5s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    padding: 20px; /* Add padding to the container */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Subtle elevation and refined shadow */
.article-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Image styling */
.image-container {
    overflow: hidden;
    position: relative;
}

.latest-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.7s ease;
}

/* Elegant zoom effect */
.article-link:hover .latest-image {
    transform: scale(1.04);
    filter: brightness(1.05);
}

/* Subtle overlay gradient */
.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.article-link:hover .image-container::after {
    opacity: 1;
}

/* Content area styling */
.article-content {
    padding: 18px 16px;
    transition: all 0.3s ease;
}

.article-link:hover .article-content {
    background-color: #fafafa;
}

/* Article title styling */
.article-link h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.article-link:hover h3 {
    color: #212121;
}

/* Category tag styling */
.category-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #f97316;
    position: relative;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.article-link:hover .category-tag {
    padding-left: 2px;
}

/* Elegant underline effect for category */
.category-tag::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #f97316;
    transition: width 0.3s ease;
}

.article-link:hover .category-tag::after {
    width: 100%;
}

/* Author section styling */
.author-small {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.author-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.article-link:hover .author-avatar-small {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

/* Read more link with elegant animation */
.read-more-link {
    margin-top: 12px;
    overflow: hidden;
    height: 24px;
    display: block;
}

.read-more {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    position: relative;
    padding-right: 22px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.article-link:hover .read-more {
    opacity: 1;
    transform: translateY(0);
}

/* Arrow animation */
.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
}

.article-link:hover .read-more::after {
    transform: translateX(4px);
}

.featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.featured-article {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px); /* lift up a bit */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* soft shadow */
}

.featured-image {
    width: 100%;
    height: auto;
}

.article-section-last{
    margin-top: 20px;
}

.publish-button {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.publish-button:hover {
    background-color: #2a2a2a;
}

/* Enhanced micro-interactions and smooth animations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


