* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img {
    width: 100%;
}
:root {
    --color-gray-light-1: #F5F5F5;
    --color-gray-dark-1: #DDD;
    --color-gray-dark-2: #AAA;
    --color-gray-dark-3: #999;
    --color-gray-dark-4: #555;
    --color-gray-dark-5: #333;
    --color-green-1: #6B8E23;
    --color-yellow: #FFD700;
    --color-red-1: #FF4500;
    --color-red-2: #B22222;
}
body {
    font-weight: 300;
    font-family: "Open Sans", sans-serif;
    color: #333;
    font-size: 14px;
}

/* HEADER ***************************************/
.header {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.header-logo {
    width: 60px;
    margin: 5px 0;
}
.org-name {
    align-self: center;
    margin-right: auto;
    margin-left: 10px;
    font-size: 24px;
    font-weight: 400;
    color: green;
}
.nav {
    display: flex;
    align-items: stretch;
}
.navbar {
    display: flex;
}
.navbar-item {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    cursor: pointer;
}
.navbar-item img {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    filter: opacity(.5);
}
.navbar-item span {
    text-transform: lowercase;
    font-weight: 500;
    color: #AAA;
    font-size: 13px;
}
.navbar-item:hover,
.navbar-item.activepage {
    background: #FFD700;
}
.navbar-item.activepage img {
    filter: brightness(0) opacity(1);
}
.navbar-item.activepage span {
    color: #333;
}

/* BREADCRUMB BAR ***************************************/
.breadcrumb-bar {
    width: 100%;
    background-color: #6B8E23;
}
.breadcrumb-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    color: #fff;
    justify-content: flex-end;
}
.breadcrumb-bar-inner h2 {
    font-size: 26px;
    font-weight: 300;
    margin-right: 10px;
}
.breadcrumb-chevron {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}
.breadcrumb-bar-inner span {
    font-size: 13px;
    font-weight: 300;
}

.breadcrumb-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* MAIN ***************************************/
main {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* RECIPE DETAIL ***************************************/
.recipe-detail {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

/* Recipe info card (left) */
.recipe-info-card {
    width: 220px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    padding: 16px;
}
.recipe-info-card h2 {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}
.recipe-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
}
.recipe-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}
.recipe-author span {
    font-size: 12px;
    color: #666;
}

/* meta list */
.recipe-meta {
    list-style: none;
    margin-bottom: 12px;
}
.recipe-meta li {
    display: flex;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px dotted #eee;
}
.recipe-meta li .meta-label {
    color: #888;
    width: 130px;
    flex-shrink: 0;
}
.recipe-meta li .meta-value {
    font-weight: 400;
    color: #333;
}
.recipe-description {
    font-size: 12px;
    color: #666;
    line-height: 1.7;
}

/* Recipe photo (right) */
.recipe-photo {
    flex: 1;
    overflow: hidden;
}
.recipe-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* INGREDIENTS + INSTRUCTIONS ***************************************/
.recipe-body {
    display: flex;
    gap: 40px;
    padding: 24px 0 30px;
    border-top: 1px solid #eee;
}
.ingredients {
    flex: 0 0 240px;
}
.instructions {
    flex: 1;
}
.ingredients h3,
.instructions h3 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 14px;
    color: #333;
}
.ingredients ul {
    list-style: none;
}
.ingredients ul li {
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}
.ingredients ul li strong {
    color: #6B8E23;
    font-weight: 600;
    margin-right: 4px;
}
.instructions ol {
    padding-left: 18px;
}
.instructions ol li {
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.8;
}

/* RATINGS BAR ***************************************/
.ratings-bar {
    width: 100%;
    background-color: #B22222;
}
.ratings-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ratings-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: #fff;
    font-size: 13px;
}
.ratings-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}
.ratings-tags ul {
    display: flex;
    list-style: none;
    gap: 0;
}
.ratings-tags ul li {
    color: #fff;
    font-size: 13px;
}
.ratings-tags ul li:not(:first-child)::before {
    content: " | ";
}
.ratings-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.ratings-stars img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}
.ratings-votes {
    background-color: #FF4500;
    padding: 12px 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #fff;
    flex-shrink: 0;
}
.ratings-votes-score {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}
.ratings-votes-count {
    font-size: 11px;
    color: #fff;
}

/* RECOMMENDATIONS ***************************************/
.recommendations {
    width: 100%;
    padding: 30px 0;
    background: #fafafa;
}
.recommendations-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.recommendations h2 {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 4px;
}
.recommendations-subtitle {
    font-size: 12px;
    color: #999;
    margin-bottom: 24px;
}
.rec-cards {
    display: flex;
    gap: 20px;
    width: 100%;
}
.rec-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e8e8e8;
}
.rec-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.rec-card-body {
    padding: 14px;
}
.rec-card-body h4 {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4px;
}
.rec-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
}
.rec-stars img {
    width: 14px;
    height: 14px;
    filter: brightness(0);
}
.rec-card-body p {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 12px;
}
.rec-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rec-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rec-author-info img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.rec-author-info span {
    font-size: 12px;
    color: #555;
}
.user-rating {
    background: #6B8E23;
    color: #fff;
    padding: 6px 12px;
    text-align: center;
}
.user-rating-score {
    font-size: 18px;
    font-weight: 600;
    display: block;
}
.user-rating-label {
    font-size: 10px;
    display: block;
}

/* FOOTER ***************************************/
footer {
    width: 100%;
    background: #3a3a3a;
    padding: 30px 0 0;
}
.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    align-items: flex-end;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-logo {
    width: 70px;
    height: 70px;
}
.footer-brand-name {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
}
.footer-contact {
    flex: 1;
    list-style: none;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 8px;
}
.footer-contact li img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    flex-shrink: 0;
}
.footer-social {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-top: 4px;
}
.footer-social img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}
.footer-bottom {
    border-top: 1px solid #555;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
}
.footer-bottom p {
    color: #666;
    font-size: 11px;
}