/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    overflow-wrap: break-word; /* Wrap long words */
    word-wrap: break-word; /* Old property support */
    word-break: break-word; /* Break words if necessary */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Enhanced Container Spacing */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #feca57;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
    margin-top: 80px; /* Consistent header spacing for all pages */
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.section-title {
    color: #2d3436;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
}

/* Slider */
.featured-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .slider-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 250px;
    }
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slider-item {
    min-width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: end;
}

.slider-content {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    width: 100%;
}

.slider-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.slider-content p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.9);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff6b6b;
}

/* Recipe Section */
.recipes-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: white;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ff6b6b;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    display: none;
}

.loading-spinner.show {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Recipe Detail Page - Enhanced Styles */

/* Recipe Header Styles */
.recipe-header {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.recipe-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    gap: 0;
}

.recipe-image-section {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

.recipe-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: brightness(0.9);
}

.recipe-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #ff6b6b;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.recipe-info-section {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recipe-meta-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.recipe-cuisine {
    background: #00b894;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-difficulty {
    background: #e17055;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-heading {
    margin-bottom: 1rem;
    color: #2d3436;
    line-height: 1.2;
    font-size: 2.2rem;
}

.recipe-short-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.recipe-key-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    min-width: 120px;
}

.metric-item i {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.metric-content {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.metric-content strong {
    display: block;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.recipe-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,107,0.2);
}

.recipe-rating {
    margin-top: auto;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.stars i {
    color: #ffd700;
    font-size: 1.2rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Recipe Content Sections */
.recipe-description {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.recipe-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Enhanced Ingredients Section */
.ingredients-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.ingredients-section h2 {
    color: #2d3436;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ingredients-section h2::before {
    content: "🛒";
    font-size: 1.5rem;
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.ingredient-item:hover {
    background: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ingredient-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #00b894);
    border-radius: 2px 0 0 2px;
}

.ingredient-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid white;
}

.ingredient-text {
    flex: 1;
}

.ingredient-measure {
    font-weight: 700;
    color: #ff6b6b;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.ingredient-name {
    color: #333;
    font-weight: 500;
    display: block;
}

.ingredient-check {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ingredient-check:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.ingredient-check.checked {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.ingredient-check i {
    font-size: 0.9rem;
}

/* Enhanced Instructions Section */
.instructions-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.instructions-section h2 {
    color: #2d3436;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.instructions-section h2::before {
    content: "👨‍🍳";
    font-size: 1.5rem;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instruction-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 6px solid #ff6b6b;
    transition: all 0.3s ease;
    position: relative;
    counter-increment: step-counter;
}

.instruction-item:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left-color: #00b894;
}

.instruction-item::before {
    content: counter(step-counter);
    position: absolute;
    top: -15px;
    left: -20px;
    background: linear-gradient(135deg, #ff6b6b, #00b894);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px solid white;
}

.instruction-content {
    flex: 1;
    padding-top: 1rem;
}

.instruction-content h3 {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.instruction-content p {
    color: #444;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.instruction-check {
    align-self: flex-start;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.instruction-check:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.instruction-check.checked {
    background: #00b894;
    border-color: #00b894;
    color: white;
}

.instruction-check i {
    font-size: 1.1rem;
}

/* Nutrition Section Enhancement */
.nutrition-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.nutrition-section h2 {
    color: #2d3436;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.nutrition-section h2::before {
    content: "🍎";
    font-size: 1.5rem;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.nutrition-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.nutrition-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.nutrition-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nutrition-value {
    display: block;
    font-weight: 700;
    color: #2d3436;
    font-size: 1.4rem;
}

/* Enhanced Tips Section */
.tips-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff3f0, #ffffff);
    border-radius: 15px;
    border: 1px solid #ffe8e0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.tips-section h2 {
    color: #2d3436;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tips-section h2::before {
    content: "💡";
    font-size: 1.8rem;
}

.tips-list {
    display: grid;
    gap: 1rem;
}

.tips-list li {
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tips-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left-color: #00b894;
}

.tips-list li::before {
    content: "💡";
    font-size: 1.2rem;
    color: #ff6b6b;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.tips-list li:hover::before {
    color: #00b894;
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

.recipe-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.recipe-card:hover .recipe-image {
    transform: scale(1.05);
}

.recipe-info {
    padding: 1.5rem;
}

.recipe-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.recipe-category {
    color: #ff6b6b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recipe-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-btn:hover,
.page-btn.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 15px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    color: #2d3436;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #ee5a24;
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: #555;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    color: #ff6b6b;
    padding-left: 0.5rem;
}

.category-count {
    background: #f8f9fa;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Ad Widgets */
.ad-banner {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.ad-300x250 {
    height: 250px;
}

.ad-160x600 {
    height: 600px;
}

.ad-placeholder {
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Related Widget */
.related-list {
    list-style: none;
}

.related-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.related-item:hover::before {
    left: 100%;
}

.related-item:active {
    transform: translateX(3px) scale(0.98);
}

.related-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.related-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.related-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #333;
    transition: color 0.3s ease;
}

.related-item:hover .related-info h4 {
    color: #ff6b6b;
}

.related-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.newsletter-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 2rem;
}

.recipe-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.meta-item {
    text-align: center;
}

.meta-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.meta-value {
    font-weight: 600;
    color: #333;
}

.ingredients-section,
.instructions-section {
    margin-bottom: 2rem;
}

.ingredients-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.ingredient-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.instructions-list {
    list-style: none;
    counter-reset: step-counter;
}

.instruction-item {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
    padding-left: 4rem;
}

.instruction-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    background: #ff6b6b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #2d3436;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    clear: both; /* Ensure footer stays at bottom */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #feca57;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #feca57;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #636e72;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #feca57;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #636e72;
    color: #ccc;
}

/* About Page Styles */
.about-page {
    padding: 0; /* Remove extra padding since main-content handles it */
}

.about-page .hero-section {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 3rem 0;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.about-page .hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.about-page .hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    gap: 3rem;
}

.mission-section,
.team-section,
.values-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.mission-section h2,
.team-section h2,
.values-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* ================================================
   CATEGORIES PAGE STYLES
   ================================================ */

.categories-page .categories-header,
.categories-page .page-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 3rem 0;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.categories-page .categories-header h1,
.categories-page .page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: white;
}

.categories-page .categories-header p,
.categories-page .page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.categories-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-card .category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card .category-info {
    padding: 1.5rem;
}

.category-card .category-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.category-card .category-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-card .category-count {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ================================================
   LEGAL PAGES STYLES
   ================================================ */

.legal-page .legal-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: #333;
}

.legal-header .last-updated {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
}

.legal-body {
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    border-left: 4px solid #ff6b6b;
    padding-left: 1rem;
}

.legal-section h3 {
    color: #555;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.2rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    margin: 1rem 0;
}

/* Cookie table styling */
.cookie-table {
    margin: 1.5rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table a {
    color: #ff6b6b;
    text-decoration: none;
}

.cookie-table a:hover {
    text-decoration: underline;
}

/* ================================================
   RESPONSIVE DESIGN FOR ALL PAGES
   ================================================ */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .about-page .hero-section,
    .categories-page .categories-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .about-page .hero-section h1,
    .categories-page .categories-header h1 {
        font-size: 2rem;
    }
    
    .mission-section,
    .team-section,
    .values-section,
    .legal-page .legal-content {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 65px;
        padding: 1rem 0;
    }
    
    .page-header {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    section {
        margin-bottom: 2rem;
    }
}

/* Image lazy loading */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* Loading and Error States for Related Items */
.loading-item,
.error-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.mini-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Clickable Related Items */
.related-item {
    position: relative;
    overflow: hidden;
}

.related-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.related-item:hover::before {
    left: 100%;
}

.related-item:active {
    transform: translateX(3px) scale(0.98);
}

/* Widget Header with Refresh Button */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.refresh-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #f0f0f0;
    color: #ff6b6b;
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(180deg) scale(0.9);
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

/* ================================================
   PAGE LAYOUTS & CONSISTENCY
   ================================================ */

/* Main Content Layout for All Pages */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
    margin-top: 80px; /* Consistent spacing from fixed header */
}

/* Page-specific styling */
.contact-page,
.about-page,
.categories-page,
.legal-page {
    background: #fafafa;
    padding: 0; /* Remove any extra padding */
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb li {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #e55555;
}

/* ================================================
   CONTACT PAGE STYLES
   ================================================ */

/* Contact Content Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.contact-form-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    cursor: pointer;
}

/* Checkbox Styling */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6b6b;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Contact Info Section */
.contact-info-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.contact-info-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.contact-method:hover {
    background: #f8f9fa;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.contact-details p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.95rem;
}

/* Social Contact */
.social-contact {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.social-contact h3 {
    margin-bottom: 1rem;
    color: #333;
}

.social-links-large {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.social-link.facebook { color: #3b5998; }
.social-link.instagram { color: #e4405f; }
.social-link.twitter { color: #1da1f2; }
.social-link.pinterest { color: #bd081c; }
.social-link.youtube { color: #ff0000; }

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: currentColor;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.25rem;
    background: #fafafa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #ff6b6b;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 1.25rem;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section,
    .contact-info-section,
    .faq-section {
        padding: 1.5rem;
    }
    
    .social-links-large {
        flex-direction: column;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .main-content {
        margin-top: 70px; /* Adjusted for mobile header */
        padding: 1.5rem 0;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        color: white;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #ff6b6b, #ee5a24);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(255,255,255,0.15);
        padding-left: 2.5rem;
    }
}

/* ================================================
   CONSISTENT SECTION SPACING
   ================================================ */

/* Universal section spacing */
section {
    margin-bottom: 3rem;
}

section:last-child {
    margin-bottom: 0;
}

/* Page headers styling */
.page-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 3rem 0;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Content sections styling */
.content-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.content-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: center;
}

/* ================================================
   UNIVERSAL PAGE HEADER STYLES
   ================================================ */

/* Standard page header styling for all pages */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.page-header .header-content {
    display: block; /* Override flex from main header */
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: white;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 auto;
    line-height: 1.5;
}

/* Legal page header override for simpler styling */
.legal-page .page-header {
    background: white;
    color: #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.legal-page .page-header h1 {
    color: #333;
    border-left: 4px solid #ff6b6b;
    padding-left: 1rem;
    display: inline-block;
    text-align: left;
}

.legal-page .page-header p {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
    opacity: 1;
}

/* ================================================
   ABOUT PAGE ENHANCED STYLES
   ================================================ */

/* Page Header */
.about-page .page-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4rem 0;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
    position: relative;
    overflow: hidden;
}

.about-page .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.about-page .page-header .header-content {
    position: relative;
    z-index: 2;
}

.about-page .page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-page .page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About Content Grid */
.about-content .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-content .about-text h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
}

.about-content .about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-content .about-image {
    position: relative;
}

.about-content .about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.about-content .about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
}

/* Mission Section */
.mission-section {
    background: white;
    padding: 4rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 4rem;
}

.mission-section h2 {
    color: #333;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
}

.mission-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.mission-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mission-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #ff6b6b;
    background: white;
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.mission-item h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.4rem;
}

.mission-item p {
    color: #666;
    line-height: 1.7;
}

/* Features Section */
.features-section {
    background: white;
    padding: 4rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 4rem;
}

.features-section h2 {
    color: #333;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #ff6b6b;
    background: white;
}

.feature-item i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.feature-item p {
    color: #666;
    line-height: 1.7;
}

/* Team Section */
.team-section {
    background: white;
    padding: 4rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 4rem;
}

.team-section h2 {
    color: #333;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
}

.team-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #ff6b6b;
}

.team-member img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member-info {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.team-member h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
}

.team-member-role {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover::before {
    opacity: 1;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-page .page-header h1 {
        font-size: 2.2rem;
    }
    
    .about-page .page-header p {
        font-size: 1.1rem;
    }
    
    .about-content .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content .about-image {
        order: -1;
    }
    
    .about-content .about-image img {
        height: 300px;
    }
    
    .mission-section,
    .features-section,
    .team-section {
        padding: 3rem 1.5rem;
    }
    
    .mission-section h2,
    .features-section h2,
    .team-section h2 {
        font-size: 2rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-page .page-header {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }
    
    .about-page .page-header h1 {
        font-size: 1.8rem;
    }
    
    .mission-section,
    .features-section,
    .team-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .mission-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .team-member img {
        height: 250px;
    }
    
    .team-member-info {
        padding: 1.5rem;
    }
}
