/**
 * Custom CSS for additional styling
 *
 * @package Were_Ready
 */

/* Additional styles beyond style.css */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #004499;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-donate {
    background-color: #d9534f;
    color: #fff;
}

.btn-donate:hover,
.btn-donate:focus {
    background-color: #c9302c;
    color: #fff;
}

/* Header enhancements */
.site-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    animation: slideDown 0.3s ease-out;
}

.site-header.hidden {
    transform: translateY(-100%);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Navigation enhancements */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1000;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-icon span {
    width: 24px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Desktop: Ensure menu and donate button are inline */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }

    .menu-primary-container {
        display: flex !important;
        align-items: center;
    }

    .primary-menu {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .header-actions {
        margin-left: 1rem;
    }
}

/* Hero section enhancements */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Donation form styling */
.custom-amount-wrapper {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
}

.custom-amount-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.custom-amount-wrapper input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.custom-amount-wrapper input:focus {
    outline: none;
    border-color: #0066cc;
}

.frequency-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.frequency-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.frequency-options input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Trust section */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trust-badge {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.trust-badge h3 {
    color: #0066cc;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Footer enhancements */
.footer-bottom {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.legal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-links .separator {
    color: #999;
}

/* Form placeholder */
.form-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.form-placeholder p {
    margin-bottom: 1rem;
}

.form-placeholder .btn {
    margin: 0.5rem;
}

.donation-security {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8f4f8;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
}

/* Alternative giving */
.giving-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.giving-option {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.giving-option h4 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

/* Mission section */
.mission-section {
    padding: 3rem 0;
    text-align: center;
}

.mission-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Section common styles */
section {
    padding: 3rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle,
.section-intro {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

/* Loading animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   Submenu / Dropdown Styles (Desktop)
   ============================================ */

/* Submenu container */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
}

/* Show submenu on hover (desktop) */
.primary-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Submenu items */
.primary-menu .sub-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.primary-menu .sub-menu li:last-child {
    border-bottom: none;
}

/* Submenu links */
.primary-menu .sub-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
    background: #f8f9fa;
    color: #0066cc;
}

/* Nested submenus (third level) */
.primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
}

.primary-menu .sub-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Visual indicator for menu items with children */
.primary-menu .menu-item-has-children > a::after {
    content: '\25BC';
    font-size: 0.7em;
    margin-left: 0.5rem;
    opacity: 0.6;
}

.primary-menu .sub-menu .menu-item-has-children > a::after {
    content: '\25B6';
    float: right;
    margin-left: 0;
}

/* Menu item with image and submenu */
.menu-item-has-image.menu-item-has-children > a {
    display: flex;
    align-items: center;
}

.menu-item-has-image.menu-item-has-children > a::after {
    margin-left: auto;
}

/* Ensure parent menu item is positioned */
.primary-menu .menu-item-has-children {
    position: relative;
}

/* Submenu toggle button (mobile - will be styled in mobile section) */
.submenu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-branding {
        flex: 0 1 auto;
    }

    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .menu-primary-container {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: auto;
        max-height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 999;
        overflow-y: auto;
        padding: 1.5rem;
        flex-direction: column;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 0 12px;
        transform: translateX(100%);
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        opacity: 0;
    }

    .menu-primary-container.toggled {
        display: flex;
        transform: translateX(0);
        opacity: 1;
    }

    .primary-menu {
        flex-direction: column;
        width: 100%;
    }

    .primary-menu li {
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
    }

    .primary-menu li:last-child {
        border-bottom: none;
    }

    /* Menu items with children need flex row for link + toggle button */
    .primary-menu .menu-item-has-children {
        position: relative;
    }

    .primary-menu .menu-item-has-children > .menu-item-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .primary-menu a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
        flex: 1;
    }

    /* Hide desktop hover behavior on mobile */
    .primary-menu .menu-item-has-children:hover > .sub-menu {
        /* display: none; */
    }

    /* Remove desktop dropdown arrows on mobile */
    .primary-menu .menu-item-has-children > a::after,
    .primary-menu .sub-menu .menu-item-has-children > a::after {
        display: none;
    }

    /* Submenu toggle button (mobile accordion) */
    .submenu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(0, 102, 204, 0.1);
        border: 2px solid #0066cc;
        border-radius: 6px;
        padding: 0.4rem 0.6rem;
        margin-left: 0.75rem;
        cursor: pointer;
        font-size: 1.3rem;
        font-weight: bold;
        line-height: 1;
        color: #0066cc;
        transition: all 0.3s ease;
        flex-shrink: 0;
        min-width: 36px;
        height: 36px;
    }

    .submenu-toggle:hover,
    .submenu-toggle:focus {
        background: rgba(0, 102, 204, 0.2);
        color: #004499;
        border-color: #004499;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .submenu-toggle[aria-expanded="true"] {
        background: #0066cc;
        color: #fff;
        transform: rotate(45deg);
        border-color: #0066cc;
    }

    .submenu-toggle .screen-reader-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }

    /* Submenu container (mobile accordion) */
    .primary-menu .sub-menu {
        max-height: 0;
        overflow: hidden;
        position: static;
        width: 100%;
        background: rgba(0, 102, 204, 0.05);
        box-shadow: none;
        border-radius: 4px;
        padding: 0;
        margin: 0.5rem 0 0 1rem;
        border-left: 3px solid #0066cc;
        transition: max-height 0.4s ease-out, padding 0.3s ease-out;
        opacity: 1;
    }

    .primary-menu .sub-menu.toggled {
        max-height: 500px;
        padding: 0.5rem 0;
        transition: max-height 0.4s ease-in, padding 0.3s ease-in;
        display: block;
    }

    /* Submenu items (mobile) */
    .primary-menu .sub-menu li {
        padding: 0.25rem 0;
        border-bottom: none;
    }

    /* Submenu links (mobile) */
    .primary-menu .sub-menu a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        color: #333;
        display: block;
        background: transparent;
        transition: all 0.2s ease;
    }

    .primary-menu .sub-menu a:hover,
    .primary-menu .sub-menu a:focus {
        background: rgba(0, 102, 204, 0.1);
        color: #0066cc;
        padding-left: 1.25rem;
    }

    /* Nested submenus (mobile) */
    .primary-menu .sub-menu .sub-menu {
        margin-left: 1rem;
        border-left-color: rgba(0, 102, 204, 0.5);
    }

    .primary-menu .sub-menu .submenu-toggle {
        font-size: 1rem;
        min-width: 28px;
        height: 28px;
    }

    /* Menu items with images on mobile */
    .primary-menu .menu-item-has-image a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .primary-menu .menu-item-has-image .menu-item-image {
        max-width: 28px;
        max-height: 28px;
    }

    .header-actions {
        margin-left: 0;
    }

    .header-actions .btn-donate {
        display: block;
        width: auto;
        text-align: center;
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }
}

/* Smaller mobile screens */
@media (max-width: 480px) {
    .menu-primary-container {
        width: 90%;
        max-width: 280px;
    }
}

/* ============================================
   Blog Listing Page Styles
   ============================================ */

/* Blog Posts Grid - Only for blog listing pages */
.posts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Regular Page Content - For standard pages */
.page-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-content .entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-content .entry-content p {
    margin-bottom: 1.5rem;
}

.page-content .entry-content h2,
.page-content .entry-content h3,
.page-content .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content .entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Individual Post Card */
article.post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

article.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Featured Image */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

article.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

article.post:hover .post-thumbnail::after {
    opacity: 1;
}

/* Entry Header */
.entry-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.entry-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover,
.entry-title a:focus {
    color: #0066cc;
    text-decoration: none;
}

/* Entry Meta */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.entry-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #0066cc;
}

.posted-on,
.byline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.posted-on::before {
    content: '📅';
    font-size: 0.85rem;
}

.byline::before {
    content: '✍️';
    font-size: 0.85rem;
}

/* Entry Content */
.entry-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #555;
}

/* Read More Button */
.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more:hover,
.read-more:focus {
    background: #004499;
    color: #fff;
    text-decoration: none;
    transform: translateX(4px);
}

/* Entry Footer */
.entry-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.cat-links,
.tags-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cat-links a,
.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.cat-links a:hover,
.tags-links a:hover {
    background: #0066cc;
    color: #fff;
    text-decoration: none;
}

/* Posts Navigation */
.posts-navigation,
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #f0f0f0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 200px;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #0066cc;
    color: #fff;
    transform: translateX(-4px);
}

.nav-next a:hover {
    transform: translateX(4px);
}

.nav-previous a::before {
    content: '← ';
}

.nav-next a::after {
    content: ' →';
}

/* No Posts Found */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results .page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #666;
}

.no-results .page-content {
    font-size: 1.1rem;
    color: #999;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .posts-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .entry-title {
        font-size: 1.25rem;
    }

    .entry-header {
        padding: 1.25rem 1.25rem 0.5rem;
    }

    .entry-content {
        padding: 0 1.25rem 20px;
    }

    .entry-footer {
        padding: 1rem 1.25rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .posts-wrapper {
        gap: 1.25rem;
    }

    .entry-title {
        font-size: 1.15rem;
    }

    .entry-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
    }
}


/* ============================================
   Single Blog Post Styles
   ============================================ */

/* Single Post Container */
.single article.post {
    background: #fff;
    box-shadow: none;
}

/* Single Post Featured Image */
.single .post-thumbnail {
    margin: 0 0 2rem;
    aspect-ratio: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.single .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Single Post Entry Header */
.single .entry-header {
    padding: 0;
    margin-bottom: 1.5rem;
}

.single .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 1rem 0 2rem;
    font-size: 0.95rem;
}

.single .entry-meta > * {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Single Post Content */
.single .entry-content {
    margin: 0 auto;
    padding: 0;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.single .entry-content > * {
    margin-bottom: 1.5rem;
}

.single .entry-content p {
    margin-bottom: 1.5rem;
}

.single .entry-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #222;
    font-weight: 700;
}

.single .entry-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
}

.single .entry-content h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 600;
}

.single .entry-content ul,
.single .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single .entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.single .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

.single .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single .entry-content a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.single .entry-content a:hover {
    color: #004499;
    text-decoration: underline;
}

.single .entry-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.single .entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.single .entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.single .entry-content th,
.single .entry-content td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.single .entry-content th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Single Post Footer */
.single .entry-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.single .entry-footer .cat-links,
.single .entry-footer .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.single .entry-footer .cat-links::before {
    content: 'Categories: ';
    font-weight: 600;
    color: #666;
    margin-right: 0.5rem;
}

.single .entry-footer .tags-links::before {
    content: 'Tags: ';
    font-weight: 600;
    color: #666;
    margin-right: 0.5rem;
}

/* Post Navigation */
.single .post-navigation {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem 0;
}

.single .post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.single .post-navigation .nav-previous,
.single .post-navigation .nav-next {
    min-width: auto;
}

.single .post-navigation a {
    display: block;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.single .post-navigation a:hover {
    background: #fff;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.single .post-navigation .nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.single .post-navigation .nav-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.single .post-navigation .nav-previous a::before,
.single .post-navigation .nav-next a::after {
    display: inline-block;
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

/* Author Bio */
.author-bio {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    gap: 2rem;
}

.author-bio .avatar {
    flex-shrink: 0;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.author-bio-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.author-bio-content .author-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-bio-content a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.author-bio-content a:hover {
    text-decoration: underline;
}

/* Comments Section */
.comments-area {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 0;
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.comment-body {
    display: flex;
    gap: 1.5rem;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.comment-content {
    flex: 1;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.comment-metadata a {
    color: #999;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #0066cc;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: #0066cc;
    color: #fff;
}

/* Responsive Adjustments for Single Posts */
@media (max-width: 768px) {
    .single .entry-content {
        font-size: 1.05rem;
    }

    .single .entry-content h2 {
        font-size: 1.75rem;
    }

    .single .entry-content h3 {
        font-size: 1.35rem;
    }

    .single .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-bio .avatar {
        margin: 0 auto;
    }

    .comment-body {
        flex-direction: column;
    }

    .comment-author .avatar {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .single .site-content {
        padding: 1rem 0 2rem;
    }

    .single .entry-content {
        font-size: 1rem;
    }

    .single .entry-content h2 {
        font-size: 1.5rem;
    }

    .single .entry-content h3 {
        font-size: 1.25rem;
    }

    .single .entry-content blockquote {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}


/* ============================================
   Menu Images Support
   ============================================ */

/* Menu item with image */
.menu-item-has-image > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Menu item image styling */
.menu-item-image {
    max-width: 24px;
    max-height: 24px;
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Image position: before (default) */
.menu-image-before {
    order: -1;
}

/* Image position: after */
.menu-image-after {
    order: 1;
}

/* Image position: above */
.menu-image-above {
    display: block;
    margin: 0 auto 0.25rem;
    max-width: 32px;
    max-height: 32px;
}

.menu-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Image position: replace (image only) */
.menu-image-replace {
    max-width: 28px;
    max-height: 28px;
}

/* Hover effects for menu images */
.menu-item-has-image > a:hover .menu-item-image {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Mobile menu image adjustments */
@media (max-width: 768px) {
    .menu-item-has-image > a {
        padding: 0.75rem 0;
    }

    .menu-item-image {
        max-width: 28px;
        max-height: 28px;
    }

    .menu-image-above {
        max-width: 36px;
        max-height: 36px;
        margin-bottom: 0.5rem;
    }

    .menu-image-replace {
        max-width: 32px;
        max-height: 32px;
    }
}

/* Ensure images don't break layout */
.primary-menu .menu-item-has-image {
    display: flex;
    align-items: center;
}

.primary-menu .menu-item-has-image > a {
    width: 100%;
}

/* Support for SVG icons */
.menu-item-image[src$=".svg"] {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .menu-item-image[src$=".svg"] {
        width: 28px;
        height: 28px;
    }
}

/* Footer Menu Horizontal Layout */
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
    position: relative;
    padding-right: 30px;
}

.footer-menu li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0.75rem;
    color: #fff;
}

.footer-menu a {
    text-decoration: none;
    font-weight: 500;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
}

.footer-navigation {
    margin-bottom: 1.5rem;
    text-align: center;
    margin: 0 auto;
}

.copyright {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.mission-statement {
    margin-top: 1.5rem;
    font-style: italic;
}

/* Block heading styling */
.wp-block-heading {
    font-weight: 700;
}

@media (max-width: 768px) {
    .wp-block-heading {
        font-size: calc(1em - 2px);
    }
}

