/**
 * Japan Pool Solutions - Main stylesheet
 * Japan-themed: clean, minimal, professional (red/white accent)
 */

/* ---- Base ---- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Yu Gothic', 'Hiragino Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-cat-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

/* ---- Product single page (e.g. products-pumps): image + title + description + Enquiry button ---- */
.product-single-section {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

.product-single-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e9ef;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-single-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-single-body {
    padding: 2rem;
}

.product-single-title {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    color: #1a365d;
}

.product-single-desc {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.product-enquiry-btn {
    cursor: pointer;
    border: none;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
    .product-single-card {
        grid-template-columns: 1fr;
    }
    .product-single-body {
        padding: 1.5rem;
    }
}

/* ---- Product page 4 boxes (e.g. products-pumps): grid of cards with image, title, Enquiry ---- */
.product-boxes-section {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

.product-boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-box-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e9ef;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.product-box-card:hover {
    border-color: #0891b2;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.15);
    transform: translateY(-2px);
}

.product-box-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-box-body {
    padding: 1.25rem;
}

.product-box-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a365d;
    line-height: 1.35;
}

.product-box-card .product-enquiry-btn {
    width: 100%;
    padding: 0.6rem 1rem;
}

@media (max-width: 992px) {
    .product-boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-boxes-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Enquiry popup modal ---- */
.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s;
}

.enquiry-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.enquiry-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    cursor: pointer;
}

.enquiry-modal-box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    padding: 1.75rem;
}

.enquiry-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.enquiry-modal-close:hover {
    color: #0891b2;
}

.enquiry-modal-title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    color: #1a365d;
}

.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.enquiry-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.3rem;
}

.enquiry-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.enquiry-input:focus {
    outline: none;
    border-color: #0891b2;
}

.enquiry-textarea {
    resize: vertical;
    min-height: 100px;
}

.enquiry-submit {
    margin-top: 0.25rem;
}

/* ---- Header ---- */
.site-header {
    background: #fff;
    border-bottom: 3px solid #0891b2;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
}

.logo {
    text-decoration: none;
    color: #0891b2;
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
}

/* Header logo image - use logo.png in japan/images/ */
.logo-img {
    display: block;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text:hover {
    text-decoration: underline;
}

/* Nav: menu row + View Catalog button (separate from menu) */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

/* View Catalog button - water blue/teal, separate from menu */
.btn-view-catalog {
    display: inline-block;
    margin-left: 1.25rem;
    padding: 0.75rem 0.75rem;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.35);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-view-catalog:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.45);
    transform: translateY(-1px);
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 6px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0891b2;
}

/* Submenu dropdown - desktop */
.main-nav .has-dropdown {
    position: relative;
}

.main-nav .nav-arrow {
    font-size: 0.65em;
    margin-left: 0.2em;
    opacity: 0.8;
    transition: transform 0.2s;
}

.main-nav .has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Submenu starts below the header bottom line (below nav) */
.main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    /* Push submenu below header border: header-inner padding-bottom + border */
    margin-top: calc(0.75rem + 3px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    list-style: none;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 50;
}

.main-nav .submenu li {
    display: block;
}

.main-nav .has-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.main-nav .submenu a {
    display: block;
    padding: 5px;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
}

.main-nav .submenu a:hover {
    background: #f8f8f8;
    color: #0891b2;
}

/* Mobile nav toggle - hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 2px solid #0891b2;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.open {
        max-height: 420px;
        overflow-y: auto;
    }
    .main-nav > ul {
        flex-direction: column;
        padding: 0.75rem 1rem;
        gap: 0;
    }
    /* Each menu item separate - border and padding */
    .main-nav > ul > li {
        border-bottom: 1px solid #e8e8e8;
    }
    .main-nav > ul > li:last-child {
        border-bottom: none;
    }
    .main-nav > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.85rem 0.5rem;
    }
    /* Arrow on right side in mobile */
    .main-nav .has-dropdown > a .nav-arrow {
        margin-left: auto;
        margin-right: 0.25rem;
        transition: transform 0.2s;
    }
    .main-nav .has-dropdown.open > a .nav-arrow {
        transform: rotate(180deg);
    }
    .main-nav .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        margin: 0 0 0.25rem 0;
        padding: 0 0 0.5rem 0.5rem;
        box-shadow: none;
        border: none;
        border-left: 2px solid #0891b2;
        min-width: auto;
        background: #f8f8f8;
    }
    .main-nav .has-dropdown.open .submenu {
        display: block;
    }
    .main-nav .submenu li {
        border-bottom: none;
    }
    .main-nav .submenu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    /* View Catalog button in mobile menu - separate block */
    .main-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-view-catalog {
        margin: 1.25rem 1rem 0.75rem 1rem;
        padding: 1rem;
        border-top: 1px solid #e0e0e0;
        text-align: center;
    }
}

/* ---- Main content ---- */
.main-content {
    min-height: 60vh;
}

/* ---- Hero slider (KTEC-style: arrows, dots, 3 slides) ---- */
.hero-slider {
    position: relative;
    min-height: 480px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Background layer: zoom animation when slide is active */
.hero-slide-bg {
    position: absolute;
    inset: -2%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 8s ease-out;
}

/* First slide: full-bleed background video (replaces image when hero video URL is set) */
.hero-slide-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide-video-wrap .hero-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide.active .hero-slide-bg {
    animation: heroBgZoom 5s ease-out;
}

@keyframes heroBgZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 3rem 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-slide-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
}

.hero-slide-sub {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.btn-hero {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

.btn-hero:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    transform: translateY(-1px);
}

/* Prev/Next arrows - KTEC style */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

/* Dots at bottom - KTEC style */
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.hero-dot:hover {
    background: rgba(255,255,255,0.5);
}

.hero-dot.active {
    background: #fff;
}

@media (max-width: 768px) {
    .hero-slider,
    .hero-slides {
        min-height: 380px;
    }
    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    .hero-prev { left: 0.5rem; }
    .hero-next { right: 0.5rem; }
    .hero-dots {
        bottom: 1rem;
    }
}

/* Keep old .hero class in case used elsewhere */
.hero {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
}

.hero-tagline {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ---- Buttons: water wave (lehr) effect + water colors ---- */
.btn,
.btn-hero,
.btn-primary,
.btn-secondary,
.btn-products,
.btn-view-catalog,
.cta-action {
    position: relative;
    overflow: hidden;
}

/* First wave layer - lehr */
.btn::before,
.btn-hero::before,
.btn-primary::before,
.btn-secondary::before,
.btn-products::before,
.btn-view-catalog::before,
.cta-action::before {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 20px,
        rgba(255, 255, 255, 0.12) 22px,
        rgba(255, 255, 255, 0.28) 26px,
        rgba(255, 255, 255, 0.15) 30px,
        transparent 32px
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    animation: waterWave 3s linear infinite;
}

/* Second wave layer - offset for lehr effect */
.btn::after,
.btn-hero::after,
.btn-primary::after,
.btn-secondary::after,
.btn-products::after,
.btn-view-catalog::after,
.cta-action::after {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        rgba(255, 255, 255, 0.08) 15px,
        rgba(255, 255, 255, 0.22) 18px,
        transparent 22px,
        transparent 42px,
        rgba(255, 255, 255, 0.1) 45px,
        rgba(255, 255, 255, 0.2) 48px,
        transparent 52px
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    animation: waterWave 2.8s linear infinite reverse;
}

@keyframes waterWave {
    0% { transform: translateY(0); }
    100% { transform: translateY(32px); }
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.btn-primary {
    background: #fff;
    color: #0891b2;
}

.btn-primary:hover {
    background: #f0f9ff;
}

.btn-secondary {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
}

/* ---- Sections ---- */
.section {
    padding: 3rem 0;
}

.section-light {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Welcome section: image one side, content other side */
.welcome-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin: 0 auto;
}

.welcome-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Welcome image: hover zoom + fade-in on load */
.welcome-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 280px;
    transition: transform 0.5s ease;
    animation: imgFadeIn 0.8s ease-out;
}

.welcome-image:hover img {
    transform: scale(1.05);
}

@keyframes imgFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-content {
    padding: 0 0.5rem;
}

.welcome-title {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    color: #1a365d;
}

.welcome-text {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

@media (max-width: 768px) {
    .welcome-wrap {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .welcome-image {
        order: 1;
    }
    .welcome-content {
        order: 2;
        padding: 0;
    }
    .welcome-image img {
        min-height: 220px;
    }
}

.section-title {
    text-align: center;
    margin: 0 0 2rem;
    font-size: 1.75rem;
    color: #222;
}

/* ---- Our Products (Japan-style section) ---- */
.products-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

.products-section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.products-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.products-title {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a365d;
}

.products-title-line {
    width: 48px;
    height: 2px;
    margin: 0 auto;
    background: #0891b2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Homepage products slider */
.home-products-slider {
    position: relative;
    margin-top: 2rem;
}
.home-products-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.25rem 0;
}
.home-products-track::-webkit-scrollbar {
    height: 6px;
}
.home-products-track::-webkit-scrollbar-thumb {
    background: rgba(15,23,42,0.2);
    border-radius: 999px;
}
.home-product-card {
    position: relative;
    flex: 0 0 260px;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(15,23,42,0.08);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    background-image: radial-gradient(circle at 10% 0%, rgba(59,130,246,0.04) 0, transparent 50%), radial-gradient(circle at 90% 120%, rgba(6,182,212,0.06) 0, transparent 55%);
}
.home-product-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(37,99,235,0.0) 0%, rgba(56,189,248,0.6) 40%, rgba(59,130,246,0.0) 80%);
    background-size: 200% 100%;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: homeWaterGlow 6s linear infinite;
    transition: opacity 0.4s ease;
}
.home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}
.home-product-card:hover::before {
    opacity: 1;
}
.home-product-image {
    position: relative;
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    isolation: isolate;
}
.home-product-image::after {
    content: '';
    position: absolute;
    left: -40%;
    right: -40%;
    bottom: -10%;
    height: 55%;
    background: radial-gradient(circle at 10% 0%, rgba(56,189,248,0.28) 0, transparent 55%), radial-gradient(circle at 90% 0%, rgba(37,99,235,0.25) 0, transparent 55%);
    opacity: 0.35;
    transform: translate3d(0,8px,0);
    filter: blur(4px);
    animation: homeWaterWave 9s ease-in-out infinite;
}
.home-product-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: inherit;
    background: #f3f4f6;
}
.home-product-icon {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,0.08);
    color: #2563eb;
    font-size: 1.4rem;
}
.home-product-title {
    font-size: 1rem;
    font-weight: 600;
}
.home-product-desc {
    font-size: 0.85rem;
    color: #6b7280;
}
.home-products-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(15,23,42,0.85);
    color: #f9fafb;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 5;
}
.home-products-arrow.prev {
    left: -4px;
}
.home-products-arrow.next {
    right: -4px;
}
@keyframes homeWaterGlow {
    0% {
        background-position: 0% 0;
    }
    50% {
        background-position: 100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
@keyframes homeWaterWave {
    0% {
        transform: translate3d(-10px, 8px, 0);
    }
    50% {
        transform: translate3d(10px, 2px, 0);
    }
    100% {
        transform: translate3d(-10px, 8px, 0);
    }
}
@media (max-width: 768px) {
    .home-product-card {
        flex: 0 0 220px;
    }
    .home-products-arrow {
        display: none;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
    border-color: #0891b2;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.08);
    transform: translateY(-2px);
}

.product-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: #1a365d;
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: background 0.25s, color 0.25s;
}

.product-card:hover .product-card-icon {
    background: #0891b2;
    color: #fff;
}

.product-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a365d;
    line-height: 1.4;
}

.product-card:hover .product-card-title {
    color: #0891b2;
}

.product-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e9ef;
    color: #64748b;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-card-desc {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

/* Product detail page */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.product-detail-image {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e9ef;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #1a365d;
}

.product-detail-description {
    line-height: 1.6;
    color: #334155;
}

/* Product detail PR content (from CKEditor) */
.product-detail-pr {
    overflow-wrap: anywhere;
}

.product-detail-pr img {
    max-width: 100%;
    height: auto;
}

.product-detail-pr table {
    width: 100%;
    border-collapse: collapse;
}

.product-detail-pr th,
.product-detail-pr td {
    border: 1px solid #e5e9ef;
    padding: 10px;
    vertical-align: top;
}

/* Keep tables usable on small screens */
@media (max-width: 768px) {
    .product-detail-pr table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

.products-cta {
    text-align: center;
    margin: 2rem 0 0;
}

.btn-products {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

.btn-products:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        padding: 1.5rem 1rem;
    }
}

.lead {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

/* ---- Cards: 4 columns like Why Choose Us ---- */
/* Products page: submenu items with icon + title + link */
.products-categories-section {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

.products-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.products-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e9ef;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.products-category-card:hover {
    border-color: #0891b2;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.15);
    transform: translateY(-3px);
}

.products-category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0891b2;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: background 0.25s, color 0.25s;
}

.products-category-card:hover .products-category-icon {
    background: #0891b2;
    color: #fff;
}

.products-category-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a365d;
    line-height: 1.35;
}

.products-category-card:hover .products-category-title {
    color: #0891b2;
}

.products-category-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.products-contact-line {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .products-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-categories-grid {
        grid-template-columns: 1fr;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #0891b2;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Why Choose Us: icon above title */
.card-with-icon {
    text-align: center;
}

.card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(183, 28, 28, 0.1);
    color: #0891b2;
    border-radius: 50%;
    font-size: 1.4rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.card-with-icon:hover .card-icon {
    background: #0891b2;
    color: #fff;
    transform: scale(1.08);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #0891b2;
}

.card p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

/* ---- Testimonials (KTEC style) - only 2 cards visible ---- */
.testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 576px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

.testimonials-subtitle {
    text-align: center;
    margin: -1rem auto 2rem;
    max-width: 600px;
    color: #555;
    font-size: 1rem;
}

.testimonials-kicker {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 118, 110, 0.15);
    color: #5eead4;
}

/* Testimonials section background with subtle GIF */
.testimonials-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.35), rgba(15, 23, 42, 0.98));
    color: #e5e7eb;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/halbert-subbaner.gif') center center / cover no-repeat;
    opacity: 0.16;
    mix-blend-mode: screen;
    pointer-events: none;
}

.testimonials-section > .container {
    position: relative;
    z-index: 1;
}

.testimonials-section .section-title.testimonials-title {
    margin-top: 0.9rem;
    margin-bottom: 0.4rem;
    color: #f9fafb;
}

.testimonials-subtitle {
    max-width: 520px;
    margin: 0 auto;
    color: #cbd5f5;
    font-size: 0.95rem;
}

/* Single image-based testimonial hero */
.testimonial-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 2.75rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.9rem 2.1rem;
    border-radius: 2rem;
    /* background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), rgba(14, 165, 233, 0.04));
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55); */
}

.testimonial-hero-media {
    border-radius: 20px;
    overflow: hidden;
    background: url('../images/halbert-subbaner.gif') center center / cover no-repeat;
    max-width: 520px;
    justify-self: center;
    animation: testimonialFloat 6s ease-in-out infinite alternate;
    transform-origin: center;
}

.testimonial-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 35px;
    transition: transform 0.5s ease;
}

.testimonial-hero-media:hover img {
    transform: scale(1.04);
}

.testimonial-hero-content {
    background: #ffffff;
    border-radius: 1.75rem;
    border: 1px solid #e5e7eb;
    padding: 2.4rem 2.7rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.testimonial-hero-quote-icon {
    position: absolute;
    right: 2.2rem;
    top: 1.6rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #06b6d4;
    color: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.testimonial-hero-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    max-width: 38rem;
}

.testimonial-hero-meta {
    margin-top: 0.4rem;
}

.testimonial-hero-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111827;
}

.testimonial-hero-role {
    font-size: 0.85rem;
    color: #6b7280;
}

.testimonial-hero-brand {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #0ea5e9;
    font-style: italic;
}

.testimonial-hero-brand-mark {
    font-family: "Georgia", "Times New Roman", serif;
}

/* Next / Prev buttons under testimonial */
.testimonial-hero-nav {
    margin-top: 1rem;
    display: inline-flex;
    gap: 0.75rem;
}

.testimonial-hero-btn {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.testimonial-hero-btn:hover {
    background: #0ea5e9;
    color: #f9fafb;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
    transform: translateY(-1px);
}

.testimonial-hero-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

@media (max-width: 900px) {
    .testimonial-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
        padding: 1.5rem 1.25rem;
        border-radius: 1.75rem;
    }
    .testimonial-hero-content {
        padding: 1.9rem 1.6rem 2.1rem;
        border-radius: 1.5rem;
    }
}

@keyframes testimonialFloat {
    from {
        transform: translateY(0);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.55);
    }
    to {
        transform: translateY(-10px);
        box-shadow: 0 26px 55px rgba(15, 23, 42, 0.75);
    }
}

/* ---- Page header (inner pages) ---- */
.page-header {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
    text-align: center;
}

.page-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.9rem;
}

.page-header .lead {
    color: rgba(255,255,255,0.95);
    margin: 0;
}

/* All inner pages sub-header: ocean waves video (or fallback image) + overlay */
.page-header-with-bg {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ocean waves video or GIF - full cover, loops; add ocean-waves.mp4 or ocean-waves.gif in japan/images/ */
.page-header-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-header-gif {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fallback when video missing or not supported */
.page-header-with-bg .page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* background-image: url('https://images.unsplash.com/photo-1505142468610-359e7d316be0?w=1600'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header-with-bg .page-header-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.75) 0%, rgba(14, 116, 144, 0.8) 100%);
}

.page-header-with-bg .page-header-inner {
    position: relative;
    z-index: 2;
}

/* Subbanner animation: title and lead fade-in + slide-up on load */
.page-header-with-bg .page-header-inner h1 {
    opacity: 0;
    animation: subbannerTitleIn 0.7s ease-out forwards;
}

.page-header-with-bg .page-header-inner .lead {
    opacity: 0;
    animation: subbannerLeadIn 0.6s ease-out 0.25s forwards;
}

@keyframes subbannerTitleIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subbannerLeadIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: subtle fade-in for overlay so subbanner doesn’t pop in */
.page-header-with-bg .page-header-overlay {
    animation: subbannerOverlayIn 0.8s ease-out;
}

@keyframes subbannerOverlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ---- About page: intro, mission, CTA ---- */
.about-intro-section .about-intro-p {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.about-intro-section .about-intro-p:last-of-type {
    margin-bottom: 0;
}

.about-mission-section {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

.about-mission-block {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem;
}

.about-mission-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
}

.about-mission-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #1a365d;
}

.about-mission-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
}

/* About page "Get in Touch" CTA - background image (water/forest) */
.about-cta-section {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-cta-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/about-cta-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 145, 178, 0.55);
}

.about-cta-inner {
    position: relative;
    z-index: 1;
}

.about-cta-block {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.about-cta-heading {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.about-cta-text {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.about-cta-block .btn {
    padding: 0.75rem 1.75rem;
}

/* ---- CTA section (JAT-style: Please contact us by email form or facebook) ---- */
.cta-section {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
}

.cta-section .section-title,
.cta-section p {
    color: #fff;
}

.cta-section .btn-primary {
    background: #0891b2;
    color: #fff;
}

.cta-section .btn-primary:hover {
    background: #0e7490;
}

.cta-jat {
    position: relative;
    padding: 2.5rem 0;
    overflow: hidden;
}

/* CTA Get in touch background - path relative to this CSS file (../images/cta-bg.png) */
.cta-jat-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/cta-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta-jat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.cta-jat-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
    padding: 2rem 1rem;
}

/* White card floating on background */
.cta-jat-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
}

.cta-card-phone {
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.cta-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    color: #1a365d;
    font-size: 1.25rem;
}

.cta-phone-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    letter-spacing: 0.02em;
}

.cta-hours {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #555;
}

.cta-card-actions {
    display: flex;
    align-items: stretch;
}

.cta-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.cta-action:hover {
    background: #f5f5f5;
}

.cta-action-icon {
    display: block;
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 0.35rem;
}

.cta-action-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-action-divider {
    width: 1px;
    background: #e8e8e8;
}

@media (max-width: 480px) {
    .cta-card-actions {
        flex-direction: column;
    }
    .cta-action-divider {
        width: 100%;
        height: 1px;
    }
}

/* ---- Our Blog section ---- */
.blog-subtitle {
    text-align: center;
    margin: -1rem auto 2rem;
    max-width: 560px;
    color: #555;
    font-size: 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-meta {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    line-height: 1.35;
}

.blog-card-title a {
    color: #1a365d;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #0891b2;
}

.blog-card-excerpt {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.blog-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0891b2;
    text-decoration: none;
}

.blog-link:hover {
    text-decoration: underline;
}

.blog-link i {
    margin-left: 0.25rem;
    font-size: 0.75em;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Blog page: 2 cards per row (image on top, content below) ---- */
.blog-page-section {
    padding: 2.5rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.blog-card-full {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.blog-card-full:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    border-color: #0891b2;
    transform: translateY(-2px);
}

.blog-card-image-wrap {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.blog-card-full .blog-card-image {
    aspect-ratio: 16/10;
    display: block;
    overflow: hidden;
}

.blog-card-full .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card-full:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-full .blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-full .blog-meta {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.blog-cat {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #e0f2fe;
    color: #0891b2;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.blog-card-full .blog-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a365d;
    line-height: 1.35;
}

.blog-card-full .blog-card-excerpt {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
    flex: 1;
}

.blog-card-full .blog-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0891b2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card-full .blog-link:hover {
    text-decoration: underline;
    color: #0e7490;
}

.blog-card-full .blog-link i {
    margin-left: 0;
    font-size: 0.8em;
}

/* Tablet: 2 per row */
@media (max-width: 992px) {
    .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 card per row */
@media (max-width: 768px) {
    .blog-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .blog-card-full .blog-card-body {
        padding: 1.25rem;
    }

    .blog-card-full .blog-card-title {
        font-size: 1.1rem;
    }
}

/* ---- Blog detail page: main content + sidebar (other posts) ---- */
.blog-detail-section {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.blog-detail-main {
    min-width: 0;
}

.blog-detail-wrap {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e9ef;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.blog-detail-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-body {
    padding: 1.75rem 2rem;
}

.blog-detail-lead {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.blog-detail-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 1.5rem;
}

.blog-detail-back {
    margin: 0;
}

/* Sidebar: other articles */
.blog-detail-sidebar {
    position: sticky;
    top: 5rem;
}

.blog-sidebar-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: #1a365d;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0891b2;
}

.blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar-item {
    margin-bottom: 1rem;
}

.blog-sidebar-item:last-child {
    margin-bottom: 0;
}

/* Sidebar item: small image left, title + date right (like blog list) */
.blog-sidebar-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid #e5e9ef;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-sidebar-link:hover {
    border-color: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

.blog-sidebar-current {
    cursor: default;
    border-color: #0891b2;
    background: #f0f9ff;
}

.blog-sidebar-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
}

.blog-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-sidebar-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.blog-sidebar-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.blog-sidebar-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a365d;
    line-height: 1.35;
}

.blog-sidebar-link:hover .blog-sidebar-item-title {
    color: #0891b2;
}

.blog-sidebar-all {
    margin: 1.25rem 0 0;
    text-align: center;
}

.blog-sidebar-all .btn {
    display: block;
    width: 100%;
}

/* Blog detail: responsive - sidebar below on small screens */
@media (max-width: 992px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-detail-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .blog-detail-body {
        padding: 1.25rem;
    }
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    color: #ccc;
    padding: 2.5rem 0 1rem;
    margin-top: 2rem;
    overflow: hidden;
}

/* Footer background image - same pool image as used elsewhere */
.footer-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-block h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.footer-block p,
.footer-block ul {
    margin: 0;
    font-size: 0.9rem;
}

.footer-block ul {
    list-style: none;
    padding: 0;
}

.footer-block a {
    color: #aaa;
    text-decoration: none;
}

.footer-block a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* ---- Contact page: intro, two columns (info + form) ---- */
.contact-intro-section {
    padding: 2rem 0;
}

.contact-intro-text {
    max-width: 720px;
    margin: 0 auto 0.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    text-align: center;
}

.contact-cta-line {
    text-align: center;
    margin: 0;
    font-size: 0.95rem;
    color: #0891b2;
    font-weight: 500;
}

.contact-main-section {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

/* Two-column layout: contact info (left) + form (right) */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

/* Left column: contact info card */
.contact-info-col {
    position: sticky;
    top: 5rem;
}

.contact-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e9ef;
}

.contact-info-heading {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    color: #1a365d;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0891b2;
}

.contact-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-info-list li:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0891b2;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-info-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-info-value {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.5;
    text-decoration: none;
}

.contact-info-value:hover {
    color: #0891b2;
}

a.contact-info-value:hover {
    text-decoration: underline;
}

.contact-social-note {
    margin-top: 1.25rem;
    text-align: center;
}

.contact-social-note .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Right column: contact form card */
.contact-form-col {
    min-width: 0;
}

.contact-form-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e9ef;
}

.contact-form-heading {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    color: #1a365d;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0891b2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.contact-input {
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

.contact-input::placeholder {
    color: #94a3b8;
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

/* Contact page: responsive - stack columns on small screens */
@media (max-width: 768px) {
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info-col {
        position: static;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-form-heading,
    .contact-info-heading {
        font-size: 1.15rem;
    }
}
