* {
    box-sizing: border-box;
}

/* Sticky Header */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
}

/* Logo */
.custom-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo img {
    max-height: 80px;
    transition: transform 0.3s ease;
    border-radius: 5px;
    padding: 2px;
}

.custom-logo img:hover {
    transform: scale(1.05);
}

/* Search Container */
.search-container {
    display: flex;
    flex-grow: 1;
    min-width: 250px;
    max-width: 400px;
    gap: 8px;
    align-items: center;
}

/* Search Location */
.custom-search-location {
    height: 34px;
    font-size: 13px;
    padding: 0 10px;
    background-color: #f1f1f1;
    border: 2px solid #b69121;
    border-radius: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex: 1;
    min-width: 100px;
    transition: border-color 0.3s ease;
}

.custom-search-location:hover {
    border-color: #b5891f;
}

/* Search Text Input */
.custom-search-input {
    height: 34px;
    font-size: 13px;
    padding: 0 10px;
    background-color: #f1f1f1;
    border: 2px solid #b69121;
    border-radius: 18px;
    flex: 2;
    min-width: 120px;
    transition: border-color 0.3s ease;
}

.custom-search-input:hover {
    border-color: #b5891f;
}

/* Search Button */
.custom-search-btn {
    width: 34px;
    height: 34px;
    background-color: #b69121;
    border: 2px solid #b69121;
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-search-btn:hover {
    background-color: #b5891f;
    border-color: #b5891f;
}

.custom-search-btn i {
    font-size: 13px;
}

/* Navigation Buttons */
.custom-gold-btn {
    background-color: transparent;
    color: #b69121;
    border: 2px solid #b69121;
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    height: 34px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.custom-gold-btn i {
    margin-right: 6px;
    font-size: 13px;
}

.custom-gold-btn:hover,
.custom-gold-btn:focus {
    background-color: #b69121;
    color: #fff;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* Dropdown Styling */
.dropdown {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.dropdown-toggle {
    background-color: transparent !important;
    border: 2px solid #b69121 !important;
    border-radius: 18px !important;
    padding: 6px 12px !important;
    color: #b69121 !important;
    font-weight: 600;
    font-size: 13px;
    height: 34px;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    background-color: #b69121 !important;
    color: #fff !important;
}

.dropdown-menu {
    min-width: 180px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 5px 0;
    margin-top: 5px;
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    transition: background-color 0.3s ease;
}

.dropdown-item i {
    margin-right: 8px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #fdf2d1;
    color: #b5891f;
    text-decoration: none;
}

/* Logout Form Styling */
.logout-form {
    display: inline;
}

.logout-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    text-align: left;
    width: 100%;
    transition: background-color 0.3s ease;
}

.logout-btn i {
    margin-right: 8px;
}

.logout-btn:hover,
.logout-btn:focus {
    background-color: #fdf2d1;
    color: #b5891f;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: none;
    border: 2px solid #b69121;
    border-radius: 18px;
    color: #b69121;
    font-size: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #b69121;
    color: #fff;
}

/* Navigation Buttons Container */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Sidebar Styles */
.offcanvas-nav {
    width: 280px;
    background-color: #fff;
}

.offcanvas-nav .offcanvas-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.offcanvas-nav .offcanvas-body {
    padding: 15px 20px;
}

.nav-item {
    display: block;
    padding: 12px 15px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease;
}

.nav-item i {
    margin-right: 12px;
    color: #b69121;
}

.nav-item:hover {
    background-color: #fdf2d1;
    color: #b5891f;
}

/* Ensure content starts at top */
body {
    padding-top: 0;
}

/* Image Slider Section */
.welcome-section {
    position: relative;
    padding: 0;
    margin-top: 0;
    overflow: hidden;
    width: 100%;
}

.carousel {
    width: 100%;
}

.carousel-inner {
    position: relative;
}

.carousel-item {
    transition: transform 0.5s ease-in-out;
}

.carousel-item img,.carousel-item video {
    width: 100%;
    height: 700px;
    object-fit: cover;
    object-position: center;
    filter: brightness(80%) contrast(1.1) sharpness(1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(182, 145, 33, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
    padding: 20px;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards 0.3s;
    max-width: 80%;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 3px 7px rgba(0, 0, 0, 0.8);
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    color: #fff;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    color: #fdf2d1;
}

.welcome-search {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.welcome-search input {
    height: 40px;
    font-size: 1rem;
    padding: 0 15px;
    background-color: #fff;
    border: 2px solid #b69121;
    border-radius: 20px;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    transition: border-color 0.3s ease;
}

.welcome-search input:hover,
.welcome-search input:focus {
    border-color: #b5891f;
    outline: none;
}

.welcome-search button {
    height: 40px;
    padding: 0 25px;
    background-color: #b69121;
    border: 2px solid #b69121;
    color: #fff;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.welcome-search button:hover {
    background-color: #b5891f;
    border-color: #b5891f;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    background: rgba(182, 145, 33, 0.4);
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 2;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(182, 145, 33, 0.6);
    transform: scale(1.1);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%, 100%;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.carousel-indicators {
    z-index: 2;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #b69121;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: #b69121;
    opacity: 1;
}

/* Animation for captions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Upload Form */
.slider-upload-section {
    max-width: 800px;
    margin: 0 auto;
}

.slider-form-group {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.slider-form-group h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.slider-form-group .form-group {
    margin-bottom: 15px;
}

.slider-form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.slider-form-group input[type="file"],
.slider-form-group input[type="text"],
.slider-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #b69121;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.slider-form-group input[type="file"]:hover,
.slider-form-group input[type="text"]:hover,
.slider-form-group textarea:hover,
.slider-form-group input[type="file"]:focus,
.slider-form-group input[type="text"]:focus,
.slider-form-group textarea:focus {
    border-color: #b5891f;
    outline: none;
}

.slider-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Categories Section */
.categories-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    position: relative;
}

.categories-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.category-grid-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    width: fit-content;
    margin: 0 auto;
    max-width: 100%;
}

.category-item {
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 10px;
    min-width: 100px;
    max-width: 130px;
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    background-color: #fdf2d1;
}

.category-item i {
    font-size: 1.4rem;
    color: #ffd700;
    margin-bottom: 8px;
}

.category-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 8px;
}

.category-item span {
    display: block;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #b69121;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.scroll-arrow:hover {
    background-color: #b5891f;
}

.scroll-arrow.left {
    left: 10px;
}

.scroll-arrow.right {
    right: 10px;
}

.scroll-arrow i {
    font-size: 18px;
}

/* Hide scrollbar but keep functionality */
.category-grid::-webkit-scrollbar {
    display: none;
}

.category-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Recent Reviews Section */
.recent-reviews-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.recent-reviews-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: 2rem;   /* adjust as needed */
    margin-right: 2rem; 
}

.review-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.review-item:hover {
    background-color: #fdf2d1;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.profile-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid #b69121;
}

.reviewer-info h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}

.review-time {
    font-size: 0.85rem;
    color: #666;
}

.review-body {
    text-align: center;
}

.business-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.review-body h4 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.review-body .rating {
    color: #ffd700;
    margin-bottom: 5px;
}

.review-body p {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.review-body .location {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
.footer-section {
    background: #c49711;
    color: #fff;
    padding: 40px 0 0; /* smaller top and bottom space */
    font-family: 'Inter', sans-serif;
}


/* Footer Titles */
.footer-section .widget-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    color: #fff;
}

/* Footer Menu Links */
.footer-section .menu-list li {
    margin-bottom: 8px;
}

.footer-section .menu-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-section .menu-list a:hover {
    color: #ffe08a;
}

/* Address / Contact Section */
.footer-section .footer-contact li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.footer-section .footer-contact i {
    margin-right: 8px;
    font-size: 16px;
    color: #fff;
}

/* Footer Bottom (compact version) */
.footer-bottom {
    background: #9f7a1c; /* slightly darker gold */
    text-align: center;
    padding: 8px 0; /* compact height */
    margin-top: 25px; /* small gap above */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* subtle separation line */
}

.footer-bottom p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Responsive Fixes */
@media (max-width: 767px) {
    .footer-section {
        text-align: center;
    }

    .footer-section .footer-contact li {
        justify-content: center;
    }

    .footer-section .footer-contact i {
        margin-right: 5px;
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .custom-header {
        padding: 6px 10px;
        flex-wrap: nowrap;
    }

    .custom-logo img {
        max-height: 38px;
    }

    .search-container {
        min-width: 200px;
        max-width: 300px;
        gap: 6px;
    }

    .custom-search-location,
    .custom-search-input {
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
        min-width: 80px;
        border-radius: 16px;
    }

    .custom-search-btn {
        width: 30px;
        height: 30px;
        border-radius: 16px;
    }

    .custom-search-btn i {
        font-size: 12px;
    }

    .custom-gold-btn {
        padding: 4px 8px;
        font-size: 12px;
        height: 30px;
        border-radius: 16px;
    }

    .custom-gold-btn i {
        margin-right: 4px;
        font-size: 12px;
    }

    .dropdown-toggle {
        padding: 4px 8px !important;
        font-size: 12px !important;
        height: 30px !important;
        border-radius: 16px !important;
    }

    .sidebar-toggle {
        width: 30px;
        height: 30px;
        font-size: 13px;
        border-radius: 16px;
    }

    .carousel-item img ,.carousel-item videos{
        height: 300px;
    }

    .carousel-caption {
        padding: 12px;
        max-width: 90%;
    }

    .carousel-caption h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
        background: rgba(182, 145, 33, 0.5);
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 22px;
        height: 22px;
    }

    .carousel-indicators {
        margin-bottom: 12px;
        gap: 6px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .slider-upload-section {
        padding: 20px 10px;
    }

    .slider-form-group {
        padding: 15px;
    }

    .slider-form-group h3 {
        font-size: 1.2rem;
    }

    .slider-form-group input[type="file"],
    .slider-form-group input[type="text"],
    .slider-form-group textarea {
        font-size: 0.9rem;
        padding: 8px;
    }

    .categories-section {
        padding: 20px 10px;
    }

    .categories-section h2 {
        font-size: 1.5rem;
    }

    .category-grid {
        gap: 12px;
        padding: 10px 0;
    }

    .category-item {
        min-width: 90px;
        max-width: 110px;
        padding: 10px;
    }

    .category-item i,
    .category-item img {
        font-size: 1.2rem;
        width: 26px;
        height: 26px;
        margin-bottom: 6px;
    }

    .category-item span {
        font-size: 0.75rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .scroll-arrow {
        width: 35px;
        height: 35px;
    }

    .scroll-arrow i {
        font-size: 16px;
    }

    .recent-reviews-section {
        padding: 20px 10px;
    }

    .recent-reviews-section h2 {
        font-size: 1.5rem;
    }

    .review-item {
        width: 100%;
        max-width: 350px;
    }

    .profile-photo {
        width: 40px;
        height: 40px;
    }

    .reviewer-info h3 {
        font-size: 1rem;
    }

    .review-time {
        font-size: 0.8rem;
    }

    .review-body h4 {
        font-size: 1.1rem;
    }

    .review-body p {
        font-size: 0.85rem;
    }

    /* footer {
        padding: 30px 15px;
    }

    footer .row {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    footer form {
        flex-direction: column;
    }

    footer form input.form-control,
    footer form button.btn {
        width: 100%;
    } */
}

@media (max-width: 576px) {
    .custom-header {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 6px 10px;
    }

    .custom-logo img {
        max-height: 38px;
    }

    .search-container {
        flex-grow: 1;
        min-width: 150px;
        max-width: 250px;
        gap: 6px;
    }

    .custom-search-location,
    .custom-search-input {
        min-width: 70px;
    }

    .nav-buttons {
        display: none;
    }

    .sidebar-toggle {
        display: flex !important;
    }

    .carousel-item img,.carousel-item video {
        height: 200px;
    }

    .carousel-caption {
        padding: 8px;
        max-width: 95%;
    }

    .carousel-caption h1 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    .carousel-caption p {
        font-size: 0.75rem;
        margin-bottom: 10px;
        line-height: 1.2;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
        background: rgba(182, 145, 33, 0.5);
        border-radius: 8px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }

    .carousel-indicators {
        gap: 4px;
        margin-bottom: 8px;
        max-width: 90%;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 3px;
        border-width: 1px;
    }

    .slider-form-group {
        padding: 10px;
    }

    .slider-form-group h3 {
        font-size: 1.1rem;
    }

    .slider-form-group input[type="file"],
    .slider-form-group input[type="text"],
    .slider-form-group textarea {
        font-size: 0.85rem;
        padding: 6px;
    }

    .category-grid {
        gap: 10px;
        padding-bottom: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .category-item {
        min-width: 80px;
        max-width: 100px;
        padding: 8px;
    }

    .category-item span {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .category-item i,
    .category-item img {
        width: 24px;
        height: 24px;
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .scroll-arrow {
        width: 30px;
        height: 30px;
    }

    .scroll-arrow i {
        font-size: 14px;
    }

    .review-item {
        width: 100%;
        max-width: 300px;
    }

    .business-photo {
        height: 160px;
    }

    .review-body p {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .carousel-item img,.carousel-item video {
        height: 180px;
    }

    .carousel-caption h1 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .carousel-caption p {
        font-size: 0.65rem;
        margin-bottom: 8px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }

    .carousel-indicators [data-bs-target] {
        width: 7px;
        height: 7px;
        margin: 0 2px;
    }

    .slider-form-group input[type="file"],
    .slider-form-group input[type="text"],
    .slider-form-group textarea {
        font-size: 0.8rem;
        padding: 5px;
    }

    .category-item {
        min-width: 70px;
        max-width: 90px;
        padding: 6px;
    }

    .category-item span {
        font-size: 0.65rem;
    }

    .category-item i,
    .category-item img {
        width: 22px;
        height: 22px;
        font-size: 1rem;
    }
}
.recent-reviews-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    font-family: 'Inter', 'Arial', sans-serif;
    border-radius: 12px;

}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1f2a44;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-header h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #ffd700;
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}

.highlight-note {
    font-size: 0.95rem;
    color: #ffca28;
    font-style: italic;
    margin-top: 8px;
    font-weight: 500;
}

.no-reviews {
    text-align: center;
    font-size: 1rem;
    color: #6b7280;
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #f5f4f1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #f5f4ee;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 440px; /* Reduced slightly after removing location */
    position: relative;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.review-card.most-loved {
    border-color: #fcfbf8;
    background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
}

.review-card.most-loved::before {
    content: '💖 Most Loved';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffca28;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
padding-right: 12px;

    border-bottom: 1px solid #0000001F;
    background: #fff;
}

.profile-photo-container {
    flex-shrink: 0;
}

.profile-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.profile-photo:hover {
    border-color: #ffca28;
    transform: scale(1.05);
}

.reviewer-info {
    flex: 1;
    min-width: 0;
}

.reviewer-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2a44;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-time {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

.review-media {
    position: relative;
    background: #f8f8f8;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.media-carousel, .no-media-placeholder {
    width: 100%;
    height: 100%;
}

.media-content {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full visibility for any size */
    display: block;
    background: #f8f8f8;
}

video.media-content {
    object-fit: contain; /* Videos also fit fully */
}

.review-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.business-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2a44;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars-container {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 1.1rem;
}

.star.filled {
    color: #ffd700;
}

.star.half {
    background: linear-gradient(90deg, #ffd700 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.star.empty {
    color: #d1d5db;
}

.rating-score {
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
}

.no-rating {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.review-text-container {
    padding-top: 6px;
}

.review-text {
    margin: 0;
    font-size: 1rem;
    color: #1f2a44;
    line-height: 1.5;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp 0.3s ease;
}

.review-text.truncated {
    -webkit-line-clamp: 3;
}

.review-text:not(.truncated) {
    -webkit-line-clamp: unset;
}

.read-more {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 6px;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #ffca28;
}

.review-footer {
    padding: 12px;
    border-top: 1px solid #0000001F;        /* same subtle border as header */
    background: #fff;
}

.love-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.love-button:hover {
    color: #ffca28;
}

.heart {
    font-size: 0.95rem;
    color: #d1d5db;
    transition: color 0.2s ease, transform 0.2s ease;
}

.heart.loved {
    color: #f13a0d;
    transform: scale(1.2);
}

.love-count {
    font-weight: 500;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;           /* white background */
    color: #000;                /* black arrow */
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;         /* round shape */
    font-size: 14px;            /* smaller arrow */
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* soft shadow for contrast */
}

.carousel-prev:hover, .carousel-next:hover {
    background: #000;  /* black background on hover */
    color: #fff;       /* white arrow on hover */
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.media-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.media-slide.active {
    opacity: 1;
}
@media (max-width: 480px) {
    .review-card {
        margin: 0 !important; /* remove all margins */
       
    }
}

/* Tablet and Smaller (max-width: 768px) */
@media (max-width: 768px) {
    .recent-reviews-section {
        padding: 24px 12px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        
    }
    .section-header h2 {
        font-size: 1.75rem;
    }
    .section-header h2::after {
        width: 40px;
        height: 2px;
    }
    .highlight-note {
        font-size: 0.9rem;
    }
    .no-reviews {
        padding: 24px;
        font-size: 0.95rem;
    }
    .review-card {
        min-height: 400px;
        border-radius: 10px;
    }
    .review-media {
        aspect-ratio: 16 / 9;
    }
    .business-name {
        font-size: 1.1rem;
    }
    .review-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    .read-more {
        font-size: 0.85rem;
    }
    .review-header {
        padding: 10px;
        gap: 10px;
    }
    .profile-photo {
        width: 40px;
        height: 40px;
    }
    .reviewer-name {
        font-size: 1rem;
    }
    .review-time {
        font-size: 0.8rem;
    }
    .rating-display {
        gap: 6px;
    }
    .star {
        font-size: 1rem;
    }
    .rating-score {
        font-size: 0.95rem;
    }
    .no-rating {
        font-size: 0.85rem;
    }
    .review-content {
        padding: 10px;
        gap: 8px;
    }
    .review-footer {
        padding: 10px;
    }
    .love-button {
        gap: 6px;
        font-size: 0.85rem;
    }
    .heart {
        font-size: 0.9rem;
    }
    .carousel-prev, .carousel-next {
        padding: 5px 8px;
        font-size: 16px;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .recent-reviews-section {
        padding: 16px 8px;
    }
    .reviews-grid {
        gap: 12px;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
    .section-header h2::after {
        width: 30px;
        height: 2px;
    }
    .highlight-note {
        font-size: 0.85rem;
    }
    .no-reviews {
        padding: 20px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    .review-card {
        min-height: 360px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .review-media {
        aspect-ratio: 4 / 3; /* Better for mobile portrait images/videos */
    }
    .business-name {
        font-size: 1rem;
    }
    .review-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    .read-more {
        font-size: 0.8rem;
        margin-top: 4px;
    }
    .review-header {
        padding: 8px;
        gap: 8px;
    }
    .profile-photo {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }
    .reviewer-name {
        font-size: 0.95rem;
    }
    .review-time {
        font-size: 0.75rem;
    }
    .rating-display {
        gap: 4px;
    }
    .star {
        font-size: 0.9rem;
    }
    .rating-score {
        font-size: 0.9rem;
    }
    .no-rating {
        font-size: 0.8rem;
    }
    .review-content {
        padding: 8px;
        gap: 6px;
    }
    .review-footer {
        padding: 8px;
    }
    .love-button {
        gap: 4px;
        font-size: 0.8rem;
    }
    .heart {
        font-size: 0.85rem;
    }
    .carousel-prev, .carousel-next {
        padding: 4px 6px;
        font-size: 14px;
    }
    .carousel-prev {
        left: 6px;
    }
    .carousel-next {
        right: 6px;
    }
}
