/* ==========================================================================
   AquaMate Luxury Pool & Landscaping — Blog Listing Styles
   Reference: https://kpsn.ae/blog/
   Scoped under .aq-blog-page to preserve theme isolation
   ========================================================================== */

:root {
    --aq-primary: #085E6D;
    --aq-primary-dark: #054A57;
    --aq-primary-light: #0D8397;
    --aq-accent-gold: #C5A880;
    --aq-accent-gold-dark: #A98A5E;
    --aq-dark: #12343B;
    --aq-dark-deep: #0D262C;
    --aq-ink: #1B2B30;
    --aq-text: #4A585D;
    --aq-muted: #75878B;
    --aq-bg-soft: #F7F6F2;
    --aq-bg-ice: #F0F6F7;
    --aq-line: #E1ECEE;
    --aq-white: #FFFFFF;
    --aq-radius-lg: 16px;
    --aq-radius-md: 10px;
    --aq-radius-sm: 6px;
    --aq-shadow: 0 10px 30px rgba(18, 52, 59, 0.07);
    --aq-shadow-hover: 0 18px 40px rgba(8, 94, 109, 0.16);
    --aq-font-heading: 'Italiana', Georgia, serif;
    --aq-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.aq-blog-page {
    font-family: var(--aq-font-body);
    color: var(--aq-text);
    background-color: var(--aq-bg-soft);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.aq-blog-page *,
.aq-blog-page *::before,
.aq-blog-page *::after {
    box-sizing: border-box;
}

.aq-blog-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.aq-blog-hero {
    background: linear-gradient(135deg, var(--aq-dark-deep) 0%, var(--aq-dark) 55%, var(--aq-primary-dark) 100%);
    position: relative;
    padding: 85px 20px 75px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.aq-blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.12) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(13, 131, 151, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.aq-blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.aq-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 168, 128, 0.18);
    border: 1px solid rgba(197, 168, 128, 0.35);
    color: var(--aq-accent-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.aq-blog-hero h1 {
    font-family: var(--aq-font-heading);
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 400;
    line-height: 1.25;
    color: #ffffff !important;
    margin: 0 0 16px;
    letter-spacing: 0.5px;
}

.aq-blog-hero p {
    font-size: clamp(15px, 1.8vw, 17px);
    color: #C6D8DB;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 640px;
}

/* ==========================================================================
   2. FILTER TOOLBAR & SEARCH
   ========================================================================== */
.aq-blog-toolbar {
    background: #ffffff;
    border-bottom: 1px solid var(--aq-line);
    padding: 24px 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}

.aq-toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.aq-blog-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aq-filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--aq-line);
    background: var(--aq-bg-soft);
    color: var(--aq-ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.aq-filter-btn:hover {
    border-color: var(--aq-primary);
    color: var(--aq-primary);
    background: #ffffff;
}

.aq-filter-btn.active {
    background: var(--aq-primary);
    border-color: var(--aq-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(8, 94, 109, 0.25);
}

.aq-blog-search {
    position: relative;
    min-width: 260px;
}

.aq-blog-search input {
    width: 100%;
    padding: 10px 18px 10px 42px;
    border-radius: 100px;
    border: 1px solid var(--aq-line);
    background: var(--aq-bg-soft);
    font-size: 13.5px;
    color: var(--aq-ink);
    font-family: var(--aq-font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aq-blog-search input:focus {
    outline: none;
    border-color: var(--aq-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(8, 94, 109, 0.12);
}

.aq-blog-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--aq-muted);
    pointer-events: none;
}

/* ==========================================================================
   3. POST CARDS GRID (Reference: KPSN kpsn-p-card)
   ========================================================================== */
.aq-blog-main {
    padding: 56px 0 80px;
}

.aq-p-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aq-p-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: center;
    background: #ffffff;
    border-radius: var(--aq-radius-lg);
    box-shadow: var(--aq-shadow);
    border: 1px solid var(--aq-line);
    overflow: hidden;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aq-p-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--aq-shadow-hover);
    border-color: rgba(8, 94, 109, 0.25);
}

.aq-p-visual {
    position: relative;
    height: 230px;
    width: 100%;
    border-radius: var(--aq-radius-md);
    overflow: hidden;
    background: var(--aq-bg-ice);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aq-p-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.aq-p-card:hover .aq-p-visual img {
    transform: scale(1.08);
}

.aq-p-num {
    display: none !important;
}

.aq-p-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--aq-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 14px;
    border-radius: 100px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.aq-p-body {
    display: flex;
    flex-direction: column;
    padding-right: 12px;
    flex: 1;
}

.aq-p-cat {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--aq-accent-gold-dark);
    margin-bottom: 8px;
    display: inline-block;
}

.aq-p-title {
    font-family: var(--aq-font-heading);
    font-size: clamp(21px, 2.2vw, 25px);
    line-height: 1.35;
    margin: 0 0 12px;
    font-weight: 500;
}

.aq-p-title a {
    color: var(--aq-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.aq-p-title a:hover {
    color: var(--aq-primary);
}

.aq-p-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12.5px;
    color: var(--aq-muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.aq-p-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.aq-p-meta svg {
    width: 14px;
    height: 14px;
    color: var(--aq-primary-light);
    flex-shrink: 0;
}

.aq-p-excerpt {
    color: var(--aq-text);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aq-p-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--aq-primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.aq-p-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.aq-p-link:hover {
    color: var(--aq-primary-dark);
    gap: 12px;
}

.aq-p-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   4. CIRCULAR PAGINATION (Reference: KPSN kpsn-pagination)
   ========================================================================== */
.aq-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 54px;
}

.aq-pagination a,
.aq-pagination span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--aq-line);
    background: #ffffff;
    color: var(--aq-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.aq-pagination a:hover {
    border-color: var(--aq-primary);
    color: var(--aq-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 94, 109, 0.15);
}

.aq-pagination span.current {
    background: var(--aq-primary);
    border-color: var(--aq-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(8, 94, 109, 0.25);
}

/* ==========================================================================
   5. BOTTOM CONSULTATION CTA (Reference: KPSN CTA)
   ========================================================================== */
.aq-blog-cta {
    background: linear-gradient(135deg, var(--aq-primary-dark) 0%, var(--aq-dark) 100%);
    padding: 60px 20px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(197, 168, 128, 0.2);
}

.aq-blog-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 50%, rgba(197, 168, 128, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 90% 50%, rgba(13, 131, 151, 0.18) 0%, transparent 40%);
    pointer-events: none;
}

.aq-cta-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.aq-cta-copy {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 680px;
}

.aq-cta-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.2);
    border: 1px solid rgba(197, 168, 128, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aq-accent-gold);
    flex-shrink: 0;
}

.aq-cta-icon svg {
    width: 26px;
    height: 26px;
}

.aq-cta-text h3 {
    font-family: var(--aq-font-heading);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 400;
    margin: 0 0 6px;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

.aq-cta-text p {
    margin: 0;
    font-size: 14.5px;
    color: #D3E0E2;
    line-height: 1.5;
}

.aq-cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.aq-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 26px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.aq-btn-gold {
    background: #C5A880 !important;
    color: #0D262C !important;
    border: 2px solid #C5A880 !important;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3) !important;
}

.aq-btn-gold:hover {
    background: #D4AF37 !important;
    color: #0D262C !important;
    border-color: #D4AF37 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.45) !important;
}

.aq-btn-outline {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.aq-btn-outline:hover {
    background: #ffffff !important;
    color: #085E6D !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.aq-btn-outline svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.aq-btn-outline:hover svg {
    stroke: #085E6D !important;
    color: #085E6D !important;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (Desktop -> Tablet -> Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
    .aq-p-card {
        grid-template-columns: 280px 1fr;
        gap: 28px;
        padding: 18px;
    }
    .aq-p-visual {
        height: 210px;
    }
    .aq-p-title {
        font-size: 21px;
    }
}

@media (max-width: 860px) {
    .aq-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .aq-blog-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .aq-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .aq-blog-search {
        width: 100%;
    }
    .aq-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .aq-cta-copy {
        flex-direction: column;
        text-align: center;
    }
    .aq-cta-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .aq-blog-hero {
        padding: 60px 20px 50px;
    }
    .aq-blog-main {
        padding: 36px 0 60px;
    }
    .aq-p-card {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 18px;
    }
    .aq-p-visual {
        height: 210px;
    }
    .aq-p-body {
        padding: 0 4px;
    }
    .aq-p-title {
        font-size: 20px;
    }
    .aq-p-excerpt {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .aq-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .aq-blog-hero h1 {
        font-size: 26px;
    }
    .aq-blog-hero p {
        font-size: 14px;
    }
    .aq-p-visual {
        height: 180px;
    }
    .aq-p-title {
        font-size: 18px;
    }
    .aq-pagination a,
    .aq-pagination span {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}
