/*
Theme Name: Nutrimum
Theme URI: https://nutrimum.uk
Author: Ghost
Author URI: https://nutrimum.uk
Description: Base custom theme for Nutrimum site.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: nutrimum
*/

/* --- Your HTML styles copied below --- */
:root {
    --primary-green: #3D553D; 
    --button-salmon: #E8A89A;
    --text-dark: #333333;
    --background-light: #fff;
    --header-bg: #edeae5;
}

body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.feed-container {
    background: #edeae5;
}


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

/* Navigation Bar */
.navbar { background-color: var(--header-bg); padding: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo img { height: 100px; margin-right: 10px; }
.navbar .nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.navbar .nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 16px; transition: color 0.3s ease; font-family: "Playfair Display", serif;}
.navbar .nav-links a:hover { color: var(--button-salmon); }

/* Hero Section */
.hero { position: relative; width: 100%; height: 600px; background-image: url('hero.png'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(232, 168, 154, 0.4); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; color: #fff; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 300; margin-bottom: 30px; line-height: 1.2; color: var(--primary-green); }
.hero .btn { display: inline-block; background-color: var(--button-salmon); color: #fff; padding: 15px 40px; border-radius: 5px; text-decoration: none; font-size: 18px; font-weight: 500; transition: background-color 0.3s ease; }
.hero .btn:hover { background-color: #d19587; }

h1,
h2,
h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.3;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.substack-article {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    /* font-family: Arial, sans-serif; */
    line-height: 1.7;
    color: #222;
}

.substack-article h1,
.substack-article h2,
.substack-article h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.3;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.substack-article h3 {
    margin: auto;
}

.substack-article .meta {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2em;
}

.substack-article .content p {
    margin-bottom: 1em;
    font-size: 1em;
}

.substack-article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.substack-article figure {
    margin: 0;
}

.substack-article a {
    color: #E8A89A;
    /* text-decoration: none; */
}

.substack-article a:hover {
    text-decoration: underline;
}

.substack-article .captioned-image-container {
    margin-bottom: 2em;
}

/* --------- 

.rss-feed-container {
    padding: 80px 20px;
    background-color: #edeae5;
    text-align: center;
}

.rss-feed-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: #3D553D;
    margin-bottom: 5px;
}

.rss-feed-container .subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    color: #333;
    margin-bottom: 60px;
    font-weight: 500;
}

.feed-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #fff;
    overflow: hidden;
    border: 1px solid #DCDCDC;
    text-align: left;
    display: flex;
    flex-direction: column;
    border-radius: 0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card .content {
    padding: 20px;
    flex-grow: 1;
    text-align: center;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #3D553D;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card p {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card .meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card .read-more {
    display: inline-block;
    background-color: #E8A89A;
    color: #fff;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 12px 12px;
    margin-top: auto; 
    transition: background-color 0.3s ease;
}

.card .read-more:hover {
    background-color: #d19587;
}

.related-posts {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 20px;
}

.related-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.related-card {
    background: #fafafa;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.related-card a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.related-card a:hover {
    text-decoration: underline;
}
*/

footer {
    background-color: #E8A89A;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 30px;
    box-sizing: border-box;
}

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

footer p {
    margin: 0 0 10px;
    font-size: 16px;
}

footer p:last-child {
    margin-bottom: 0;
}

footer span {
    font-weight: bold;
}
/*
.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.related-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.related-container .related-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1 1 250px;
    min-width: 220px;
    padding: 15px;
}

.related-container .related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.related-container .related-card a {
    text-decoration: none;
    color: #fff; 
    font-weight: 500;
}

.related-container .related-card a:hover {
    text-decoration: underline;
}

/* Related Posts Container */
.related-posts {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.related-posts h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Related Posts Cards Grid */
.related-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Individual Card */
.related-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Card Image */
.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Card Content */
.related-card .content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: #111;
}

.related-card p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
    margin: 0;
}

.related-card .meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: auto;
}

/* Read More Button */
.related-card .read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #E8A89A; /* your pink color */
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background 0.3s ease;
}

.related-card .read-more:hover {
    background: #E8A89A;
}

/* Responsive */
@media (max-width: 980px) {
    .related-card {
        width: 45%;
    }
}

@media (max-width: 600px) {
    .related-card {
        width: 100%;
    }
}


.rss-feed-container {
    width: 100%;
    padding: 40px 20px;
    background-color: #edeae5;
}

.rss-feed-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: #3D553D;
    text-align: center;
    margin-bottom: 40px;
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.card {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal halves */
    overflow: hidden;
}

.card:nth-child(even) {
    direction: rtl; /* reverses visual order WITHOUT flipping text */
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.card .content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* TRUE vertical centering */
    gap: 12px;
    color: #333;
    background-image: url('flora.jpg');
    background-size: contain;
    background-position: 150px -151px;
    background-repeat: no-repeat;
}


.content h3 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 3rem;
  margin: 0;
}

.content p {
    font-size: 1.2rem;
    font-weight: 200;
    margin: 0;
}

.read-more {
    /* display: inline-block; */
    background-color: #E8A89A;
    color: #fff;
    text-align: center;
    font-weight: 100;
    width: 100px;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #d19587;
}

.meta {
    font-size: .8rem;
}
.feed-container .content p {
    margin: 50px 0;
}

.welcome-container {
    text-align: center;
    /* max-width: 1200px; */
    margin: 50px auto;
    padding: 80px;
    background: white;
}

.welcome-container p {
    font-size: 1.2rem;
}

h1 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 4rem;
  margin: 0;
}

.title {
    margin: 50px 0;
    text-align: center;
    padding: 30px;
    font-size: 4rem;
    text-decoration: underline;
}

.instagram-container {
    background: #edeae5;
    padding: 20px 80px 80px 80px;
    /* color: #E8A89A; */
    text-decoration: underline;
        margin-top: 40px;
}
.instagram-container .container {
        max-width: 1200px;
    margin: auto;
    margin-top: 40px;
}
.hero-text h3 {
    margin-bottom: 0; position: relative; top: 60px;
}
@media (max-width: 900px) {
    .card {
        grid-template-columns: 1fr;
        direction: ltr; /* reset so order matches markup */
    }

    .card .content {
        text-align: center;
        padding: 40px 20px;
    }

    .card img {
        height: 300px;
        aspect-ratio: auto;
    }

    h1 {
        font-size: 2.5rem;
    }
    .content h3 {
        font-size: 2rem;
    }

    .content p {
        font-size: 1rem;
    }
    .feed-container .content p {
        margin: 20px 0;
    }
    .card .read-more {
        margin: 20px auto 0;
    }
    .welcome-container {
        padding: 40px;
    }
    .welcome-container p {
        font-size: 1.1rem;
    }
    .title {
        margin: 20px 0;
        text-align: center;
        padding: 30px;
        font-size: 2rem;
    }
    .instagram-container {
        padding: 20px;
        margin-top: 0px;
    }
    .hero .title {
        font-size: 3rem !important;
        margin: 0;
        padding: 0;
        text-shadow: none;
    }
    .hero-text p,
    .hero-text h3 {
        font-size: 2rem;
    }
    .hero-text h3 {
        top: 0px;
    }
    #hero {
        display: none;
    }
    .navbar {
        top: 0px!important;
        position: relative!important;
    }
}

.related {
    background: #edeae5;
    margin: 30px auto;
    padding: 50px 0 100px 0;
}

.substack-article h1,
.substack-article h2,
.substack-article h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.3;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.substack-article .content ul li p,
.substack-article .content ol li p {
    margin: 0;
}

/* Grid wrapper */
.substack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
    .substack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.2rem;
    }
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
    .substack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card container */
.substack-card {
    background: #ffffff;
    border-radius: 0.2rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%; /* allows equal-height cards in the grid */
}

/* Top image */
.substack-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Content section */
.substack-card .content {
    padding: 1.25rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1; /* fills remaining card height */
}

/* Title */
.substack-card h3 {
    font-size: 1.5rem;
    line-height: 1.35;
    margin: 0 0 0.5rem 0; /* spacing below heading */
    font-weight: 600;
}

/* Description: vertically center in remaining space */
.substack-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    flex: 1; /* take all remaining space */
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* optional horizontal centering */
    margin: 0;
}

/* Meta text */
.substack-card .meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.5rem 0;
}

/* Read More button */
.substack-card .read-more {
    margin: 10px auto;
}

.substack-card .read-more:hover {
    background: #d7ada4;
}



.site-footer {
    width: 100%;
    background-color: #E8A89A;
    overflow: hidden; /* ensures letters don’t make footer taller */
    height: 16rem; /* fixed footer height */
    position: relative;
}

.footer-text {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    color: #ffffff;
    font-size: 28rem; /* very large text */
    line-height: 1;
    position: absolute; /* position to allow cropping */
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%); /* center text horizontally & vertically */
    white-space: nowrap; /* prevents wrapping */
    text-shadow: #111;
}
footer .container {
    text-align: center;
}


.bar-one {
    width: 100%;
    background: #edeae5;
    height: 2rem;
    margin-top: 2rem;
}

.bar-one:nth-child(3+4) {
    width: 100%;
    background: #fff;
    height: 2rem;
    margin-top: 3rem;
}

.n {
    margin-top: 0%;
}