/* ========================================================================
   MARY CLOAKE'S STORY - COMPLETE JOOMLA CASSIOPEIA CUSTOMIZATION
   Combined: Site-wide Theme + Detailed Article Styling
   ======================================================================== */
/* Remove double arrows - hide browser default, keep template arrow */
summary::marker {
    display: none !important;
    content: none !important;
}

summary::-webkit-details-marker {
    display: none !important;
}
/* ====================================
   1. COLOR VARIABLES & BASE SETTINGS
   ==================================== */

:root {
    /* Heritage Color Palette */
    --heritage-green: #2c5f2d;
    --heritage-green-dark: #1e4520;
    --heritage-olive: #97bc62;
    --heritage-olive-light: #b8d68e;
    --heritage-gold: #d4a574;
    --heritage-cream: #f9f6f0;
    --heritage-tan: #e8dcc8;
    --heritage-brown: #6b5d4f;
    
    /* Text Colors */
    --text-primary: #2d3142;
    --text-secondary: #4f5d75;
    --text-light: #6c757d;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9f6f0;
    --bg-tertiary: #e8dcc8;
    
    /* Border & Shadow */
    --border-light: #e0ddd5;
    --border-medium: #c8c3b8;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Override Cassiopeia defaults */
    --cassiopeia-color-primary: var(--heritage-green);
    --cassiopeia-color-hover: var(--heritage-olive);
    --cassiopeia-color-link: var(--heritage-green);
    --cassiopeia-color-link-hover: var(--heritage-olive);
}

/* ====================================
   2. GLOBAL TYPOGRAPHY
   ==================================== */

body {
    font-family: 'Georgia', 'Palatino', 'Times New Roman', serif;
    color: var(--text-primary);
    background-color: var(--heritage-cream);        body {
            font-family: Georgia, 'Times New Roman', serif;
            line-height: 1.6;
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
            color: #333;
            background-color: #f9f9f9;
        }
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Georgia', serif;
    color: var(--heritage-green);
    font-weight: 600;
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.6rem; }
h4, .h4 { font-size: 1.3rem; }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 1rem; }

p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

a {
    color: var(--heritage-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--heritage-olive);
    text-decoration: underline;
}

h2 a {
    color: white;
    padding: 0 0 0 40px;
    font-weight: normal;
    text-decoration: none !important;
}

@media (max-width: 768px) {
  h2 a {
    padding: 0 0 0 15px;
  }
}
h2 a:hover {
    text-decoration: underline;
}

/* ====================================
   3. HEADER CUSTOMIZATION
   ==================================== */

.header {
    background: linear-gradient(135deg, var(--heritage-green) 0%, var(--heritage-green-dark) 100%);
    border-bottom: 4px solid var(--heritage-gold);
    box-shadow: var(--shadow-md);
}

.header-inside {
    max-width: 1200px;
    margin: 0 auto;
}

/* Site Title/Logo */
.header .container-header .navbar-brand {
    color: var(--text-white);
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header .container-header .navbar-brand:hover {
    color: var(--heritage-gold);
    text-decoration: none;
}

/* Add decorative element to logo */
.header .container-header .navbar-brand::before {
    content: "🐝";
    font-size: 1.5rem;
}

/* Tagline under logo */
.site-tagline {
    color: var(--heritage-cream);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: -0.5rem;
    padding-bottom: 1rem;
}

/* ====================================
   4. NAVIGATION MENU
   ==================================== */

/* Main Navigation */
.header nav,
.navbar {
    background-color: transparent;
}

.header .navbar-nav {
    gap: 0.5rem;
}

.header .nav-link {
    color: var(--text-white) !important;
    font-family: Georgia, serif;
    padding: 0.6rem 1.2rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}
/*
.header .navbar a:hover,
.header .navbar a.active,
.header .navbar a.current {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--heritage-gold) !important;
    text-decoration: none;
}

.header .navbar a.active,
.header .navbar a.current {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}
*/
/* Dropdown Menus */
.header .dropdown-menu {
    background-color: var(--heritage-green-dark);
    border: 1px solid var(--heritage-olive);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.header .dropdown-item {
    color: var(--text-white);
    padding: 0.6rem 1.2rem;
}

.header .dropdown-item:hover {
    background-color: var(--heritage-olive);
    color: var(--text-white);
}

/* Mobile Menu Toggle */
.navbar-toggler {
    border-color: var(--heritage-gold);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* ====================================
   5. BREADCRUMBS
   ==================================== */

.breadcrumb {
    background-color: var(--heritage-cream);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--heritage-green);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--heritage-olive);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--heritage-olive);
    font-size: 1.2em;
}

/* ====================================
   6. MAIN CONTENT AREA
   ==================================== */

.item-content {
    padding: 50px;
}
@media (max-width: 768px) {
    .item-content {
      padding: 15px;
      }
}

.container-component {
    max-width: 1200px !important;
    margin: 0% auto;
    padding: 2rem 1rem;
    background-color: transparent;
}

/* Page Title */
.page-header {
    background: linear-gradient(135deg, var(--heritage-green) 0%, var(--heritage-olive) 100%);
    color: var(--text-white);
    padding: 2.5rem 2rem;
    margin: -1rem -1rem 2rem -1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.page-header h1,
.page-header h2 {
    color: var(--text-white);
    margin: 0;
    border: none;
    padding: 0;
}

.page-header .subtitle,
.page-header .page-description,
.page-header .chapter-intro {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.95;
    font-style: italic;
    color: var(--heritage-cream);
}

/* ====================================
   7. ARTICLE CONTAINER STYLING
   ==================================== */

/* Article Container */
.com-content-article .item-page,
.blog-item,
.items-leading .item,
.items-row .item {
    background-color: var(--bg-primary);
    padding: 0;
    margin: 0 auto 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

/* Article Header */
.com-content-article__header h2,
.item-title {
    color: var(--heritage-green);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--heritage-olive);
    padding-bottom: 0.5rem;
}

/* Article Info (Meta) */
.com-content-article__info,
.article-info {
    background-color: var(--heritage-cream);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--heritage-gold);
}

.com-content-article__info dl,
.article-info dl {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
}

.com-content-article__info dt,
.article-info dt {
    font-weight: 600;
    color: var(--heritage-green);
}

.com-content-article__info dd,
.article-info dd {
    margin: 0;
}

/* ====================================
   8. ARTICLE BODY - DETAILED STYLING
   ==================================== */

/* Article Body Container */
.com-content-article__body {
    background: #ffffff;
    padding: 40px;
    margin: 20px 0;
    border-radius: 8px;
    font-family: 'Georgia', 'Palatino', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Article Body Typography */
.com-content-article__body p {
    margin-bottom: 1.2em;
    text-align: justify;
    font-size: 1.05rem;
}

.com-content-article__body h1,
.com-content-article__body .page-header h1 {
    color: var(--heritage-green);
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5em;
    border-bottom: 3px solid var(--heritage-olive);
    padding-bottom: 0.3em;
    font-weight: 600;
}

.com-content-article__body h2 {
    color: var(--heritage-green);
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid var(--heritage-olive);
    padding-bottom: 0.3em;
    font-weight: 600;
}

.com-content-article__body h3 {
    color: var(--heritage-green);
    font-size: 1.4rem;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    font-weight: 600;
}

.com-content-article__body h4 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-style: italic;
}

/* Article Body Lists */
.com-content-article__body ul,
.com-content-article__body ol {
    margin: 1.5em 0 1.5em 2em;
    line-height: 1.8;
}

.com-content-article__body li {
    margin-bottom: 0.8em;
}

.com-content-article__body ul li {
    list-style-type: disc;
}

.com-content-article__body strong {
    color: var(--heritage-green);
    font-weight: 600;
}

.com-content-article__body em {
    font-style: italic;
    color: var(--text-secondary);
}

/* Article Body Blockquotes */
.com-content-article__body blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background-color: var(--heritage-cream);
    border-left: 4px solid var(--heritage-gold);
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 4px;
}

.com-content-article__body blockquote p:last-child {
    margin-bottom: 0;
}

/* Article Body Links */
.com-content-article__body a {
    color: var(--heritage-green);
    text-decoration: underline;
    transition: color 0.2s;
}

.com-content-article__body a:hover {
    color: var(--heritage-olive);
}

.com-content-article__body a:focus {
    outline: 2px solid var(--heritage-gold);
    outline-offset: 2px;
}

/* ====================================
   9. SPECIAL CONTENT BOXES (Article Body)
   ==================================== */

/* Info Boxes / Callouts */
.com-content-article__body .info-box,
.com-content-article__body .historical-note,
.com-content-article__body .timeline-box,
.info-box,
.historical-note,
.timeline-box {
    background-color: #e8f5e9;
    border-left: 4px solid var(--heritage-olive);
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 4px;
}

.com-content-article__body .info-box strong,
.com-content-article__body .historical-note strong,
.info-box strong,
.historical-note strong {
    color: var(--heritage-green);
    display: block;
    margin-bottom: 0.5em;
    font-size: 1.1rem;
}

.com-content-article__body .warning-box,
.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 4px;
}

.com-content-article__body .timeline-box,
.timeline-box {
    background-color: var(--heritage-cream);
    border-left: 4px solid var(--heritage-gold);
}

/* ====================================
   10. PHOTO ELEMENTS (Article Body)
   ==================================== */

/* Photo Figure Base */
.com-content-article__body figure.photo-figure,
figure.photo-figure {
    margin: 2em 0;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.com-content-article__body figure.photo-figure img,
figure.photo-figure img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #f5f5f5;
}

figcaption {
    padding: 1em 1.5em;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    background-color: var(--heritage-cream);
    border-top: 1px solid var(--border-light);
    line-height: 1.6;
}

/* Featured Photos */
.com-content-article__body .photo-featured,
.photo-featured {
    border: 2px solid var(--heritage-olive);
    margin: 2.5em 0;
}

.com-content-article__body .photo-featured figcaption,
.photo-featured figcaption {
    font-style: normal;
}

.com-content-article__body .photo-featured figcaption h3,
.photo-featured figcaption h3 {
    color: var(--heritage-green);
    margin: 0 0 0.5em 0;
    font-size: 1.2rem;
}

.com-content-article__body .photo-featured figcaption p,
.photo-featured figcaption p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* Photo Rows */
.com-content-article__body .photo-row,
.photo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.com-content-article__body .photo-row-three,
.photo-row-three {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.com-content-article__body .photo-row .photo-figure,
.photo-row .photo-figure {
    margin: 0;
}

/* Photo Gallery */
.com-content-article__body .photo-gallery,
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
    margin: 2em 0;
}

.com-content-article__body .photo-gallery .photo-figure,
.photo-gallery .photo-figure {
    margin: 0;
}

.com-content-article__body .photo-gallery figcaption,
.photo-gallery figcaption {
    padding: 0.8em 1em;
    font-size: 0.85rem;
}

/* Portrait/Document Photos (Centered) */
.com-content-article__body .photo-portrait,
.com-content-article__body .photo-document,
.photo-portrait,
.photo-document {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Photo Hover Effect */
.com-content-article__body figure.photo-figure:hover,
figure.photo-figure:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s;
}

/* ====================================
   11. TIMELINE STYLING (Article Body)
   ==================================== */

.com-content-article__body .timeline-preview,
.timeline-preview {
    background-color: var(--heritage-cream);
    border-left: 4px solid var(--heritage-gold);
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 4px;
}

.com-content-article__body .timeline-preview h3,
.timeline-preview h3 {
    color: var(--heritage-green);
    margin-top: 0;
    margin-bottom: 1em;
}

.com-content-article__body .timeline-preview ul,
.timeline-preview ul {
    list-style: none;
    margin-left: 0;
}

.com-content-article__body .timeline-preview li,
.timeline-preview li {
    padding: 0.6em 0;
    border-bottom: 1px solid var(--border-light);
}

.com-content-article__body .timeline-preview li:last-child,
.timeline-preview li:last-child {
    border-bottom: none;
}

.com-content-article__body .timeline-preview strong,
.timeline-preview strong {
    color: var(--heritage-green);
    font-weight: 600;
}

/* ====================================
   12. CHAPTER NAVIGATION (Article Body)
   ==================================== */

.com-content-article__body .chapter-nav,
.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid var(--border-light);
    gap: 1em;
}

.com-content-article__body .chapter-nav a,
.chapter-nav a {
    display: inline-block;
    padding: 0.8em 1.5em;
    background-color: var(--heritage-green);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--heritage-green);
}

.com-content-article__body .chapter-nav a:hover,
.chapter-nav a:hover {
    background-color: var(--heritage-olive);
    border-color: var(--heritage-olive);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.nav-prev::before {
    content: "← ";
    font-size: x-large;
}

.nav-next::after {
    content: " →";
    font-size: x-large;
}

/* ====================================
   13. FOOTNOTE SECTION (Article Body)
   ==================================== */

.com-content-article__body .footnote,
.footnote {
    background-color: var(--heritage-cream);
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.com-content-article__body .footnote h2,
.footnote h2 {
    font-size: 1.3rem;
    margin-top: 0;
}

/* ====================================
   14. TABLES (Article Body)
   ==================================== */

.com-content-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background-color: #ffffff;
}

.com-content-article__body table th {
    background-color: var(--heritage-green);
    color: #ffffff;
    padding: 0.8em;
    text-align: left;
    font-weight: 600;
}

.com-content-article__body table td {
    padding: 0.8em;
    border-bottom: 1px solid var(--border-light);
}

.com-content-article__body table tr:nth-child(even) {
    background-color: var(--heritage-cream);
}

.com-content-article__body table tr:hover {
    background-color: var(--heritage-tan);
}

/* ====================================
   15. FIRST LETTER STYLING (Optional)
   ==================================== */

.com-content-article__body .first-letter::first-letter,
.first-letter::first-letter {
    font-size: 3em;
    font-weight: bold;
    float: left;
    line-height: 0.8;
    margin: 0.1em 0.1em 0 0;
    color: var(--heritage-green);
}

/* Heritage Styling Classes */
.heritage-date {
    color: var(--heritage-gold);
    font-weight: 600;
}

.heritage-location {
    color: var(--heritage-olive);
    font-style: italic;
}

/* ====================================
   16. BLOG LAYOUT
   ==================================== */

/* Blog Grid */
.blog .items-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Blog Featured */
.blog .items-leading {
    margin-bottom: 3rem;
}

.blog .items-leading .item {
    border: 2px solid var(--heritage-olive);
    padding: 2.5rem;
}

/* Blog Intro Image */
.item-image {
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.item-image:hover img {
    transform: scale(1.05);
}

/* Read More Links */
.readmore,
.btn-readmore {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--heritage-green);
    color: var(--text-white) !important;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 1rem;
}

.readmore:hover,
.btn-readmore:hover {
    background-color: var(--heritage-olive);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--heritage-green);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-medium);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

.pagination .page-link:hover,
.pagination .active .page-link {
    background-color: var(--heritage-green);
    color: var(--text-white);
    border-color: var(--heritage-green);
}

/* ====================================
   17. SIDEBAR/MODULES
   ==================================== */

.sidebar {
    background-color: transparent;
}

/* Module Styling */
.moduletable,
.module {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.moduletable h3,
.module h3,
.moduletable .module-title,
.module .module-title {
    color: var(--heritage-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--heritage-olive);
}

/* Menu Modules */
.mod-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mod-menu li {
    margin-bottom: 0.5rem;
}

.mod-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.mod-menu a:hover {
    background-color: var(--heritage-green);
    border-left-color: var(--heritage-green-dark);
    color: white;
    text-decoration: none !important;
}
/*
.mod-menu .active a {
    font-weight: 600;
    background-color: var(--heritage-green);
}
*/
/* ====================================
   18. BUTTONS
   ==================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
    font-family: Georgia, serif;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary,
.button-primary {
    background-color: var(--heritage-green);
    border-color: var(--heritage-green);
    color: var(--text-white);
}

.btn-primary:hover,
.button-primary:hover {
    background-color: var(--heritage-olive);
    border-color: var(--heritage-olive);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--heritage-tan);
    border-color: var(--heritage-brown);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--heritage-brown);
    color: var(--text-white);
}

/* ====================================
   19. FORMS
   ==================================== */

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-family: Georgia, serif;
    background-color: var(--bg-primary);
    transition: border-color 0.3s;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--heritage-olive);
    outline: none;
    box-shadow: 0 0 0 3px rgba(151, 188, 98, 0.2);
}

label {
    color: var(--heritage-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Search Module */
.mod-finder .finder,
.mod-search .search {
    display: flex;
    gap: 0.5rem;
}

.mod-finder input[type="search"],
.mod-search input[type="text"] {
    flex: 1;
}

.mod-finder button,
.mod-search button {
    background-color: var(--heritage-green);
    color: var(--text-white);
    border: none;
}

/* ====================================
   20. FOOTER
   ==================================== */

.footer {
    background: linear-gradient(135deg, var(--heritage-green-dark) 0%, var(--heritage-green) 100%);
    color: var(--heritage-cream);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    border-top: 4px solid var(--heritage-gold);
}

.footer-inside {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer h3,
.footer .module-title {
    color: var(--text-white);
    border-bottom: 2px solid var(--heritage-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--heritage-cream);
    text-decoration: none;
}

.footer a:hover {
    color: var(--heritage-gold);
    text-decoration: underline;
}

.footer .mod-menu a {
    color: var(--heritage-cream);
    border-left-color: transparent;
}

.footer .mod-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--heritage-gold);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ====================================
   21. ALERTS & MESSAGES
   ==================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: #e8f5e9;
    border-left-color: var(--heritage-olive);
    color: var(--heritage-green-dark);
}

.alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

/* System Messages */
.system-message,
#system-message-container {
    margin-bottom: 1.5rem;
}

/* ====================================
   22. CATEGORY LIST
   ==================================== */

.com-content-categories__items,
.category-list {
    list-style: none;
    padding: 0;
}

.com-content-categories__items li,
.category-list li {
    background-color: var(--bg-primary);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.com-content-categories__items li:hover,
.category-list li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-title {
    color: var(--heritage-green);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ====================================
   23. TAGS
   ==================================== */

.tags,
.item-tags,
.com-content-article__category {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.tags a,
.item-tags a {
    display: inline-block;
    background-color: var(--heritage-cream);
    color: var(--heritage-green);
    padding: 0.4em 0.8em;
    margin: 0.3em;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.tags a:hover,
.item-tags a:hover {
    background-color: var(--heritage-olive);
    color: var(--text-white);
    border-color: var(--heritage-olive);
    text-decoration: none;
}

/* ====================================
   24. STORY SECTION CLASS
   ==================================== */

.story-section {
    margin-bottom: 3rem;
}

.story-section h2 {
    color: var(--heritage-green);
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid var(--heritage-olive);
    padding-bottom: 0.3em;
}

.story-section h3 {
    color: var(--heritage-green);
    font-size: 1.4rem;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

/* ====================================
   25. RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 992px) {
    .container-component {
        padding: 1.5rem 0.3rem;
    }
    
    .com-content-article .item-page,
    .blog-item {
        padding: 0;
    }
    
    .com-content-article__body {
        padding: 30px;
    }
    
    .page-header {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.6rem; }
    h3, .h3 { font-size: 1.4rem; }
    
    /* Header */
    .header .container-header .navbar-brand {
        font-size: 1.5rem;
    }
    
    /* Article Body */
    .com-content-article__body {
        padding: 25px;
    }
    
    .com-content-article__body h1 {
        font-size: 2rem;
    }
    
    .com-content-article__body h2 {
        font-size: 1.5rem;
    }
    
    .com-content-article__body h3 {
        font-size: 1.3rem;
    }
    
    /* Blog Grid */
    .blog .items-row {
        grid-template-columns: 1fr;
    }
    
    /* Photo Layouts */
    .com-content-article__body .photo-row,
    .photo-row,
    .com-content-article__body .photo-row-three,
    .photo-row-three {
        grid-template-columns: 1fr;
    }
    
    .com-content-article__body .photo-gallery,
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    /* Chapter Navigation */
    .com-content-article__body .chapter-nav,
    .chapter-nav {
        flex-direction: column;
    }
    
    /* Modules */
    .moduletable,
    .module {
        padding: 1.2rem;
    }
    
    /* Page Header */
    .page-header {
        margin: -10px -10px 1.5em -10px;
        padding: 2em 1.5em;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    /* Base Font Size */
    body {
        font-size: 0.95rem;
    }
    
    /* Header */
    .header .container-header .navbar-brand {
        font-size: 1.3rem;
    }
    
    .header .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem;
    }
    
    /* Article Body */
    .com-content-article__body {
        padding: 20px;
        font-size: 1rem;
    }
    
    .com-content-article__body p {
        text-align: left;
    }
    
    .com-content-article__body ul,
    .com-content-article__body ol {
        margin-left: 1.5em;
    }
    
    /* Page Header */
    .page-header {
        padding: 1.5rem 1rem;
        margin: -0.5rem -0.5rem 1.5rem -0.5rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header .subtitle,
    .page-header .chapter-intro {
        font-size: 1rem;
    }
    
    /* Photo Gallery */
    .com-content-article__body .photo-gallery,
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Info Boxes */
    .com-content-article__body .info-box,
    .com-content-article__body .historical-note,
    .com-content-article__body .timeline-box,
    .info-box,
    .historical-note,
    .timeline-box {
        padding: 1em;
    }
    
    /* Blockquotes */
    .com-content-article__body blockquote,
    blockquote {
        padding: 1em;
        margin: 1.5em 0;
    }
    
    /* Breadcrumbs */
    .breadcrumb {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Tables */
    .com-content-article__body table {
        font-size: 0.9rem;
    }
    
    .com-content-article__body table th,
    .com-content-article__body table td {
        padding: 0.6em;
    }
}

/* ====================================
   26. PRINT STYLES
   ==================================== */

@media print {
    /* Hide Navigation Elements */
    .header,
    .footer,
    .sidebar,
    .breadcrumb,
    .pagination,
    .chapter-nav,
    .navbar,
    .mod-menu,
    button,
    .btn,
    .com-content-article__info {
        display: none !important;
    }
    
    /* Reset Backgrounds */
    body {
        background-color: white;
    }
    
    .com-content-article .item-page,
    .com-content-article__body {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    /* Links */
    a {
        color: black;
        text-decoration: none;
    }
    
    /* Page Header */
    .page-header {
        background: none;
        color: black;
        border-bottom: 2px solid black;
        padding: 1rem 0;
        margin: 0 0 1rem 0;
    }
    
    .page-header h1,
    .page-header h2 {
        color: black;
    }
    
    /* Photos */
    figure.photo-figure {
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
    
    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Paragraphs */
    p {
        orphans: 3;
        widows: 3;
    }
}

/* ====================================
   27. ACCESSIBILITY
   ==================================== */

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--heritage-green);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.nav-link:focus {
    outline: 2px solid var(--heritage-gold);
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --heritage-green: #1e4520;
        --text-primary: #000000;
        --border-light: #000000;
    }
    
    .header,
    .footer {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================
   28. CUSTOM UTILITY CLASSES
   ==================================== */

/* Heritage Styling */
.heritage-accent {
    color: var(--heritage-gold);
}

.heritage-text {
    color: var(--heritage-green);
}

.heritage-bg {
    background-color: var(--heritage-cream);
    padding: 1.5rem;
    border-radius: 4px;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-justify {
    text-align: justify;
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-5 { margin-top: 3rem; }

.p-0 { padding: 0rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* ====================================
   RESPONSIVE LOGO/BRAND STYLING
   ==================================== */

/* Base logo styling */
.header .container-header .navbar-brand {
    color: var(--text-white);
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* If you have an actual logo image */
.header .container-header .navbar-brand img {
    max-height: 60px;
    width: auto;
    height: auto;
}

/* Tablet responsiveness */
@media (max-width: 992px) {
    .header .container-header .navbar-brand {
        font-size: 1.7rem;
        padding: 0.8rem 0;
        gap: 0.8rem;
    }
    
    .header .container-header .navbar-brand img {
        max-height: 50px;
    }
    
    .header .container-header .navbar-brand::before {
        font-size: 1.3rem;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header .container-header .navbar-brand {
        font-size: 1.5rem;
        padding: 0.7rem 0;
        gap: 0.7rem;
    }
    
    .header .container-header .navbar-brand img {
        max-height: 45px;
    }
    
    .header .container-header .navbar-brand::before {
        font-size: 1.2rem;
    }
    
    .site-tagline {
        font-size: 0.85rem;
        padding-bottom: 0.8rem;
    }
}

/* Small mobile responsiveness */
@media (max-width: 480px) {
    .header .container-header .navbar-brand {
        font-size: 1.3rem;
        padding: 0.6rem 0;
        gap: 0.5rem;
    }
    
    .header .container-header .navbar-brand img {
        max-height: 40px;
    }
    
    .header .container-header .navbar-brand::before {
        font-size: 1rem;
    }
    
    .site-tagline {
        font-size: 0.8rem;
        padding-bottom: 0.6rem;
        line-height: 1.3;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .header .container-header .navbar-brand {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    
    .header .container-header .navbar-brand img {
        max-height: 35px;
    }
    
    .header .container-header .navbar-brand::before {
        font-size: 0.9rem;
    }
    
    .site-tagline {
        font-size: 0.75rem;
    }
}

/* If your logo breaks into multiple lines, center it */
@media (max-width: 576px) {
    .header .container-header {
        text-align: center;
    }
    
    .header .container-header .navbar-brand {
        justify-content: center;
        width: 100%;
    }
    
    .site-tagline {
        text-align: center;
    }
}

/* Prevent logo from overflowing */
.header .container-header .navbar-brand {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* If you need to hide part of the brand text on very small screens */
@media (max-width: 400px) {
    .navbar-brand-full {
        display: none;
    }
    
    .navbar-brand-short {
        display: inline;
    }
}

@media (min-width: 401px) {
    .navbar-brand-full {
        display: inline;
    }
    
    .navbar-brand-short {
        display: none;
    }
}
/* ====================================
   FIX FOR HEADER/LOGO RESPONSIVENESS
   ==================================== */

/* Header container */
.header {
    background: linear-gradient(135deg, var(--heritage-green) 0%, var(--heritage-green-dark) 100%);
    border-bottom: 4px solid var(--heritage-gold);
    box-shadow: var(--shadow-md);
    padding: 0;
}

.header-inside,
.header .container-header {
    max-width: 100%;
    padding: 1rem;
    margin: 0 auto;
}

/* Brand/Logo - allow wrapping */
.header .container-header .navbar-brand,
.header .navbar-brand {
    color: var(--text-white) !important;
    font-family: 'Georgia', serif;
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    white-space: normal;
    line-height: 1.3;
    width: 100%;
    overflow: visible;
    text-overflow: clip;
}

.header .navbar-brand:hover {
    color: var(--heritage-gold) !important;
    text-decoration: none;
}

/* Remove the bee emoji on small screens if needed */
.header .container-header .navbar-brand::before {
    content: "🐝 ";
    font-size: clamp(1rem, 3vw, 1.5rem);
}

/* Site tagline */
.site-tagline {
    color: var(--heritage-cream);
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    font-style: italic;
    margin-top: 0.3rem;
    padding-bottom: 0.5rem;
    line-height: 1.4;
}

/* Navbar toggler button positioning */
.navbar-toggler {
    position: absolute;
    top: 0;
    right:0;
    border-color: var(--heritage-gold);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    z-index: 10;
}

/* Navigation menu - make sure it doesn't interfere */
.header .navbar-nav {
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-inside,
    .header .container-header {
        padding: 0.8rem 1rem;
    }
    
    .header .navbar-brand {
        padding-right: 60px; /* Make room for hamburger menu */
    }
    
    /* Optionally hide emoji on very small screens */
    .header .container-header .navbar-brand::before {
        content: "";
    }
}

@media (max-width: 480px) {
    .header-inside,
    .header .container-header {
        padding: 0.6rem 0.8rem;
    }
    
    .header .navbar-brand {
        font-size: 1.2rem;
    }
    
    .site-tagline {
        font-size: 0.7rem;
    }
}

/* Fix for Joomla's default container constraints */
.container-header,
.header .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
}

/* If you want the logo on one line on desktop but wrapped on mobile */
@media (min-width: 769px) {
    .header .navbar-brand {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .header .navbar-brand {
        white-space: normal;
    }
}
/* ====================================
   HEADER & NAVIGATION FIX
   ==================================== */

/* Header container */
.header {
    background: linear-gradient(135deg, var(--heritage-green) 0%, var(--heritage-green-dark) 100%);
    border-bottom: 4px solid var(--heritage-gold);
    box-shadow: var(--shadow-md);
    position: relative;
}

.header-inside,
.header .container-header {
    max-width: 1200px;
    padding: 1rem;
    margin: 0 auto;
    position: relative;
}

/* Navbar wrapper to handle flex layout */
.header .navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
}

/* Brand/Logo */
.header .navbar-brand {
    color: var(--text-white) !important;
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    white-space: normal;
    line-height: 1.3;
    flex: 1;
    max-width: calc(100% - 60px); /* Make room for hamburger */
}

.header .navbar-brand:hover {
    color: var(--heritage-gold) !important;
    text-decoration: none;
}

/* Site tagline */
.site-tagline {
    color: var(--heritage-cream);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.3rem;
    padding-bottom: 0.5rem;
    line-height: 1.4;
    width: 100%;
    clear: both;
}

/* Hamburger Menu Button */
.navbar-toggler {
    border-color: var(--heritage-gold) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0.5rem 0;
    position: relative;
    display: block;
    cursor: pointer;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Navigation Menu */
.header .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
    flex-grow: 1;
}

.header .navbar-nav {
    gap: 0.5rem;
    margin-top: 1rem;
}

.header .nav-link {
    color: var(--text-white) !important;
    font-family: Georgia, serif;
    padding: 0.6rem 1.2rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.header .nav-link:hover,
.header .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--heritage-gold) !important;
    text-decoration: none;
}

/* Desktop - show menu inline */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
    
    .header .navbar-collapse {
        display: flex !important;
    }
    
    .header .navbar-nav {
        flex-direction: row;
        margin-top: 0;
    }
    
    .header .navbar-brand {
        max-width: none;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
    }
    
    .header .navbar-collapse:not(.show) {
        display: none;
    }
    
    .header .navbar-collapse.show {
        display: block !important;
    }
    
    .header .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .header .nav-link {
        display: block;
        width: 100%;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .header .navbar-brand {
        font-size: 1.5rem;
        max-width: calc(100% - 50px);
    }
    
    .header .navbar-brand::before {
        font-size: 1.2rem;
    }
    
    .site-tagline {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .header .navbar-brand {
        font-size: 1.3rem;
    }
    
    .header .navbar-brand::before {
        font-size: 1rem;
    }
    
    .site-tagline {
        font-size: 0.8rem;
    }
    
    .navbar-toggler {
        padding: 0.4rem 0.6rem !important;
    }
}

@media (max-width: 480px) {
    .header .navbar-brand {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    /* Hide emoji on very small screens to save space */
    .header .navbar-brand::before {
        content: "";
    }
    
    .site-tagline {
        font-size: 0.75rem;
    }
}


/* ====================================
   ENHANCED NAVIGATION ACTIVE/CURRENT STYLING
   ==================================== */

/* Main Navigation Links */
.header .nav-link {
    color: var(--text-white) !important;
    font-family: Georgia, serif;
    padding: 0.6rem 1.2rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
}

/* Hover State */
.header .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--heritage-gold) !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Active/Current Page - Multiple selectors for Joomla */
.header .nav-link.current,
.header .nav-item.active .nav-link,
.header .nav-item.current .nav-link,
.header li.current > a,
.header .current-item > a {
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
}

/* Active state hover - keep the active styling but add subtle effect */
/*.header .nav-link.active:hover,
.header .nav-link.current:hover,
.header .nav-item.active .nav-link:hover,
.header li.active > a:hover {
    background-color: var(--heritage-gold) !important;
    color: var(--heritage-green-dark) !important;
    box-shadow: 0 3px 10px rgba(212, 165, 116, 0.6);
    transform: translateY(-2px);
}
*/
/* Add underline indicator for active page */
.header .nav-link.active::after,
.header .nav-link.current::after,
.header .nav-item.active .nav-link::after,
.header li.active > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--heritage-gold);
}

/* Parent menu item with active child (for dropdown menus) */
.header .nav-item.active > .nav-link.dropdown-toggle,
.header li.active.deeper > a {
    background-color: rgba(212, 165, 116, 0.3);
    color: var(--heritage-gold) !important;
    font-weight: 600;
}

/* Dropdown menu active items */
.header .dropdown-menu .dropdown-item.active,
.header .dropdown-menu .dropdown-item.current,
.header .dropdown-menu li.active > a {
    background-color: var(--heritage-gold) !important;
    color: var(--heritage-green-dark) !important;
    font-weight: 600;
    padding-left: 1.5rem;
}

.header .dropdown-menu .dropdown-item.active::before,
.header .dropdown-menu li.active > a::before {
    content: "▶ ";
    margin-right: 0.3rem;
}

/* Focus state for accessibility */
.header .nav-link:focus,
.header .nav-link.active:focus {
    outline: 2px solid var(--heritage-gold);
    outline-offset: 2px;
}

/* Mobile menu active styling */
@media (max-width: 991px) {
    /*.header .nav-link.active,*/
    .header .nav-link.current,
    /*.header li.active > a */{
        border-left: 4px solid var(--heritage-gold);
        background-color: rgba(212, 165, 116, 0.2) !important;
        color: var(--text-white) !important;
        font-weight: 700;
        padding-left: calc(1.2rem - 4px) !important;
    }
    
    /* Remove the triangle indicator on mobile */
    .header .nav-link.active::after,
    .header li.active > a::after {
        display: none;
    }
    
    /* Mobile active hover */
    .header .nav-link.active:hover,
    .header li.active > a:hover {
        background-color: rgba(212, 165, 116, 0.3) !important;
    }
}

/* Smooth transitions for all navigation states */
.header .nav-link,
.header .nav-link::after {
    transition: all 0.3s ease;
}

/* Alternative Style Option 1: Bold Underline */
.nav-style-underline .header .nav-link.active,
.nav-style-underline .header li.active > a {
    background-color: transparent !important;
    color: var(--heritage-gold) !important;
    border-bottom: 3px solid var(--heritage-gold);
    font-weight: 700;
    border-radius: 0;
}

/* Alternative Style Option 2: Pill Style */
.nav-style-pill .header .nav-link.active,
.nav-style-pill .header li.active > a {
    background-color: var(--heritage-gold) !important;
    color: var(--heritage-green-dark) !important;
    border-radius: 20px;
    font-weight: 700;
    padding: 0.6rem 1.5rem !important;
}

/* Alternative Style Option 3: Top Border */
.nav-style-top .header .nav-link.active,
.nav-style-top .header li.active > a {
    background-color: rgba(212, 165, 116, 0.15) !important;
    color: var(--heritage-gold) !important;
    border-top: 3px solid var(--heritage-gold);
    font-weight: 700;
    border-radius: 0;
}

/* Ensure specificity over Joomla defaults */
.header .navbar-nav .nav-item.active > .nav-link,
.header .navbar-nav .current > .nav-link,
body .header .menu .current > a,
body .header .menu .active > a {
    background-color: var(--heritage-gold) !important;
    color: var(--heritage-green-dark) !important;
    font-weight: 700;
}

/* For Joomla menu module */
.mod-menu .nav .active > a,
.mod-menu .nav .current > a,
.mod-menu__list .current > a,
.mod-menu__list .active > a {
    background-color: var(--heritage-gold) !important;
    color: var(--heritage-green-dark) !important;
    font-weight: 700;
}

/* Visited active links should maintain active styling */
.header .nav-link.active:visited,
.header li.active > a:visited {
    color: var(--heritage-green-dark) !important;
}

/* Print styling - mark current page */
@media print {
    .header .nav-link.active::before,
    .header li.active > a::before {
        content: "► ";
        font-weight: bold;
    }
}




        
        h1 {
            color: #2c5f2d;
            border-bottom: 3px solid #2c5f2d;
            padding-bottom: 10px;
        }
        
        .intro {
            background-color: #fff;
            padding: 20px;
            margin-bottom: 20px;
            border-left: 4px solid #2c5f2d;
        }
        
        details {
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 10px;
            overflow: hidden;
        }
        
        summary {
            background-color: #2c5f2d;
            color: white;
            padding: 15px 20px;
            cursor: pointer;
            font-weight: bold;
            font-size: 1.1em;
            user-select: none;
            transition: background-color 0.3s;
        }
        
        summary:hover {
            background-color: #3d7a3e;
        }
        
        summary::-webkit-details-marker {
            display: none;
        }
     
        .content {
            padding: 20px;
            background-color: #fff;
        }
        
        .content h3 {
            color: #2c5f2d;
            margin-top: 0;
        }
        
        .content h4 {
            color: #4a8c4d;
            margin-top: 20px;
        }
        
        .content ul {
            padding-left: 25px;
        }
        
        .content li {
            margin-bottom: 8px;
        }
        
        .highlight {
            background-color: #fffbea;
            padding: 15px;
            border-left: 3px solid #f0ad4e;
            margin: 15px 0;
        }
        
        .family-list {
            background-color: #f5f5f5;
            padding: 15px;
            border-radius: 5px;
            margin: 10px 0;
        }
        
        em {
            color: #666;
        }
        
        strong {
            color: #2c5f2d;
        }
        
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            summary {
                font-size: 1em;
                padding: 12px 15px;
            }
            
            .content {
                padding: 15px;
            }
        }

/* ====================================
   HERO IMAGE SECTION
   ==================================== */

.jc-hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin: -40px -40px 30px -40px; /* Extends beyond article padding */
}

.jc-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.jc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 95, 45, 0.7); /* Uses your heritage-green with transparency */
    z-index: 2;
}

.jc-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
}

.jc-hero-content h1 {
    color: #fff !important;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border: none !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.jc-hero-content p {
    font-size: 1.25rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .jc-hero-section {
        min-height: 300px;
        margin: -25px -25px 20px -25px;
    }
    
    .jc-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .jc-hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .jc-hero-section {
        min-height: 250px;
        margin: -20px -20px 15px -20px;
    }
    
    .jc-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .jc-hero-content p {
        font-size: 0.95rem;
    }
}
.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0 2rem;
    gap: 1rem;
}

.chapter-nav a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #8b7355;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.chapter-nav a:hover {
    background: #6d5a42;
}

.nav-prev::before {
    content: "← ";
}

.nav-next::after {
    content: " →";
}

@media (max-width: 600px) {
    .chapter-nav {
        flex-direction: column;
    }
}
/* ====================================
   10. PHOTO ELEMENTS (Article Body)
   ==================================== */

/* Photo Figure Base */
.com-content-article__body figure.photo-figure,
figure.photo-figure {
    margin: 2em 0;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.com-content-article__body figure.photo-figure img,
figure.photo-figure img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #f5f5f5;
}

figcaption {
    padding: 1em 1.5em;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    background-color: var(--heritage-cream);
    border-top: 1px solid var(--border-light);
    line-height: 1.6;
}

/* Featured Photos */
.com-content-article__body .photo-featured,
.photo-featured {
    border: 2px solid var(--heritage-olive);
    margin: 2.5em 0;
}

.com-content-article__body .photo-featured figcaption,
.photo-featured figcaption {
    font-style: normal;
}

.com-content-article__body .photo-featured figcaption h3,
.photo-featured figcaption h3 {
    color: var(--heritage-green);
    margin: 0 0 0.5em 0;
    font-size: 1.2rem;
}

.com-content-article__body .photo-featured figcaption p,
.photo-featured figcaption p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* Photo Rows */
.com-content-article__body .photo-row,
.photo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.com-content-article__body .photo-row-three,
.photo-row-three {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.com-content-article__body .photo-row .photo-figure,
.photo-row .photo-figure {
    margin: 0;
}

/* Photo Gallery */
.com-content-article__body .photo-gallery,
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
    margin: 2em 0;
}

.com-content-article__body .photo-gallery .photo-figure,
.photo-gallery .photo-figure {
    margin: 0;
}

.com-content-article__body .photo-gallery figcaption,
.photo-gallery figcaption {
    padding: 0.8em 1em;
    font-size: 0.85rem;
}

/* Portrait/Document Photos (Centered) */
.com-content-article__body .photo-portrait,
.com-content-article__body .photo-document,
.photo-portrait,
.photo-document {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Photo Hover Effect */
.com-content-article__body figure.photo-figure:hover,
figure.photo-figure:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s;
}

/* Wrapper ensures caption matches image width */
.photo-figure {
  display: inline-block; /* Shrink-wraps to content */
  max-width: 100%;
  margin: 1em 0;
}

.photo-figure img {
  max-height: 650px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.photo-figure figcaption {
  margin-top: 0.5em;
  text-align: center;
  font-size: 0.9em;
  color: #666;
  /* Caption will naturally match the img width now */
}

/* For blog images */
.blog-item figure.item-image {
  display: inline-block;
  max-width: 100%;
}

.blog-item figure.item-image img {
  max-height: 500px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.blog-item figure.item-image figcaption {
  margin-top: 0.5em;
  font-size: 0.85em;
  color: #666;
}

/* Preserve float behavior */
figure.left {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

figure.right {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

/* Make figure shrink-wrap to image width */
.photo-figure {
  width: fit-content; /* This is the key! */
  max-width: 100%;
  margin: 1em auto; /* auto centers it */
}

.photo-figure img {
  max-height: 650px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.photo-figure figcaption {
  margin-top: 0.5em;
  text-align: center;
  font-size: 0.9em;
  color: #666;
}

/* For blog images */
.blog-item figure.item-image {
  width: fit-content;
  max-width: 100%;
}

.blog-item figure.item-image img {
  max-height: 500px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.blog-item figure.item-image figcaption {
  margin-top: 0.5em;
  font-size: 0.85em;
  color: #666;
}

/* Preserve float behavior */
figure.left {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

figure.right {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}
/* Make figure shrink-wrap to image width */
.photo-figure {
  width: fit-content; /* This is the key! */
  max-width: 100%;
  margin: 1em auto; /* auto centers it */
}

.photo-figure img {
  max-height: 650px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.photo-figure figcaption {
  margin-top: 0;
  text-align: center;
  font-size: 0.9em;
  color: #666;
}

/* For blog images */
.blog-item figure.item-image {
  width: fit-content;
  max-width: 100%;
}

.blog-item figure.item-image img {
  max-height: 650px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.blog-item figure.item-image figcaption {
  margin-top: 0.5em;
  font-size: 0.85em;
  color: #666;
}

/* Preserve float behavior */
figure.left {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

figure.right {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

details[open] summary::before {
    transform: rotate(-180deg);
}

summary::before {
    content: "▼";
    display: inline-block;
    font-size: 1.2rem;
    transition: transform 0.3s;
    margin-right: 10px;
}
/* Minimal custom CSS - heritage touches only */
/* Most styling uses Bootstrap classes from Cassiopeia template */

.family-timeline {
    font-family: Georgia, 'Times New Roman', serif;
}

.generation-header {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.generation-header:hover {
    opacity: 0.9;
}

.generation-header .toggle-icon {
    transition: transform 0.3s ease;
    float: right;
    font-size: 1.2em;
}

.generation-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Heritage color accents - adjust these to match your site */
.heritage-brown {
    background: linear-gradient(to right, #8b6f47, #a88962);
    color: white;
}

.heritage-border-left {
    border-left: 3px solid #8b6f47;
}

.heritage-border-left.featured {
    border-left-width: 5px;
    border-left-color: #c19a6b;
}

.emigration-section {
    background: #e8f4f8;
    border: 2px solid #7ba7bc;
}

.emigration-section h3 {
    color: #2d5f7a;
}

.beekeeping-section {
    background: #fff8e7;
    border: 2px solid #d4a76a;
}

.beekeeping-section h3 {
    color: #8b6914;
}

.timeline-marker {
    display: inline-block;
    background: #8b6f47;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-right: 5px;
}

.child-name {
    font-weight: 600;
}

/* Print styles */
@media print {
    .generation-header .toggle-icon {
        display: none;
    }
    
    .collapse {
        display: block !important;
        height: auto !important;
    }
}