/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: Show elements if JavaScript is disabled */
.no-js .scroll-animate,
.no-js .scroll-scale,
.no-js .scroll-slide-left,
.no-js .scroll-slide-right,
.no-js .scroll-fade {
    opacity: 1;
    transform: none;
}

.scroll-animate-delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate-delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate-delay-3 {
    transition-delay: 0.3s;
}

.scroll-animate-delay-4 {
    transition-delay: 0.4s;
}

.scroll-animate-delay-5 {
    transition-delay: 0.5s;
}

.scroll-animate-delay-6 {
    transition-delay: 0.6s;
}

.scroll-animate-delay-7 {
    transition-delay: 0.7s;
}

.scroll-animate-delay-8 {
    transition-delay: 0.8s;
}

/* Scale animation for cards */
.scroll-scale {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-scale.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Slide from left animation */
.scroll-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-slide-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right animation */
.scroll-slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in animation */
.scroll-fade {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade.animate-in {
    opacity: 1;
}

:root {
    /* Deep ocean-inspired color palette */
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #0ea5e9;
    --accent-hover: #0284c7;
    --accent-light: #38bdf8;
    
    /* Background colors */
    --background-light: #fefefe;
    --background-dark: #0f172a;
    --background-ocean: #f0f9ff;
    --background-deep: #1e293b;
    --background-warm: #fef7f0;
    --background-stories: #e0f2fe;
    
    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-light: #ffffff;
    --text-muted: #64748b;
    
    /* Border and shadow */
    --border-color: #e2e8f0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 8px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(243, 244, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: #1e40af;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e40af;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* All navigation items have same styling */
.nav-list a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: #1e40af;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e40af;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #1f2937;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #1e40af;
    color: white;
}



/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: var(--text-light);
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.text-accent {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.highlight-icon {
    font-size: 1.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--text-light);
}

.scroll-text {
    display: block;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--text-light);
    margin: 0 auto;
    position: relative;
    animation: scrollBounce 2s infinite;
    opacity: 0.7;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Sections */
section {
    padding: var(--spacing-xxxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About Section */
.about-section {
    background: var(--background-warm);
    padding: var(--spacing-xxl) 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

.about-intro {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

.about-intro .section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.about-intro .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.about-intro .section-subtitle {
    font-size: 1.125rem;
    margin: 0 auto;
    max-width: 600px;
}

.story-timeline {
    display: grid;
    gap: var(--spacing-xl);
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.timeline-marker {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    font-size: 0.8rem;
    min-width: 140px;
    white-space: nowrap;
    box-shadow: var(--shadow-light);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.meaning-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.meaning-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.meaning-card p:last-child {
    margin-bottom: 0;
}

.link-accent {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.link-accent:hover {
    text-decoration: underline;
}

.meaning-card {
    background: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Journey Section */
.journey-section {
    background: var(--background-light);
    padding: var(--spacing-xxl) 0;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.journey-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.journey-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.journey-card:hover::before {
    transform: scaleX(1);
}

.journey-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.journey-card:hover .journey-card-image img {
    transform: scale(1.05);
}

.journey-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.journey-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.journey-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    flex: 1;
}

.card-arrow {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    align-self: flex-end;
}

.journey-card:hover .card-arrow {
    transform: translateX(3px);
}

/* Resources Section */
.resources-section {
    background: var(--background-ocean);
    padding: var(--spacing-xxl) 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.resource-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.resource-card:hover .resource-card-image img {
    transform: scale(1.05);
}

.resource-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.resource-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    flex: 1;
}

.resource-card .card-arrow {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    align-self: flex-end;
}

.resource-card:hover .card-arrow {
    transform: translateX(3px);
}

/* Contact Section */
.contact-section {
    background: var(--background-dark);
    text-align: center;
}

.contact-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--accent-color);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background-light);
    margin: 5% auto;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-heavy);
}

.close-modal {
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: var(--spacing-md);
    text-align: left;
    font-family: var(--font-serif);
}

.modal-content p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.email-input input {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.subscribe-btn {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background: #c19b2e;
}

/* Success Modal Button Styling */
.close-success-modal {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: var(--spacing-md);
    width: 100%;
}

.close-success-modal:hover {
    background: #c19b2e;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header mobile styles */
    .header-content {
        padding: 0.25rem 0.5rem;
    }
    
    .nav-list {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .nav-list a {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .dropdown-menu {
        min-width: 150px;
        font-size: 0.875rem;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .nav {
        padding: var(--spacing-md) 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section {
        min-height: 40vh !important;
        height: 40vh !important;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .hero-background {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        overflow: hidden;
    }
    .hero-background img {
        height: 100% !important;
        width: auto !important;
        min-width: 100%;
        object-fit: cover !important;
        object-position: center !important;
        display: block;
    }
    .hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        text-align: center;
        padding: 1.5rem 0.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .meaning-business-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .business-card img {
        max-width: 250px;
    }
    
    .about-intro .section-header {
        text-align: center;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .timeline-marker {
        align-self: start;
        justify-self: start;
    }
    
    .journey-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-group {
        flex-direction: column;
    }
    
    .hero-actions {
        position: static;
        transform: none;
        flex-direction: column;
        gap: var(--spacing-md);
        margin-top: var(--spacing-xl);
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .stories-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .stories-actions, .stories-preview {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Recipe grid mobile adjustments */
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .recipes-grid:has(.recipe-card:only-child),
    .recipes-grid:has(.recipe-card:nth-child(2):last-child) {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .recipe-card {
        max-width: 100%;
    }

    .recipe-image {
        height: 200px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .category-card h3 {
        font-size: 0.875rem;
    }

    /* Recipe detail mobile adjustments */
    .recipe-detail-hero {
        height: 50vh;
    }

    .recipe-title {
        font-size: 2.5rem;
    }

    .recipe-stats {
        gap: var(--spacing-md);
    }

    .recipe-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .recipe-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
        justify-content: center;
    }

    .related-recipes-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile adjustments for ingredients table */
    .ingredients-table {
        margin-bottom: var(--spacing-md);
    }

    .ingredients-header {
        padding: var(--spacing-sm);
    }

    .ingredient-group-title {
        font-size: 1rem;
    }

    .ingredient-row {
        grid-template-columns: 60px 80px 1fr;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    /* Header mobile styles for very small screens */
    .header-content {
        padding: 0.125rem 0.25rem;
    }
    
    .nav-list {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-list a {
        font-size: 0.75rem;
        padding: 0.125rem 0.25rem;
    }
    
    .dropdown-menu {
        min-width: 120px;
        font-size: 0.75rem;
    }
    
    .dropdown-menu a {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        min-height: 30vh !important;
        height: 30vh !important;
    }
    .hero-background img {
        height: 100% !important;
        width: auto !important;
        min-width: 100%;
        object-fit: cover !important;
        object-position: center !important;
        display: block;
    }
    .hero-content {
        padding: 1rem 0.25rem;
    }
    
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Recipe Pages Styles */

/* Recipe Hero */
.recipe-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recipe-hero .hero-content {
    padding-top: 0;
}

.recipe-hero .hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

/* Search Section */
.search-section {
    background: var(--background-light);
    padding: var(--spacing-xxl) 0;
    border-bottom: 1px solid var(--border-color);
}

.search-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.search-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.search-input-group {
    display: flex;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group input {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-btn {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #c19b2e;
    transform: translateY(-2px);
}

.popular-ingredients {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.popular-ingredients span {
    color: var(--text-primary);
    font-weight: 500;
}

.ingredient-tag {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.ingredient-tag:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

/* Categories Section */
.categories-section {
    background: var(--background-dark);
    padding: var(--spacing-xl) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover,
.category-card.active {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Recipes Section */
.recipes-section {
    background: var(--background-light);
    padding: var(--spacing-xxl) 0;
}

.recipes-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.recipes-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.recipes-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: var(--spacing-lg);
    align-items: stretch;
    max-width: 100%;
    justify-content: center;
}

/* Responsive grid adjustments for fewer cards */
.recipes-grid:has(.recipe-card:only-child) {
    grid-template-columns: minmax(300px, 400px);
    justify-content: center;
}

.recipes-grid:has(.recipe-card:nth-child(2):last-child) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    justify-content: center;
}

.recipe-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.recipe-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.recipe-overlay {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-xs);
}

.recipe-time,
.recipe-difficulty {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.recipe-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.recipe-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.recipe-tags {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.tag {
    background: var(--background-dark);
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

.recipe-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}

.recipe-link:hover {
    color: #c19b2e;
}

/* Recipe Detail Styles */

/* Recipe Detail Hero */
.recipe-detail-hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Recipe detail hero background image - smart cropping */
.recipe-detail-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Mobile overrides for recipe detail hero - HIGH PRIORITY */
@media (max-width: 768px) {
    .recipe-detail-hero {
        height: 70vh !important;
        min-height: 500px !important;
        margin-top: 60px !important;
    }
    
    .recipe-detail-hero .hero-background img {
        height: 100% !important;
        width: 100% !important;
        max-height: none !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center 25% !important;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    }
}

@media (max-width: 480px) {
    .recipe-detail-hero {
        height: 60vh !important;
        min-height: 400px !important;
        margin-top: 60px !important;
    }
    
    .recipe-detail-hero .hero-background img {
        height: 100% !important;
        width: 100% !important;
        max-height: none !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center 20% !important;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    }
}

.recipe-detail-hero .hero-content {
    padding-top: 0;
}

.recipe-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.recipe-category,
.recipe-time,
.recipe-difficulty {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.recipe-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.recipe-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.recipe-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    color: var(--text-light);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-xs);
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Recipe Content Section */
.recipe-content-section {
    background: var(--background-light);
    padding: var(--spacing-xxl) 0;
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

/* Mobile layout for recipe content - stack columns */
@media (max-width: 768px) {
    .recipe-content-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
    }
    
    .recipe-content-section {
        padding: var(--spacing-lg) 0 !important;
    }
    
    /* Prevent horizontal scrolling */
    .recipe-content-section .container {
        max-width: 100% !important;
        padding-left: var(--spacing-md) !important;
        padding-right: var(--spacing-md) !important;
        overflow-x: hidden !important;
    }
    
    /* Ensure ingredients and instructions sections don't overflow */
    .ingredients-section,
    .instructions-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Adjust ingredient tables for mobile */
    .ingredients-table {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .ingredient-row {
        grid-template-columns: 60px 80px 1fr !important;
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        font-size: 0.9rem !important;
    }
}

.ingredients-section h2,
.instructions-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.ingredient-item {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.ingredient-item:last-child {
    border-bottom: none;
}

.ingredient-amount {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 80px;
    flex-shrink: 0;
}

.ingredient-name {
    color: var(--text-secondary);
    line-height: 1.4;
}

.cooking-tips {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--background-ocean);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-light);
}

.cooking-tips h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.cooking-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cooking-tips li {
    position: relative;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
    line-height: 1.5;
}

.cooking-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
}

.cooking-tips li:last-child {
    margin-bottom: 0;
}

.cooking-tips .tip-section-header {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-xs);
}

.cooking-tips .tip-section-header:first-child {
    margin-top: 0;
}

.cooking-tips .tip-section-spacer {
    height: var(--spacing-md);
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.cooking-tips .tip-section-spacer::before {
    display: none;
}

/* New three-column ingredients table */
.ingredients-table {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    background: var(--background-light);
    box-shadow: var(--shadow-light);
}

.ingredients-table:last-child {
    margin-bottom: 0;
}

.ingredients-header {
    background: var(--accent-color);
    color: var(--text-light);
    font-weight: 600;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.ingredient-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ingredient-row {
    display: grid;
    grid-template-columns: 80px 120px 1fr;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.ingredient-row:last-child {
    border-bottom: none;
}

.ingredient-row:nth-child(even) {
    background: var(--background-ocean);
}

.ingredient-qty {
    font-weight: 600;
    color: var(--text-primary);
}

.ingredient-measurement {
    color: var(--text-secondary);
    font-style: italic;
}

/* Instructions */
.instructions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.instruction-step {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-light);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Recipe Gallery */
.recipe-gallery-section {
    background: var(--background-dark);
    padding: var(--spacing-xxl) 0;
}

.recipe-gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xxl);
    color: var(--text-primary);
}

.recipe-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: var(--spacing-lg);
    justify-content: center;
    max-width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    aspect-ratio: 4/3;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background: var(--background-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item.portrait {
    aspect-ratio: 3/4;
    max-width: 300px;
}

.gallery-item.portrait img {
    object-position: top center;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--spacing-md);
    font-weight: 500;
}

/* Related Recipes */
.related-recipes-section {
    background: var(--background-light);
    padding: var(--spacing-xxl) 0;
}

.related-recipes-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xxl);
    color: var(--text-primary);
}

.related-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.related-recipe-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.related-recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-recipe-card:hover img {
    transform: scale(1.05);
}

.related-recipe-card h3 {
    padding: var(--spacing-md);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.related-recipe-card p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
    margin: 0;
}

/* Stories Section */
.stories-section {
    background: var(--background-stories);
    padding: var(--spacing-xxl) 0;
}

.stories-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.stories-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    height: 100%;
}

.reveal-section {
    background: var(--background-warm);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-light);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reveal-section .btn-primary {
    margin-bottom: 0;
    width: auto;
    min-width: 140px;
    align-self: flex-end;
}

.reveal-section p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    text-align: justify;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.reveal-btn {
    animation: revealPulse 3s infinite;
    position: relative;
    overflow: hidden;
}

@keyframes revealPulse {
    0% { 
        background: var(--accent-color);
        color: var(--text-light);
        transform: scale(1);
        box-shadow: var(--shadow-medium);
    }
    25% {
        background: var(--accent-color);
        color: var(--text-light);
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    }
    50% { 
        background: var(--background-warm);
        color: var(--accent-color);
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2);
        border: 2px solid var(--accent-color);
    }
    75% {
        background: var(--background-warm);
        color: var(--accent-color);
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
        border: 2px solid var(--accent-color);
    }
    100% { 
        background: var(--accent-color);
        color: var(--text-light);
        transform: scale(1);
        box-shadow: var(--shadow-medium);
    }
}

.stay-updated-section {
    background: var(--background-warm);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-light);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stay-updated-section button {
    width: auto;
    min-width: 140px;
    align-self: flex-end;
}

.stay-updated-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.stories-preview {
    display: flex;
    justify-content: center;
    height: 100%;
}

.story-preview-card {
    background: var(--background-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 380px;
    width: 100%;
    height: fit-content;
}

.story-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.story-preview-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.story-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-story-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.story-preview-content {
    padding: var(--spacing-lg);
}

.story-preview-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.story-preview-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.story-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.story-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Journey Stories Section */
.journey-stories-section {
    background: var(--background-stories);
    padding: var(--spacing-xxl) 0;
}

.journey-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 380px));
    gap: 20px;
    margin-top: var(--spacing-xxl);
    justify-content: center;
}

.journey-story-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.journey-story-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.25), 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
}

.story-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.journey-story-card:hover .story-card-image img {
    transform: scale(1.05);
}

.story-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.story-location {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.flag-box {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.flag-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
}

.location-text p {
    margin: 0;
    font-size: 14px;
    color: #718096;
}

.story-intro-container {
    flex-grow: 1;
    min-height: 80px;
    display: flex;
    align-items: flex-start;
}

.story-intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #4a5568;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.story-actions .btn-primary,
.story-actions .btn-secondary {
    padding: 8px 9px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.story-actions .btn-primary {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    border: none;
}

.story-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2c5282, #1a365d);
    transform: translateY(-1px);
}

.story-actions .btn-primary.new-story {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.story-actions .btn-primary.new-story:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.story-actions .btn-secondary {
    background: transparent;
    color: #3182ce;
    border: 1px solid #3182ce;
}

.story-actions .btn-secondary:hover {
    background: #3182ce;
    color: white;
    transform: translateY(-1px);
}

.new-story {
    animation: pulse 2s infinite;
}

.error-message {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .journey-stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
        gap: 20px;
    }
    
    .journey-story-card {
        max-width: 380px;
    }
    
    .story-actions {
        flex-direction: column;
    }
    
    .story-actions .btn-primary,
    .story-actions .btn-secondary {
        width: 100%;
    }
}

/* Back Navigation */
.back-navigation {
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    margin-top: 80px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.back-btn:hover {
    color: var(--accent-color);
}

.back-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* Recipe back button in header */
.recipe-back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    margin-right: var(--spacing-lg);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.recipe-back-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
}

.recipe-back-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.recipe-back-btn:hover svg {
    transform: translateX(-2px);
}

/* Recipe loading and error states */
.loading {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-recipes,
.error {
    text-align: center;
    padding: var(--spacing-xxl);
    background: var(--background-ocean);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

.no-recipes h3,
.error h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.no-recipes p,
.error p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.error h3 {
    color: #dc2626;
}

/* Recipe detail specific styles */
/* Ingredient group styling removed - now using table headers */

.ingredient-item {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.ingredient-item:last-child {
    border-bottom: none;
}

.ingredient-amount {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 80px;
    flex-shrink: 0;
}

.ingredient-name {
    color: var(--text-secondary);
    line-height: 1.4;
}

.instruction-step {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-light);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cooking-tips {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--background-ocean);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-light);
}

.cooking-tips h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.cooking-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cooking-tips li {
    position: relative;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
    line-height: 1.5;
}

.cooking-tips li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
}

.cooking-tips li:last-child {
    margin-bottom: 0;
}

/* Content Section Styles */
.content-section {
    padding: var(--spacing-xxl) 0;
    background: var(--background-light);
}

.content-grid {
    display: grid;
    gap: var(--spacing-xxl);
}

.content-text {
    width: 100%;
}

.story-section {
    margin-bottom: var(--spacing-xxl);
}

.story-section h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.story-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.story-content {
    margin-bottom: var(--spacing-xl);
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.story-content h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: var(--spacing-xl) 0 var(--spacing-lg) 0;
    font-weight: 600;
}

.challenge-list {
    list-style: none;
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-lg);
}

.challenge-list li {
    position: relative;
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.challenge-list li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: -var(--spacing-lg);
    font-size: 1.2rem;
}

/* Photo Gallery Styles */
.photo-gallery {
    margin: var(--spacing-xxl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Clean 2-column grid for mixed portrait/landscape photos */
.gallery-grid.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl) auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    background: var(--background-light);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.gallery-item.portrait {
    aspect-ratio: 3/4;
    max-width: 300px;
    margin: 0 auto;
    height: auto;
}

.gallery-item.landscape {
    aspect-ratio: 4/3;
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item.portrait img {
    object-position: top center;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive design for 2-column grid */
@media (max-width: 768px) {
    .gallery-grid.two-column {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .gallery-item.portrait {
        height: 400px;
    }
}

/* Certificate Gallery Styles */
.certificate-gallery {
    margin: var(--spacing-xxl) 0;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.certificate-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    background: var(--background-light);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.certificate-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.certificate-item:hover img {
    transform: scale(1.02);
}

/* Hero Image Section */
.hero-image-section {
    margin: var(--spacing-xxl) 0;
    text-align: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Navigation Section */
.navigation-section {
    padding: var(--spacing-xxl) 0;
    background: var(--background-ocean);
}

.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.nav-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.nav-card:hover::before {
    opacity: 1;
}

.nav-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    z-index: 2;
}

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

.nav-card:hover .nav-card-image img {
    transform: scale(1.1);
}

.nav-card-content {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.nav-card-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.nav-card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.nav-card .card-arrow {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.nav-card:hover .card-arrow {
    transform: translateX(5px);
}

/* Link Accent */
.link-accent {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-accent:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Responsive Design for Content */
@media (max-width: 768px) {
    .content-section {
        padding: var(--spacing-xl) 0;
    }
    
    .story-section h2 {
        font-size: 2rem;
    }
    
    .story-content h3 {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .navigation-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .gallery-item {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .story-section h2 {
        font-size: 1.8rem;
    }
    
    .story-content p {
        font-size: 1rem;
    }
    
    .gallery-item {
        max-width: 260px;
    }
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    background: transparent;
}

.back-home-btn:hover {
    color: var(--accent-color);
    background: rgba(14, 165, 233, 0.1);
    transform: translateX(-2px);
}

.back-home-btn svg {
    transition: transform 0.3s ease;
}

.back-home-btn:hover svg {
    transform: translateX(-2px);
}

.back-home-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .back-home-btn span {
        display: none;
    }
    
    .back-home-btn {
        padding: var(--spacing-sm);
    }
}

.website-link-container {
    margin-top: var(--spacing-sm);
}

.website-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.website-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* --- Fix for hero images on mobile --- */
@media (max-width: 768px) {
    .hero-background img {
        width: 100vw !important;
        height: 40vh !important;
        max-width: 100vw !important;
        max-height: 40vh !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block;
    }
    .hero-section {
        min-height: 40vh !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .hero-background img {
        width: 100vw !important;
        height: 30vh !important;
        max-width: 100vw !important;
        max-height: 30vh !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block;
    }
    .hero-section {
        min-height: 30vh !important;
        height: auto !important;
    }
}

/* Index page specific overrides for hero and stories section */
@media (max-width: 768px) {
    body.index-page .hero-section {
        min-height: 100vh !important;
        height: 100vh !important;
    }
    
    body.index-page .hero-background img {
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Stories section mobile improvements */
    body.index-page .stories-content {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg) !important;
    }
    
    body.index-page .stories-preview {
        order: 1;
    }
    
    body.index-page .stories-actions {
        order: 2;
        gap: var(--spacing-md) !important;
    }
    
    body.index-page .reveal-section {
        order: 1;
    }
    
    body.index-page .stay-updated-section {
        order: 2;
    }
    
    body.index-page .reveal-section,
    body.index-page .stay-updated-section {
        padding: var(--spacing-md) !important;
    }
    
    body.index-page .reveal-section p,
    body.index-page .stay-updated-section p {
        font-size: 1rem !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    body.index-page .story-preview-card {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    body.index-page .hero-section {
        min-height: 100vh !important;
        height: 100vh !important;
    }
    
    body.index-page .hero-background img {
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    body.index-page .stories-content {
        gap: var(--spacing-md) !important;
    }
    
    body.index-page .reveal-section,
    body.index-page .stay-updated-section {
        padding: var(--spacing-sm) !important;
    }
    
    body.index-page .reveal-section p,
    body.index-page .stay-updated-section p {
        font-size: 0.95rem !important;
    }
}

/* ---------- Lightbox Styling ---------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Lightbox Navigation */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 80px;
    cursor: pointer;
    font-size: 24px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    width: 60px;
}

#lightbox-prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

#lightbox-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 60px;
        font-size: 20px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

/* Linked Recipes Styles */
.linked-recipes {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.linked-recipes h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-serif);
}

.linked-recipes-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.linked-recipe-link {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--accent-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.linked-recipe-link:hover {
    background: #c19b2e;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.linked-recipe-link::after {
    content: '→';
    margin-left: var(--spacing-xs);
    font-weight: bold;
}

/* Linked Recipe Modal Styles */
#linkedRecipeModal .modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.linked-recipe-ingredients,
.linked-recipe-instructions {
    margin-bottom: var(--spacing-lg);
}

.linked-recipe-ingredients h3,
.linked-recipe-instructions h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-serif);
}

.linked-recipe-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.linked-recipe-actions .btn-primary,
.linked-recipe-actions .btn-secondary {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.linked-recipe-actions .btn-primary {
    background: var(--accent-color);
    color: var(--text-primary);
}

.linked-recipe-actions .btn-primary:hover {
    background: #c19b2e;
    transform: translateY(-1px);
}

.linked-recipe-actions .btn-secondary {
    background: var(--background-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.linked-recipe-actions .btn-secondary:hover {
    background: var(--text-secondary);
    color: var(--background-light);
}

@media (max-width: 768px) {
    .linked-recipe-actions {
        flex-direction: column;
    }
    
    .linked-recipes-list {
        flex-direction: column;
    }
    
    .linked-recipe-link {
        justify-content: space-between;
    }
}