/* Article Page Styles */
.article-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #2c3e50;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.article-inline-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin: 25px 0;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content .lead {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    border-left: 4px solid #2ecc71;
    padding-left: 20px;
    margin-bottom: 30px;
}

.article-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 18px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 8px;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #2ecc71;
    border-radius: 2px;
}

.article-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #34495e;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Info Boxes */
.info-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    align-items: flex-start;
}

.info-box.green {
    background-color: #e8f5e9;
    border-left: 4px solid #2ecc71;
}

.info-box.orange {
    background-color: #fff3e0;
    border-left: 4px solid #e67e22;
}

.info-box.blue {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.info-box i {
    font-size: 1.5rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-box.green i {
    color: #2ecc71;
}

.info-box.orange i {
    color: #e67e22;
}

.info-box.blue i {
    color: #2196f3;
}

.info-box p {
    margin: 5px 0 0 0 !important;
    font-size: 0.95rem;
}

/* Nutrient Table */
.nutrient-table {
    margin: 25px 0;
    overflow-x: auto;
}

.nutrient-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nutrient-table th {
    background-color: #2ecc71;
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
}

.nutrient-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
}

.nutrient-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.nutrient-table tr:hover {
    background-color: #e8f5e9;
}

/* Calorie Box */
.calorie-highlight {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
}

.calorie-highlight .big-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2ecc71;
    font-family: 'Poppins', sans-serif;
}

.calorie-highlight .label {
    font-size: 1.1rem;
    color: #666;
    margin-top: 5px;
}

/* Related Articles */
.related-articles {
    margin-top: 50px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
}

.related-articles h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
    color: #2c3e50;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 8px;
}

.related-articles a {
    color: #2ecc71;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-articles a:hover {
    color: #27ae60;
    padding-left: 5px;
}

/* Sidebar Popular List */
.popular-list {
    list-style: none;
    padding: 0;
}

.popular-list li {
    margin-bottom: 15px;
}

.popular-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.popular-list a:hover {
    color: #2ecc71;
}

.popular-list img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumbs a {
    color: #2ecc71;
}

.breadcrumbs a:hover {
    color: #27ae60;
}

/* Calculator styles */
.calc-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e4e8;
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e1e4e8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.calc-btn {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.result-box {
    margin-top: 30px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    display: none;
}

.result-box.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Diet cards */
.diet-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e4e8;
    transition: all 0.3s;
}

.diet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.diet-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.diet-card-content {
    padding: 25px;
}

.diet-card-content h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    color: #2c3e50;
}

.diet-card-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.read-btn {
    display: inline-block;
    background: #2ecc71;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.read-btn:hover {
    background: #27ae60;
    color: white;
}

/* Article list page */
.articles-list-page .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-hero-img {
        height: 250px;
    }

    .calc-form {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
}