hr {
    height: 1px;
    background: linear-gradient(90deg, oklch(63.7% .237 25.331), transparent);
    border-radius: 2px;
    margin-top: 15px;
}

.post-card-image>a>img {
    height: 100%;
    object-fit: fill;
}

.carf-font {
    font-size: 14px;
}

.entry-title {
    font-size: 18px;
}

/* Category Section Styling */
.category-section {
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.category-section:last-child {
    border-bottom: none;
}

.category-header {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);*/
    padding: 20px;
    /*border-radius: 8px;*/
    /*border-left: 4px solid #007bff;*/
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.category-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.category-section-title a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-section-title a:hover {
    color: #007bff;
}

.category-section-title i {
    font-size: 24px;
    color: #007bff;
}

.category-divider {
    height: 1px;
    background: linear-gradient(90deg, oklch(63.7% .237 25.331), transparent);
    border-radius: 2px;
    margin-top: 15px;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

/* Post Card Hover Effects */
.post-card {
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

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

.post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

/* Post Meta Styling */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-meta .badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Entry Title */
.entry-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 48px;
}

/* Related Posts Section Styles */
.related-posts-section {
    /*padding: 30px 0;*/
    /*background-color: #f9f9f9;*/
    border-radius: 8px;
}

.related-posts-header {
    text-align: center;
    margin-bottom: 35px !important;
}

.related-posts-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    margin: 0 auto;
    border-radius: 2px;
}

/* Related Post Card Styles */
.related-post-img {
    height: 240px !important;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.post-card {
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

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

.post-card-image {
    overflow: hidden;
}

.post-card-image a {
    display: block;
    height: 100%;
}

.card-link-overlay {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
}

.related-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.related-post-meta .badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.badge-info {
    background-color: #17a2b8 !important;
    color: #fff;
}

.badge-secondary {
    background-color: #6c757d !important;
    color: #fff;
}

.entry-title a {
    transition: color 0.3s ease;
    text-decoration: none;
}

.entry-title a:hover {
    color: #007bff !important;
}

.btn-read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-read-more:hover {
    color: #0056b3;
    text-decoration: none;
    gap: 10px;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

.transition-hover {
    position: relative;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */

/* -- Filter Section -- */
.gallery-filter-section {
    padding: 24px 0 10px;
}

.gallery-filter-form {
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
    padding: 20px 24px;
    border: 1px solid rgba(0, 0, 0, .07);
}

.gallery-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: .3px;
}

.gallery-filter-label i {
    margin-right: 4px;
    color: #007bff;
}

.gallery-filter-input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 9px 14px;
    font-size: 14px;
    transition: border-color .25s, box-shadow .25s;
    height: auto;
}

.gallery-filter-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .15);
    outline: none;
}

.gallery-filter-actions {
    display: flex;
    gap: 10px;
}

.gallery-btn-filter {
    flex: 1;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: background .25s, transform .2s;
}

.gallery-btn-filter:hover {
    background: #0056b3;
    color: #fff;
    transform: translateY(-1px);
}

.gallery-btn-reset {
    flex: 1;
    background: transparent;
    color: #6c757d;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: border-color .25s, color .25s, transform .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.gallery-btn-reset:hover {
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* -- Gallery Section -- */
.gallery-section {
    padding: 30px 0 10px;
}

/* -- Gallery Card -- */
.gallery-card {
    margin-bottom: 40px;
}

.gallery-card-header {
    margin-bottom: 16px;
}

.gallery-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.gallery-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.gallery-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.gallery-meta-item i {
    font-size: 15px;
    color: #007bff;
}

.gallery-card-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

/* -- Images Grid -- */
.gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* First image spans 2 cols & 2 rows when there are 3+ images */
.gallery-image-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #e9ecef;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-image-featured {
    aspect-ratio: auto;
    min-height: 260px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gallery-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
}

.gallery-image-overlay i {
    font-size: 28px;
    color: #fff;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .3s ease, transform .3s ease;
}

.gallery-image-wrap:hover .gallery-image {
    transform: scale(1.06);
}

.gallery-image-wrap:hover .gallery-image-overlay {
    background: rgba(0, 0, 0, .35);
}

.gallery-image-wrap:hover .gallery-image-overlay i {
    opacity: 1;
    transform: scale(1);
}

/* -- Divider between gallery cards -- */
.gallery-divider {
    height: 1px;
    background: linear-gradient(90deg, #191B1D, transparent);
    border-radius: 2px;
    margin-bottom: 40px;
}

/* -- Empty state -- */
.gallery-empty {
    text-align: center;
    padding: 70px 20px;
    color: #aaa;
}

.gallery-empty i {
    font-size: 60px;
    display: block;
    margin-bottom: 14px;
    color: #dee2e6;
}

.gallery-empty p {
    font-size: 17px;
    margin: 0;
}

/* -- Lightbox -- */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    cursor: pointer;
}

.gallery-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gallery-lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 88vw;
    max-height: 80vh;
}

.gallery-lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
    display: block;
}

.gallery-lightbox-caption {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s;
    z-index: 2;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, .25);
}

.gallery-lightbox-close {
    top: -52px;
    right: 0;
}

.gallery-lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================================
   HERO BANNER SECTION
   ============================================================ */

.hero-banner {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-no-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px 50px;
    width: 100%;
}

.hero-banner-title {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.hero-banner-subtitle {
    color: rgba(255,255,255,0.88);
    font-size: 18px;
    margin-bottom: 32px;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* -- Search Result Bar (home page inline results) -- */
.search-result-bar {
    background: #f8f9fa;
    border-left: 4px solid #e63946;
    border-radius: 6px;
    padding: 14px 18px;
}

.search-result-heading {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* -- Hero Search Form -- */
.hero-search-form {
    max-width: 720px;
    margin: 0 auto;
}

.hero-search-wrapper {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.hero-search-category {
    flex-shrink: 0;
    border-right: 1px solid #e0e0e0;
}

.hero-search-select {
    height: 100%;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    background: transparent;
    cursor: pointer;
    min-width: 160px;
    appearance: auto;
}

.hero-search-input-wrap {
    flex: 1;
}

.hero-search-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 15px;
    color: #333;
    background: transparent;
}

.hero-search-input::placeholder {
    color: #aaa;
}

.hero-search-btn {
    flex-shrink: 0;
    background: #e63946;
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s ease;
    border-radius: 0 50px 50px 0;
}

.hero-search-btn:hover {
    background: #c1121f;
}

/* -- Search page filter form -- */
.search-filter-form .form-control {
    border-radius: 6px;
    font-size: 14px;
}

.search-filter-form {
    gap: 8px;
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 320px;
    }

    .hero-banner-title {
        font-size: 28px;
    }

    .hero-banner-subtitle {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .hero-search-wrapper {
        flex-direction: column;
        border-radius: 12px;
    }

    .hero-search-category {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .hero-search-select {
        width: 100%;
        padding: 12px 16px;
        min-width: unset;
    }

    .hero-search-input {
        padding: 12px 16px;
    }

    .hero-search-btn {
        border-radius: 0 0 12px 12px;
        justify-content: center;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .hero-banner-title {
        font-size: 22px;
    }

    .hero-banner-content {
        padding: 40px 16px 36px;
    }
}


@media (max-width: 768px) {
    .gallery-filter-actions {
        margin-top: 4px;
    }

    .gallery-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-image-featured {
        grid-column: span 2;
        min-height: 180px;
    }

    .gallery-card-title {
        font-size: 18px;
    }

    .gallery-lightbox-prev {
        left: -44px;
    }

    .gallery-lightbox-next {
        right: -44px;
    }
}

@media (max-width: 480px) {
    .gallery-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .gallery-filter-actions {
        flex-direction: column;
    }

    .gallery-btn-filter,
    .gallery-btn-reset {
        width: 100%;
    }

    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .gallery-lightbox-prev {
        left: 4px;
    }

    .gallery-lightbox-next {
        right: 4px;
    }
}
