.services-page {
    padding-top: 80px; /* Match navbar height, no extra gap */
}
.services-main-title-container {
    display: block;
    text-align: center; /* Centers all child elements horizontally */
    margin-bottom: 40px;
}

.services-main-title {
    display: block; /* Ensures h1 takes its own line */
    font-size: 2rem;
    font-weight: bold;
    color: #0f548c;
    margin: 0 auto; /* Centers the h1 and ensures no extra margins */
}

.fiduciary-disclosure {
    display: block; /* Ensures p tag takes its own line */
    font-size: 20px;
    color: #333;
    margin: 10px auto 0; /* Centers the p and adds slight top margin for spacing */
    font-style: italic;
    text-align: justify;
}

.service-section-pair {
    position: relative;
    animation: explodeOut 1s ease-out; /* Simple explosion animation */
    z-index: 5; /* Above images */
}
@keyframes explodeOut {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.picture-container {
    text-align: center;
    margin: -100px 0 0 0; /* Negative top margin for more overlap with Pair 1 */
    position: relative;
    z-index: 1; /* Behind pairs */
}
.picture-container-2 {
    text-align: center;
    margin: -50px 0 0 0; /* Slight overlap with Pair 2 */
    position: relative;
    z-index: 1; /* Behind pairs */
}
.picture-container img,
.picture-container-2 img {
    width: 500px; /* Smaller central image */
    height: auto;
    animation: centralExplode 1s ease-out;
    display: block;
    margin: 0 auto; /* Center the image */
}
@keyframes centralExplode {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.service-section-pair:nth-child(4) {
    animation-delay: 0.7s; /* Stagger animation for Pair 3 */
}
.service-section-pair:nth-child(2) {
    animation-delay: 0.3s; /* Stagger animation for Pair 2 */
    margin-top: 0; /* No top margin on Pair 2 */
}
.service-section-pair:nth-child(1) {
    animation-delay: 0s; /* Pair 1 animates first */
    margin-bottom: 0; /* No bottom margin on Pair 1 */
}
.service-section-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 30px;
}
.service-section-row:nth-child(odd) {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}
.service-section-row:nth-child(even) {
    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
}
.service-section-row {
    display: flex;
    align-items: center;
}
.service-section-icon {
    font-size: 5.5rem;
    width: 120px;
    height: 120px;
    line-height: 120px;
    display: inline-block;
    text-align: center;
    color: #003366;
    overflow: hidden;
}
.service-section-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #003366;
    text-align: center;
    margin-top: 5px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}
.service-icon-title-group {
    border: 1px solid #003366;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-right: 15px;
    width: 220px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.service-section-writeup {
    font-size: 1rem;
    color: #333;
    flex-grow: 1;
}

.section-title .see-more-link {
    color: #0f548c; /* Matches your title color, adjust as needed */
    text-decoration: underline; /* Optional: adds underline */
    font-weight: normal; /* Optional: differentiates from bold title */
}

.section-title .see-more-link:hover {
    color: #003366; /* Darker shade on hover, adjust as needed */
    text-decoration: none; /* Optional: removes underline on hover */
}

/* Smooth scrolling when clicking a service link */
html { scroll-behavior: smooth; }

/* Make the targeted service stand out */
.service-section-row {
  transition: background-color 250ms ease, box-shadow 250ms ease;
  scroll-margin-top: 100px; /* keeps the target visible beneath fixed navbar */
}

/* Override the alternating greys when the section is targeted */
.service-section-row:target {
  background: #fffbe6 !important;            /* light yellow */
  box-shadow: 0 0 0 2px #ffe58f inset;        /* subtle emphasis */
}

/* Optional: emphasize the title and frame when targeted */
.service-section-row:target .service-section-title {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.service-section-row:target .service-icon-title-group {
  border-color: #d4b106;
}



