:root {
    --primary-color: #f37213;
    --primary-hover: #db650f;
    --bg-color: #f7f7f7;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-muted: #666666;
    --pill-bg: #f2f2f2;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    display: block;
}

.nav-menu {
    display: flex;
    margin-left: auto;
    margin-right: 25px;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list a {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
    transition: opacity var(--transition);
}

.nav-list a:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.search-btn, .menu-toggle {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.search-container {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: #ffffff;
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.search-container.active {
    display: block;
}

.search-input {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    width: 250px;
}

.most-popular {
    background-color: var(--primary-color);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 20px;
}

.popular-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.popular-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.popular-scroll-wrapper .card {
    min-width: 300px;
    max-width: 320px;
    flex-direction: row;
    padding: 10px;
    align-items: center;
    gap: 15px;
}

.popular-scroll-wrapper .card-img-wrapper {
    width: 120px;
    height: auto;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 8px;
}

.popular-scroll-wrapper .card-content {
    padding: 0;
}

.popular-scroll-wrapper .card-title {
    font-size: 15px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-content {
    padding: 40px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition);
    cursor: pointer;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.category-pill {
    background-color: var(--pill-bg);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-snippet {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-btn {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    font-weight: 600;
    transition: background var(--transition);
}

.read-btn:hover {
    background-color: var(--primary-hover);
}

.single-post {
    padding: 50px 0;
}

.post-container {
    max-width: 800px;
}

.post-header {
    margin-bottom: 20px;
}

.post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    margin-top: 15px;
}

.post-date {
    color: var(--text-muted);
    font-size: 14px;
}

.share-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform var(--transition);
}

.share-btn:hover {
    transform: scale(1.1);
}

.post-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.post-hero-img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    object-fit: cover;
}

.post-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

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

.post-body h2, .post-body h3 {
    margin: 30px 0 15px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.main-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin: 0;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    .search-container {
        position: fixed;
        top: 70px;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        padding: 15px;
    }
    .search-input {
        width: 100%;
        padding: 12px 15px;
    }
}
