:root {
    --primary-color: #F4A4A3;
    --primary-dark: #e88a89;
    --secondary-color: #2c3e50;
    --accent-color: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header — uses index.min.css */

/* Banner */
.banner-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center center;
    margin-top: 76px;
}

/* Content */
.content-wrapper {
    background: white;
    margin: -40px auto 0;
    max-width: 1200px;
    border-radius: 24px 24px 0 0;
    position: relative;
    padding: 40px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

/* Blog Title */
.content-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-meta i {
    color: var(--primary-color);
    font-size: 16px;
}

.category-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

/* Intro Text */
.intro-text {
    margin-bottom: 40px;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

.intro-section {
    margin-bottom: 40px;
}

.intro-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 20px;
}

.section-header i {
    font-size: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Horizontal Scrollable Tiles */
.tiles-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.tiles-container::-webkit-scrollbar {
    height: 8px;
}

.tiles-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.tiles-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.food-tile {
    min-width: 180px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.food-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.food-tile-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 8px;
}

.food-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.food-tile-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Diet Charts Carousel */
.diet-charts-section {
    margin: 40px 0;
}

.diet-carousel {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.diet-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.diet-chart-card {
    min-width: 100%;
    background: #fff9f0;
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 30px;
    margin: 0 10px;
}

.diet-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.diet-chart-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.diet-chart-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.chart-counter {
    background: #fed7aa;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.meal-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: start;
}

.meal-time {
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(251, 146, 60, 0.2);
}

.meal-details {
    flex: 1;
}

.meal-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.meal-items {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fed7aa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fb923c;
    width: 24px;
    border-radius: 4px;
}

/* Modal for Food Details */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.food-item {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
}

.food-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.food-item-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Exercise Tiles - Horizontal Scroll */
.exercise-tiles-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.exercise-tiles-container::-webkit-scrollbar {
    height: 8px;
}

.exercise-tiles-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.exercise-tiles-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.exercise-tile {
    min-width: 150px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.exercise-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.exercise-tile-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exercise-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exercise-tile-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Caution Box */
.caution-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.caution-box p {
    color: #991b1b;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Routine Section */
.routine-section {
    margin: 40px 0;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.routine-section .section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
    text-align: center;
}

.routine-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.routine-time-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.routine-time-block h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 16px;
}

.routine-time-block p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Cultural Tips Section */
.cultural-tips-section {
    margin: 40px 0;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe9e0 100%);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.cultural-tips-section .section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
    text-align: center;
}

.cultural-tips-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.cultural-tips-content p {
    margin-bottom: 16px;
}

.cultural-tips-content h4 {
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 18px;
}

/* Nutrition Guide Grid */
.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.nutrition-tile {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nutrition-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nutrition-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
}

.nutrition-tile h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Pregnancy 101 Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.topic-tile {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.topic-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.topic-tile-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topic-tile-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Topic Detail Modal */
.topic-detail-section {
    margin-bottom: 20px;
}

.topic-detail-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-detail-section p,
.topic-detail-section ul {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.topic-detail-section ul {
    list-style: none;
    padding-left: 0;
}

.topic-detail-section li {
    padding: 8px 12px;
    background: #f9fafb;
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    margin-bottom: 8px;
}

.safe-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.warning-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.danger-badge {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Safe/Unsafe Section */
.safe-unsafe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.safe-unsafe-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.safe-unsafe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.safe-unsafe-card::after {
    content: 'Click to see all';
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.safe-unsafe-card:hover::after {
    opacity: 1;
}

.more-items {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.more-items:hover {
    color: var(--primary-dark);
}

.safe-unsafe-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.safe-list, .unsafe-list {
    margin-top: 12px;
}

.safe-item {
    padding: 12px;
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
    border-radius: 8px;
    margin-bottom: 8px;
}

.unsafe-item {
    padding: 12px;
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    margin-bottom: 8px;
}

.item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.item-detail {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* App CTA */
.app-cta-section {
    background: linear-gradient(135deg, var(--text-dark) 0%, #34495e 100%);
    color: white;
    padding: 60px 30px;
    margin: 60px 0;
    text-align: center;
    border-radius: 20px;
}

.app-cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.app-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.app-download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-android img, .btn-ios img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.btn-android:hover img, .btn-ios:hover img {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.footer-brand p {
    color: #ccc;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

/* Loading */
.loading {
    text-align: center;
    padding: 100px 20px;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .banner-image {
        height: 320px;
    }

    .content-wrapper h1 {
        font-size: 1.875rem;
        margin-top: 20px;
        margin-bottom: 16px;
    }

    .blog-meta {
        gap: 12px;
        font-size: 13px;
        margin-bottom: 24px;
    }

    .category-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .tiles-container {
        gap: 12px;
    }

    .food-tile {
        min-width: 140px;
    }

    .exercise-tiles-container {
        gap: 12px;
    }

    .exercise-tile {
        min-width: 130px;
    }

    .routine-content {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .food-grid {
        gap: 16px;
    }

    .nutrition-tile {
        padding: 20px;
    }

    .nutrition-icon {
        width: 48px;
        height: 48px;
    }

    .nutrition-tile h3 {
        font-size: 14px;
    }

    .diet-chart-card {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .app-cta-content h2 {
        font-size: 1.5rem;
    }
}
