
/* Original Khmer Magazine inspired design */

body {
    background: #ffffff !important;
    color: #242424 !important;
}

header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    backdrop-filter: none !important;
}

header .nav {
    max-width: 1500px;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.khmer-header-brands {
    display: flex;
    align-items: center;
    gap: 45px;
    flex-shrink: 0;
}

.khmer-header-brands a {
    display: inline-flex;
    align-items: center;
}

.khmer-magazine-logo {
    display: block;
    width: 125px;
    max-height: 82px;
    object-fit: contain;
}

.khmer-tv-logo {
    display: block;
    width: 125px;
    max-height: 72px;
    object-fit: contain;
}

.khmer-header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.khmer-header-nav a {
    color: #565656 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 0;
}

.khmer-header-nav a:hover,
.khmer-header-nav a.active {
    color: #064ab8 !important;
}

.khmer-header-nav a.active {
    border-bottom: 2px solid #064ab8;
}

.khmer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.khmer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 31px;
    height: 31px;
    border-radius: 3px;
    background: #315b9f;
    color: #fff !important;
    font-weight: bold;
    font-size: 17px;
}

.khmer-social a.youtube {
    background: #d51c24;
}

.khmer-home-hero {
    min-height: calc(100vh - 88px);
    padding: 52px 20px 65px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    color: white;
}

.khmer-home-inner {
    max-width: 1100px;
    margin: auto;
}

.khmer-original-headline {
    color: #ffffff;
    font-size: clamp(26px, 3.5vw, 43px);
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 35px;
}

.khmer-featured {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 85px;
    margin: 0 auto;
}

.khmer-feature {
    width: 260px;
    flex-shrink: 0;
}

.khmer-feature img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.khmer-feature-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 16px;
}

.khmer-feature-actions a {
    display: block;
    background: #ffffff;
    color: #064ab8;
    padding: 10px 14px;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 600;
    border-radius: 2px;
    text-decoration: none;
}

.khmer-feature-actions a:hover {
    background: #eaf1ff;
}

.khmer-home-title {
    color: #ffffff;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.1;
    font-weight: 700;
    margin: 5px 0 0;
}

.khmer-home-subtitle {
    color: #ffffff;
    font-size: 21px;
    line-height: 1.5;
    margin: 5px 0;
}

.khmer-home-english {
    color: #ffffff;
    font-size: 20px;
    margin: 0;
}

body:has(.khmer-home-hero) footer {
    margin-top: 0;
}

body:not(:has(.khmer-home-hero)) {
    background: #f7f8fa !important;
}

body:not(:has(.khmer-home-hero)) .pageintro h1,
body:not(:has(.khmer-home-hero)) .section h2 {
    color: #152238;
}

body:not(:has(.khmer-home-hero)) .pageintro p,
body:not(:has(.khmer-home-hero)) .section p {
    color: #4b5563;
}

body:not(:has(.khmer-home-hero)) .card {
    background: #ffffff;
    color: #17253a;
    border-color: #e0e4eb;
}

body:not(:has(.khmer-home-hero)) .cardbody strong {
    color: #17253a;
}

body:not(:has(.khmer-home-hero)) footer {
    background: #ffffff;
    color: #525c69;
}

@media (max-width: 900px) {
    header .nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 20px;
    }

    .khmer-header-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .khmer-featured {
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .khmer-header-brands {
        gap: 25px;
    }

    .khmer-magazine-logo,
    .khmer-tv-logo {
        width: 105px;
    }

    .khmer-home-hero {
        padding: 38px 12px;
    }

    .khmer-featured {
        gap: 20px;
        flex-wrap: wrap;
    }

    .khmer-feature {
        width: min(44%, 230px);
    }

    .khmer-feature img {
        max-height: 270px;
    }

    .khmer-feature-actions a {
        font-size: 13px;
        padding: 10px 5px;
    }

    .khmer-home-title {
        margin-top: 30px;
    }

    .khmer-home-subtitle,
    .khmer-home-english {
        font-size: 16px;
    }
}
