/* ==========================================================================
   WATER DYNAMICS - GLOBAL / COMMON TEMPLATE STYLES
   Used across product landing pages (Center Pivot, Solar Pump, Filtration, etc.)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO & COMMON HEADINGS
   -------------------------------------------------------------------------- */
.hero-container h1 {
    color: #0d64b1 !important;
    font-size: 22px !important;
    font-weight: bold !important;
    text-shadow: none !important;
    margin-bottom: 5px !important;
}

.hero-container h2.sub-desc {
    color: #333 !important;
    font-size: 15px !important;
    font-weight: normal !important;
    text-shadow: none !important;
    margin-bottom: 20px !important;
}

h2 {
    color: #0d64b1 !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    margin: 2% 0 !important;
}

figcaption {
    margin-left: 6% !important;
    line-height: 1.5;
    padding-bottom: 15px;
}

hr.solid-blue {
    border: none;
    height: 3px;
    background: #0d64b1;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   2. JUMP TO NAVIGATION (PILL BAR)
   -------------------------------------------------------------------------- */
.wd-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 10px 0 20px;
}

.wd-jump li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.wd-jump a {
    display: inline-block;
    background: #eaf3fb;
    color: #0d64b1;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.wd-jump a:hover {
    background: #0d64b1;
    color: #fff;
}

/* --------------------------------------------------------------------------
   3. WHY CHOOSE US (FEATURE / BENEFIT CARDS)
   -------------------------------------------------------------------------- */
.wd-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.wd-why-card {
    background: #fff;
    border: 1px solid #e3ebf3;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

.wd-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eaf3fb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.wd-icon svg {
    width: 28px;
    height: 28px;
    stroke: #0d64b1;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wd-why-card h4 {
    color: #0d64b1;
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.wd-why-card p {
    color: #555;
    font-size: .9rem;
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   4. CASE STUDIES & RECENT PROJECTS
   -------------------------------------------------------------------------- */
.wd-cases {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    gap: 22px;
    margin: 20px 0 10px;
}

.wd-case {
    position: relative;
    border: 1px solid #e3ebf3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    cursor: pointer;
}

.wd-case:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(13, 100, 177, 0.16);
    border-color: #0d64b1;
}

.wd-case img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.wd-case:hover img {
    transform: scale(1.03);
}

.wd-case-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wd-case-body h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.wd-case-body h4 a {
    color: #0d64b1;
    text-decoration: none;
    transition: color .2s ease;
}

/* Stretched link: clicking ANYWHERE on the card navigates to the project page */
.wd-case-body h4 a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.wd-case-body p {
    color: #555;
    font-size: .9rem;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}

.wd-case-body a.case-link {
    color: #0d64b1;
    font-weight: 600;
    text-decoration: underline;
    position: relative;
    z-index: 2;
    transition: color .2s ease;
}

.wd-case:hover .wd-case-body h4 a,
.wd-case:hover .wd-case-body a.case-link {
    color: #09477d;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. BROCHURES & DOWNLOADS
   -------------------------------------------------------------------------- */
.wd-bros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
    margin: 24px 0 10px;
    clear: both;
}

.wd-bro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wd-bro a:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    background: #f9fbfe;
    border: 1px solid #e3ebf3;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    transition: transform .25s ease, box-shadow .25s ease;
}

.wd-bro a:first-child:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(13, 100, 177, .15);
}

.wd-bro img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.wd-bro strong {
    margin: 12px 0 4px;
    color: #222;
    font-size: .98rem;
    line-height: 1.35;
}

.wd-bro a:last-child {
    color: #0d64b1;
    font-weight: 600;
    font-size: .92rem;
}

.wd-bro a:last-child:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   6. OTHER RELATED PRODUCTS
   -------------------------------------------------------------------------- */
.wd-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.wd-related a {
    display: block;
    background: #f9fbfe;
    border: 1px solid #e3ebf3;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: #333;
    transition: all .25s ease;
}

.wd-related a:hover {
    border-color: #0d64b1;
    box-shadow: 0 8px 18px rgba(13, 100, 177, .12);
    transform: translateY(-3px);
}

.wd-related strong {
    display: block;
    color: #0d64b1;
    margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   7. DATA & COMPARISON TABLES
   -------------------------------------------------------------------------- */
.wd-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.wd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: .95rem;
}

.wd-table th {
    background: #0d64b1;
    color: #fff;
    text-align: left;
    padding: 10px 12px;
}

.wd-table td {
    border-bottom: 1px solid #e3ebf3;
    padding: 10px 12px;
    vertical-align: top;
}

.wd-table tr:nth-child(even) td {
    background: #f9fbfe;
}

/* --------------------------------------------------------------------------
   8. TECH & SHOWCASE BLOCKS
   -------------------------------------------------------------------------- */
.filters .tech-block,
.tech-block {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: center;
    /*margin: 18px 0 28px;*/
    padding: 16px 0;
    border-top: 1px solid #e8edf3;
}

.filters .tech-block:first-of-type,
.tech-block:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.filters .tech-block .copy > *:first-child,
.tech-block .copy > *:first-child { margin-top: 0; }
.filters .tech-block .copy > *,
.tech-block .copy > * { margin-top: .7em; }

.filters .tech-block .media,
.tech-block .media {
    justify-self: end;
    width: 100%;
    max-width: 280px;
}

.filters .tech-block .media img,
.tech-block .media img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
#case-studies, #other-products {
    clear: both;
}

@media (max-width: 900px) {
    .wd-bros {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .filters .tech-block,
    .tech-block {
        grid-template-columns: 1fr;
    }
    .filters .tech-block .media,
    .tech-block .media {
        justify-self: start;
        max-width: 320px;
        margin-top: 10px;
    }
}

@media (max-width: 520px) {
    .wd-bros {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wd-related a,
    .wd-bro a:first-child {
        transition: none;
    }
}

