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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #2d2d2d;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea {
    font-family: 'Poppins', sans-serif;
    border: none;
    outline: none;
}

/* ---------- VARIABLES ---------- */
:root {
    --coffee: #6F4E37;
    --coffee-dark: #5a3d2a;
    --coffee-light: #8B6F47;
    --coffee-lighter: #c4a882;
    --coffee-bg: #f8f6f3;
    --coffee-border: #e8e2da;
    --white: #ffffff;
    --dark: #1a1a1a;
    --text: #2d2d2d;
    --text-light: #6b6b6b;
    --text-muted: #999999;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --max-width: 1200px;
    --header-height: 70px;
}

/* ---------- UTILITIES ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    position: relative;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--coffee);
    border-radius: 2px;
    margin: 12px auto 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--coffee);
    color: var(--white);
    border-color: var(--coffee);
}

.btn-primary:hover {
    background: var(--coffee-dark);
    border-color: var(--coffee-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--coffee);
    transform: translateY(-2px);
}

.btn-coffee-outline {
    background: transparent;
    color: var(--coffee);
    border-color: var(--coffee);
}

.btn-coffee-outline:hover {
    background: var(--coffee);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--coffee);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--coffee);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
}

.logo span {
    color: var(--dark);
}

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

.nav-menu a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coffee);
    transition: width var(--transition);
    border-radius: 1px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--coffee);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--coffee-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--coffee);
    font-size: 1.1rem;
}

.search-btn:hover {
    background: var(--coffee);
    color: var(--white);
    transform: scale(1.05);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- LOGO GAMBAR ---------- */
.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--coffee);
}

.logo-text .name span {
    color: var(--dark);
}

.logo-text .tagline {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Logo di footer */
.footer-brand .logo .logo-img {
    height: 44px;
}

/* ---------- MOBILE NAV ---------- */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.mobile-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--coffee-bg);
    color: var(--coffee);
}

/* ---------- SEARCH MODAL ---------- */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    backdrop-filter: blur(4px);
}

.search-overlay.active {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 8px;
    width: 90%;
    max-width: 640px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    background: var(--coffee-bg);
    color: var(--dark);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.search-close:hover {
    color: var(--dark);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

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

.search-result-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--coffee-border);
    cursor: pointer;
    transition: background var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--coffee-bg);
}

.search-result-item img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
    line-height: 1.4;
}

.search-result-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.search-no-result {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.85) 0%,
            rgba(111, 78, 55, 0.7) 50%,
            rgba(26, 26, 26, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--coffee-lighter);
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 36px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-8px);
    }

    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
}

/* ---------- BERITA TERBARU ---------- */
.latest-news {
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--coffee-border);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.news-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.08);
}

.news-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    background: var(--coffee);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card-body {
    padding: 22px;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.news-card:hover .news-card-title {
    color: var(--coffee);
}

.news-card-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--coffee);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}

.news-card-link:hover {
    gap: 10px;
}

.news-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.news-card-link:hover svg {
    transform: translateX(3px);
}

/* ---------- FEATURED ARTICLE ---------- */
.featured-section {
    background: var(--coffee-bg);
}

.featured-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.featured-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-img:hover img {
    transform: scale(1.03);
}

.featured-content .featured-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--coffee);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.featured-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

.featured-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ---------- POPULER + SIDEBAR ---------- */
.popular-section {
    background: var(--white);
}

.popular-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.popular-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--coffee-border);
    transition: all var(--transition);
}

.popular-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-3px);
}

.popular-card-img {
    width: 100px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-card-body h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.popular-card:hover .popular-card-body h4 {
    color: var(--coffee);
}

.popular-card-body .date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    align-self: start;
}

.sidebar-widget {
    background: var(--coffee-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--coffee);
    display: inline-block;
}

.sidebar-list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--coffee-border);
    transition: all var(--transition);
}

.sidebar-list a:last-child {
    border-bottom: none;
}

.sidebar-list a:hover {
    padding-left: 6px;
}

.sidebar-list a:hover .sidebar-list-title {
    color: var(--coffee);
}

.sidebar-list-num {
    width: 28px;
    height: 28px;
    background: var(--coffee);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-list-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.4;
    transition: color var(--transition);
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--coffee-border);
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition);
}

.sidebar-categories a:last-child {
    border-bottom: none;
}

.sidebar-categories a:hover {
    color: var(--coffee);
    padding-left: 4px;
}

.sidebar-categories .count {
    background: var(--coffee-border);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
    background: var(--coffee-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--coffee-border);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.about-card-icon {
    width: 64px;
    height: 64px;
    background: var(--coffee-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--coffee);
    transition: all var(--transition);
}

.about-card:hover .about-card-icon {
    background: var(--coffee);
    color: var(--white);
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- ALL ARTICLES ---------- */
.all-articles {
    background: var(--white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

/* ---------- CONTACT SECTION ---------- */
.contact-section {
    background: var(--coffee-bg);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--coffee);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.contact-detail-text p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--coffee-border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coffee);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--coffee);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.form-submit:hover {
    background: var(--coffee-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand .logo .logo-icon {
    background: var(--coffee);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--coffee);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    padding: 6px 0;
    transition: all var(--transition);
}

.footer-col a:hover {
    color: var(--coffee-lighter);
    padding-left: 6px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- ARTICLE DETAIL PAGE ---------- */
.article-page {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    background: var(--coffee-bg);
    min-height: 100vh;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.article-detail-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-detail-cover {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.article-detail-content {
    padding: 36px 40px;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-detail-meta .tag {
    padding: 4px 12px;
    background: var(--coffee-bg);
    color: var(--coffee);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
}

.article-detail-meta span {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 24px;
}

.article-detail-body {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.9;
}

.article-detail-body p {
    margin-bottom: 18px;
}

.article-detail-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 30px 0 14px;
}

.article-detail-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin: 24px 0 10px;
}

.article-detail-body ul,
.article-detail-body ol {
    margin: 0 0 18px 20px;
    list-style: disc;
}

.article-detail-body ol {
    list-style: decimal;
}

.article-detail-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-detail-body blockquote {
    border-left: 4px solid var(--coffee);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--coffee-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-light);
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 10px 24px;
    background: var(--coffee-bg);
    color: var(--coffee);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}

.article-back-btn:hover {
    background: var(--coffee);
    color: var(--white);
}

/* ---------- RELATED ARTICLES ---------- */
.related-articles {
    padding: 36px 40px;
    border-top: 1px solid var(--coffee-border);
}

.related-articles h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.related-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--coffee-border);
    transition: all var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

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

.related-card-body {
    padding: 12px;
}

.related-card-body h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.related-card:hover .related-card-body h4 {
    color: var(--coffee);
}

.related-card-body .date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- ABOUT PAGE ---------- */
.page-header {
    padding: calc(var(--header-height) + 60px) 0 50px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--coffee-dark) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--coffee-lighter);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.85);
}

.about-page-content {
    padding: 60px 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-intro-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-intro-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-intro-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.about-intro-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--coffee-border);
    transition: all var(--transition);
}

.about-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.about-feature-card .num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--coffee);
    margin-bottom: 8px;
}

.about-feature-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.about-feature-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- CONTACT PAGE ---------- */
.contact-page-content {
    padding: 60px 0;
}

.contact-page-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-layout {
        grid-template-columns: 1fr;
    }

    .popular-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .article-detail-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .contact-page-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .article-detail-cover {
        height: 240px;
    }

    .article-detail-content {
        padding: 24px 20px;
    }

    .article-detail-title {
        font-size: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-articles {
        padding: 24px 20px;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .news-card-body {
        padding: 16px;
    }

    .contact-form {
        padding: 24px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .popular-card {
        flex-direction: column;
    }

    .popular-card-img {
        width: 100%;
        height: 160px;
    }
}