/* Mobile ordering: Beginnings, Values, Family, then others */
@media (max-width: 576px) {
  #aboutBeginningHeader { scroll-margin-top: 70px; }
}

/* Meet Our Family: horizontal auto-scroll on mobile */
@media (max-width: 576px) {
  #family-members-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none;    /* Firefox */
    overscroll-behavior: contain;
    touch-action: pan-x;
    scrollbar-gutter: stable;
  }
  #family-members-container::-webkit-scrollbar { display: none; } /* WebKit */
  .family-member-card {
    min-width: 180px;
    flex: 0 0 180px;
  }
}
/* About Page Styles */

/* Page-specific card overrides - only for about page specific cards */
.about-page .card,
.family-member-card .card {
    background: var(--card-bg, #f8f9fa);
    color: var(--card-text, #333);
}

/* About-specific card styles - only for about page cards */
.about-page .card-body,
.family-member-card .card-body {
    /* Use main card-body styles from common.css */
}

.about-page .card-title,
.family-member-card .card-title {
    /* Use main card-title styles from common.css */
}

.about-page .card-text,
.family-member-card .card-text {
    /* Use main card-text styles from common.css */
}

/* Home Sidebar Styles - About page specific */
.home-sidebar {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    height: fit-content;
}

/* Categories Grid - About page specific layout - STACKED VERTICAL */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

/* All screen sizes: keep stacked vertical */
@media (min-width: 768px) and (max-width: 991px) {
    .categories-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* Enhanced Category Tiles - Left-Right Layout */
.category-tile {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    display: flex;
    width: 350px;
    height: 150px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #dc3545;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-info::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 20px;
    height: 100%;
    background: #dc3545;
    filter: blur(10px);
    z-index: 4;
    pointer-events: none;
}

.category-tile:hover .category-info {
    background: #c82333;
}

.category-image-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.category-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 20px;
    height: 100%;
    background: #f8f9fa;
    filter: blur(10px);
    z-index: 4;
    pointer-events: none;
}

.category-image-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}

.category-image-slideshow img.active {
    opacity: 1;
    transform: scale(1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(220, 20, 60, 0.3) 100%);
    z-index: 3;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-tile:hover .category-overlay {
    opacity: 1;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.category-content h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    text-align: center;
}

/* Team Member Images - About page specific */
.card img.rounded-circle {
    border: 4px solid #4a7c59;
    transition: transform 0.3s ease;
}

.card:hover img.rounded-circle {
    transform: scale(1.05);
}

/* Family Members Section - Match index page styling */
.family-section {
    text-align: center;
}



/* Home Info Card Header Styling - Match index page */
.home-info-card .card-header {
    /* Dynamic background color from site text system */
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    border: none;
    margin: 0;
}

.home-info-card .card-header i {
    font-size: 1.2rem;
    margin-right: 10px;
    /* Dynamic color from site text system */
}

.home-info-card .card-body {
    padding: 20px;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Family Members Grid - Match index page styling */
.family-members-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: start;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Hide scrollbar but keep functionality */
.family-members-grid::-webkit-scrollbar {
    height: 6px;
}

.family-members-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.family-members-grid::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 3px;
}

.family-members-grid::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* Add subtle gradient indicators for scrollable content */
.family-members-grid::before,
.family-members-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.family-members-grid::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}

.family-members-grid::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}

/* Show indicators when content is scrollable */
.family-members-grid.has-overflow::before {
    opacity: 1;
}

.family-members-grid.has-overflow::after {
    opacity: 1;
}

.family-member-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
    width: 250px;
    flex-shrink: 0;
}

.family-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.family-member-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.family-member-card:hover .family-member-image {
    transform: scale(1.1);
    border-color: #c41e3a;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.family-member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.family-member-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Special Offers Section - About page specific */
.special-offers-section {
    margin-bottom: 25px;
}

.special-offers-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    min-height: 150px;
}

.special-offers-container .special-offer {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #DC143C;
}

.special-offers-container .special-offer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.special-offers-container .special-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.special-offers-container .special-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.3;
    flex: 1;
}

.special-offers-container .special-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.special-offers-container .special-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.special-offers-container .special-discount {
    background: #DC143C;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.special-offers-container .special-validity {
    color: #999;
    font-size: 0.75rem;
}

.special-offers-container .special-type {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Special Offer Items - Match store page styling */
.special-offer-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #DC143C;
}

.special-offer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.special-offer-red {
    border-left-color: #DC143C;
}

.special-offer-red:hover {
    border-left-color: #B22222;
}

.special-offer-yellow {
    border-left-color: #ffc107;
}

.special-offer-yellow:hover {
    border-left-color: #e0a800;
}

.special-offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.special-offer-type {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f8f9fa;
    color: #333;
}

.special-offer-red .special-offer-type {
    background: #DC143C;
    color: white;
}

.special-offer-yellow .special-offer-type {
    background: #ffc107;
    color: #333;
}

.special-offer-type i {
    font-size: 0.7rem;
}

.special-offer-badge {
    background: #DC143C;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.special-offer-yellow .special-offer-badge {
    background: #ffc107;
    color: #333;
}

.special-offer-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.special-offer-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.special-offer-details {
    font-size: 0.8rem;
    color: #666;
}

/* Offers Transition Container */
.offers-transition-container {
    position: relative;
    overflow: hidden;
}

.offers-slideshow {
    position: relative;
    min-height: 200px;
}

.offer-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    transform: translateX(100%);
}

.offer-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.offers-navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.offer-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offer-nav-dot:hover {
    background: #999;
}

.offer-nav-dot.active {
    background: #DC143C;
    transform: scale(1.2);
}

.offer-nav-dot-yellow {
    background: #ffc107;
}

.offer-nav-dot-yellow:hover {
    background: #e0a800;
}

.offer-nav-dot-yellow.active {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.offer-nav-dot-red {
    background: #DC143C;
}

.offer-nav-dot-red:hover {
    background: #B22222;
}

.offer-nav-dot-red.active {
    background: #DC143C;
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.3);
}

/* Review Slideshow Container - About page specific */
.review-slideshow-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    min-height: 200px;
}

.review-slideshow-container .review-slide {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.review-slideshow-container .review-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.review-slideshow-container .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-slideshow-container .review-author {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.review-slideshow-container .review-author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #DC143C;
}

.review-slideshow-container .review-author-image[src*="default-avatar"] {
    background: linear-gradient(135deg, #DC143C, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.review-author-image-wrapper {
    position: relative;
    margin-right: 10px;
}

.review-slideshow-container .review-author-info {
    flex: 1;
}

.review-slideshow-container .review-author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin: 0;
}

.review-slideshow-container .review-author-stats {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

.review-slideshow-container .review-rating {
    display: flex;
    align-items: center;
}

.review-slideshow-container .review-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-slideshow-container .review-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.review-slideshow-container .review-content {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.review-slideshow-container .review-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 8px;
    text-align: right;
}

.review-slideshow-container .review-nav {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 5px;
}

.review-slideshow-container .review-nav-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-slideshow-container .review-nav-btn:hover {
    background: #dc3545;
    transform: scale(1.2);
}

.review-slideshow-container .review-nav-btn.active {
    background: #dc3545;
    transform: scale(1.2);
}

.review-slideshow-container .review-slide {
    display: none;
}

.review-slideshow-container .review-slide.active {
    display: block;
}

.review-slideshow-container .review-slideshow-wrapper {
    position: relative;
    min-height: 200px;
}

/* Responsive Design - Match index page styling */
@media (max-width: 1200px) {
    .family-members-grid {
        gap: 15px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .review-slideshow-container,
    .special-offers-container {
        padding: 12px;
        min-height: 150px;
    }
    
    .review-slideshow-container .review-slide,
    .special-offers-container .special-offer {
        padding: 12px;
    }
    
    .review-slideshow-container .review-author-image {
        width: 30px;
        height: 30px;
    }
    
    .review-slideshow-container .review-author-name {
        font-size: 0.85rem;
    }
    
    .review-slideshow-container .review-title {
        font-size: 0.9rem;
    }
    
    .review-slideshow-container .review-content {
        font-size: 0.8rem;
    }
    
    .special-offer-item {
        padding: 12px;
    }
    
    .special-offer-header {
        margin-bottom: 8px;
    }
    
    .special-offer-type {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .special-offer-badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .special-offer-title {
        font-size: 0.9rem;
    }
    
    .special-offer-description {
        font-size: 0.8rem;
    }
    
    .family-members-grid {
        gap: 15px;
        justify-content: center;
    }
    
    .family-member-card {
        padding: 15px;
        min-height: 180px;
        width: 220px;
        flex-shrink: 0;
    }
    
    .family-member-image {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .family-member-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .family-member-bio {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .review-slideshow-container,
    .special-offers-container {
        padding: 10px;
    }
    
    .review-slideshow-container .review-slide,
    .special-offers-container .special-offer {
        padding: 10px;
    }
    
    .review-slideshow-container .review-author-image {
        width: 25px;
        height: 25px;
    }
    
    .review-slideshow-container .review-author-name {
        font-size: 0.8rem;
    }
    
    .review-slideshow-container .review-title {
        font-size: 0.85rem;
    }
    
    .review-slideshow-container .review-content {
        font-size: 0.75rem;
    }
    
    .special-offer-item {
        padding: 10px;
    }
    
    .special-offer-title {
        font-size: 0.85rem;
    }
    
    .special-offer-description {
        font-size: 0.75rem;
    }
    
    .family-members-grid {
        gap: 12px;
        justify-content: center;
    }
    
    .family-member-card {
        padding: 12px;
        min-height: 160px;
        width: 200px;
        flex-shrink: 0;
    }
    
    .family-member-image {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .family-member-name {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .family-member-bio {
        font-size: 0.75rem;
    }
}
