@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Force Jakarta Sans for Premium Header to match Home */
.header-premium {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Global Styles */
:root {
    --primary-color: #FF5722;
    --primary-hover: #F44336;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --text-color: #ededed;
    --text-muted: #888;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.blog-header {
    background-color: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.blog-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-logo i {
    color: var(--primary-color);
}

.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
    position: relative;
    display: flex;
}

.header-search input {
    width: 100%;
    padding: 10px 45px 10px 20px;
    border-radius: 50px;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    color: #fff;
    outline: none;
}

.header-search input:focus {
    border-color: var(--primary-color);
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-nav {
    display: flex;
    gap: 25px;
}

.blog-nav a {
    color: var(--text-muted);
    font-weight: 500;
}

.blog-nav a:hover,
.blog-nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #FF5722 0%, #FF9800 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Slider */
.blog-featured-slider {
    margin-top: 0;
    margin-bottom: 50px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.slider-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-flow: column;
    grid-auto-columns: 350px;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 60px;
    /* Added horizontal padding for buttons */
    scrollbar-width: none;
    /* Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--primary-color);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Slider Item Styles (Added) */
.slider-item {
    min-width: 350px;
    height: 380px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.slider-item:hover {
    transform: translateY(-5px);
}

.slider-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.slider-item-category {
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    align-self: flex-start;
}

.slider-item-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-item-meta {
    font-size: 13px;
    opacity: 0.8;
    display: flex;
    gap: 15px;
}

.slider-item-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.1);
}

.post-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.post-card-title {
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-title a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    color: #aeaeae;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: auto;
}

.post-card-date,
.post-card-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    grid-column: 1 / -1;
}

.pagination-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
    position: relative;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.sidebar-categories li {
    margin-bottom: 12px;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-categories a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: start;
}

.popular-post-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.popular-post-title a:hover {
    color: var(--primary-color);
}

.popular-post-date {
    font-size: 12px;
    color: #666;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #2a2a2a;
    color: #ccc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-block;
    border: 1px solid #333;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border-radius: 6px;
    background: #2a2a2a;
    border: 1px solid var(--border-color);
    color: white;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

/* Footer */
.blog-footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: white;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #888;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .header-search {
        display: none;
        /* Hide on mobile to simplify */
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .slider-container {
        grid-auto-columns: 85%;
        /* Cards take almost full width on mobile */
    }
}

/* Affiliate Button */
.btn-shopee {
    display: inline-block;
    background: linear-gradient(135deg, #FF5722 0%, #FF8A65 100%);
    color: white !important;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(238, 77, 45, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-shopee:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(238, 77, 45, 0.5);
    background: linear-gradient(135deg, #F44336 0%, #FF7043 100%);
    color: white;
}

.btn-shopee:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 77, 45, 0.3);
}

/* Mobile responsive for button */
@media (max-width: 768px) {
    .btn-shopee {
        font-size: 1.2rem;
        padding: 12px 30px;
        width: 100%;
        text-align: center;
    }
}