/* Propshop UAE — Blog page */

/* ----- RESET & GLOBAL ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    color: #1a1e2b;
    scroll-behavior: smooth;
    line-height: 1.5;
}

/* Site palette — unchanged, same tokens the rest of the site already uses */
:root {
    --primary: #c8102e;
    --primary-dark: #9e0b24;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --stone: #f5f7fa;
    --stone-dark: #eef2f6;
    --grey-text: #334155;
    --border-light: #e9edf2;
    --ink: #0f172a;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --red: #c8102e;
    --red-light: #e2536b;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 28px rgba(0,0,0,0.05), 0 0 1px rgba(0,0,0,0.05);
    --shadow-hover: 0 24px 42px rgba(0,0,0,0.08), 0 8px 18px rgba(0,0,0,0.04);
    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.container-blog {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ----- HERO SECTION ----- */
.blog-hero-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 96px 0 56px;
    margin-bottom: 32px;
    margin-top:60px;
}

.hero-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 16, 46, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    fill: var(--primary);
}

.blog-hero-modern h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 18px;
}

.blog-hero-modern p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--grey-text);
    /*max-width: 660px;*/
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* International Phone Input */
.iti {
    width: 100%;
}

.iti input {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    padding-left: 90px !important;
}

.iti__country-list {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    font-size: 14px;
    z-index: 9999;
}

.iti__selected-flag {
    padding: 0 14px;
    border-radius: 10px 0 0 10px;
}

.iti input, .iti input[type=tel] {
    padding-left: 115px !important;
}

/* search bar */
.search-modern {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.search-modern input {
    width: 100%;
    padding: 14px 22px;
    padding-right: 104px;
    font-size: .95rem;
    font-family: 'DM Sans', sans-serif;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 60px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    outline: none;
}

.search-modern input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(200,16,46,0.1);
}

.search-modern button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-modern button:hover {
    background: var(--navy);
}

/* main layout */
.blog-layout {
    display: flex;
    gap: 48px;
    margin: 32px 0 80px;
    align-items: stretch;
}

.blog-main-col {
    flex: 1.7;
    min-width: 0;
}

.blog-sidebar {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.sidebar-inner {
    position: sticky;
    top: 90px;
}

@media (max-width: 980px) {
    .sidebar-inner {
        position: static;
        top: unset;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 32px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary);
}

.post-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    background: var(--stone);
    padding: 4px 12px;
    border-radius: 40px;
    color: var(--grey-text);
    font-weight: 500;
}

/* ===== CARD GRID ===== */
.blog-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--red-light), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.15);
    border-color: rgba(200,16,46,0.2);
}

.card-media {
    position: relative;
    height: 210px;
    /* background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%); */
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(200,16,46,0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .card-media::after {
    opacity: 1;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-fit: contain; */
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.article-card:hover .card-media img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(200, 16, 46, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: white;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pill-new {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(200,16,46,0.2);
}

.date-badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.date-badge svg {
    width: 13px;
    height: 13px;
    stroke: var(--primary);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 12px 0;
    line-height: 1.35;
    color: var(--navy);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .card-title {
    color: var(--primary);
}

.card-excerpt {
    font-family: 'DM Sans', sans-serif;
    color: var(--grey-text);
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 0 4px;
    width: fit-content;
    border-bottom: 2px solid transparent;
}

.read-more-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    gap: 12px;
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.read-more-link:hover svg {
    transform: translateX(4px);
}

.load-more-container {
    text-align: center;
    margin-top: 48px;
}

.load-more-btn {
    background: transparent;
    border: 1.5px solid var(--border-light);
    padding: 12px 32px;
    border-radius: 60px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    border-color: var(--primary);
    background: rgba(200,16,46,0.03);
    color: var(--primary);
}

.no-results-modern {
    text-align: center;
    padding: 60px 20px;
    background: var(--stone);
    border-radius: 24px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
}

.footer-placeholder {
    margin-top: 60px;
    background: var(--navy);
    color: white;
}

/* ==========================================================================
   SIDEBAR — "Get a Quote" form
   Matches the main site's form-card (Playfair Display heading / DM Sans
   fields), narrower and single-column so every field sits on its own line.
   ========================================================================== */

   /* .form-card {
       width: 100%;
       max-width: 320px;
       margin: 0 auto;
       background: #ffffff;
       border-radius: 16px;
       overflow: hidden;
       border: 1px solid var(--border-light);
       box-shadow: var(--shadow-md);
   } */

/* .hero-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    min-height: 0;
}


.form-card-top {
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--stone);
}

.form-card-top h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-card-top h3 em {
    font-style: italic;
    color: var(--primary);
}

.form-card-top p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
}

.form-card-body {
    padding: 14px 18px 18px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 9px;
}

.form-group label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--navy);
}

.form-group label .req {
    color: var(--primary);
}

.form-control {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--navy);
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}

textarea.form-control {
    height: auto;
    padding-top: 8px;
    resize: vertical;
    min-height: 42px;
}

.form-control::placeholder {
    color: var(--muted-2);
    font-size: .75rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,16,46,.08);
}

.file-upload-wrap {
    border: 1.5px dashed var(--border-light);
    border-radius: 8px;
    padding: 7px 12px;
    text-align: left;
    cursor: pointer;
    background: #fff;
    transition: border-color .3s, background .3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-upload-wrap:hover {
    border-color: var(--primary);
    background: rgba(200,16,46,0.03);
}

.file-upload-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: .95rem;
    flex-shrink: 0;
}

.file-upload-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.3;
}

.file-upload-text strong {
    color: var(--primary);
}

.file-name-ok {
    display: none;
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem;
    color: #28a745;
    font-weight: 600;
    margin-top: 4px;
}

#formResult {
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    text-align: center;
    margin-top: 8px;
}

.btn-submit-form {
    width: 100%;
    margin-top: 4px;
    background: var(--navy);
    color: #fff;
    padding: 11px 20px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    min-height: 40px;
}

.btn-submit-form::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translateX(-101%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 0;
    border-radius: inherit;
}

.btn-submit-form span {
    position: relative;
    z-index: 1;
}

.btn-submit-form:hover::after {
    transform: translateX(0);
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200,16,46,.28);
}

.btn-submit-form:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-family: 'DM Sans', sans-serif;
    font-size: .65rem;
    color: var(--muted-2);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

.falert, .emsg {
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem;
    margin-top: 3px;
    display: none;
}

.falert.show, .emsg.show {
    display: block;
}

.falert.success {
    color: #166534;
}

.falert.error, .emsg {
    color: var(--primary);
}

.spin {
    display: none;
    width: 14px;
    height: 14px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sp .7s linear infinite;
}

@keyframes sp {
    to { transform: rotate(360deg); }
}

.rcn {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: .6rem;
    color: var(--muted-2);
    margin-top: .45rem;
    line-height: 1.5;
} */

/* ----- PAGINATION ----- */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px auto 20px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-num:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .blog-grid-modern {
        gap: 22px;
    }
    .card-title {
        font-size: 1.18rem;
    }
}

@media (max-width: 980px) {
    .blog-layout {
        flex-direction: column;
        gap: 40px;
    }
    .blog-sidebar {
        max-width: 100%;
        width: 100%;
    }
    .form-card {
        max-width: 340px;
    }
    .blog-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
    .card-media {
        height: 190px;
    }
    .blog-hero-modern h1 {
        font-size: 2.2rem;
    }
    .container-blog {
        padding: 0 24px;
    }
}

@media (max-width: 680px) {
    .blog-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card-media {
        height: 200px;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-content {
        padding: 18px;
    }
    .form-card {
        max-width: 100%;
        border-radius: 12px;
    }
    .form-card-top, .form-card-body {
        padding-left: 16px;
        padding-right: 16px;
    }
    .search-modern input {
        padding-right: 90px;
        font-size: .9rem;
    }
    .search-modern button {
        padding: 8px 16px;
        font-size: .8rem;
    }
}

@media (max-width: 480px) {
    .container-blog {
        padding: 0 16px;
    }
    .blog-hero-modern {
        padding: 40px 0 32px;
    }
    .blog-hero-modern h1 {
        font-size: 1.75rem;
    }
    .form-card-top h3 {
        font-size: 1.05rem;
    }
    .btn-submit-form {
        font-size: .82rem;
    }
    .pagination-container {
        gap: 6px;
    }
    .page-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .page-num {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}


/* form redesign */

.df-grid-2 {
    grid-template-columns: none !important;
}

.df-error {
    min-height: 0 !important;
}