/**
 * Maesai.net Main Stylesheet
 * Theme: Mass Variety Portal (Sanook Style)
 */

/* =========================================
   1. Variables & Imports
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    /* Category Colors */
    --color-news: #E53935;
    /* Red */
    --color-travel: #43A047;
    /* Green */
    --color-biz: #8E24AA;
    /* Purple */
    --color-tech: #1E88E5;
    /* Blue */
    --color-lotto: #FB8C00;
    /* Orange */

    /* Main Theme Color */
    --color-theme: var(--color-news);
    /* Default theme to news color */

    /* Base Colors */
    --bg-body: #F5F5F5;
    --bg-white: #FFFFFF;

    --text-dark: #212121;
    --text-muted: #757575;
    --text-link: #1565C0;

    /* Typography */
    --font-main: 'Prompt', sans-serif;

    /* Spacing */
    --container-width: 1140px;
}

/* =========================================
   2. Base Styles
   ========================================= */
body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-theme);
}

/* =========================================
   3. Header & Navbar
   ========================================= */
.top-bar {
    background: #FFF;
    border-bottom: 1px solid #EEE;
    padding: 5px 0;
    font-size: 13px;
}

.main-header {
    background: #FFF;
    padding: 20px 0;
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-theme);
    letter-spacing: -1px;
}

.logo-text span {
    color: #000;
}

.banner-placeholder {
    background: #EEE;
    width: 728px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #AAA;
    font-size: 12px;
    margin-left: auto;
}

.navbar-portal {
    background: #FFF;
    border-top: 1px solid #EEE;
    border-bottom: 2px solid var(--color-theme);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: #000 !important;
    font-weight: 500;
    padding: 12px 15px !important;
    font-size: 16px;
}

.nav-link:hover {
    background: var(--color-theme);
    color: #FFF !important;
}

.nav-link.active {
    background: var(--color-theme);
    color: #FFF !important;
}

/* =========================================
   4. Highlight Grid (Sanook Style)
   ========================================= */
.highlight-section {
    background: #FFF;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #EEE;
}

.highlight-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
}

.highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.highlight-card:hover img {
    transform: scale(1.05);
}

.highlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 15px;
    color: #FFF;
}

.highlight-title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    color: #FFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.highlight-lg {
    height: 410px;
}

.highlight-md {
    height: 200px;
}

.highlight-sm {
    height: 200px;
}

.highlight-lg .highlight-title {
    font-size: 28px;
    font-weight: 700;
}

/* =========================================
   5. Content Feed
   ========================================= */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-left: 5px solid var(--color-news);
    padding-left: 10px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.section-header.travel {
    border-color: var(--color-travel);
}

.section-header.biz {
    border-color: var(--color-biz);
}

.feed-item {
    display: flex;
    background: #FFF;
    margin-bottom: 15px;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 15px;
}

.feed-img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 20px;
}

.feed-content {
    flex-grow: 1;
}

.feed-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.feed-meta {
    font-size: 12px;
    color: #999;
}

.feed-desc {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   6. Sidebar Widgets
   ========================================= */
.widget {
    background: #FFF;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #EEE;
    border-radius: 4px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #EEE;
    padding-bottom: 10px;
}

.rank-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rank-num {
    font-size: 24px;
    font-weight: 700;
    color: #DDD;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.rank-item:nth-child(2) .rank-num {
    color: var(--color-news);
}

/* Rank 1 */

/* =========================================
   7. Footer
   ========================================= */
footer {
    background: #111;
    color: #FFF;
    padding: 50px 0;
    font-size: 15px;
    border-top: 5px solid var(--color-theme);
}

footer h5,
footer h6 {
    color: #FFF;
    font-weight: 700;
}

.footer-link {
    color: #E0E0E0;
    display: block;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.footer-link:hover {
    color: var(--color-theme);
    padding-left: 5px;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-placeholder {
        display: none;
    }

    .highlight-lg,
    .highlight-md,
    .highlight-sm {
        height: 250px;
    }

    .feed-item {
        flex-direction: column;
    }

    .feed-img {
        width: 100%;
        height: 200px;
        margin-bottom: 10px;
    }
}