/* ============================================
   LINKS: Content links, nav links, hover effects
   ============================================ */

/* Content Link Styling */
.content a,
.rich-text a,
article a {
    color: #515b3a; /* Theme green color */
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.content a:hover,
.rich-text a:hover,
article a:hover {
    color: #3d4629; /* Darker green on hover */
    text-decoration: underline;
    text-shadow: 0 1px 3px rgba(81, 91, 58, 0.3);
}

/* Ensure buttons inside content keep their white text */
.content .btn,
.rich-text .btn,
article .btn {
    color: #fff !important;
    text-decoration: none;
}

/* Heading Links - Maintain larger size and make them stand out */
h2 a,
h3 a,
h4 a {
    color: #515b3a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

h2 a:hover,
h3 a:hover,
h4 a:hover {
    color: #3d4629;
    border-bottom: 2px solid #515b3a;
    text-shadow: 0 2px 4px rgba(81, 91, 58, 0.2);
}

/* Ensure heading links keep their heading size */
h2 a {
    font-size: inherit;
}

h3 a {
    font-size: inherit;
}

h4 a {
    font-size: inherit;
}

/* Link hover animations */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #515b3a;
    transition:
        width 0.3s ease,
        left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Button hover animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Align card buttons at bottom */
.card .card-body {
    display: flex;
    flex-direction: column;
}

.card .card-body .btn {
    margin-top: auto;
}
