/* ================================================================ */
/* AM Solar — pages.css                                             */
/* Styling tambahan untuk halaman: about, blog, careplus,           */
/* contact, portfolio, solutions — menyesuaikan design home         */
/* ================================================================ */


/* ================================================================ */
/* SHARED: Dark Section (konsisten dengan pain-section di home)     */
/* ================================================================ */
.page-dark-section {
    position: relative;
    padding: 80px 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(30, 58, 138, 0.3) 0%, transparent 60%),
        linear-gradient(135deg, #0a1530 0%, #0f1e45 50%, #1e3a8a 100%);
    border-top: 1px solid rgba(30, 58, 138, 0.5);
    border-bottom: 1px solid rgba(30, 58, 138, 0.5);
    overflow: hidden;
}

/* Dots pattern dekoratif, sama persis dengan pain-section home */
.page-dark-section::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: 20px;
    right: 20px;
    opacity: 0.05;
    background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.page-dark-heading {
    color: #fff !important;
}

.page-dark-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 10px;
}

/* Section header p (eyebrow) di dalam dark section tetap hijau */
.page-dark-section .section-header p {
    color: var(--secondary);
}

/* Dark card — kartu di dalam dark section */
.page-dark-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 30px;
    height: 100%;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.page-dark-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateY(-4px);
}
.page-dark-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.page-dark-card-icon i {
    font-size: 1.3rem;
    color: var(--secondary);
}
.page-dark-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.page-dark-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}


/* ================================================================ */
/* ABOUT — foto dengan overlay lebih modern                         */
/* ================================================================ */
.about .about-img img {
    border-radius: 16px;
    box-shadow: 0 20px 50px -12px rgba(30, 58, 138, 0.2);
    transition: transform 0.4s ease;
}
.about .about-img img:hover {
    transform: scale(1.02);
}

/* about-text paragraf lebih readable */
.about .about-text p {
    font-size: 0.97rem;
    line-height: 1.8;
    color: #475569;
}


/* ================================================================ */
/* BLOG — card modern                                               */
/* ================================================================ */
.blog-card-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.35s;
    display: flex;
    flex-direction: column;
}
.blog-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(30, 58, 138, 0.14);
}

/* Gambar */
.blog-card-modern-img {
    position: relative;
    overflow: hidden;
}
.blog-card-modern-img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.blog-card-modern:hover .blog-card-modern-img img {
    transform: scale(1.05);
}

/* Category badge di atas gambar */
.blog-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Body */
.blog-card-modern-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 10px;
}
.blog-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 10px;
    flex-grow: 1;
}
.blog-card-excerpt {
    font-size: 0.87rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}
.blog-read-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.blog-read-link:hover {
    color: var(--secondary);
    text-decoration: none;
}

/* Override btn-warning yang ada di template lama */
.blog .btn-warning {
    display: none; /* diganti blog-read-link di atas */
}


/* ================================================================ */
/* CARE+ — service cards modern                                     */
/* ================================================================ */
.careplus-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: hidden;
}
.careplus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(0);
    transition: transform 0.35s ease;
}
.careplus-card:hover::before {
    transform: scaleX(1);
}
.careplus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(30, 58, 138, 0.14);
}
.careplus-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(30,58,138,0.08));
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s;
}
.careplus-card:hover .careplus-card-icon {
    transform: scale(1.1) rotate(-5deg);
}
.careplus-card-icon i {
    font-size: 1.6rem;
    color: var(--secondary);
}
.careplus-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.careplus-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}


/* ================================================================ */
/* CONTACT — layout modern                                          */
/* ================================================================ */
.contact-modern {
    padding: 70px 0 80px;
    background: #f8fafc;
}

/* Info items */
.contact-info-modern {
    background: #fff;
    border-radius: 20px;
    padding: 36px 30px;
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    height: 100%;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}
.contact-info-item:last-of-type {
    border-bottom: none;
}
.contact-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30,58,138,0.08), rgba(34,197,94,0.08));
    border: 1px solid rgba(30, 58, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon [class^="flaticon-"]::before {
    font-size: 22px !important;
    color: var(--primary);
    margin: 0;
}
.contact-info-text h5 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 0 0 3px;
}
.contact-info-text p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

/* WA shortcut box */
.contact-wa-shortcut {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4, #f8fafc);
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    text-align: center;
}
.contact-wa-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 10px;
}
.contact-wa-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 8px 0 0;
}

/* Form */
.contact-form-modern {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}
.contact-input-modern {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    font-size: 0.93rem !important;
    color: #0f172a !important;
    background: #fff !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    margin-bottom: 4px;
}
.contact-input-modern:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08) !important;
    outline: none !important;
}
.contact-input-modern::placeholder {
    color: #cbd5e1;
    font-size: 0.9rem;
}
/* Override contact.css asli yang warnai input jadi transparan */
.contact-form-modern input,
.contact-form-modern textarea {
    color: #0f172a !important;
    background: #fff !important;
    border-color: #e2e8f0 !important;
}
.contact-form-modern .form-control::placeholder {
    color: #cbd5e1 !important;
}
.control-group {
    margin-bottom: 16px;
}


/* ================================================================ */
/* PORTFOLIO — card modern                                          */
/* ================================================================ */
.portfolio-card-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.09);
    border: 1px solid #f1f5f9;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.35s;
    margin-bottom: 24px;
}
.portfolio-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 56px -14px rgba(30, 58, 138, 0.16);
}
.portfolio-card-img {
    position: relative;
    overflow: hidden;
}
.portfolio-card-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.portfolio-card-modern:hover .portfolio-card-img img {
    transform: scale(1.07);
}
.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 21, 48, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.35s;
    text-align: center;
}
.portfolio-card-modern:hover .portfolio-card-overlay {
    opacity: 1;
}
.portfolio-card-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.portfolio-lightbox-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s;
    text-decoration: none;
}
.portfolio-lightbox-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #030f27;
    text-decoration: none;
}
.portfolio-card-body {
    padding: 18px 22px 22px;
}
.portfolio-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
}
.portfolio-tag-retail {
    background: rgba(129, 140, 248, 0.1);
    color: #6366f1;
}
.portfolio-tag-residential {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}
.portfolio-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

/* Override portfolio filter pills supaya warna sesuai tema */
.portfolio #portfolio-flters li {
    border-radius: 30px;
}
.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
    background: var(--primary);
    color: var(--secondary);
}


/* ================================================================ */
/* SOLUTIONS — service card modern                                  */
/* ================================================================ */
.service-card-modern {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 30px -8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    margin-bottom: 24px;
    position: relative;
}
.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 56px -14px rgba(30, 58, 138, 0.15);
}
.service-card-featured {
    border: 2px solid var(--secondary);
    box-shadow: 0 6px 30px -8px rgba(34, 197, 94, 0.2);
}
.service-card-featured:hover {
    box-shadow: 0 28px 56px -14px rgba(34, 197, 94, 0.2);
}
.service-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: var(--secondary);
    color: #030f27;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Image area */
.service-card-img {
    position: relative;
    overflow: hidden;
}
.service-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
.service-card-modern:hover .service-card-img img {
    transform: scale(1.06);
}
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 21, 48, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.35s;
}
.service-card-modern:hover .service-card-overlay {
    opacity: 1;
}
.service-card-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.87rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Body */
.service-card-body {
    padding: 22px 24px 26px;
    text-align: center;
}
.service-card-saving {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 16px;
}
.service-card-saving span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}
.service-card-saving strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: #16a34a;
    line-height: 1.2;
}
.service-card-saving strong small {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}
.service-card-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.service-card-sub {
    font-size: 0.83rem;
    color: #94a3b8;
    margin-bottom: 0;
}
.service-card-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 10px 0 0;
}


/* ================================================================ */
/* RESPONSIVE                                                       */
/* ================================================================ */
@media (max-width: 767.98px) {
    .page-dark-section { padding: 50px 0; }
    .page-dark-card { padding: 24px 20px; }

    .blog-card-modern-img img { height: 180px; }

    .careplus-card { padding: 28px 20px; }

    .contact-modern { padding: 40px 0 60px; }
    .contact-form-modern,
    .contact-info-modern { padding: 24px 18px; }

    .portfolio-card-img img { height: 200px; }
    .portfolio-card-body { padding: 14px 18px 18px; }

    .service-card-img img { height: 170px; }
    .service-card-body { padding: 18px 18px 22px; }
    .service-card-saving strong { font-size: 1.1rem; }
}

/* ================================================================ */
/* BLOG DETAIL - COMPANY STYLE                                      */
/* ================================================================ */

.blog-detail {
    padding: 60px 0;
    background: #ffffff;
}

.blog-detail-container {
    max-width: 900px;
    margin: auto;
}

/* IMAGE */
.blog-detail-image img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* META */
.blog-detail-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 20px;
}

/* CONTENT */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

/* PARAGRAPH */
.blog-content p {
    margin-bottom: 18px;
}

/* LIST */
.blog-content ul,
.blog-content ol {
    padding-left: 20px;
    margin-bottom: 18px;
}

.blog-content li {
    margin-bottom: 8px;
}

/* HEADING */
.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 12px;
    color: #0f172a;
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* EMPHASIS */
.blog-content strong {
    color: #111827;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .blog-detail {
        padding: 40px 0;
    }
}

/* ========================= */
/* PRODUCT BUTTON STYLE */
/* ========================= */

.btn-outline-custom {
    border: 1.5px solid #2f4fa3;
    color: #2f4fa3;
    background: transparent;
    padding: 10px 20px;
    border-radius: 8px; /* lebih modern, jangan terlalu bulat */
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* hover biru */
.btn-outline-custom:hover {
    background: #2f4fa3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ========================= */
/* WHATSAPP BUTTON */
/* ========================= */

.btn-outline-custom.wa-btn {
    border-color: #25D366;
    color: #25D366;
}

.btn-outline-custom.wa-btn:hover {
    background: #25D366;
    color: #fff;
}

/* ========================= */
/* SPACING FIX */
/* ========================= */

.gap-2 > * {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* =========================
   PRODUCT CARD (FINAL)
========================= */

.product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* =========================
   IMAGE (PORTRAIT FIX)
========================= */

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4; /* 🔥 POTRET (KUNCI UTAMA) */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 🔥 biar ga ke-crop */
    padding: 10px;
}

/* =========================
   BODY
========================= */

.product-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* TITLE BIAR RAPI */
.product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    height: 42px; /* 🔥 FIX tinggi */
    overflow: hidden;
    margin-bottom: 6px;
}

/* PRICE */
.product-price {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: auto;
}

/* BUTTON */
.product-btn {
    margin-top: 12px;
}

/* =========================
   PRODUCT DETAIL
========================= */

.product-detail-img {
    width: 100%;
    aspect-ratio: 3 / 4; /* 🔥 sama kaya katalog */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

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

@media (max-width: 768px) {
    .product-title {
        font-size: 14px;
        height: auto;
    }

    .product-price {
        font-size: 13px;
    }
}

.filter-box {
    background: #fff;
    padding: 16px 20px;       /* lebih ringkas dari 20px */
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* BARU: wrapper row buat filter */
.filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.modern-input {
    flex: 1;
    min-width: 180px;         /* biar bisa shrink di mobile */
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.filter-select {
    width: 200px;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.modern-btn {
    white-space: nowrap;      /* jangan wrap teksnya */
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
}

@media (max-width: 576px) {
    .modern-input,
    .filter-select { width: 100%; min-width: 100%; }
}

/* ================= PRODUCT CARD ================= */
.product-card-modern {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s ease;
    border: 1px solid #eee;
}

.product-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* IMAGE */
.product-img-wrapper {
    width: 100%;
    height: 260px;
    background: #f8f8f8;
    overflow: hidden;
}

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

/* TEXT */
.product-title {
    font-size: 15px;
    font-weight: 600;
    height: 42px;
    overflow: hidden;
}

.product-price {
    font-size: 14px;
    font-weight: 500;
    color: #2e7d32;
}

/* CATEGORY BADGE */
.category-badge {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 20px;
}

/* BUTTON */
.modern-btn-sm {
    border-radius: 8px;
    font-size: 13px;
    padding: 8px;
}

/* MOBILE FIX */
@media (max-width: 576px) {

    .filter-box {
        padding: 15px;
        border-radius: 12px;
    }

    .product-img-wrapper {
        height: 160px; /* lebih kecil di HP */
    }

    .product-title {
        font-size: 13px;
        height: 36px;
    }

    .product-price {
        font-size: 13px;
    }

    .modern-btn-sm {
        font-size: 12px;
        padding: 6px;
    }

    .product-card-modern {
        border-radius: 12px;
    }

}

/* ============================= */
/* PORTFOLIO INDEX */
/* ============================= */

.portfolio-filter {
    list-style: none;
    padding: 0;
}

.portfolio-filter li {
    display: inline-block;
    margin: 5px;
    padding: 8px 18px;
    border-radius: 20px;
    background: #eee;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.portfolio-filter li:hover,
.portfolio-filter .filter-active {
    background: #28a745;
    color: #fff;
}

/* CARD */
.portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

/* IMAGE */
.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: 0.3s;
}

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

/* OVERLAY */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    color: #fff;
    text-align: center;
}

.portfolio-overlay-content h5 {
    font-size: 16px;
    margin-bottom: 10px;
}

.portfolio-overlay-content p {
    font-size: 13px;
    margin-bottom: 15px;
}

/* BUTTON */
.btn-view {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
}

.btn-view:hover {
    background: #218838;
}

/* BODY */
.portfolio-body {
    padding: 15px;
}

.portfolio-category {
    font-size: 11px;
    color: #28a745;
    font-weight: 600;
}

.portfolio-body h4 {
    font-size: 16px;
    margin: 5px 0;
}

.portfolio-location {
    font-size: 12px;
    color: #777;
}

/* ===== PORTFOLIO DETAIL ===== */

.portfolio-hero-img {
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* META BOX */
.portfolio-meta-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.meta-item {
    padding: 10px;
}

.meta-icon {
    font-size: 22px;
    margin-bottom: 5px;
}

.meta-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.meta-value {
    font-weight: 600;
    color: #222;
}

/* CONTENT */
.portfolio-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* CTA BUTTON */
.btn-consult {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-consult:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ================= FILTER BOX ================= */
.filter-box {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.modern-input {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.modern-btn {
    border-radius: 10px;
    padding: 10px;
    font-weight: 500;
}