/* === CULTURE GRID === */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 20px;
    align-items: stretch;
}

/* === CARD BASE === */
.culture-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    border: 1px solid rgba(58,107,53,0.08);
    overflow: hidden;
}
/* === VARIETY CARD HOVER === */
body.varieties-grid .com-content-category-blog__item.blog-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12) !important;
    border: 1px solid #3a6b35 !important;
}

/* === CARD IMAGE === */
.culture-card .card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 1rem;
    box-sizing: border-box;
}

.culture-card .card-image img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

/* === CARD TITLE === */
.culture-card h3 {
    margin: 0 0 8px 0;
    padding: 0 20px;
    color: #3a6b35;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
}

/* === CARD TEXT === */
.culture-card p {
    margin: 0;
    padding: 0 20px 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    text-align: left;
    flex-grow: 1;
}

/* === HOVER === */
.culture-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
    border: 1px solid #3a6b35;
}

/* === INTRO === */
.intro-camellia {
    margin-bottom: 25px;
}

.intro-camellia h2 {
    color: #3a6b35;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.intro-camellia p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}
.culture-card p,
.culture-card h3 {
    text-align: left !important;
}
/* === PILLAR GRID === */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
    align-items: stretch;
}

/* === PILLAR CARD BASE === */
.pillar-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    border: 1px solid rgba(58,107,53,0.08);
    overflow: hidden;
}

/* === PILLAR CARD IMAGE === */
.pillar-card .card-image {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 1.5rem;
    box-sizing: border-box;
}

.pillar-card .card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* === PILLAR CARD TITLE === */
.pillar-card h3 {
    margin: 0 0 8px 0;
    padding: 0 24px;
    color: #3a6b35;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: left;
}

/* === PILLAR CARD TEXT === */
.pillar-card p {
    margin: 0;
    padding: 0 24px 24px;
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    text-align: left;
    flex-grow: 1;
}

/* === PILLAR HOVER === */
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
    border: 1px solid #3a6b35;
}

/* === RESPONSIVE - stack on mobile === */
@media (max-width: 768px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }
}
/* === RESPONSIVE - culture grid mobile === */
@media (max-width: 768px) {
    .culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .culture-grid {
        grid-template-columns: 1fr;
    }
}
.culture-card h3 {
    text-transform: none !important;
}
/* === WORLD & KNOWLEDGE GRID - 3 column layout === */
.world-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 20px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .world-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .world-grid {
        grid-template-columns: 1fr;
    }
}
/* Hide flyout arrows under Camellia Answers */
.item-481 .sub-arrow {
    display: none !important;
}
.variety-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.variety-image {
  flex: 0 0 300px;
}
.variety-image img {
  width: 100%;
  height: auto;
}
.variety-details {
  flex: 1;
}
/* === VARIETY THUMBNAIL GRID (Varieties & Species page only) === */
body.varieties-grid .com-content-category-blog__items.blog-items {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 768px) {
    body.varieties-grid .com-content-category-blog__items.blog-items {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    body.varieties-grid .com-content-category-blog__items.blog-items {
        grid-template-columns: 1fr !important;
    }
}

/* === SINGLE JOURNAL ARTICLE PAGES (Camellia Culture/Knowledge/World categories) === */
body.journal-single .com-content-category-blog__items.blog-items {
    display: block !important;
}

.com-content-category-blog__item.blog-item {
    position: relative;
}

.com-content-category-blog__item.blog-item .page-header a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
figure.left.item-image {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
    display: block !important;
}

figure.left.item-image img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
}
.com-content-category-blog__item .item-content h2 {
    font-size: 0.95rem;
    text-align: center;
    padding: 8px 10px;
    margin: 0;
    color: #3a6b35;
}

/* === VARIETIES PAGE INTRO === */
.varieties-intro {
    text-align: center;
    margin: 0 0 30px 0;
    padding: 20px 0;
    border-bottom: 2px solid #D4B483;
}

.varieties-intro h2 {
    color: #3A6B35;
    font-family: Merriweather, serif;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.varieties-intro p {
    color: #555;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}
/* === VARIETY CARD IMAGE ZOOM ON HOVER === */
body.varieties-grid .com-content-category-blog__item.blog-item:hover figure.left.item-image img {
    transform: scale(1.05);
    transition: transform 0.25s ease;
}

figure.left.item-image img {
    transition: transform 0.25s ease;
}

/* =====================================================
   NGCS HOME PAGE CSS - scoped to .ngcs-* only
   ===================================================== */

/* --- Hero ------------------------------------------ */
.ngcs-hero {
    padding: 50px 0 36px 0;
    border-bottom: 1px solid #E2E8E3;
    margin-bottom: 40px;
}

.ngcs-hero-title {
    font-size: 42px !important;
    line-height: 1.2 !important;
    margin-bottom: 14px !important;
    color: #222222 !important;
}

.ngcs-hero p {
    font-size: 19px;
    max-width: 700px;
    line-height: 1.7;
    color: #404040;
}

/* --- Story Rows ------------------------------------ */
.ngcs-story-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 48px;
}

.ngcs-story-row--reverse {
    flex-direction: row-reverse;
}

.ngcs-story-text {
    flex: 1.2;
}

.ngcs-story-text h3 {
    font-size: 30px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    color: #222222 !important;
}

.ngcs-story-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #404040;
}

.ngcs-story-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8E3;
}

.ngcs-story-row .ngcs-story-image img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
}

/* --- Color placeholders --- */
.ngcs-story-image--placeholder {
    height: 330px;
    background-color: #C8DEC5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ngcs-story-image--placeholder span {
    font-family: 'Merriweather', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: #3A6B35;
}

/* --- CTA Section ----------------------------------- */
.ngcs-cta {
    background-color: #F8FBF8;
    border-top: 1px solid #E2E8E3;
    border-bottom: 1px solid #E2E8E3;
    text-align: center;
    padding: 50px 20px;
}

.ngcs-cta-title {
    font-size: 30px !important;
    margin-bottom: 12px !important;
    color: #222222 !important;
}

.ngcs-cta p {
    font-style: italic;
    font-size: 19px;
    max-width: 640px;
    margin: 0 auto 20px auto;
    color: #404040;
    line-height: 1.7;
}

/* --- Primary Button --- */
.ngcs-btn-primary,
.ngcs-btn-primary:link,
.ngcs-btn-primary:visited,
.ngcs-btn-primary:hover,
.ngcs-btn-primary:active,
.ngcs-btn-primary:focus {
    display: inline-block;
    background-color: #3A6B35;
    color: #FFFFFF !important;
    padding: 12px 26px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ngcs-btn-primary:hover,
.ngcs-btn-primary:focus {
    background-color: #567A52;
}

/* --- "About This Bloom" link --- */
.ngcs-bloom-link,
.ngcs-bloom-link:link,
.ngcs-bloom-link:visited {
    color: #3A6B35;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #D4B483;
    padding-bottom: 1px;
    white-space: nowrap;
}

.ngcs-bloom-link:hover,
.ngcs-bloom-link:focus {
    color: #567A52;
    border-bottom-color: #3A6B35;
}

/* --- Mid breakpoint (900px) --- */
@media (max-width: 900px) {
    .ngcs-story-row .ngcs-story-image img,
    .ngcs-story-image--placeholder {
        height: 260px;
    }

    .ngcs-story-text h3 {
        font-size: 26px !important;
    }

    .ngcs-story-text p {
        font-size: 16px;
    }
}

/* --- Small breakpoint (680px) --- */
@media (max-width: 680px) {
    .ngcs-hero-title {
        font-size: 32px !important;
    }

    .ngcs-hero p {
        font-size: 16px;
    }

    .ngcs-story-row,
    .ngcs-story-row--reverse {
        flex-direction: column;
        gap: 20px;
    }

    .ngcs-story-text h3 {
        font-size: 24px !important;
    }

    .ngcs-story-row .ngcs-story-image img,
    .ngcs-story-image--placeholder {
        height: 220px;
        width: 100%;
    }

    .ngcs-cta {
        padding: 36px 16px;
    }

    .ngcs-cta p {
        font-size: 16px;
    }
}

/* === JOURNAL ARTICLE CONTENT === */
.journal-article .article-title {
    color: #3A6B35;
}

.journal-article .article-byline {
    font-style: italic;
}

.journal-article .article-source,
.journal-article .article-permission {
    font-size: 0.85em;
    font-style: italic;
    color: #8a7a5c;
    margin-top: 0.5em;
}

.journal-article .planting-step {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.journal-article .planting-image {
    flex: 1 1 240px;
    margin: 0;
    text-align: center;
}

.journal-article .planting-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.journal-article .planting-image figcaption {
    font-size: 0.85em;
    color: #555;
    margin-top: 4px;
}
/* ===== LOGIN MODULE STYLING ===== */

/* Input fields */
.mod-login__username input,
.mod-login__password input {
    border: 1px solid #E2E8E3;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: 'Open Sans', sans-serif;
    color: #404040;
    background: #F8FBF8;
}

/* Login button */
form.mod-login div.mod-login__submit button[type="submit"] {
    background-image: none !important;
    background-color: #3A6B35 !important;
    border-color: #3A6B35 !important;
    color: #FFFFFF !important;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
}

form.mod-login div.mod-login__submit button[type="submit"]:hover {
    background-image: none !important;
    background-color: #567A52 !important;
    border-color: #567A52 !important;
}

/* Passkey button */
form.mod-login div.mod-login__submit button[type="button"] {
    border-radius: 8px;
}

/* Options links */
.mod-login__options {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #E2E8E3;
    list-style: none;
    padding-left: 0;
}

.mod-login__options li a {
    color: #2C6E91;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}

.mod-login__options li a:hover {
    color: #3A6B35;
}
/* === Login Dropdown === */
#topnav {
  position: relative;
}

/* Hide login form by default (logged-out state) */
#topnav form.mod-login {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  min-width: 250px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
}

/* Show Sign In button only when logged OUT */
#topnav:not(:has(form.mod-login-logout))::after {
  content: "Sign In";
  cursor: pointer;
  color: #fff;
  background-color: #5a8a3c;
  padding: 6px 14px;
  border-radius: 4px;
  display: block;
  white-space: nowrap;
  float: right;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Show form on hover (logged-out) */
#topnav:hover form.mod-login,
#topnav:focus-within form.mod-login {
  display: block;
}

/* Logged-in: hide greeting, edit icon, options */
#topnav form.mod-login-logout .mod-login-logout__login-greeting,
#topnav form.mod-login-logout .btn.btn-link.jmodedit,
#topnav form.mod-login-logout #tip-16,
#topnav form.mod-login-logout .mod-login-logout__options {
  display: none;
}

/* Logout button styling */
#topnav button[name="Submit"] {
  background-color: #5a8a3c !important;
  background-image: none !important;
  border-color: #5a8a3c !important;
  color: #fff !important;
  padding: 6px 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

#topnav button[name="Submit"]:hover {
  background-color: #4a7a2c !important;
  background-image: none !important;
  border-color: #4a7a2c !important;
  color: #fff !important;
}

/* Society Meeting Minutes - remove bullets */
.itemid-119 ul.category {
  padding-left: 0 !important;
  list-style: none !important;
}

.itemid-119 ul.category li {
  list-style: none !important;
  padding-left: 0 !important;
}/* Society Meeting Minutes - remove bullets */
.itemid-119 ul.mod-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.itemid-119 ul.mod-list li {
  list-style: none !important;
  padding-left: 0 !important;
  background-image: none !important;
}

.itemid-119 ul.mod-list li::before {
  display: none !important;
  content: none !important;
}