/* ===========================================================
   Shoreline Internet — Child-V2 Template
   user-62.css  (LIGHT + DARK, GRADIENT, FROSTED CARDS)
=========================================================== */


/* ===========================================================
   1. GLOBAL BASE
=========================================================== */

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #233747;
    background: #f4f5f7;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

/* Animated soft gradient background (Archer-inspired, CSS-only) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 0% 0%, #ffe4be 0, transparent 55%),
                radial-gradient(circle at 100% 0%, #d4e8ff 0, transparent 50%),
                radial-gradient(circle at 50% 100%, #f5d2ff 0, transparent 60%),
                linear-gradient(180deg, #f7f8fb 0%, #ece7dd 50%, #e5edf5 100%);
    background-size: 140% 140%;
    animation: shorelineGradientShift 40s ease-in-out infinite alternate;
}

/* Slight inner vignette for focus */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.38), transparent 55%),
        radial-gradient(circle at bottom, rgba(15,23,42,0.09), transparent 55%);
}

/* Dark mode background */
body.dark-mode {
    color: #e6edf3;
    background: #020617;
}

body.dark-mode::before {
    background: radial-gradient(circle at 0% 0%, #1f2937 0, transparent 55%),
                radial-gradient(circle at 100% 0%, #0f172a 0, transparent 55%),
                radial-gradient(circle at 50% 100%, #020617 0, transparent 65%),
                linear-gradient(180deg, #020617 0%, #020617 100%);
    animation: shorelineGradientShiftDark 50s ease-in-out infinite alternate;
}

body.dark-mode::after {
    background:
        radial-gradient(circle at top, rgba(148,163,184,0.22), transparent 55%),
        radial-gradient(circle at bottom, rgba(15,23,42,0.85), transparent 65%);
}

/* Global typography tweaks */
h1, h2, h3, h4 {
    color: #1e2e38;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f9fafb;
}

p {
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

/* Links */
a {
    color: #0f4f87;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

a:hover,
a:focus-visible {
    color: #0b375e;
    text-shadow: 0 0 1px rgba(15,79,135,0.35);
}

body.dark-mode a {
    color: #93c5fd;
}

body.dark-mode a:hover,
body.dark-mode a:focus-visible {
    color: #bfdbfe;
    text-shadow: 0 0 1px rgba(191,219,254,0.6);
}


/* ===========================================================
   2. PAGE WIDTH & LAYOUT
=========================================================== */

/* Main content wrapper (Cassiopeia uses .container-component) */
.container-component {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 2.5rem 3rem;
}

/* Desktop + large screens – ensure nice side breathing room */
.container-component {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

/* Medium screens */
@media (max-width: 1100px) {
    .container-component {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* Tablets */
@media (max-width: 800px) {
    .container-component {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Phones */
@media (max-width: 600px) {
    .container-component {
        padding-left: 1.1rem !important;
        padding-right: 1.1rem !important;
    }
}

/* The main #content + site grid also respect 1200px max width */
#content,
.site-grid {
    max-width: 1200px !important;
    margin: 0 auto;
}


/* ===========================================================
   3. BEVELED, GLASSY HEADER
=========================================================== */

.site-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 9999;
    background:
        linear-gradient(to bottom,
            rgba(255,255,255,0.98) 0%,
            rgba(246,248,252,0.98) 70%,
            rgba(239,241,246,0.98) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 18px 40px rgba(15,23,42,0.16),
        inset 0 -1px 0 rgba(148,163,184,0.22),
        inset 0 1px 0 rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(148,163,184,0.45);
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

/* Slight “lift” when scrolled */
body.scrolled .site-header-wrapper {
    transform: translateY(-2px);
    box-shadow:
        0 20px 50px rgba(15,23,42,0.26),
        inset 0 -1px 0 rgba(148,163,184,0.3);
}

/* Inner layout */
.si-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.si-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.si-logo-link span {
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1f2933;
}

body.dark-mode .si-logo-link span {
    color: #e5e7eb;
}

.si-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dark mode header variant */
body.dark-mode .site-header-wrapper {
    background:
        radial-gradient(circle at top, rgba(15,23,42,0.92), rgba(15,23,42,0.98)),
        linear-gradient(to bottom, rgba(15,23,42,0.98), rgba(15,23,42,1));
    box-shadow:
        0 22px 60px rgba(0,0,0,0.85),
        inset 0 -1px 0 rgba(30,64,175,0.45);
    border-bottom-color: rgba(30,64,175,0.55);
}


/* ===========================================================
   4. TOP NAVIGATION (MENU) BUTTON STYLE
=========================================================== */

.mod-menu.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
}

/* Remove bullets */
.mod-menu li {
    list-style: none !important;
}
.mod-menu li::before,
.mod-menu li + li::before {
    content: "" !important;
    display: none !important;
}

/* Base links */
.mod-menu.nav > li > a {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2933 !important;
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.16s ease;
}

.mod-menu.nav > li > a:hover {
    background: rgba(15,23,42,0.06);
    color: #0f4f87 !important;
    box-shadow: 0 3px 10px rgba(15,23,42,0.16);
    transform: translateY(-1px);
}

/* Active item */
.mod-menu.nav > li.current > a,
.mod-menu.nav > li.active > a {
    background: rgba(15,23,42,0.08);
    color: #0f4f87 !important;
    box-shadow: 0 3px 10px rgba(15,23,42,0.22);
}

/* Dark mode nav */
body.dark-mode .mod-menu.nav > li > a {
    color: #e5e7eb !important;
}

body.dark-mode .mod-menu.nav > li > a:hover {
    background: rgba(148,163,184,0.16);
    color: #bfdbfe !important;
    box-shadow: 0 5px 16px rgba(0,0,0,0.85);
}

body.dark-mode .mod-menu.nav > li.current > a,
body.dark-mode .mod-menu.nav > li.active > a {
    background: rgba(30,64,175,0.75);
    color: #e5f0ff !important;
    box-shadow: 0 6px 20px rgba(15,23,42,0.85);
}

/* Mobile nav wrapping */
@media (max-width: 768px) {
    .si-header-inner {
        padding: 0.75rem 1.1rem;
    }
    .mod-menu.nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}


/* ===========================================================
   5. THEME TOGGLE
=========================================================== */

.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    margin-left: 0.75rem;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,0.04);
    box-shadow: 0 2px 8px rgba(15,23,42,0.16);
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.14s ease;
}

.theme-toggle:hover {
    background: rgba(15,23,42,0.09);
    box-shadow: 0 4px 12px rgba(15,23,42,0.28);
    transform: translateY(-1px);
}

.theme-toggle-icon {
    font-size: 17px;
    line-height: 1;
}

/* Ensure no stray pseudo icons */
.theme-toggle-icon::before,
.theme-toggle-icon::after {
    content: none !important;
}

/* Dark mode toggle state */
body.dark-mode .theme-toggle {
    background: rgba(15,23,42,0.9);
    box-shadow: 0 4px 14px rgba(0,0,0,0.85);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(30,64,175,0.9);
}


/* ===========================================================
   6. PROCESS BLOCKS — FROSTED CARDS GRID
=========================================================== */

/* Force Joomla blog layout into a proper grid */
.blog-items.columns-2,
.blog-items.columns-3,
.blog-items.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

/* Auto-fit on small screens */
@media (max-width: 1024px) {
    .blog-items.columns-2,
    .blog-items.columns-3,
    .blog-items.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .blog-items.columns-2,
    .blog-items.columns-3,
    .blog-items.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Remove generic metadata (date, hits, etc.) */
.article-info,
.article-info-term,
.createdby,
.createdate,
.modifydate,
.hits {
    display: none !important;
}

/* Frosted glass cards */
.blog-items .blog-item,
.com-content-category-blog__item.blog-item {
    position: relative;
    background: rgba(255,255,255,0.88);
    border-radius: 20px;
    padding: 2.2rem 2rem;
    box-shadow:
        0 18px 38px rgba(15,23,42,0.16),
        0 0 0 1px rgba(148,163,184,0.20);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

/* Card hover lift */
.blog-items .blog-item:hover,
.com-content-category-blog__item.blog-item:hover {
    transform: translateY(-6px);
    box-shadow:
        0 26px 50px rgba(15,23,42,0.26),
        0 0 0 1px rgba(15,23,42,0.08);
    background: rgba(255,255,255,0.94);
}

/* Inner content spacing */
.blog-items .blog-item .item-content,
.com-content-category-blog__item.blog-item .item-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Card titles */
.blog-items .blog-item h2,
.com-content-category-blog__item.blog-item h2 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1.2rem;
}

/* Tighten paragraphs inside cards */
.blog-items .blog-item p,
.com-content-category-blog__item.blog-item p {
    font-size: 0.98rem;
}

/* “Process Blocks” page title spacing */
.com-content-category-blog > h1 {
    margin-bottom: 1.75rem;
}


/* ===========================================================
   7. DARK MODE — PROCESS CARDS
=========================================================== */

body.dark-mode .blog-items .blog-item,
body.dark-mode .com-content-category-blog__item.blog-item {
    background: rgba(15,23,42,0.83);
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,0.5);
    box-shadow:
        0 22px 55px rgba(0,0,0,0.95),
        0 0 0 1px rgba(15,23,42,0.85);
    color: #e5e7eb;
}

/* Ensure all text & links inside dark-mode process cards are legible */
body.dark-mode .blog-items .blog-item p,
body.dark-mode .blog-items .blog-item a,
body.dark-mode .blog-items .blog-item .readmore,
body.dark-mode .blog-items .blog-item .readmore a,
body.dark-mode .com-content-category-blog__item.blog-item p,
body.dark-mode .com-content-category-blog__item.blog-item a,
body.dark-mode .com-content-category-blog__item.blog-item .readmore,
body.dark-mode .com-content-category-blog__item.blog-item .readmore a {
    color: #e5e7eb !important;
}

body.dark-mode .blog-items .blog-item:hover,
body.dark-mode .com-content-category-blog__item.blog-item:hover {
    background: rgba(15,23,42,0.96);
    border-color: rgba(191,219,254,0.85);
    box-shadow:
        0 28px 70px rgba(0,0,0,1),
        0 0 0 1px rgba(191,219,254,0.55);
}

body.dark-mode .blog-items .blog-item h2,
body.dark-mode .com-content-category-blog__item.blog-item h2 {
    color: #f9fafb;
}

body.dark-mode .blog-items .blog-item p,
body.dark-mode .com-content-category-blog__item.blog-item p {
    color: #e5e7eb;
}


/* ===========================================================
   8. KEYFRAMES
=========================================================== */

@keyframes shorelineGradientShift {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 50% 0%;
    }
    50% {
        background-position: 10% 10%, 90% 0%, 50% 90%, 50% 50%;
    }
    100% {
        background-position: 0% 20%, 100% 10%, 50% 80%, 50% 100%;
    }
}

@keyframes shorelineGradientShiftDark {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 50% 0%;
    }
    100% {
        background-position: 10% 10%, 90% 5%, 50% 90%, 50% 50%;
    }
}


/* ===========================================================
   9. FOOTER — FROSTED BAR
=========================================================== */

/* Main footer wrapper */
#footer {
    margin-top: 60px;
    padding: 40px 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    background: none !important;
    border: none !important;
}

/* Frosted bar that holds Left + Right modules */
.footer-glass {
    width: 100%;
    max-width: 1200px;       /* match header width */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding: 36px 50px;
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0px 10px 30px rgba(0,0,0,0.08);

    transition: background 0.3s ease;
}

/* Footer content typography */
#footer .footer-left,
#footer .footer-right {
    font-size: 1rem;
    line-height: 1.55;
    color: #1e2e38;
}

/* Header lines inside modules */
.footer-left strong,
.footer-right strong {
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

/* Footer links */
#footer a {
    color: #1a4f80;
    text-decoration: none;
    transition: color 0.2s;
}

#footer a:hover {
    color: #0c2f55;
}

/* Full-width legal bar */
.footer-legal {
    width: 100%;
    text-align: center;
    padding: 25px 0 0 0;
    max-width: 1200px;
    margin: 0 auto;

    font-size: 0.9rem;
    color: #264255;

    opacity: 0.9;
}

/* DARK MODE FOOTER */
body.dark-mode .footer-glass {
    background: rgba(18, 24, 38, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0px 10px 40px rgba(0,0,0,0.65);
}

body.dark-mode #footer .footer-left,
body.dark-mode #footer .footer-right {
    color: #cbd5e1;
}

body.dark-mode #footer a {
    color: #8ab4ff;
}

body.dark-mode #footer a:hover {
    color: #c4d9ff;
}

body.dark-mode .footer-legal {
    color: #9fb4cc;
    opacity: 0.75;
}

/* MOBILE FOOTER LAYOUT */
@media (max-width: 900px) {
    .footer-glass {
        flex-direction: column;
        text-align: center;
        gap: 28px;
        padding: 32px 28px;
    }
}

.footer-legal-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* REMOVE GHOST SPACE */
#footer::after {
    display: none !important;
}


/* ===========================================================
   10. MISC CLEANUPS
=========================================================== */

/* Hide Process Block intro image in full article view */
.item-page .process-intro-image {
    display: none;
}

/* Hide page header ONLY on Process Blocks page */
body.process-blocks .page-header {
    display: none !important;
}



/* ===========================================================
   11. HERO MODULE — FULL-WIDTH SCROLLING PANORAMA
=========================================================== */

/* The actual module wrapper */
#mod-custom111 {
    width: 100%;
    padding: 0 !important;
    margin: 0;
    position: relative;   /* required for ::before to anchor */
    overflow: hidden;     /* hides repeated edges */
}

/* HERO WRAPPER – restrict text area to 1200px */
.hero-block-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* HERO BLOCK — TEXT ONLY */
.hero-block {
    width: 100%;
    height: 360px;

    position: relative;
    background: transparent !important;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 20px;
    box-sizing: border-box;
    text-align: center;

    color: #ffffff;
}

.hero-block h1,
.hero-block p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* ===========================================================
   SCROLLING PANORAMA — FULL WIDTH, BEHIND TEXT
=========================================================== */
#mod-custom111::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100vw;      /* full browser width */
    height: 360px;

    background-image: url("/images/Panorama-2474px-02.jpg");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: 0 0;

    animation: panoScroll 120s linear infinite; /* slower */
    z-index: -1;
}

/* Keyframes — move right → left */
@keyframes panoScroll {
    from { background-position: 0 0; }
    to   { background-position: -2474px 0; }
}



/* ===========================================================
   12. DARK MODE CONTENT PADDING (safety)
=========================================================== */

body.dark-mode #content,
body.dark-mode .container-component,
body.dark-mode .site-grid {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}


/* ===========================================================
   13. PROCESS PADDING SAFETY
=========================================================== */

.blog-items,
.com-content-category-blog,
.com-content-category-blog__items {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

/* Prevent cards from touching edges on mobile */
@media (max-width: 800px) {
    .blog-items,
    .com-content-category-blog,
    .com-content-category-blog__items {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* FORCE-JOOMLA: Remove any leftover inline hero styles */
.hero-block {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 360px !important;
}
/* ======================================
   PAGE CONTENT HORIZONTAL MARGINS
====================================== */

#content,
.container,
.item-page {
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 1200px) {
    #content,
    .container,
    .item-page {
        padding-left: 40px;
        padding-right: 40px;
    }
}
/* ===========================================================
   DARK MODE IMPROVEMENTS — Process Blocks + Body Background
   Only affects dark theme; light theme unchanged.
=========================================================== */

/* Improve dark-mode page background
   — softens harsh navy, increases readability, keeps aesthetic */
body[data-theme="dark"] {
    background-color: #111827 !important; /* deep indigo-gray-900 */
    color: rgba(255, 255, 255, 0.85);
}

/* Process Block — dark mode text visibility
   — restores contrast inside cards without touching light mode */
body[data-theme="dark"] .process-card h3,
body[data-theme="dark"] .process-card p,
body[data-theme="dark"] .process-card a {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Hover state for links inside cards — subtle, elegant */
body[data-theme="dark"] .process-card a:hover {
    color: #aad7ff !important; /* soft blue highlight */
}
/* ===========================================================
   DARK MODE IMPROVEMENTS — Process Blocks + Body Background
=========================================================== */

/* Improve overall dark-mode body background */
body[data-theme="dark"] {
    background-color: #111827 !important; /* deeper, softer indigo */
    color: rgba(255, 255, 255, 0.85);
}

/* PROCESS BLOCK — card backgrounds in dark mode */
body[data-theme="dark"] .com-content-category-blog__item {
    background-color: #1e2533 !important; /* dark navy-gray */
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45); /* keeps your lift effect */
    border-radius: 16px; /* preserve your existing card style */
}

/* PROCESS BLOCK — card text visibility in dark mode */
body[data-theme="dark"] .com-content-category-blog__item h3,
body[data-theme="dark"] .com-content-category-blog__item p,
body[data-theme="dark"] .com-content-category-blog__item a {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* PROCESS BLOCK — link hover behavior */
body[data-theme="dark"] .com-content-category-blog__item a:hover {
    color: #aad7ff !important;
}
/* Icon inside service cards */
.service-icon {
    display: block;
    font-size: 2.6rem;
    margin-bottom: 0.9rem;
    text-align: center;
}

/* Center titles in cards */
.blog-items .blog-item h2 a {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 700;
}

/* Prevent underlines except on hover */
.blog-items .blog-item h2 a {
    text-decoration: none !important;
}
.blog-items .blog-item h2 a:hover {
    text-decoration: underline !important;
}

/* Better vertical spacing inside service cards */
.blog-items .blog-item .item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

/* Clean up intro text appearance */
.blog-items .blog-item p {
    margin-top: 0.25rem;
    line-height: 1.45;
}
/* Peridox Icon Bar Hover Effect */
.peridox-bump img {
    transition: transform 0.25s ease, 
                box-shadow 0.25s ease, 
                filter 0.25s ease;
}

/* Hover — subtle lift + glow */
.peridox-bump img:hover {
    transform: translateY(-6px) scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
/* UNIVERSAL CATCH-ALL — Works regardless of module suffix spacing */
[class*="peridox-bump"] img {
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                filter 0.25s ease !important;
}

/* Hover effect */
[class*="peridox-bump"] img:hover {
    transform: translateY(-6px) scale(1.07) !important;
    filter: brightness(1.15) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22) !important;
}
/* Lift-hover for Peridox footer icons */
.peridox-bump img {
    transition: transform 0.25s ease, 
                box-shadow 0.25s ease, 
                filter 0.25s ease !important;
    display: block;
}

/* Hover effect */
.peridox-bump img:hover {
    transform: translateY(-6px) scale(1.08);
    filter: brightness(1.15);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

/* MAIN-TOP & MAIN-BOTTOM GRID MODULE ROWS */
.container-main-top,
.container-main-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1240px;
    margin: 3rem auto;
    padding: 0 1rem;
}
/* ---------------------------------------------------------
   ELEGANT FROSTED CARD LAYOUT FOR MAIN-TOP & MAIN-BOTTOM
--------------------------------------------------------- */

.container-main-top .moduletable,
.container-main-bottom .moduletable {
    background: rgba(255, 255, 255, 0.22); /* light, translucent backdrop */
    backdrop-filter: blur(18px);           /* frosted glass effect */
    -webkit-backdrop-filter: blur(18px);

    border-radius: 18px;                   /* smooth corners */
    padding: 2rem 2.2rem;                  /* clean interior spacing */

    border: 1px solid rgba(255, 255, 255, 0.35); /* soft edge */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);  /* soft floating shadow */

    transition: transform 0.28s ease,
                box-shadow 0.28s ease;    /* smooth hover animation */
}

/* Hover effect: elegant lift */
.container-main-top .moduletable:hover,
.container-main-bottom .moduletable:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Typography refinements */
.container-main-top .moduletable ul,
.container-main-bottom .moduletable ul {
    margin: 0;
    padding-left: 1.2rem;  /* comfortable bullet indent */
}

.container-main-top .moduletable li,
.container-main-bottom .moduletable li {
    margin-bottom: 0.55rem;
    line-height: 1.55;
    font-size: 1.05rem;
}

/* ---------------------------------------------------------
   FADE-IN + RISE ON SCROLL (ELEGANT REVEAL)
--------------------------------------------------------- */

.reveal-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ---------------------------------------------------------
   Scroll-Reveal Hidden State
--------------------------------------------------------- */
.container-main-top .moduletable,
.container-main-bottom .moduletable {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* When JS adds .visible */
.container-main-top .moduletable.visible,
.container-main-bottom .moduletable.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ---------------------------------------------------------
   COLLAPSE EMPTY MODULE ROWS (removes unwanted white space)
--------------------------------------------------------- */
.container-main-top:empty,
.container-main-bottom:empty {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

.container-main-top:empty::before,
.container-main-bottom:empty::before {
    display: none !important;
    content: none !important;
}
/* Collapse top module row unless explicitly expanded */
.container-main-top {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}
/* Expand only when a module is actually inside */
.container-main-top .moduletable {
    padding: 3rem 1rem !important;
    height: auto !important;
    min-height: unset !important;
}
.footer-legal p:empty,
.footer-legal p:empty::before {
    display: none !important;
}
/* ================================
   Contact Form Visual Enhancements
   ================================ */

.com-contact form {
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    max-width: 700px;
    margin: 30px auto;
}

/* Headings inside the form */
.com-contact h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 600;
}

/* Labels */
.com-contact label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #222;
}

/* Inputs + Textarea */
.com-contact input[type="text"],
.com-contact input[type="email"],
.com-contact textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.2);
    font-size: 1rem;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.8);
}

/* Improve textarea height */
.com-contact textarea {
    min-height: 140px;
}

/* Submit button */
.com-contact button,
.com-contact input[type="submit"] {
    background: linear-gradient(135deg, #89CFF0, #7DA7D9);
    color: #fff;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transition: 0.2s ease;
}

.com-contact button:hover,
.com-contact input[type="submit"]:hover {
    background: linear-gradient(135deg, #7DA7D9, #89CFF0);
    transform: translateY(-2px);
}

/* Center and soften the form intro text */
.com-contact .contact-email {
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.75;
}
/* Hide any empty module rows */
.container-main-bottom:empty,
.container-main-bottom:empty::before,
.container-main-bottom:empty::after,
.content-bottom:empty,
.content-bottom:empty::before,
.content-bottom:empty::after {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Hide empty module wrappers */
.moduletable:empty,
.moduletable:empty::before,
.moduletable:empty::after {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}
/* Remove the empty main-bottom container on pages where nothing is published there */
.container-main-bottom:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
/* Prevent form inputs from overflowing their parent container */
.com-contact form input,
.com-contact form textarea,
.com-contact form select,
.com-contact form button {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    background: #1e73be;
    color: #fff;
}

.btn-secondary {
    background: #efefef;
    color: #333;
    border: 1px solid #ccc;
}
.sequence-contact-cta {
  max-width: 86%;
  margin: 14px auto 0;
  text-align: left;
  display: none;
}

/* Primary CTA button */
.sequence-contact-button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 18px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.sequence-contact-button:hover {
  background: #1d4ed8;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* Supporting line */
.sequence-contact-subtext {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #555;
}
