body {
    background-color: #ffffff; /* เปลี่ยนพื้นหลังเป็นสีขาว */
    font-family: 'Prompt', sans-serif;
    color: #333; /* เปลี่ยนสีตัวอักษรหลักให้เข้มขึ้นเล็กน้อย */
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
}
.navbar-light .navbar-brand {
    color: #111;
}

.navbar-brand {
    font-size: 1.5rem; /* เพิ่มขนาดตัวอักษร/โลโก้ */
    font-weight: 700;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px); /* เพิ่มเอฟเฟกต์ลอยขึ้นเล็กน้อย */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* เพิ่มเงา */
}

.navbar-nav .nav-link {
    position: relative;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0.5rem;
    background-color: #0d6efd;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 1rem);
}

.navbar {
    box-shadow: none;
    transition: background-color 0.3s ease-in-out;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* New Post Card Style */
.post-card {
    margin-bottom: 2.5rem;
    border: none;
}

.post-card-image-link {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.post-card-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.05); /* ทำให้รูปภาพขยายขึ้น 5% เมื่อ hover */
}

.post-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0d6efd;
    text-transform: uppercase;
    text-decoration: none;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.post-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-title a:hover {
    color: #0d6efd;
}

.post-card-meta {
    font-size: 0.8rem;
    color: #888;
}

.footer {
    background-color: #11151d; /* สีพื้นหลังเข้ม */
    color: #aab2c0; /* สีตัวอักษรอ่อน */
    padding: 4rem 0 0;
    margin-top: 3rem; /* เว้นระยะห่างจากเนื้อหาด้านบน */
    border-top: 3px solid #0d6efd;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #aab2c0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #5a5a5a;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons .social-icon:hover {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Single Post Styles */
.single-post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.single-post-header .post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.single-post-header .post-meta a {
    color: #6c757d;
    text-decoration: none;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .img-fluid {
    max-height: 450px;
    width: 100%;
    object-fit: cover;
}

.featured-image-container {
    overflow: hidden;
    border-radius: 0.25rem;
}

.featured-image-container .expand-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 300;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-image-container:hover .expand-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.comments-section .d-flex {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

/* Pagination Styles */
.pagination .page-item .page-link {
    color: #425A8B;
    border-radius: 50%;
    margin: 0 3px;
    border: none;
}
.pagination .page-item.active .page-link {
    background-color: #425A8B;
    color: white;
    box-shadow: 0 2px 5px rgba(66,90,139,0.3);
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.btn-outline-secondary {
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Slider */
#mainSlider .carousel-item {
    height: 55vh; /* ปรับความสูงของสไลด์ให้เล็กลง */
    min-height: 400px;
}

.hero-slide-item {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-slide-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4);
}

.hero-slide-content {
    position: relative;
    color: #fff;
    max-width: 800px;
}
.carousel-item.active .hero-slide-content h1 {
    animation: fadeInDown 0.8s both;
}
.carousel-item.active .hero-slide-content .btn {
    animation: fadeInUp 0.8s 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.category-section {
    border-top: 1px solid #eee;
    padding-top: 2.5rem;
}

/* Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-section.is-visible .section-title::after {
    transform: scaleX(1);
}

/* Share Buttons */
.share-buttons {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.line { background-color: #00B900; }

.share-btn i {
    margin-right: 8px;
}

.related-posts-section {
    border-top: 1px solid #eee;
    padding-top: 2.5rem;
}

/* Static Page Styles (About, Contact, Privacy) */
.page-header {
    border-bottom: 1px solid #eee;
}

.privacy-content h3 {
    font-weight: 600;
    color: #222;
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
}

.privacy-content ul {
    list-style-type: '✓ ';
    padding-left: 1.5rem;
}

.contact-info-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
}

.contact-info-box p {
    color: #555;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.map-container iframe {
    width: 100%;
    vertical-align: middle; /* Fixes small gap below iframe */
}

/* Team Section */
.team-section .section-title {
    max-width: 400px;
}

.team-member-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.team-member-card img {
    width: 100%;
    transition: transform 0.4s ease;
}

.team-member-card:hover img {
    transform: scale(1.1);
}

.team-member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 3rem 1.5rem 1.5rem;
}

.team-member-title {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Breadcrumb Styles */
.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}
.breadcrumb-item a {
    text-decoration: none;
    color: #0d6efd;
}

/* === Enhanced Single Post Styles === */

.post-content {
    font-size: 1.15rem; /* เพิ่มขนาดตัวอักษรให้อ่านง่ายขึ้น */
    line-height: 1.9;   /* เพิ่มระยะห่างระหว่างบรรทัด */
    color: #343a40;
}

.post-content h2, .post-content h3, .post-content h4 {
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: #1a1a1a;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-content blockquote {
    border-left: 4px solid #0d6efd;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f8f9fa;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}

.post-content ul, .post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Author Box */
.author-box {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    border-top: 4px solid #0d6efd;
}

.author-box .author-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-box h5 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s;
}

.author-box h5 a:hover {
    color: #0d6efd;
}

/* Enhanced Related Posts Sidebar */
.related-posts-sidebar .card-header {
    font-weight: 600;
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
}

.related-posts-sidebar .list-group-item {
    border: none;
    padding: 1rem;
    transition: background-color 0.2s ease-in-out;
}

.related-posts-sidebar .list-group-item:hover {
    background-color: #f8f9fa;
}

.related-posts-sidebar .related-post-title {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* === Search Page Styles === */
.search-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

mark {
    background-color: #cce5ff; /* สีฟ้าอ่อน */
    color: #004085; /* สีน้ำเงินเข้ม */
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-weight: 600;
}

/* === Sidebar Widget Styles === */
.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget .card-header {
    font-weight: 600;
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-widget .list-group-item {
    border: none;
    padding: 1rem;
    transition: background-color 0.2s ease-in-out;
}

.sidebar-widget .list-group-item:hover {
    background-color: #f8f9fa;
}

.sidebar-widget .widget-post-title {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* === Like Button Styles === */
.like-section .btn {
    transition: all 0.3s ease;
}

.like-section .btn .fa-heart {
    transition: transform 0.3s ease;
}

.like-section .btn:hover .fa-heart {
    transform: scale(1.2);
}

.like-section .btn #like-text {
    margin-left: 0.5rem;
}

/* Post Card Meta Likes */
.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-card-meta .meta-like {
    color: #dc3545; /* สีแดงเหมือนปุ่ม Like */
}

/* === Featured Category Section Styles === */
.post-card-large .post-card-image {
    height: 350px; /* ทำให้รูปของโพสต์หลักสูงขึ้น */
}

.post-card-large .post-card-title {
    font-size: 1.5rem; /* ทำให้หัวข้อของโพสต์หลักใหญ่ขึ้น */
}

.post-card-small {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.post-card-small:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.post-card-small-image-link {
    width: 120px;
    height: 90px;
    display: block;
}

.post-card-small-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-small:hover .post-card-small-image-link img {
    transform: scale(1.08);
}

.post-card-small-title {
    font-size: 1rem;
    font-weight: 600;
}

/* === Modern Navbar on Scroll === */
.navbar {
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar-transparent {
    background-color: transparent !important;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.navbar-transparent .navbar-brand img {
    transform: scale(1.1); /* ขยายโลโก้เล็กน้อยในสถานะเริ่มต้น */
}

.navbar .navbar-brand img {
    transition: transform 0.4s ease;
}

.navbar-scrolled {
    background-color: #ffffff !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .navbar-brand img {
    transform: scale(1); /* กลับสู่ขนาดปกติเมื่อเลื่อน */
}

/* === Enhanced Navbar Right Section === */
.navbar-right .btn-icon {
    background: transparent;
    border: none;
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.navbar-right .btn-icon:hover {
    color: #0d6efd;
}

.navbar-scrolled .navbar-right .btn-icon {
    color: #333;
}

.user-profile-dropdown .dropdown-toggle::after {
    display: none; /* Hide default dropdown arrow */
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.user-profile-dropdown .dropdown-toggle:hover .user-avatar {
    border-color: #0d6efd;
}

/* === Search Modal === */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1060; /* Higher than navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.search-modal.is-open .search-modal-content {
    transform: translateY(0);
}

.search-modal-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    width: 100%;
    max-width: 600px;
    text-align: center;
    outline: none;
}

.search-modal-hint {
    color: #999;
    margin-top: 1rem;
}

.btn-close-search {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
}

/* === Animated Conic Gradient Site Title === */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-gradient {
  to {
    --gradient-angle: 360deg;
  }
}

.site-title-text {
    font-weight: 700;
    font-size: 1.4rem;
    /* The animated gradient background */
    background: conic-gradient(from var(--gradient-angle), #0d6efd, #6f42c1, #d63384, #fd7e14, #198754, #0d6efd);
    animation: rotate-gradient 4s linear infinite;

    /* Clip the background to the text shape */
    -webkit-background-clip: text;
    background-clip: text;
    /* Make the text color transparent to reveal the gradient */
    color: transparent;
}

/* === New Hero Section Styles === */
.hero-section {
    position: relative;
    padding: 4rem 0; /* ลด padding ลง */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px; /* กำหนดความสูงคงที่ */
    overflow: hidden;
    background: linear-gradient(135deg, #6f42c1, #0d6efd, #198754, #fd7e14);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* เพิ่มความเข้มเพื่อให้ตัวอักษรเด่นขึ้น */
}

.hero-section .btn-primary {
    background-color: #fff;
    color: #0d6efd;
    border-color: #fff;
}

.hero-section .btn-primary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Animations for Hero Section --- */
.animate-fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

/* Keyframes are already defined in the original CSS, so we don't need to add them again. */

/* === New Featured Product Card Styles === */
.product-card-featured {
    border-width: 3px;
    border-style: solid;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.product-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.product-card-featured .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-featured:hover .card-img-top {
    transform: scale(1.05);
}

.product-card-featured .card-body {
    padding: 1.5rem;
}

.product-card-featured .card-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-card-featured .price {
    font-size: 1.75rem;
    color: #333;
    margin-top: 1rem;
}

/* --- Border Colors for Featured Cards --- */
.product-card-featured.border-blue {
    border-color: #0d6efd;
}
.product-card-featured.border-blue .price {
    color: #0d6efd;
}

.product-card-featured.border-pink {
    border-color: #d63384;
}
.product-card-featured.border-pink .price {
    color: #d63384;
}

.product-card-featured.border-yellow {
    border-color: #ffc107;
}
.product-card-featured.border-yellow .price {
    color: #ffc107;
}

.product-card-featured.border-green {
    border-color: #198754;
}
.product-card-featured.border-green .price {
    color: #198754;
}

/* === Animation on Scroll for Cards === */
.animate-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === New Product Card Styles === */
.product-card-v2 {
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.product-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.product-card-v2 .card-img-container {
  position: relative;
  overflow: hidden;
}
.product-card-v2 .card-img-top {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card-v2:hover .card-img-top {
  transform: scale(1.05);
}
.product-card-v2 .card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card-v2:hover .card-img-overlay {
  opacity: 1;
}
.product-card-v2 .card-body {
  padding: 1rem;
}
.product-card-v2 .card-title a {
  transition: color 0.2s ease;
}
.product-card-v2 .card-title a:hover {
  color: var(--bs-primary);
}
.animate-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === All Posts Page Styles === */
.page-header-v2 {
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.8), rgba(108, 99, 255, 0.8));
    border-radius: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    color: white;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.post-card-v2 {
    position: relative; /* เพิ่มคุณสมบัตินี้เพื่อจำกัดขอบเขตของ stretched-link */
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
}
.post-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.post-card-v2 .img-container {
    position: relative;
    overflow: hidden;
}
.post-card-v2 .card-img-top {
    transition: transform 0.4s ease;
}
.post-card-v2:hover .card-img-top {
    transform: scale(1.05);
}
.post-card-v2 .img-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}
.post-card-v2:hover .img-overlay {
    opacity: 1;
}

/* === Payment Notification Page Styles === */
#payment-form .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#payment-form .input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#amount-feedback {
    min-height: 20px; /* Reserve space to prevent layout shifts */
    transition: all 0.3s ease-in-out;
}

/* New Grid Layout for Posts */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card-v2 {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}

.post-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.post-card-v2 .img-container {
    position: relative;
    overflow: hidden;
}

.post-card-v2 .card-img-top {
    transition: transform 0.4s ease;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-card-v2:hover .card-img-top {
    transform: scale(1.05);
}
