/* =============================================
   Base
============================================= */
.ci-page { font-family: inherit; }
.ci-page-boxed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    background: #fff;
}
.ci-container { max-width: 100%; margin: 0 auto; padding: 0 24px; }
.ci-section { padding: 60px 0; }
.ci-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
}

/* =============================================
   Page Title
============================================= */
.ci-page-title-section { padding: 32px 0 16px; }
.ci-page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* =============================================
   Carousel
============================================= */
.ci-carousel-section {
    position: relative;
    padding: 0;
}
.ci-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #111;
}
.ci-carousel__track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}
.ci-carousel__slide {
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    overflow: hidden;
}
.ci-carousel__slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

/* Bullets */
.ci-carousel__bullets {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.ci-bullet {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px;
    min-height: 10px;
    box-sizing: content-box;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.5) !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0;
    line-height: 1;
    display: block;
    transition: background 0.3s;
    flex-shrink: 0;
}
.ci-bullet.is-active { background: #fff; }

/* Arrows */
.ci-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45) !important;
    color: #fff !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    border-radius: 4px !important;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0 !important;
    line-height: 1;
    box-sizing: border-box;
}
.ci-carousel__arrow:hover { background: rgba(0,0,0,0.7); }
.ci-arrow-prev { left: 16px; }
.ci-arrow-next { right: 16px; }

/* Fixed overlay - icon + h2 */
.ci-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    z-index: 20;
    padding: 20px 0 18px;
    pointer-events: none;
}
.ci-carousel-overlay__inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.ci-overlay-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
span.ci-overlay-icon.dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #fff;
    line-height: 1;
}
.ci-overlay-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* =============================================
   Page Description
============================================= */
.ci-page-desc-section { padding: 40px 0; }
.ci-page-desc { font-size: 1rem; line-height: 1.8; color: #444; }

/* =============================================
   Features (2-column grid)
============================================= */
.ci-features-section {
    background: #f2f3f7;
    padding: 48px 0;
}
.ci-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
}
.ci-feat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ci-feat-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    color: #2563eb;
}
span.ci-feat-icon.dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2563eb;
    line-height: 1;
}
.ci-feat-text { font-size: 0.95rem; font-weight: 600; color: #222; }

/* =============================================
   Why Us
============================================= */
.ci-why-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0;
	margin-bottom: 2em;
}
.ci-why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.7);
}
.ci-why-section .ci-container { position: relative; z-index: 2; padding: 0 24px; }
.ci-why-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 0;
}
.ci-why-block {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    padding: 0px 28px 32px 28px;
    color: #fff;
}
.ci-why-block--middle {
    border-left: 1px solid rgba(255,255,255,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
}
.ci-why-block__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
    align-self: start;
}
.ci-why-block__content {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.85);
    margin: 0;
    align-self: start;
}

/* =============================================
   Programs / News (post cards)
============================================= */
.ci-posts-section { padding: 60px 0; }
.ci-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.ci-post-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.ci-post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.14); }
.ci-post-card__img { display: block; }
.ci-post-card__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.ci-post-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ci-post-card__title { font-size: 1rem; font-weight: 700; margin: 0; }
.ci-post-card__title a { color: #1a1a1a; text-decoration: none; }
.ci-post-card__title a:hover { color: #2563eb; }
.ci-post-card__excerpt { font-size: 0.875rem; color: #666; margin: 0; flex: 1; }
.ci-post-card__date { font-size: 0.8rem; color: #999; }

/* =============================================
   Responsive
============================================= */
@media (max-width: 768px) {
    .ci-features-grid { grid-template-columns: 1fr; }
    .ci-why-blocks {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
    }
    .ci-why-block {
        grid-row: span 1;
        grid-template-rows: unset;
        display: flex;
        flex-direction: column;
        padding: 24px 20px;
    }
    .ci-why-block--middle {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.3);
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }
    .ci-carousel__slide img { height: 260px; }
    .ci-overlay-title { font-size: 1.1rem; }
    .ci-posts-grid { grid-template-columns: 1fr; }
    .ci-page-title { font-size: 1.5rem; }
}

/* Why Us block content – HTML from wp_editor */
.ci-why-block__content ul,
.ci-why-block__content ol {
    margin: 6px 0 6px 18px;
    padding: 0;
    color: rgba(255,255,255,0.88);
}
.ci-why-block__content li { margin: 3px 0; line-height: 1.7; }
.ci-why-block__content a { color: #93c5fd; }
.ci-why-block__content strong { color: #fff; }

/* =============================================
   Du An (BĐS)
============================================= */
.ci-du-an-section { background: #f2f3f7; }

.ci-du-an__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.ci-du-an__item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ci-du-an__item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

.ci-du-an__thumb-link { display: block; overflow: hidden; }

.ci-du-an__thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ci-du-an__item:hover .ci-du-an__thumb { transform: scale(1.04); }

.ci-du-an__thumb--placeholder {
    height: 200px;
    background: #e8e9ed;
}

.ci-du-an__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ci-du-an__name {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.ci-du-an__name a { color: #1a1a1a; text-decoration: none; }
.ci-du-an__name a:hover { color: #2563eb; }

.ci-du-an__address,
.ci-du-an__price {
    font-size: .875rem;
    color: #555;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.45;
}

.ci-du-an__price {
    color: #e07b00;
    font-weight: 600;
    font-size: .85rem;
}

.ci-du-an__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: currentColor;
    margin-top: 2px;
}

.ci-du-an__footer { text-align: center; }

.ci-du-an__view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border: 2px solid #2563eb;
    border-radius: 99px;
    color: #2563eb;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.ci-du-an__view-all:hover { background: #2563eb; color: #fff; }

.ci-du-an__view-all svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1024px) and (min-width: 641px) {
    .ci-du-an__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ci-du-an__grid { grid-template-columns: 1fr; }
}

/* =============================================
   Section Dự án BĐS
============================================= */
.ci-du-an { background: #f2f3f7; }

.ci-du-an__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.ci-du-an__item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ci-du-an__item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

.ci-du-an__thumb-link { display: block; overflow: hidden; }

.ci-du-an__thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ci-du-an__item:hover .ci-du-an__thumb { transform: scale(1.04); }

.ci-du-an__thumb--placeholder {
    height: 200px;
    background: #e5e7eb;
}

.ci-du-an__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ci-du-an__name {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.ci-du-an__name a { color: #1a1a1a; text-decoration: none; }
.ci-du-an__name a:hover { color: #2563eb; }

.ci-du-an__address,
.ci-du-an__price {
    font-size: .85rem;
    color: #555;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: .3rem;
    line-height: 1.45;
}

.ci-du-an__price {
    color: #e67e22;
    font-weight: 600;
}

.ci-du-an__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: currentColor;
    margin-top: 2px;
}

.ci-du-an__footer { text-align: center; margin-top: .5rem; }

.ci-du-an__view-all {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.75rem;
    border: 2px solid #2563eb;
    border-radius: 99px;
    color: #2563eb;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.ci-du-an__view-all:hover { background: #2563eb; color: #fff; }

.ci-du-an__view-all svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1024px) and (min-width: 641px) {
    .ci-du-an__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ci-du-an__grid { grid-template-columns: 1fr; }
}
