/* ============================================
   NGO Campaign & Fundraising Manager - Styles
   ============================================ */

/* ---------- FILTER BAR ---------- */
.ncm-filter-wrapper {
    background: linear-gradient(135deg, #1e2a3a 0%, #0f1a24 100%);
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ncm-filter-container {
    max-width: 1400px;
    margin: 0 auto;
}
.ncm-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}
.ncm-filter-group {
    flex: 1;
    min-width: 150px;
}
.ncm-filter-search-group {
    flex: 2;
}
.ncm-filter-search {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 50px;
    background: #fff;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    height: 42px;
}
.ncm-filter-search:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,152,0,0.3);
}
.ncm-filter-select {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 50px;
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    height: 42px;
}
.ncm-filter-btn {
    width: 100%;
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    height: 42px;
    white-space: nowrap;
}
.ncm-filter-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,152,0,0.3);
}

/* ---------- CAMPAIGN GRID ---------- */
.ncm-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.ncm-grid-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
}
.ncm-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    border-color: #ff9800;
}
.ncm-card-header {
    padding: 20px 20px 0 20px;
}
.ncm-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}
.ncm-card-header h3 a {
    color: #1e2a3a;
    text-decoration: none;
    transition: color 0.2s;
}
.ncm-card-header h3 a:hover {
    color: #ff9800;
}
.ncm-card-meta {
    padding: 0 20px;
    margin-top: 8px;
}
.ncm-category {
    font-size: 0.8rem;
    color: #ff9800;
    background: #fff3e0;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
}
.ncm-card-progress {
    padding: 10px 20px 5px;
}
.ncm-progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}
.ncm-progress-bar span {
    display: block;
    height: 100%;
    background: #ff9800;
    border-radius: 10px;
    transition: width 0.6s ease;
}
.ncm-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #555;
    margin-top: 4px;
}
.ncm-card-end-date {
    padding: 0 20px;
    font-size: 0.8rem;
    color: #888;
}
.ncm-card-excerpt {
    padding: 15px 20px;
    color: #5a6a7a;
    line-height: 1.5;
    flex-grow: 1;
}
.ncm-card-footer {
    padding: 15px 20px 20px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #eef2f6;
}
.ncm-readmore, .ncm-donate-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.ncm-readmore {
    background: #1e2a3a;
    color: #fff;
}
.ncm-readmore:hover {
    background: #ff9800;
    transform: translateX(3px);
}
.ncm-donate-btn {
    background: #ff9800;
    color: #fff;
}
.ncm-donate-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
}
.ncm-single-donate {
    text-align: center;
    margin: 40px 0;
}
.ncm-single-campaign-details {
    background: #f7f9fc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.ncm-single-campaign-details p {
    margin: 5px 0;
}
.ncm-single-campaign-details .ncm-progress-bar {
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
}

/* Pagination */
.ncm-pagination {
    text-align: center;
    margin: 40px 0;
}
.ncm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #f0f2f5;
    border-radius: 50px;
    text-decoration: none;
    color: #1e2a3a;
    font-weight: 500;
    transition: all 0.2s;
}
.ncm-pagination .page-numbers.current {
    background: #ff9800;
    color: #fff;
}
.ncm-pagination .page-numbers:hover:not(.current) {
    background: #e0e4e8;
}

/* ---------- RELATED SLIDER ---------- */
.ncm-related-wrapper {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 2px solid #eef2f6;
}
.ncm-related-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e2a3a;
    position: relative;
    display: inline-block;
}
.ncm-related-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ff9800;
    border-radius: 3px;
}
.ncm-related-swiper {
    overflow: hidden;
    padding: 10px 5px 50px 5px;
}
.ncm-slide-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    border: 1px solid #eef2f6;
    box-shadow: 0 5px 12px rgba(0,0,0,0.03);
}
.ncm-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.08);
    border-color: #ff9800;
}
.ncm-slide-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}
.ncm-slide-card h3 a {
    color: #1e2a3a;
    text-decoration: none;
}
.ncm-slide-card h3 a:hover {
    color: #ff9800;
}
.ncm-slide-meta {
    font-size: 0.75rem;
    margin-bottom: 12px;
}
.ncm-slide-meta a {
    color: #ff9800;
    text-decoration: none;
    background: #fff3e0;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
}
.ncm-slide-excerpt {
    font-size: 0.85rem;
    color: #5a6a7a;
    line-height: 1.5;
    margin: 10px 0;
    flex-grow: 1;
}
.ncm-slide-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.ncm-slide-buttons .ncm-readmore,
.ncm-slide-buttons .ncm-donate-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* Swiper Navigation & Pagination */
.ncm-related-swiper .swiper-button-next,
.ncm-related-swiper .swiper-button-prev {
    color: #ff9800;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.ncm-related-swiper .swiper-button-next:after,
.ncm-related-swiper .swiper-button-prev:after {
    font-size: 18px;
}
.ncm-related-swiper .swiper-button-next:hover,
.ncm-related-swiper .swiper-button-prev:hover {
    background: #ff9800;
    color: #fff;
}
.ncm-related-swiper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.ncm-related-swiper .swiper-pagination-bullet-active {
    background: #ff9800;
}

/* ---------- TITLE BUTTON STYLE ---------- */
.ncm-title-button {
    display: inline-block;
    background: #ff9800;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.ncm-title-button:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,152,0,0.3);
    color: #fff !important;
}

/* ---------- CATEGORY BANNER ---------- */
.ncm-category-banner {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    margin-bottom: 1.5rem;
    display: block;
    overflow: hidden;
}
@media (max-width: 768px) {
    .ncm-category-banner { min-height: 180px; }
}
@media (max-width: 480px) {
    .ncm-category-banner { min-height: 140px; }
}

/* ---------- HERO SECTION ---------- */
.ncm-hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    line-height: 0;
    border-radius: 16px;
    overflow: hidden;
}
.ncm-hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}
@media (max-width: 768px) {
    .ncm-hero-section { border-radius: 10px; }
    .ncm-hero-image { border-radius: 10px; }
}
@media (max-width: 480px) {
    .ncm-hero-section { border-radius: 8px; }
    .ncm-hero-image { border-radius: 8px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .ncm-filter-wrapper { padding: 0.5rem; border-radius: 8px; margin-bottom: 1rem; }
    .ncm-filter-form { flex-wrap: nowrap; gap: 0.4rem; justify-content: space-between; }
    .ncm-filter-group { flex: 1; min-width: 0; }
    .ncm-filter-search-group { flex: 2; }
    .ncm-filter-search, .ncm-filter-select, .ncm-filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 30px;
        height: 32px;
        line-height: 1;
    }
    .ncm-filter-select { background-position: right 8px center; padding-right: 24px; }
    .ncm-filter-btn { padding: 6px 10px; font-size: 0.7rem; white-space: nowrap; height: 32px; }
    .ncm-grid-container { grid-template-columns: 1fr; gap: 20px; }
    .ncm-grid-card { margin: 0 5px; }
    .ncm-card-header h3 { font-size: 1.1rem; }
    .ncm-title-button { padding: 4px 12px; font-size: 0.85rem; border-radius: 30px; }
    .ncm-related-swiper .swiper-button-next,
    .ncm-related-swiper .swiper-button-prev { display: none; }
    .ncm-related-swiper { padding-bottom: 40px; }
    .ncm-slide-card { padding: 15px; }
    .ncm-related-title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .ncm-filter-wrapper { padding: 0.4rem 0.3rem; border-radius: 6px; }
    .ncm-filter-form { gap: 0.25rem; }
    .ncm-filter-search, .ncm-filter-select, .ncm-filter-btn {
        padding: 4px 8px;
        font-size: 0.65rem;
        height: 28px;
        border-radius: 20px;
    }
    .ncm-filter-btn { padding: 4px 8px; font-size: 0.65rem; }
    .ncm-title-button { padding: 3px 8px; font-size: 0.75rem; border-radius: 20px; }
}