/* food-optimized.css - Optimized styles for food page */

/* Consolidated color variables */
:root {
    /* Primary food colors */
    --food-primary: #FF7F3E;      /* Vibrant orange */
    --food-secondary: #006D77;    /* Dark teal */
    --food-accent: #08979c;       /* Medium teal */
    --food-light: #13C2C2;        /* Light teal */
    --food-dark: #BA4A00;         /* Dark orange */
    --food-background: #fff8dc;   /* Warm cream background */
    
    /* Supporting colors */
    --teal-primary: #008080;
    --teal-dark: #006666;
    --orange-primary: #E67E22;
    --orange-dark: #D35400;
    --cream-bg: #fff8dc;
    --gray-dark: #666;
    --border-color: #e0e0e0;
    --text-dark: #333;
    --text-light: #666;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Base styles and resets */
.section.alt {
    background: #fff8dc;
}

.section-improved {
    padding: 60px 0;
}

.section-header-improved {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--teal-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--food-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Card components */
.food-card,
.restaurant-card,
.specialty-card,
.food-detail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.food-card:hover,
.restaurant-card:hover,
.specialty-card:hover,
.food-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


.food-card:hover .food-image-container img,
.restaurant-card:hover .restaurant-image img,
.specialty-card:hover .specialty-image-container img,
.food-detail-card:hover .food-detail-image img {
    transform: scale(1.05);
}

/* Badge styling */
.food-badge,
.specialty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--food-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content areas */
.food-content,
.restaurant-content,
.specialty-content,
.food-detail-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Title styling */
.food-title,
.restaurant-content h3,
.specialty-title,
.food-detail-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.food-detail-content h3 {
    font-size: 1.5rem;
}

/* Description styling */
.food-description,
.restaurant-description,
.specialty-description,
.food-detail-description {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Meta information */
.food-meta,
.specialty-meta,
.food-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item,
.specialty-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.meta-item i,
.specialty-meta-item i {
    color: var(--food-primary);
    width: 16px;
}

.food-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Action buttons */
.food-actions,
.restaurant-actions,
.food-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.action-btn,
.food-action-btn,
.view-recipe-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary,
.food-action-btn.primary,
.view-recipe-btn {
    background: var(--food-primary);
    color: white;
    border: none;
}

.action-btn.secondary,
.food-action-btn.secondary {
    background: rgba(255, 127, 62, 0.1);
    color: var(--food-primary);
    border: 1px solid var(--food-primary);
}

.action-btn.direction {
    background: rgba(0, 128, 128, 0.1);
    color: var(--teal-primary);
    border: 1px solid var(--teal-primary);
}

.action-btn:hover,
.food-action-btn:hover,
.view-recipe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.primary:hover,
.food-action-btn.primary:hover,
.view-recipe-btn:hover {
    background: var(--food-secondary);
}

.action-btn.secondary:hover,
.food-action-btn.secondary:hover {
    background: var(--food-primary);
    color: white;
}

.action-btn.direction:hover {
    background: var(--teal-primary);
    color: white;
}

/* Grid layouts */
.food-grid-improved,
.restaurant-cards,
.specialties-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.food-grid-improved {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.restaurant-cards,
.specialties-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Food rating */
.food-rating,
.specialty-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.rating-stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 600;
    color: var(--teal-dark);
    font-size: 0.9rem;
}

.rating-count {
    color: var(--gray-dark);
    font-size: 0.85rem;
}

/* Restaurant specific styles */
.restaurant-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--teal-dark);
}

.restaurant-specialty {
    color: var(--orange-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.restaurant-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.restaurant-location i {
    color: var(--teal-primary);
}

.restaurant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--cream-bg);
    color: var(--teal-dark);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Specialty card specific */
.specialty-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.specialty-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}


/* Food filter */
.food-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--food-primary);
    border-color: var(--food-primary);
    color: white;
}

/* Food category navigation */
.food-category-nav {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
    margin-bottom: 40px;
}

.food-category-nav .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.food-category-btn {
    padding: 10px 20px;
    background: var(--cream-bg);
    color: var(--teal-dark);
    border: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.food-category-btn:hover,
.food-category-btn.active {
    background: var(--teal-primary);
    color: white;
}

/* Food gallery */
.food-gallery,
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    box-shadow: var(--shadow);
}

.food-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Animations */
@keyframes foodPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.food-pulse {
    animation: foodPulse 2s infinite ease-in-out;
}

@keyframes ingredientFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.ingredient-float {
    animation: ingredientFloat 3s infinite ease-in-out;
}

/* Responsive design */
@media (max-width: 1024px) {
    .food-grid-improved,
    .restaurant-cards,
    .specialties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .section-improved {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .food-grid-improved,
    .restaurant-cards,
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .food-meta,
    .specialty-meta {
        grid-template-columns: 1fr;
    }
    
    .food-actions,
    .restaurant-actions,
    .food-detail-actions {
        flex-direction: column;
    }
    
    .food-category-nav .container {
        flex-direction: column;
        align-items: center;
    }
    
    .food-category-btn {
        width: 100%;
        text-align: center;
    }
    
    .food-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .specialty-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .food-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .food-content,
    .restaurant-content,
    .specialty-content,
    .food-detail-content {
        padding: 15px;
    }
    
    .food-title,
    .restaurant-content h3,
    .specialty-title,
    .food-detail-content h3 {
        font-size: 1.1rem;
    }
}
.explore-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  width: 100%;
  clear: both;
}
.explore-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  text-align: center;
  min-width: 180px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

.explore-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, #006666, #d84603);
}
  /* Wide grid layout for local specialties */
        .specialty-section .specialty-details {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-top: 40px;
        }

        .specialty-section .specialty-item {
            display: flex;
            gap: 30px;
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .specialty-section .specialty-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        .specialty-section .specialty-image {
            flex: 0 0 40%;
            min-height: 280px;
            overflow: hidden;
        }

        .specialty-section .specialty-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .specialty-section .specialty-item:hover .specialty-image img {
            transform: scale(1.05);
        }

        .specialty-section .specialty-content {
            flex: 1;
            padding: 30px;
            display: flex;
            flex-direction: column;
        }

        .specialty-section .specialty-content h3 {
            color: var(--teal-dark);
            font-size: 1.8rem;
            margin-bottom: 15px;
            position: relative;
            padding-bottom: 10px;
        }

        .specialty-section .specialty-content h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
            border-radius: 3px;
        }

        .specialty-section .specialty-content p {
            color: var(--gray-dark);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .specialty-section .specialty-meta {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }

        .specialty-section .meta-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--gray-dark);
        }

        .specialty-section .meta-item i {
            color: var(--teal-primary);
            width: 20px;
        }

        .specialty-section .specialty-actions {
            display: flex;
            gap: 15px;
            margin-top: auto;
        }

        .specialty-section .action-btn {
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            text-align: center;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .specialty-section .action-btn.primary {
            background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
            color: white;
            border: none;
        }

        .specialty-section .action-btn.secondary {
            background: transparent;
            color: var(--teal-primary);
            border: 2px solid var(--teal-primary);
        }

        .specialty-section .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .specialty-section .action-btn.primary:hover {
            background: linear-gradient(to right, var(--teal-dark), var(--orange-dark));
        }

        .specialty-section .action-btn.secondary:hover {
            background: var(--teal-primary);
            color: white;
        }

        /* Filter buttons */
        .food-filter {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin: 30px 0 40px;
        }

        .filter-btn {
            padding: 10px 20px;
            background: white;
            border: 2px solid var(--border-color);
            border-radius: 30px;
            font-weight: 600;
            color: var(--text-dark);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
            border-color: transparent;
            color: white;
        }

        /* Responsive design */
        @media (max-width: 992px) {
            .specialty-section .specialty-item {
                flex-direction: column;
            }
            
            .specialty-section .specialty-image {
                flex: 0 0 auto;
                min-height: 250px;
            }
            
            .specialty-section .specialty-meta {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 576px) {
            .specialty-section .specialty-actions {
                flex-direction: column;
            }
            
            .specialty-section .specialty-content h3 {
                font-size: 1.5rem;
            }
            
            .specialty-section .specialty-content {
                padding: 20px;
            }
        }
  
/* Additional styles for better category organization */
        .category-section {
            margin: 50px 0;
            padding: 30px 0;
            border-top: 1px solid rgba(0,0,0,0.1);
        }
        
        .category-header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .category-title {
            font-size: 2.2rem;
            color: var(--teal-dark);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .category-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
            border-radius: 2px;
        }
        
        .category-description {
            color: var(--text-light);
            max-width: 700px;
            margin: 0 auto;
            font-size: 1.1rem;
        }
        
        /* Hide the filter buttons */
        .food-filter {
            display: none;
        }
        /* Restaurant specific styles */
.restaurant-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.restaurant-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.restaurant-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.restaurant-item:hover .restaurant-image img {
    transform: scale(1.05);
}

.restaurant-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--teal-dark);
}

.restaurant-content {
    padding: 20px;
}

.restaurant-specialty {
    color: var(--orange-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.restaurant-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.restaurant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--cream-bg);
    color: var(--teal-dark);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Ensure category sections are properly displayed */
.category-section {
    display: block;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Hide filter buttons that might interfere */
.food-filter {
    display: none !important;
}

/* Ensure proper spacing for specialty items */
.specialty-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

/* Make sure specialty items are visible */
.specialty-item {
    display: flex !important;
    gap: 30px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 992px) {
    .specialty-item {
        flex-direction: column;
    }
}
/* Ensure category sections display properly */
.category-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

#all.category-section {
    display: block;
}

.category-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fix specialty items display */
.specialty-item {
    display: flex !important;
    margin-bottom: 40px;
}

/* Ensure proper spacing */
.specialty-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.foodsub-head{
    text-align: center;
    padding: 20px;
    font-size: 1.4rem; /* About 32px - clean and professional */
    font-weight: 600;
    color: white;
    margin: 0;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--orange-dark) 100%);
}
  /* Additional styles specific to food culture page */
        .culture-stats {
            margin: 40px 0;
        }
        
        .festival-highlight {
            background: linear-gradient(135deg, rgba(255, 127, 80, 0.1), rgba(0, 128, 128, 0.1));
            border-radius: 15px;
            padding: 30px;
            margin: 30px 0;
            border-left: 5px solid var(--orange-primary);
        }
        
        .ritual-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
            margin-bottom: 25px;
        }
        
        .ritual-card:hover {
            transform: translateY(-5px);
        }
        
        .ritual-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            margin-bottom: 15px;
        }

        .seasonal-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }

        .seasonal-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
        }

        .seasonal-card:hover {
            transform: translateY(-5px);
        }

        .seasonal-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            margin: 0 auto 15px;
        }

        .seasonal-content {
            padding: 25px;
            text-align: center;
        }
        /* Ensure all category sections are always visible */
.category-section {
    display: block !important;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-in-out;
}

/* Remove any hiding styles */
#all.category-section {
    display: block !important;
}

.category-section.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fix specialty items display */
.specialty-item {
    display: flex !important;
    margin-bottom: 40px;
}

/* Ensure proper spacing */
.specialty-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
/* 1. Fluid Typography using clamp() */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.food-title,
.restaurant-content h3,
.specialty-title,
.food-detail-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

.section-subtitle,
.category-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* 2. Additional Breakpoints for Very Large and Very Small Screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .food-grid-improved {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
    
    .restaurant-cards,
    .specialties-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .food-grid-improved {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .specialty-item {
        gap: 20px;
    }
    
    .specialty-section .specialty-content {
        padding: 25px;
    }
}

@media (max-width: 375px) {
    .section-improved {
        padding: 30px 0;
    }
}
/* ===================== EDUCATION NAVIGATION ===================== */
.education-nav {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--orange-dark) 100%);
  padding: 1rem 0;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.education-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: center; /* This ensures centering */
}

.education-nav ul {
  display: flex;
  justify-content: center; /* Center the navigation items */
  align-items: center; /* Vertically center */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* Allow wrapping if needed */
  gap: 0.8rem;
}

.education-nav li { 
  margin: 0; 
}

.education-nav a {
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  display: block;
  border: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.education-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.education-nav a.active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Styles - Only apply horizontal scroll on mobile */
@media (max-width: 768px) {
  .education-nav {
    padding: 0.8rem 0;
    overflow-x: auto; /* Enable horizontal scroll only on mobile */
    white-space: nowrap;
  }
  
  .nav-container {
    justify-content: flex-start; /* Left align on mobile */
    padding: 0 10px;
  }
  
  .education-nav ul {
    justify-content: flex-start; /* Left align on mobile */
    flex-wrap: nowrap; /* Prevent wrapping on mobile */
    min-width: max-content; /* Ensure container is wide enough */
  }
  
  .education-nav li {
    flex-shrink: 0; /* Prevent shrinking on mobile */
  }
  
  .education-nav a {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  /* Custom scrollbar styling for mobile */
  .education-nav::-webkit-scrollbar {
    height: 6px;
    display: block;
  }
  
  .education-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
  }
  
  .education-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }
}

/* Hide scrollbar on desktop */
@media (min-width: 769px) {
  .education-nav {
    overflow-x: visible; /* No horizontal scroll on desktop */
  }
  
  .education-nav ul {
    flex-wrap: wrap; /* Allow natural wrapping on desktop */
  }
}
  .education-nav a {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  /* Enhanced Card Styles */
.food-card,
.restaurant-card,
.specialty-card,
.food-detail-card,
.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.food-card::before,
.restaurant-card::before,
.specialty-card::before,
.food-detail-card::before,
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
    z-index: 2;
}

.food-card:hover,
.restaurant-card:hover,
.specialty-card:hover,
.food-detail-card:hover,
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 127, 62, 0.3);
}


.food-card:hover .food-image-container img,
.restaurant-card:hover .restaurant-image img,
.specialty-card:hover .specialty-image-container img,
.food-detail-card:hover .food-detail-image img,
.card:hover img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* Enhanced Content Areas */
.food-content,
.restaurant-content,
.specialty-content,
.food-detail-content,
.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, transparent, rgba(255, 248, 220, 0.3));
}

/* Enhanced Title Styling */
.food-title,
.restaurant-content h3,
.specialty-title,
.food-detail-content h3,
.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
}

.food-title::after,
.restaurant-content h3::after,
.specialty-title::after,
.card-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--food-primary), var(--food-light));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.food-card:hover .food-title::after,
.restaurant-card:hover .restaurant-content h3::after,
.specialty-card:hover .specialty-title::after,
.card:hover .card-content h3::after {
    width: 60px;
}

/* Enhanced Description Styling */
.food-description,
.restaurant-description,
.specialty-description,
.food-detail-description,
.card-content p {
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Enhanced Meta Information */
.food-meta,
.specialty-meta,
.food-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 248, 220, 0.4);
    border-radius: 12px;
    border-left: 3px solid var(--food-primary);
}

.meta-item,
.specialty-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.meta-item i,
.specialty-meta-item i {
    color: var(--food-primary);
    width: 16px;
    font-size: 1rem;
}

/* Enhanced Action Buttons */
.food-actions,
.restaurant-actions,
.food-detail-actions,
.specialty-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.action-btn,
.food-action-btn,
.view-recipe-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.action-btn::before,
.food-action-btn::before,
.view-recipe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before,
.food-action-btn:hover::before,
.view-recipe-btn:hover::before {
    left: 100%;
}

.action-btn.primary,
.food-action-btn.primary,
.view-recipe-btn {
    background: linear-gradient(135deg, var(--food-primary), var(--food-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 127, 62, 0.3);
}

.action-btn.secondary,
.food-action-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--food-primary);
    border: 2px solid var(--food-primary);
    backdrop-filter: blur(10px);
}

.action-btn.direction {
    background: rgba(255, 255, 255, 0.9);
    color: var(--teal-primary);
    border: 2px solid var(--teal-primary);
    backdrop-filter: blur(10px);
}

.action-btn:hover,
.food-action-btn:hover,
.view-recipe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.action-btn.primary:hover,
.food-action-btn.primary:hover,
.view-recipe-btn:hover {
    background: linear-gradient(135deg, var(--food-dark), var(--food-primary));
    box-shadow: 0 6px 20px rgba(255, 127, 62, 0.4);
}

.action-btn.secondary:hover,
.food-action-btn.secondary:hover {
    background: var(--food-primary);
    color: white;
    border-color: var(--food-primary);
}

.action-btn.direction:hover {
    background: var(--teal-primary);
    color: white;
    border-color: var(--teal-primary);
}

/* Enhanced Badge Styling */
.food-badge,
.specialty-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--food-primary), var(--orange-primary));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem; 
    font-weight: 700;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced Rating Styling */
.food-rating,
.specialty-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border-left: 3px solid #FFD700;
}

.rating-stars {
    color: #FFD700;
    font-size: 1rem;
}

.rating-value {
    font-weight: 700;
    color: var(--teal-dark);
    font-size: 0.95rem;
}

.rating-count {
    color: var(--gray-dark);
    font-size: 0.85rem;
}

/* Enhanced Restaurant Specific Styles */
.restaurant-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--teal-dark);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.restaurant-specialty {
    color: var(--orange-primary);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 15px;
}

.restaurant-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-dark);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.restaurant-location i {
    color: var(--teal-primary);
    font-size: 1.1rem;
}

.restaurant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: linear-gradient(135deg, var(--cream-bg), #f5f0e1);
    color: var(--teal-dark);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 109, 119, 0.1);
}



.specialty-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, transparent, rgba(255, 248, 220, 0.3));
}

.specialty-content h3 {
    color: var(--teal-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
}

.specialty-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--teal-primary), var(--orange-primary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.specialty-item:hover .specialty-content h3::after {
    width: 80px;
}

.specialty-content p {
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .food-card,
    .restaurant-card,
    .specialty-card,
    .food-detail-card,
    .card {
        border-radius: 16px;
    }
    
    .food-content,
    .restaurant-content,
    .specialty-content,
    .food-detail-content,
    .card-content {
        padding: 20px;
    }
    
    .food-title,
    .restaurant-content h3,
    .specialty-title,
    .food-detail-content h3,
    .card-content h3 {
        font-size: 1.2rem;
    }
    
    .specialty-item {
        flex-direction: column;
        gap: 0;
    }
    
    .specialty-image {
        flex: 0 0 ;
        min-height: 250px;
    }
    
    .food-actions,
    .restaurant-actions,
    .food-detail-actions,
    .specialty-actions {
        flex-direction: column;
    }
    
    .action-btn,
    .food-action-btn,
    .view-recipe-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .food-content,
    .restaurant-content,
    .specialty-content,
    .food-detail-content,
    .card-content {
        padding: 16px;
    }
    
    .food-title,
    .restaurant-content h3,
    .specialty-title,
    .food-detail-content h3,
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    .specialty-content h3 {
        font-size: 1.5rem;
    }
    
    .specialty-content {
        padding: 20px;
    }
}
/* Modern Card Special Styling - Completely New Design */
.card-special {
    background: linear-gradient(135deg, #ffffff 0%, #fef7e6 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(255, 127, 62, 0.15),
        0 0 0 1px rgba(255, 127, 62, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: row;
    position: relative;
    margin-bottom: 40px;
    min-height: 320px;
}

.card-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 127, 62, 0.03) 0%, 
        rgba(0, 109, 119, 0.03) 50%, 
        rgba(255, 248, 220, 0.03) 100%);
    z-index: 1;
}

.card-special .image-container {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.card-special .image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 127, 62, 0.1) 0%, 
        transparent 50%);
    z-index: 2;
}

.card-special img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    position: absolute;
    top: 0;
    left: 0;
}

.card-special .card-content {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}
/* Header with badge */
.card-special .card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}
.card-special .featured-badge {
    background: linear-gradient(135deg, var(--food-primary), var(--orange-primary));
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 127, 62, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-special .featured-badge i {
    font-size: 0.9rem;
}
/* Title styling */
.card-special .card-content h3 {
    font-size: 2.2rem;
    margin: 0 0 15px 0;
    color: var(--teal-dark);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--teal-dark), var(--food-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.card-special .card-content h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--food-primary), var(--teal-primary));
    margin-top: 12px;
    border-radius: 2px;
    transition: width 0.4s ease;
}
/* Description */
.card-special .card-content p {
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.1rem;
    opacity: 0.9;
    flex-grow: 1;
    font-weight: 500;
}
/* Enhanced meta information */
.card-special .food-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 0;
}
.card-special .meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--teal-dark);
    font-weight: 600;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border-left: 3px solid var(--food-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card-special .meta-item:hover {
    background: rgba(255, 127, 62, 0.1);
    transform: translateX(5px);
}

.card-special .meta-item i {
    color: var(--food-primary);
    width: 20px;
    font-size: 1.2rem;
    background: rgba(255, 127, 62, 0.1);
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.card-special .meta-item:hover i {
    background: var(--food-primary);
    color: white;
    transform: scale(1.1);
}
/* Action buttons */
.card-special .card-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}
.card-special .action-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    flex: 1;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.card-special .action-btn.primary {
    background: linear-gradient(135deg, var(--food-primary), var(--food-dark));
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(255, 127, 62, 0.3);
}
.card-special .action-btn.secondary {
    background: transparent;
    color: var(--teal-primary);
    border: 2px solid var(--teal-primary);
    backdrop-filter: blur(10px);
}
.card-special .action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.card-special .action-btn.primary:hover {
    background: linear-gradient(135deg, var(--food-dark), var(--food-primary));
    box-shadow: 0 8px 25px rgba(255, 127, 62, 0.4);
}
.card-special .action-btn.secondary:hover {
    background: var(--teal-primary);
    color: white;
}
/* Hover effects */
.card-special:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 20px 60px rgba(255, 127, 62, 0.2),
        0 0 0 1px rgba(255, 127, 62, 0.2);
}
.card-special:hover img {
    transform: scale(1.1);
}
.card-special:hover .card-content h3::after {
    width: 100px;
}
/* Floating animation */
@keyframes floatSpecial {
    0%, 100% { transform: translateY(0) scale(1.01); }
    50% { transform: translateY(-5px) scale(1.02); }
}
.card-special {
    animation: floatSpecial 6s ease-in-out infinite;
}
/* Responsive design */
@media (max-width: 1024px) {
    .card-special {
        flex-direction: column;
        min-height: auto;
    }
    
    .card-special .image-container {
        flex: 0 0 300px;
        min-height: 300px;
    }
    
    .card-special .card-content {
        padding: 30px 25px;
    }
    
    .card-special .card-content h3 {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .card-special {
        margin-bottom: 30px;
        border-radius: 20px;
    }
    .card-special .image-container {
        flex: 0 0 250px;
        min-height: 250px;
    }
    .card-special .card-content {
        padding: 25px 20px;
    }
    .card-special .card-content h3 {
        font-size: 1.8rem;
    }
    .card-special .food-meta {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .card-special .card-actions {
        flex-direction: column;
    }
    .card-special .featured-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }
}
@media (max-width: 480px) {
    .card-special {
        border-radius: 18px;
        margin-bottom: 25px;
    }
    .card-special .image-container {
        flex: 0 0 220px;
        min-height: 220px;
    }
    .card-special .card-content {
        padding: 20px 18px;
    }
     .card-special .card-content h3 {
        font-size: 1.6rem;
    }
    .card-special .card-content p {
        font-size: 1rem;
    }
    .card-special .meta-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
     .card-special .action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
main {
    padding-bottom: 0;
}

.page-content {
    margin-bottom: 0;
}
/* Remove or fix these conflicting rules */
.category-section {
    display: block !important; /* Remove !important if possible */
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Remove this rule entirely */
.category-section.active {
    display: block !important;
}