/* Custom CSS for header footer and special functions */

section.article-details ul li.checkmark {
    list-style-type: none;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.75;
}

section.article-details ul li.checkmark:before {
    content: '';
    width: 21px;
    height: 21px;
    background: red;
    float: left;
    background: url(https://southrivermortgage.fixed-staging.co.uk/wp-content/themes/south-river-mortgage/images/check-icon.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    margin-right: 6px;
    margin-top: 2px;
    margin-left: -18px;
}

@media(min-width: 756px) {
    .lender-icon {
        right: 120px;
        bottom: 70px;
    }
}

.rating span.tes-spn1 {
    font-family: "Inter", sans-serif;
}

.reviews-lon-contnet-1 p {
    font-weight: 400;
}

.footer-text a {
    color: #FFF;
}

.reviews-lon-contnet-1 li {
    font-weight: inherit;
}

a.banner-btn1,
.via-loan-reviews,
.loan-steps-al {
    display: none;
}

#footer>div.footer-call>div>div>div.footre-call-headline>h2>a {
    color: #fff;
}

.page-id-326 #map_wrapper_488 #id-427,
.page-id-326 #map_wrapper_488 #id-317,
.page-id-326 #map_wrapper_488 path[d^="M208.73967293251292"],
.page-id-326 #map_wrapper_488 path[d^="M300.6380768407673"] {
    display: none;
}

.tool-kit-flex::before {
    top: 0;
    bottom: unset;
    height: 100%;
}

.tool-kit-content p {
    font-size: 15px;
}

.via-loan-side-bar a:not([class*=btn]) {
    display: block;
    color: #7E8492;
    font-feature-settings: 'liga' off, 'calt' off;
    font-family: "Plus Jakarta Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    padding-bottom: 10px;
}

.via-loan-side-bar a:not([class*=btn]):hover {
    color: #3B7ADE;
}

.reviews-lon-contnet-1 a {
    padding-bottom: 0;
}

.page-id-15 .home-testi-main span.line-c-1,
.page-id-15 .home-testi-main span.line-c-2,
.page-id-15 .testimonial-images img {
    display: none;
}

/* Desktop view (1200px and above) */
@media (min-width: 1200px) {
    .header-call a {
        display: inline-block;
    }

    .header-call .hamburger {
        display: none !important;
    }

    .floating-call {
        display: none;
    }
      .header-pages ul#menu-header-menu li a {
    font-size: 20px !important;  /* change to your desired size */
    line-height: 1.6 !important; /* adjust spacing */
  }

  .header-pages ul#menu-header-menu li a {
    font-size: 22px !important;  /* change to your desired size */
    line-height: 1.6 !important; /* adjust spacing */
  }
}

/* Tablet & Mobile view (below 1200px) */
@media (max-width: 1199px) {

    /* Hide Call Us in header */
    .header-call a {
        display: none !important;
    }

    #scroll-up-bar {
        display: none !important;
    }

    /* Reposition header-call container for hamburger */
    .header-call {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    /* Hamburger styling */
    .header-call .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
    }

    .header-call .hamburger span {
        display: block;
        height: 3px;
        background: #fff;
        /* always white */
        border-radius: 2px;
    }

    /* Hide duplicate hamburger inside nav */
    .header-pages .hamburger {
        display: none !important;
    }

    /* --- Floating Call Us button --- */
    body .header-call.floating {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        display: block !important;
    }

    body .header-call.floating a {
        display: inline-block !important;
        background-color: #3B7ADE;
        /* brand color */
        color: #fff !important;
        padding: 12px 20px;
        border-radius: 50px;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .floating-call {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }

    .floating-call a img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        background-color: #2f5ebc;
        /* same blue as the circle */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .header-pages.ham-active {
        position: fixed;
        inset: 0;
        z-index: 10010;
        overflow-y: auto;

    }

    body.menu-open header.header-mains {
        z-index: 1000;
    }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 10020; /* keep above overlay */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center; /* keep rotations aligned */
}

/* When active, morph to X */
.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(6.7px, 6.7px);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6.5px, -6.5px);
}
body.menu-open {
  overflow: hidden; /* prevents page flicker / background scroll */
}
.mobile-nav.ham-active {
  position: fixed;
  inset: 0;
  z-index: 10010;
  overflow-y: auto;
  background: #000; /* if you need overlay bg */
}

.footer-ehl {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: -50px;
    margin-right: 25px;
    z-index: 5;
}

.footer-ehl img.lender-icon {
    width: 30px; 
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-ehl img.lender-icon:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-ehl {
        margin-top: -20px;
        justify-content: center;
    }
}

/* ZeroBounce Email Validation Styles */
.email-validation-message {
    margin-top: 8px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

.email-validation-message strong {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.email-validation-success strong,
.email-validation-valid strong {
    color: #155724 !important;
}

.email-validation-success,
.email-validation-valid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-validation-error,
.email-validation-invalid {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.email-validation-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.email-validation-validating {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

input[name="email"].email-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

input[name="email"].email-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

input[name="email"].email-validating {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* ============================================
   Beautiful Comments Section Styling
   ============================================ */

/* Comments Section Container */
.article-comments-section {
    padding: 60px 0 80px;
    margin-top: 40px;
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.article-comments-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Comments Header */
.comments-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3B7ADE;
}

.comments-title {
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #142F57;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.comments-count {
    color: #3B7ADE;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment-list,
.comment-list .children {
    margin-left: 60px;
    margin-top: 36px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.comment-list .comment-list .comment-item,
.comment-list .children .comment-item {
    margin-bottom: 0;
}

.comment-item {
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
}

.comment-wrapper {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-wrapper:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Nested comments (replies) */
.comment-list .comment-item .comment-wrapper {
    background: #f8fafc;
    border-color: rgba(59, 122, 222, 0.15);
}

.comment-list .comment-list .comment-item .comment-wrapper {
    background: #fff;
}

/* Comment Avatar */
.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.comment-wrapper:hover .comment-avatar-img {
    border-color: #3B7ADE;
}

/* Comment Content */
.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-author {
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #142F57;
    font-style: normal;
}

.comment-author a {
    color: #142F57;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author a:hover {
    color: #3B7ADE;
}

.comment-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #3B7ADE 0%, #2f5ebc 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-time {
    font-size: 14px;
    color: #9CA3AF;
    font-family: "Inter", sans-serif;
}

.comment-text {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1F2937;
    margin-bottom: 16px;
}

.comment-text p {
    margin: 0 0 12px;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-awaiting-moderation {
    background: #FEF3C7;
    color: #92400E;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    border-left: 3px solid #F59E0B;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3B7ADE;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(59, 122, 222, 0.08);
}

.comment-reply-link:hover {
    background: rgba(59, 122, 222, 0.15);
    color: #2f5ebc;
    transform: translateX(2px);
}

.reply-icon {
    font-size: 16px;
    line-height: 1;
}

.edit-comment-link {
    font-size: 14px;
}

.edit-comment-link a {
    color: #7E8492;
    text-decoration: none;
    transition: color 0.3s ease;
}

.edit-comment-link a:hover {
    color: #3B7ADE;
}

/* Comment Form */
.comment-form {
    margin-top: 50px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comment-form-title {
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #142F57;
    margin: 0 0 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-comment {
    margin-bottom: 24px;
}

.comment-label {
    display: block;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.comment-label .required {
    color: #EF4444;
    margin-left: 2px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1F2937;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3B7ADE;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 122, 222, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .form-submit {
    margin-top: 8px;
}

.comment-submit-btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3B7ADE 0%, #2f5ebc 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 122, 222, 0.3);
}

.comment-submit-btn:hover {
    background: linear-gradient(135deg, #2f5ebc 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(59, 122, 222, 0.4);
    transform: translateY(-2px);
}

.comment-submit-btn:active {
    transform: translateY(0);
}

.cancel-reply-link {
    display: inline-block;
    margin-left: 16px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #7E8492;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cancel-reply-link:hover {
    color: #3B7ADE;
}

/* Comment Navigation */
.comment-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 10px 18px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #3B7ADE;
    background: rgba(59, 122, 222, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(59, 122, 222, 0.15);
    transform: translateY(-2px);
}

.nav-links .current {
    background: #3B7ADE;
    color: #fff;
}

.nav-links span {
    color: #7E8492;
    background: #e2e8f0;
    cursor: default;
}

/* No Comments Message */
.no-comments {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #7E8492;
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-comments-section {
        padding: 40px 20px 60px;
        margin-top: 30px;
    }

    .comments-title {
        font-size: 26px;
    }

    .comment-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .comment-avatar {
        align-self: flex-start;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-list .comment-list,
    .comment-list .children {
        margin-left: 20px;
        margin-top: 30px;
        gap: 22px;
    }

    .comment-form {
        padding: 24px 20px;
    }

    .comment-form-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .article-comments-section {
        padding: 30px 15px 50px;
    }

    .comments-title {
        font-size: 22px;
    }

    .comment-wrapper {
        padding: 16px;
    }

    .comment-author {
        font-size: 16px;
    }

    .comment-text {
        font-size: 15px;
    }

    .comment-form {
        padding: 20px 16px;
    }

    .comment-form-title {
        font-size: 20px;
    }

    .comment-list .comment-list,
    .comment-list .children {
        margin-left: 10px;
        margin-top: 24px;
        gap: 18px;
    }
}

/* ============================================
   Search Results Page Styling
   ============================================ */
.search-page {
    padding: 72px 0 96px;
    background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 55%);
}

.search-page__header {
    max-width: 720px;
    margin: 80px auto 56px;
    text-align: center;
}

.search-page__eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #3B7ADE;
    margin-bottom: 12px;
}

.search-page__title {
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 16px;
}

.search-page__summary {
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 32px;
}

.search-page__form-wrapper {
    display: flex;
    justify-content: center;
}

.search-page__form {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    padding: 8px 10px 8px 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.search-page__form:focus-within {
    box-shadow: 0 16px 32px rgba(59, 122, 222, 0.2), 0 0 0 2px rgba(59, 122, 222, 0.15);
}

.search-page__form-field {
    flex: 1;
    margin: 0;
}

.search-page__input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 18px;
    padding: 8px 0;
    color: #0f172a;
}

.search-page__input::placeholder {
    color: #94a3b8;
}

.search-page__input:focus {
    outline: none;
}

.search-page__submit {
    border: none;
    background: linear-gradient(135deg, #3B7ADE 0%, #2E5EB1 100%);
    color: #fff;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 14px;
}

.search-page__submit::after {
    content: '';
    width: 16px;
    height: 16px;
    background: #ffffff;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M5 12h14m-7-7 7 7-7 7"/></svg>') center/contain no-repeat;
}

.search-page__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 122, 222, 0.3);
}

.search-page__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 122, 222, 0.35);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.search-result-card {
    background: #ffffff;
    border: 1px solid rgba(46, 94, 177, 0.08);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-result-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(59, 122, 222, 0.18);
}

.search-result-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.search-result-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.search-result-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    flex: 1;
}

.search-result-card__meta {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3B7ADE;
}

.search-result-card__title {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.search-result-card__excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    flex: 1;
}

.search-result-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 14px;
    color: #2E5EB1;
}

.search-result-card__cta::after {
    content: '→';
    transition: transform 0.2s ease;
}

.search-result-card:hover .search-result-card__cta::after {
    transform: translateX(6px);
}

.search-pagination {
    margin-top: 64px;
    text-align: center;
}

.search-page__empty {
    max-width: 560px;
    margin: 0 auto;
}

.search-empty-card {
    background: #ffffff;
    border: 1px solid rgba(46, 94, 177, 0.1);
    border-radius: 24px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.search-empty-card__title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
}

.search-empty-card__copy {
    font-size: 17px;
    color: #475569;
    margin: 0;
}

@media (max-width: 768px) {
    .search-page {
        padding: 56px 0 72px;
    }

    .search-page__header {
        margin-bottom: 40px;
    }

    .search-page__form {
        flex-direction: column;
        align-items: stretch;
        border-radius: 28px;
        padding: 16px 20px;
    }

    .search-page__submit {
        width: 100%;
        justify-content: center;
    }
}
