/*
Theme Name: LAVA333 Theme
Author: LAVA333
Description: Mobile-first black/red/gold gaming theme for Elementor Free.
Version: 2.0.1
Text Domain: lava333
*/

/* =========================================
   ROOT
========================================= */

:root {
    --bg: #050505;
    --red: #e00000;
    --gold: #ffd21a;
    --gold2: #ff9d00;
    --text: #fff;
    --max: 1180px;
}


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #050505;
    color: #fff;
    font-family: Arial, "Noto Sans Thai", Tahoma, sans-serif;
}

body.lava-menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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


/* =========================================
   MAIN WRAPPER
========================================= */

.lava-wrap {
    width: min(calc(100% - 20px), var(--max));
    margin: auto;
}

.lava-main {
    width: 100%;
    overflow: hidden;
}


/* =========================================
   HEADER
========================================= */

.lava-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(#050505, #151515);
    border-bottom: 3px solid #b40000;
    box-shadow: 0 3px 18px #000;
}

.lava-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lava-menu-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    cursor: pointer;
}
/* 
.lava-menu-icon,
.lava-menu-icon:before,
.lava-menu-icon:after {
    display: block;
    width: 30px;
    height: 4px;
    background: #fff;
    border-radius: 5px;
    content: "";
    position: relative;
    margin: auto;
}

.lava-menu-icon:before {
    position: absolute;
    top: -10px;
}

.lava-menu-icon:after {
    position: absolute;
    top: 10px;
} */

.lava-logo img {
    max-width: 185px;
    max-height: 58px;
    width: auto;
    object-fit: contain;
}

.lava-logo-text {
    font-weight: 1000;
    font-size: 34px;
    color: #e00000;
    text-shadow: 2px 2px #fff, 4px 4px #ffd21a;
}

.lava-actions {
    margin-left: auto;
    display: flex;
    gap: 7px;
    align-items: center;
}

.lava-btn {
    padding: 11px 17px;
    border-radius: 6px;
    border: 1px solid #ffae00;
    font-weight: 800;
    white-space: nowrap;
	display: inline-flex;
 	align-items: center;
  	justify-content: center;
 	gap: 3px;
}

.lava-btn-icon{
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}
.lava-register {
    background: linear-gradient(#ff4a2d, #a90000);
}

.lava-login {
    background: linear-gradient(#fff45b, #ffad00);
    color: #111;
}

.lava-flag {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #111;
    display: grid;
    place-items: center;
    font-size: 25px;
}


/* =========================================
   SIDE MENU / DRAWER
========================================= */

.lava-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: .2s;
}

.lava-drawer.open {
    visibility: visible;
    opacity: 1;
}

.lava-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: #000c;
}

.lava-drawer-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(340px, 88vw);
    background: linear-gradient(#160000, #080808);
    border-right: 2px solid var(--red);
    transform: translateX(-100%);
    transition: .25s;
    padding: 18px;
    overflow: auto;
}

.lava-drawer.open .lava-drawer-panel {
    transform: translateX(0);
}

.lava-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #5b1700;
    padding-bottom: 14px;
}

.lava-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold);
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 25px;
}

.lava-drawer-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.lava-drawer-links a {
    padding: 14px;
    border: 1px solid #3b1800;
    border-radius: 11px;
    background: #151515;
    font-weight: 900;
}


/* =========================================
   CATEGORY
========================================= */

.lava-category-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 0 8px;
    width: 100%;
}

.lava-category {
    width: 100%;
    min-width: 0;

    border: 1px solid transparent;
    border-radius: 12px;

   background: linear-gradient(#050505, #050505) padding-box, linear-gradient(135deg, #ffd21a 0%, #ff0000 22%, #ff0000 42%, #c28a16 62%, #ff0000 82%, #8a5a08 100%) border-box !important;
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
}

.lava-category img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.lava-category span {
    display: block;
    width: 100%;
    padding: 0 3px 4px;
    margin-top: -3px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    color: #dbd8d8;
    text-align: center;
}


/* =========================================
   BANNER
========================================= */

.lava-banner {
    margin: 4px auto 10px;
    border: 2px solid #5d1800;
    border-radius: 14px;
    overflow: hidden;
    background: #120000;
}

.lava-banner img {
    width: 100%;
    max-height: 330px;
    object-fit: cover;
}


/* =========================================
   SECTION
========================================= */

.lava-section {
    padding: 8px 0 14px;
}

.lava-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    padding: 0 5px;
    color: #fff;
    font-size: 27px;
    font-weight: 1000;
    text-shadow: 1px 1px #e00000;
}

.lava-section-title span {
    color: var(--gold);
}

.lava-more {
    background: linear-gradient(#fff34e, #ffae00);
    color: #111;
    border-radius: 18px;
    padding: 6px 14px;
    font-weight: 1000;
    font-size: 12px;
}


/* =========================================
   PROVIDERS
========================================= */

.lava-providers {
    
    display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
/*     gap: 8px; */
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
}

.lava-providers::-webkit-scrollbar {
    display: none;
}

.lava-provider {
/*     min-width: 82px;
    max-width: 105px; */
    text-align: center;
}

.lava-provider img {
    width: auto;
/*     height: 72px; */
    margin: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffbd00;
    box-shadow: 0 0 8px #ff3c00;
}

.lava-provider span {
    display: block;
    font-size: 11px;
    font-weight: 900;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================
   GAMES
========================================= */

.lava-games {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.lava-game {
    min-width: 0;
    border: 2px solid #b00000;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 0 8px #350000;
}

.lava-game-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.lava-game-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lava-game-rpt {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 3px 6px;
    background: #000b;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 900;
}

.lava-fav {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 28px;
    height: 28px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #000b;
    display: grid;
    place-items: center;
    font-size: 16px;
}

.lava-game-name {
    padding: 7px 8px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================
   FLOATING BUTTONS
========================================= */

.lava-float {
    position: fixed;
    right: 0;
    top: 34%;
    z-index: 500;
    display: grid;
    gap: 3px;
}

.lava-float a {
    width: 54px;
    min-height: 58px;
    background: #111;
    border: 1px solid #444;
    border-radius: 10px 0 0 10px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 4px;
    box-shadow: 0 2px 10px #000;
}

.lava-float img {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.lava-float span {
    font-size: 8px;
    font-weight: 900;
}


/* =========================================
   BOTTOM NAV
========================================= */

.lava-bottom {
    display: none;
}

.lava-bottom-inner {
    height: 68px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: linear-gradient(#f50202db, #050505);
    border-top: 2px solid #b00000;
}

.lava-bottom a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    font-size: 12px;
    font-weight: 700;
/*     border-right: 1px solid #321; */
}

.lava-bottom img {
    width: 40px;
    height: 28px;
    object-fit: contain;
}

.lava-bottom .home {
    background: radial-gradient(circle, #f00, #790000 60%, #200);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: -15px auto 0;
    border: 1px solid #bf0606;
}
.lava-bottom .home img {
    width: 50px;
	animation: lava-icon-pulse 1.5s ease-in-out infinite;
	transform-origin: center;
}

/* =========================================
   ELEMENTOR
========================================= */

.lava-elementor-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.lava-elementor-content > .elementor {
    width: 100%;
    max-width: none;
}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 700px) {

    .lava-header-inner {
        min-height: 66px;
    }

    .lava-logo img {
        max-width: 135px;
        max-height: 48px;
    }

    .lava-logo-text {
        font-size: 27px;
    }

    .lava-btn {
        padding: 8px 9px;
        font-size: 11px;
    }

    .lava-flag {
        display: none;
    }


    /* CATEGORY */

    .lava-category-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
    }

    .lava-category {
        min-width: 0;
        border-radius: 12px;
    }

    .lava-category span {
        font-size: 11px;
        margin-top: -3px;
        padding: 0 2px 4px;
        line-height: 1;
    }


    /* SECTION */

    .lava-section-title {
        font-size: 22px;
    }


    /* GAMES */

    .lava-games {
        gap: 6px;
    }

    .lava-game-name {
        font-size: 11px;
        padding: 6px;
    }


    /* BOTTOM */

    .lava-bottom {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 600;
    }

    .lava-main {
        padding-bottom: 74px;
    }


    /* FLOAT */

    .lava-float {
        top: auto;
        bottom: 78px;
    }

    .lava-float a {
        width: 50px;
        min-height: 52px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .lava-actions {
        gap: 4px;
    }

    .lava-btn {
        font-size: 11px;
        padding: 7px 6px;
    }

    .lava-logo img {
        max-width: 80px;
    }


    /* CATEGORY */

    .lava-category-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
        width: 100%;
    }

    .lava-category {
        border-radius: 10px;
    }

    .lava-category span {
        font-size: 11px;
        margin-top: -3px;
        padding: 0 2px 4px;
        line-height: 1;
    }


    /* GAMES */

    .lava-game-name {
        font-size: 10px;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .lava-category-row {
        gap: 3px;
    }

    .lava-category {
        border-radius: 9px;
        border-width: 1px;
    }

    .lava-category span {
        font-size: 10px;
        margin-top: -2px;
        padding-bottom: 3px;
    }

    .lava-btn {
        font-size: 9px;
        padding: 4px 3px;
    }

    .lava-logo img {
        max-width: 70px;
    }
}
/* =========================================
   LAVA333 CATEGORY
   TEXT BIGGER + GOLD BORDER
========================================= */

.lava-category {
    border: 1px solid transparent !important;
    border-radius: 12px !important;

   background: linear-gradient(#050505, #050505) padding-box, linear-gradient(135deg, #ffd21a 0%, #ff0000 22%, #ff0000 42%, #c28a16 62%, #ff0000 82%, #8a5a08 100%) border-box !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
    text-align: center !important;

    box-shadow:
        0 0 4px rgba(255, 190, 40, 0.35),
        inset 0 0 2px rgba(255, 220, 100, 0.15) !important;
}


/* รูปไอคอน */
.lava-category img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}


/* ตัวหนังสือ */
.lava-category span {
    display: block !important;
    width: 100% !important;

    margin-top: -5px !important;
    padding: 0 3px 5px !important;

    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-align: center !important;

    text-shadow:
        1px 1px 2px #000,
        0 0 3px rgba(255, 255, 255, 0.25) !important;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {
	 .lava-section-title img {
        width: 30px;
    }

    .lava-category {
        border-radius: 11px !important;
        border-width: 1px !important;
    }

    .lava-category span {
        margin-top: -5px !important;
        padding: 0 2px 5px !important;

        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .lava-category {
        border-radius: 10px !important;
    }

    .lava-category span {
        margin-top: -4px !important;
        padding-bottom: 4px !important;
		font-size: 11px !important;
		font-weight: 700 !important;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .lava-category span {
        margin-top: -3px !important;
        font-size: 11px !important;
    }
}
/* ========================================= LAVA333 GAME TITLE ========================================= */ .lava-section-title { width: 100%; height: auto; display: flex; align-items: center; justify-content: center; background: #050505; overflow: hidden; box-sizing: border-box; } /* ========================================= TITLE + FIRE ========================================= */ .lava-title { display: flex; align-items: center; justify-content: center; gap: 35px; flex-shrink: 0; position: relative; z-index: 2; padding: 0 15px; box-sizing: border-box; } /* ========================================= FIRE PNG ========================================= */ .lava-fire { width: 40px; height: 90px; object-fit: contain; display: block; flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(255, 70, 0, .8)) drop-shadow(0 0 10px rgba(255, 100, 0, .45)); } /* ========================================= TITLE TEXT ========================================= */ .lava-text { color: #ffe45c; font-size: 28px; font-weight: 900; line-height: 1; white-space: nowrap; text-shadow: 0 2px 0 #9b6500, 0 0 5px #ffd000, 0 0 12px rgba(255, 190, 0, .7); } /* ========================================= RED / GOLD LINES ========================================= */ .lava-line { height: 4px; flex: 1; max-width: 310px; position: relative; flex-shrink: 1; } /* ========================================= LEFT LINE ========================================= */ .lava-line-left { background: linear-gradient( to right, #ff0000 0%, #ff0000 70%, #ff1a00 80%, #ff8c00 94%, #ffd000 100% ); box-shadow: 0 0 5px rgba(255, 0, 0, .8), 0 0 10px rgba(255, 0, 0, .5); } /* ========================================= RIGHT LINE ========================================= */ .lava-line-right { background: linear-gradient( to left, #ff0000 0%, #ff0000 70%, #ff1a00 80%, #ff8c00 94%, #ffd000 100% ); box-shadow: 0 0 5px rgba(255, 0, 0, .8), 0 0 10px rgba(255, 0, 0, .5); } /* ========================================= PROVIDERS GRID ========================================= */ .lava-providers { width: 100%; box-sizing: border-box; } /* ========================================= PROVIDER LINK ========================================= */ .lava-provider { text-decoration: none; } /* ========================================= MOBILE ========================================= */ @media (max-width: 700px) { .lava-section-title { height: auto; } .lava-title { gap: 10px; padding: 0 8px; } .lava-fire { width: 48px; height: 48px; } .lava-text { font-size: 20px; } .lava-line { max-width: 100px; height: 3px; } } /* ========================================= SMALL MOBILE ========================================= */ @media (max-width: 400px) { .lava-section-title { height: auto; } .lava-title { gap: 6px; padding: 0 5px; } .lava-fire { width: 40px; height: 40px; } .lava-text { font-size: 20px; } .lava-line { max-width: 65px; } }

/* ===== LAVA333 Hamburger Menu ===== */
.lava-menu-btn .lava-menu-icon {
  display: block;
  position: relative;
  width: 30px;
  height: 5px;
  margin: 0 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #fff;
  animation: lavaBarWidth 1s ease-out infinite alternate;
  transform-origin:  left center;
  animation-delay: 0.3s;
transition: .25s ease-in-out;
}

/* เส้นบนและเส้นล่าง */
.lava-menu-btn .lava-menu-icon::before,
.lava-menu-btn .lava-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 5px;
  border-radius: 5px;
  background: #fff;
  transform-origin:  left center;
transition: .25s ease-in-out;
  animation: lavaBarWidth 1s ease-in-out infinite alternate;
}

/* ตำแหน่งเส้นบน */
.lava-menu-btn .lava-menu-icon::before {
  top: -12px;
/*   animation-delay: 0.2s; */
}

/* ตำแหน่งเส้นล่าง */
.lava-menu-btn .lava-menu-icon::after {
  top: 12px;
  animation-delay: 0.6s;
}

/* ขยับความยาวของเส้น */
@keyframes lavaBarWidth {
40% {
    width: 80%;
}
70% {
    width: 90%;
}
100% {
    width: 100%;
}
}


/* ขนาดมือถือ */
@media (max-width: 700px) {
  .lava-menu-btn .lava-menu-icon {
    width: 25px;
    height: 3px;
  }

  .lava-menu-btn .lava-menu-icon::before,
  .lava-menu-btn .lava-menu-icon::after {
    width: 25px;
    height: 3px;
  }

  .lava-menu-btn .lava-menu-icon::before {
    top: -10px;
  }

  .lava-menu-btn .lava-menu-icon::after {
    top: 10px;
  }

  @keyframes lavaBarWidth {
  40% {
    width: 80%;
}
70% {
    width: 90%;
}
100% {
    width: 100%;
}
  }


}

/* ===== LAVA333 Hamburger Menu ===== */

/* LAVA333 แถบตัวหนังสือวิ่ง */
.lava-marquee {
    width: 100%;
/*     overflow: hidden; */
    background: #080808;
/*     border-top: 1px solid #d4af37;
    border-bottom: 1px solid #d4af37; */
    padding: 2px 0;
    box-sizing: border-box;
	margin: -5px 0px -10px;
}

.lava-marquee-track {
    width: max-content;
    white-space: nowrap;
    animation: lava333-marquee 18s linear infinite;
}

.lava-marquee-track span {
    display: inline-block;
    padding-left: 100vw;
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
}

@keyframes lava333-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
/* LAVA333 แถบตัวหนังสือวิ่ง */

/* LAVA333 zoom in-out */
@keyframes lava-icon-pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.18);
}
}

/* LAVA333 zoom in-out */
/* LAVA333 shimmer  */

/* LAVA333 Logo Shimmer Effect */
.lava-header .lava-logo img,
.lava-header .custom-logo {
    position: relative;
    filter: drop-shadow(0 0 4px rgba(255, 190, 40, 0.35));
}

/* แสงวิ่งผ่านโลโก้ */
.lava-header .lava-logo {
    position: relative;
    display: inline-block;
    overflow: hidden;
    isolation: isolate;
}

.lava-header .lava-logo::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -120%;
    width: 45%;
    height: 160%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 240, 180, 0.85) 50%,
        rgba(255, 255, 255, 0.12) 70%,
        transparent 100%
    );
    transform: skewX(-22deg);
    pointer-events: none;
    animation: lava333LogoShimmer 3.5s ease-in-out infinite;
}

@keyframes lava333LogoShimmer {
    0%, 65% {
        left: -120%;
    }
    100% {
        left: 150%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lava-header .lava-logo::after {
        animation: none;
    }
}

/* LAVA333 shimmer  */
/* LAVA333: Shimmer Effect for Home Icon */
.lava-bottom-inner a.home img {
    position: relative;
    overflow: visible;
    animation: lava-icon-pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(255, 210, 26, 0.45));
}

/* แสงสีทองระยิบระยับ */
.lava-bottom-inner a.home {
    position: relative;
    overflow: hidden;
}

.lava-bottom-inner a.home::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 30%,
        rgba(255, 235, 150, 0.9) 50%,
        rgba(255, 255, 255, 0.12) 65%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: lava-home-shimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lava-home-shimmer {
    0%   { left: -120%; }
    65%, 100% { left: 160%; }
}

@keyframes lava-icon-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
/* LAVA333: Shimmer Effect for Home Icon */
.blog-read-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.blog-read-more-grid *,
.blog-read-more-grid *::before,
.blog-read-more-grid *::after {
  box-sizing: border-box;
}

.blog-read-more-grid .blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ead8d8;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(100, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-read-more-grid .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(100, 0, 0, 0.14);
}

.blog-read-more-grid .blog-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5eeee;
}

.blog-read-more-grid .blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transition: transform 0.35s ease;
}

.blog-read-more-grid .blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-read-more-grid .blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  padding: 22px;
}

.blog-read-more-grid .blog-card-title {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
}

.blog-read-more-grid .blog-card-title a {
  color: #8b0000;
  text-decoration: none;
}

.blog-read-more-grid .blog-card-title a:hover {
  color: #b8860b;
}

.blog-read-more-grid .blog-card-excerpt {
  margin: 0 0 20px;
  color: #555555;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.blog-read-more-grid .blog-read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 20px;
  border: 2px solid #b8860b;
  border-radius: 6px;
  background: #8b0000;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-read-more-grid .blog-read-more-btn:hover,
.blog-read-more-grid .blog-read-more-btn:focus-visible {
  background: #b8860b;
  border-color: #8b0000;
  color: #ffffff;
}

.blog-read-more-grid .blog-read-more-btn:focus-visible,
.blog-read-more-grid .blog-card-title a:focus-visible,
.blog-read-more-grid .blog-card-image:focus-visible {
  outline: 3px solid #b8860b;
  outline-offset: 3px;
}

/* Tablet */
@media (max-width: 1024px) {
  .blog-read-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .blog-read-more-grid .blog-card-content {
    padding: 18px;
  }

  .blog-read-more-grid .blog-card-title {
    font-size: 19px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .blog-read-more-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .blog-read-more-grid .blog-card-content {
    padding: 18px;
  }

  .blog-read-more-grid .blog-card-title {
    font-size: 20px;
  }

  .blog-read-more-grid .blog-read-more-btn {
    width: 100%;
  }
}

/* ลดแอนิเมชันสำหรับผู้ที่ตั้งค่าลดการเคลื่อนไหว */
@media (prefers-reduced-motion: reduce) {

  .blog-read-more-grid .blog-card,
  .blog-read-more-grid .blog-card-image img,
  .blog-read-more-grid .blog-read-more-btn {
    transition: none;
  }

  .blog-read-more-grid .blog-card:hover {
    transform: none;
  }

  .blog-read-more-grid .blog-card:hover .blog-card-image img {
    transform: none;
  }
}
/* ลดแอนิเมชันสำหรับผู้ที่ตั้งค่าลดการเคลื่อนไหว */
