/* uthaicity.css - Custom Styling for Parker Daily Look */

/* 1. Global Typography and Spacing */
body {
    font-family: serif; /* ใช้ Font ตระกูล Serif ตามแบบ */
    color: #333;
    line-height: 1.6;
    background-color: #f7f5f2; /* สีพื้นหลังอ่อนๆ คล้ายในภาพ */
}

.container {
    max-width: 1100px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override Bootstrap's default spacing */
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

/* 2. Navigation Bar (Minimalist Look) */
.navbar {
    /* [FIXED]: ลด Padding แนวตั้งเหลือ 0.5rem เพื่อให้ความสูงรวมแคบลง */
    padding: 0.5rem 0 !important; 
    
    /* พื้นหลังสีขาวจาง (Opacity 0.8) + Backdrop Blur */
    background-color: rgba(255, 255, 255, 0.8) !important; 
    border-bottom: none !important;
    backdrop-filter: blur(5px); 
}

.navbar-brand {
    font-family: serif;
    font-size: 1.5rem; 
    font-weight: 500;
    letter-spacing: 1px;
    color: #333 !important;
}

.navbar-nav .nav-link {
    font-family: sans-serif; 
    font-size: 0.9rem; 
    font-weight: 400;
    color: #555 !important;
    /* [FIXED]: ลด Padding แนวตั้งของ Link เหลือ 0.4rem */
    padding: 0.4rem 0.6rem !important; 
    transition: color 0.2s; 
}

/* ป้องกันไม่ให้ข้อความเมนูขึ้นบรรทัดใหม่ */
.navbar-nav .nav-item {
    white-space: nowrap; 
}

.navbar-nav .nav-link.active {
    font-weight: 600;
    color: #333 !important;
}

/* Hover Effect */
.navbar-nav .nav-link:hover {
    color: #333 !important;
}

/* ซ่อนปุ่ม Login/Search ที่ไม่ได้ใช้ */
.navbar .btn {
    display: none !important; 
}
.navbar .form-control, .navbar .input-group-text {
    display: none !important; 
}

/* 3. Card Grid (4-Column Top Section) */
.minimal-card-grid {
    padding-top: 0rem; 
    padding-bottom: 4rem; 
}

.minimal-card-grid .card {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    margin-bottom: 2rem; 
}

.minimal-card-grid .card-body {
    padding: 0.5rem 0 0 0; 
}

.minimal-card-grid .card-img-top {
    aspect-ratio: 4/3; 
    object-fit: cover;
    border-radius: 0 !important; 
}

.minimal-card-grid .card-title {
    font-family: serif; 
    font-size: 1.1rem; 
    font-weight: 400;
    margin-top: 0.8rem;
    color: #333;
    line-height: 1.4;
}

/* 4. Custom Bio Section (Large Image + Text) */
.bio-section-wrapper {
    padding: 4rem 0;
    background-color: #eee; 
}

/* เนื่องจากเราใช้ featurebox (ซึ่งมี items) ต้อง override HTML ภายในอย่างหนัก */
.bio-section-wrapper .custom-bio-block {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 4rem;
    padding: 0 !important;
    text-align: left !important;
    align-items: center; 
}

.bio-section-wrapper .custom-bio-block img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.bio-section-wrapper .custom-bio-block h5 {
    font-family: serif; 
    font-size: 2.2rem;
    line-height: 1.2;
    font-style: normal; 
    font-weight: 400;
    margin-bottom: 2rem;
    color: #333;
}

.bio-section-wrapper .custom-bio-block p {
    font-family: sans-serif; 
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem; 
}

.bio-section-wrapper .custom-bio-block .signature { 
    font-family: serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-top: 1rem;
}

/* 5. Footer Styling */
.footer {
    padding: 3rem 0;
    background-color: #333;
    color: #f7f5f2;
    font-family: sans-serif;
    text-align: center;
}
.footer a {
    color: #f7f5f2;
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
}

/* 6. Video Embed Styling */
.video-embed-wrapper {
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio */
    padding-bottom: 56.25%; 
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-embed-wrapper iframe,
.video-embed-wrapper .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    background-color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.video-placeholder .play-button {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.video-placeholder:hover .play-button {
    opacity: 1;
}

.mapblock-pin span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.fire-hero {
    background:
        radial-gradient(circle at top left, rgba(255, 232, 214, 0.95), transparent 38%),
        linear-gradient(135deg, #2f2320 0%, #863b18 45%, #d97706 100%);
    border-radius: 24px;
    color: #fffaf4;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(111, 43, 7, 0.22);
}

.fire-kicker {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.fire-hero h2 {
    font-family: "Sarabun", serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.fire-hero p,
.fire-hero__meta span {
    font-family: sans-serif;
}

.fire-hero__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.fire-stat-card,
.fire-panel,
.fire-mini-card,
.fire-live-card,
.fire-reference-card,
.fire-report-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(139, 69, 19, 0.08);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(41, 28, 20, 0.08);
}

.fire-stat-card {
    padding: 1.15rem 1.25rem;
}

.fire-stat-card__label {
    color: #8c5a3c;
    font-size: 0.92rem;
}

.fire-stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c1810;
}

.fire-map-count-banner {
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    color: #7c2d12;
}

.fire-panel {
    padding: 1.4rem;
}

.fire-panel__header h3 {
    font-family: "Sarabun", serif;
    margin-bottom: 0.35rem;
}

.fire-panel__header p {
    color: #7b6a61;
    margin-bottom: 1.1rem;
}

.fire-submit-btn {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    border-radius: 999px;
}

.fire-focus__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fire-focus__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b45309;
    margin-bottom: 0.35rem;
}

.fire-focus h4 {
    font-family: "Sarabun", serif;
    margin: 0;
}

.fire-mini-card,
.fire-live-card,
.fire-reference-card {
    padding: 1rem;
    height: 100%;
}

.fire-mini-card span,
.fire-live-card span,
.fire-reference-card span,
.fire-report-grid span {
    display: block;
    font-size: 0.8rem;
    color: #876d5b;
    margin-bottom: 0.3rem;
}

.fire-mini-card strong,
.fire-live-card strong,
.fire-reference-card strong,
.fire-report-grid strong {
    color: #2c1810;
}

.fire-live-grid,
.fire-reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.fire-note {
    background: #fff4e8;
    border-radius: 16px;
    padding: 1rem;
    color: #5b3a2d;
}

.fire-thumb-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.fire-thumb-strip img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.fire-focus__image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 18px;
}

.fire-report-list {
    display: grid;
    gap: 1rem;
}

.fire-report-card {
    padding: 1.2rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fire-report-card.is-active {
    border-color: rgba(220, 38, 38, 0.32);
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(127, 29, 29, 0.12);
}

.fire-report-card h4 {
    font-family: "Sarabun", serif;
    margin-bottom: 0.35rem;
}

.fire-badges {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.fire-report-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

@media (max-width: 991px) {
    .fire-live-grid,
    .fire-reference-grid,
    .fire-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .fire-hero,
    .fire-panel,
    .fire-report-card {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .fire-live-grid,
    .fire-reference-grid,
    .fire-report-grid {
        grid-template-columns: 1fr;
    }

    .fire-focus__header {
        flex-direction: column;
    }
}
