/* Neo Mycologist Tab Styles */
.nm-banner-container {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.nm-banner {
    width: 100%;
    height: 150px;
    object-fit: contain;
    object-position: center;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nm-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.nm-sidebar {
    flex: 0 0 250px;
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

.nm-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nm-nav-btn {
    padding: 12px 15px;
    text-align: left;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #444;
}

.nm-sidebar-decorations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nm-sidebar-decorations img {
    width: 100%;
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.nm-sidebar-decorations img:hover {
    opacity: 1;
}

.nm-nav-btn:hover {
    background-color: #eef;
    color: #004a91;
    border-color: #cce;
}

.nm-nav-btn.active {
    background-color: #004a91;
    color: #fff;
    border-color: #004a91;
}

.nm-content-area {
    flex: 1;
    min-width: 300px;
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nm-subtab-content {
    position: relative;
    animation: fadeIn 0.5s;
}

.nm-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align to top in case title wraps */
    gap: 20px;
    margin-bottom: 20px;
}

.nm-tab-header h2 {
    margin-top: 0;
    /* Align with top of image properly */
    margin-bottom: 0;
    /* Let container handle spacing or rely on internal element */
    flex: 1;
}

.nm-decoration-icon {
    /* Removed absolute positioning */
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .nm-container {
        flex-direction: column;
    }

    .nm-sidebar {
        flex: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 20px;
    }
}

/* Content Spacing (removing need for <br>) */
.nm-content-area p,
.nm-content-area ul,
.nm-content-area h3,
.nm-content-area h4,
.nm-content-area h5,
.nm-content-area blockquote {
    margin-bottom: 15px;
}

.nm-content-area h2 {
    margin-bottom: 20px;
    color: #004a91;
}

.nm-content-area ul {
    padding-left: 20px;
}

/* Footer Icons */
.nm-footer-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nm-footer-icon {
    width: 60px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nm-footer-icon:hover {
    transform: scale(1.1);
}

/* Footer Section */
.nm-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
}

.nm-footer-logo {
    max-width: 600px;
    height: auto;
    display: inline-block;
}

.nm-footer p {
    color: #000;
    margin-top: 10px;
}