/* Marinex homepage — shared visual system for sections below the hero/quote
   widget (services, about us, knowledge-based-services, blog). Memberships
   card styling lives in marinex-memberships.css since it already owns that
   section; shared primitives (watermark, section rhythm, divider accent,
   card/button conventions) live here. Does not touch #homeslider or the
   hero quote widget (marinex-hero-slider.css / marinex-quote.css own those). */

/* ---- Section rhythm ---- */
.marinex-section-pad {
    padding-top: 90px;
    padding-bottom: 90px;
}
@media (max-width: 767.98px) {
    .marinex-section-pad {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

/* ---- Logo-mark watermark (shared) ----
   Source: white-logo-pattern.webp, natural 300x97 (only usable
   high-resolution source — logo-pattern.webp is 81x27 and blurs badly if
   scaled up, so it is never used for watermarks). On light backgrounds the
   white asset is rendered as a solid dark shape via filter:brightness(0)
   at very low opacity; on dark backgrounds it is used as-is at low opacity. */
.marinex-watermark {
    position: absolute;
    width: 380px;
    height: calc(380px * 97 / 300);
    background-image: url('/storage/images/white-logo-pattern.webp');
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}
.marinex-watermark--light {
    filter: brightness(0);
    opacity: 0.06;
}
.marinex-watermark--dark {
    opacity: 0.08;
}
.marinex-watermark--tr {
    top: -40px;
    right: -40px;
    transform: rotate(8deg);
}
.marinex-watermark--br {
    bottom: -40px;
    right: -40px;
    transform: rotate(-8deg);
}
@media (max-width: 767.98px) {
    .marinex-watermark {
        width: 220px;
        height: calc(220px * 97 / 300);
    }
}

/* ---- Small brand-green accent divider (replaces the plain grey
   .bordelinebrand rule for redesigned sections) ---- */
.marinex-divider-accent {
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: #00772d;
    margin: 18px 0;
}

/* ---- Eyebrow badge (About Us "MARINEX LOGISTICS" label) ---- */
.marinex-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.marinex-eyebrow-badge .marinex-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00772d;
    flex-shrink: 0;
}
.marinex-eyebrow-badge .marinex-eyebrow-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0f3450;
}

/* ---- Services section ---- */
.marinex-services-section {
    position: relative;
    overflow: hidden;
}
.marinex-service-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 52, 80, 0.10);
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 1;
}
.marinex-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 52, 80, 0.18);
}

/* ---- About Us section ---- */
.marinex-about-section {
    position: relative;
    overflow: hidden;
}

/* ---- Knowledge-based-services image ---- */
.marinex-kbs-image {
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 52, 80, 0.16);
}

/* ---- Blog cards ---- */
.marinex-blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 52, 80, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.marinex-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 52, 80, 0.18);
}
.marinex-blog-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: #0f3450;
}
.marinex-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (max-width: 767.98px) {
    .marinex-blog-image {
        aspect-ratio: 1 / 1;
        max-height: none;
    }
    .marinex-blog-card .post-details {
        padding: 16px !important;
    }
    .marinex-blog-card .btn-brand1-block {
        padding: 8px 16px !important;
        font-size: 14px;
    }
}
