/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Vidaloka&display=swap');

:root {
    --primary: #0f172a;
    --accent: #C06632;
    --accent-light: rgba(192, 102, 50, 0.1);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Vidaloka', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Glassmorphism Navbar */
.navbar {
    padding: 15px 0;
    background: #24110F;
    position: relative;
    z-index: 1000;
}

.transition-all {
    transition: all 0.4s ease;
}

.btn-journal {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    transition: var(--transition);
}

.btn-journal:hover {
    background: white;
    color: #24110F;
}


.navbar-brand {
    display: block;
}

.nav-logo {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    height: 60px;
}

/* Title & Detail Heros */
.title-wrapper,
.detail-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    position: relative;
    margin-bottom: 80px;
}

.title-wrapper::before,
.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1;
}

.detail-hero .container {
    position: relative;
    z-index: 2;
}

.detail-hero h1 {
    color: var(--bg-white);
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.hero-content-container {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

/* Background Assignments */
.blog-header-bg {
    background-image: url('../images/hero-modern.png');
}

.detail-header-bg {
    background-image: url('../images/blog-1.png');
}

/* Updated Blog Grid for 3 columns */
.blog-grid {
    padding-bottom: 100px;
}

.modern-post {
    margin-bottom: 50px;
    text-decoration: none !important;
    display: block;
    color: inherit;
    transition: var(--transition);
}

.post-img-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    aspect-ratio: 2 / 1;
    max-height: 250px;
    width: 100%;
    /* Forced horizontal landscape ratio */
}

.post-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    transform: scale(1.01);
}

.modern-post:hover .post-img-container img {
    transform: scale(1.08);
}

.post-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    z-index: 2;
}

.post-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: var(--transition);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-post:hover .post-title {
    color: var(--accent);
}

.post-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post Detail Specifics */
.detail-header {
    padding: 200px 0 80px;
    text-align: center;
}

.detail-header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    max-width: 900px;
    margin: 0 auto 30px;
}

.lead-text {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 500;
    border-left: 3px solid var(--accent);
    padding-left: 30px;
    margin: 40px 0;
}

.rich-content {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    font-family: 'Vidaloka', serif;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.rich-content h1 {
    font-size: 3rem;
}

.rich-content h2 {
    font-size: 2.5rem;
}

.rich-content h3 {
    font-size: 2rem;
}

.rich-content h4 {
    font-size: 1.75rem;
}

.rich-content h5 {
    font-size: 1.5rem;
}

.rich-content h6 {
    font-size: 1.25rem;
}

.rich-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(192, 102, 50, 0.2);
    transition: var(--transition);
}

.rich-content a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.rich-content p {
    margin-bottom: 25px;
}

.full-width-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 40px;
    margin: 60px 0;
}

.small-height-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 30px;
    margin: 40px 0;
}

/* Footer Minimal */
.footer-minimal {
    padding: 60px 0 30px;
    background: #24110F;
    color: white;
}

.footer-logo-img {
    height: 80px;
    width: auto;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-link:hover {
    color: var(--accent);
}

/* --- Responsiveness --- */

@media (max-width: 991px) {

    .title-wrapper,
    .detail-hero {
        height: 350px !important;
        margin-bottom: 50px;
    }

    .navbar {
        padding: 10px 0;
    }

    .nav-logo {
        height: 60px;
    }
}

@media (max-width: 768px) {

    .title-wrapper,
    .detail-hero {
        height: 300px !important;
        background-attachment: scroll;
    }

    .title-wrapper h1,
    .detail-hero h1 {
        font-size: 2.2rem !important;
    }

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

    .post-desc {
        font-size: 1rem;
    }

    .rich-content h1,
    .rich-content h2,
    .rich-content h3,
    .rich-content h4,
    .rich-content h5,
    .rich-content h6 {
        margin-top: 2rem;
        margin-bottom: 0.75rem;
    }

    .rich-content h1 {
        font-size: 2.2rem;
    }

    .rich-content h2 {
        font-size: 1.8rem;
    }

    .rich-content h3 {
        font-size: 1.6rem;
    }

    .rich-content h4 {
        font-size: 1.4rem;
    }

    .rich-content h5 {
        font-size: 1.2rem;
    }

    .rich-content h6 {
        font-size: 1.1rem;
    }

    .full-width-img {
        height: 300px;
        border-radius: 20px;
        margin: 30px 0;
    }

    .small-height-img {
        height: 250px;
        border-radius: 15px;
    }

    .rich-content {
        font-size: 1.1rem;
    }

    .lead-text {
        font-size: 1.2rem;
        padding-left: 20px;
        margin: 30px 0;
    }

    .blog-grid {
        padding-bottom: 60px;
    }
}

@media (max-width: 576px) {
    .post-img-container {
        aspect-ratio: 16 / 9;
        max-height: 200px;
    }

    .nav-logo {
        height: 50px;
    }
}