/* ==========================================
   1. GLOBAL & FONTS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #121212;
    background-color: #F4F4F4;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #121212;
}

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

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

/* ==========================================
   2. HEADER & NAVIGATION STYLING
   ========================================== */
.site-header {
    background-color: #121212; /* Powerful Onyx Black */
    border-bottom: 3px solid #C35214; /* Hospitable Terracotta */
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.8;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    color: #F4F4F4;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #C35214;
}

/* ==========================================
   3. FOOTER STYLING
   ========================================== */
.site-footer {
    background-color: #121212;
    color: #F4F4F4;
    padding: 50px 0 20px;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
}

.footer-widget h3 {
    color: #C35214;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget p, 
.footer-widget a {
    color: #888888;
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #C35214;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.site-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #888888;
}

/* ==========================================
   4. RESPONSIVE HEADER/FOOTER TWEAKS
   ========================================== */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================
   FRONT PAGE: DYNAMIC POST LISTS
   ========================================== */
.front-post-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    border-top: 1px solid #e0e0e0;
}

.front-post-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.front-post-list a {
    font-size: 1.1rem;
    color: #121212;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
    margin-bottom: 5px;
}

.front-post-list a:hover {
    color: #C35214;
}

.front-post-list .post-date {
    font-size: 0.85rem;
    color: #888888;
}

/* ==========================================
   FRONT PAGE STYLING
   ========================================== */

/* Hero Banner */
.front-hero {
    background-color: #121212;
    padding: 0; 
}
.front-hero .container {
    max-width: 100%;
    padding: 0;
}
.hero-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

/* Introduction Section (Overlapping Card) */
.front-intro {
    background-color: #F4F4F4;
    padding: 0 0 60px 0;
}
.intro-container {
    max-width: 800px;
    background: #ffffff;
    padding: 50px;
    margin: -80px auto 0; /* Pulls the card up over the hero image */
    position: relative;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid #C35214;
}
.intro-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}
.intro-content p {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.intro-signature {
    text-align: right;
    margin: 40px 0 30px 0;
}
.intro-signature p {
    margin: 5px 0;
}
.inline-favicon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 5px;
    display: inline-block;
}

/* Profile Button */
.btn-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #121212;
    color: #F4F4F4;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: 350px;
    margin: 0 auto;
}
.btn-profile svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-right: 10px;
}
.btn-profile:hover {
    background-color: #C35214;
    color: #ffffff;
}

/* Content Grid (Chuyên Môn & Blog) */
.front-content-grid {
    padding: 0 0 100px 0;
    background-color: #F4F4F4;
}
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.grid-column {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.grid-column h2 {
    font-size: 26px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.section-banner {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
}
.grid-column > p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Dynamic Post Lists */
.front-post-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}
.front-post-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    flex-direction: column;
}
.front-post-list li:last-child {
    border-bottom: none;
}
.front-post-list a {
    font-size: 1.1rem;
    color: #121212;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
    margin-bottom: 5px;
    font-family: 'Be Vietnam Pro', sans-serif;
}
.front-post-list a:hover {
    color: #C35214;
}
.front-post-list .post-date {
    font-size: 0.85rem;
    color: #888888;
}

.btn-readmore {
    display: inline-block;
    color: #C35214;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.btn-readmore:hover {
    color: #121212;
}

/* Responsive Overrides */
@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* Stacks the columns on mobile */
    }
    .intro-container {
        margin-top: -40px;
        padding: 30px 20px;
    }
    .hero-image {
        max-height: 400px;
    }
}