/* NYINA FOUNDATION – COMPLETE DESIGN – NOV 2025 */
:root {
    --green: #2E7D32;
    --yellow: #F7C948;
    --black: #22263E;
    --mint: #A7D7C5;
    --white: #FEFEFE;
}

/* ===== CAMPAIGN SINGLE PAGE ===== */
.nyina-hero { 
    position: relative; 
    height: 65vh; 
    min-height: 500px; 
    overflow: hidden; 
}

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

.hero-title-container {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 80px 5% 40px;
}

.hero-title { 
    color: white; 
    font-size: 3.2rem; 
    font-weight: 700; 
    margin: 0; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.6); 
}

.nyina-content-wrapper {
    max-width: 1200px; 
    margin: 50px auto; 
    padding: 0 20px;
    display: flex; 
    gap: 40px; 
    align-items: flex-start;
}

.nyina-main-col { 
    flex: 1; 
    min-width: 0; 
}

.nyina-sidebar { 
    width: 320px; 
    position: sticky; 
    top: 100px; 
    align-self: flex-start; 
}

.about-section h2,
.updates-section h2,
.gallery-section h2 {
    font-size: 1.8rem; 
    color: #222; 
    margin-bottom: 24px;
}

/* YELLOW LINE */
.about-section h2::after,
.updates-section h2::after,
.gallery-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin-top: 12px;
    border-radius: 2px;
}

.campaign-content { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #444; 
    margin-bottom: 40px; 
}

/* UPDATES SECTION */
.updates-list { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    margin-bottom: 30px; 
}

.update-card {
    background: white; 
    border: 1px solid #eee; 
    border-radius: 12px;
    padding: 24px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.update-date {
    display: flex; 
    align-items: center; 
    gap: 8px;
    color: var(--green); 
    font-size: 0.95rem; 
    font-weight: 600; 
    margin-bottom: 12px;
}

.icon-calendar {
    width: 16px; 
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%232E7D32" d="M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32s-32 14.3-32 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"/></svg>') center / contain no-repeat;
}

.update-title { 
    font-size: 1.35rem; 
    color: #222; 
    margin: 0 0 12px; 
    font-weight: 600; 
}

.update-text { 
    color: #666; 
    line-height: 1.7; 
    margin: 0; 
}

.view-more-container { 
    text-align: center; 
    margin: 40px 0; 
}

.view-more-btn {
    background: transparent; 
    border: none; 
    color: var(--green);
    font-weight: 600; 
    font-size: 1.1rem; 
    cursor: pointer;
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    padding: 12px 24px; 
    border-radius: 30px; 
    transition: all 0.3s ease;
}

.view-more-btn:hover { 
    background: rgba(46,125,50,0.1); 
}

.icon-arrow-down {
    display: inline-block;
    width: 12px; 
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%232E7D32" d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"/></svg>') center / contain no-repeat;
    transform: rotate(180deg);
    margin-left: 8px;
}

/* GALLERY */
.gallery-main { 
    margin-bottom: 20px; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); 
}

.main-img { 
    width: 100%; 
    height: auto; 
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-thumbs { 
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    padding: 10px 0; 
}

.thumb-img {
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: 12px;
    border: 3px solid transparent; 
    transition: all 0.3s ease; 
    flex-shrink: 0;
    cursor: pointer;
}

.thumb-img:hover { 
    border-color: var(--yellow); 
    transform: scale(1.05); 
}

.thumb-img.active {
    border-color: var(--green);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* SIDEBAR */
.sidebar-card {
    background: white; 
    border-radius: 16px; 
    padding: 28px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); 
    text-align: center;
}

.supporters {
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px; 
    color: var(--green); 
    font-size: 1.15rem; 
    font-weight: 600; 
    margin-bottom: 24px;
}

.icon-supporters {
    width: 20px; 
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="%232E7D32" d="M352 128c0 70.7-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM609.3 512H471.4c5.4-9.4 8.6-20.3 8.6-32v-8c0-60.7-27.1-115.2-69.8-151.2c2.4-.1 4.7-.2 7.1-.2h61.4C567.8 320.6 640 392.8 640 481.9c0 17-13.8 30.1-30.7 30.1zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"/></svg>') center / contain no-repeat;
}

.btn-donate, .btn-share {
    width: 100%; 
    padding: 16px; 
    border: none; 
    border-radius: 30px;
    font-weight: bold; 
    font-size: 1.1rem; 
    cursor: pointer;
    margin-bottom: 14px; 
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.btn-donate { 
    background: var(--yellow); 
    color: #222; 
}

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

.btn-share { 
    background: transparent; 
    color: var(--green); 
    border: 2px solid var(--green); 
}

.btn-share:hover { 
    background: var(--green); 
    color: white; 
}

/* MOBILE STICKY BAR */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    gap: 16px;
}

.mobile-sticky-bar .btn-donate-mobile,
.mobile-sticky-bar .btn-share-mobile {
    flex: 1;
    padding: 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-donate-mobile {
    background: var(--yellow);
    color: #222;
}

.btn-share-mobile {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}

/* SHARE MODAL */
#share-modal {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#share-modal.show { 
    display: flex; 
}

.share-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: modalPop 0.4s ease;
}

@keyframes modalPop {
    from { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.share-content h3 {
    margin: 0 0 20px;
    font-size: 1.4rem;
    color: #222;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover { 
    transform: scale(1.15); 
}

.share-btn.whatsapp { 
    background: #25D366; 
}

.share-btn.facebook { 
    background: #1877F2; 
}

.share-btn.x { 
    background: #000; 
}

.share-btn.linkedin { 
    background: #0077B5; 
}

.share-btn svg {
    width: 24px; 
    height: 24px;
    display: block;
}

.share-btn.copy {
    background: var(--yellow);
    color: #222;
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
    gap: 8px;
    display: flex;
    align-items: center;
}

.share-btn.copy svg {
    width: 18px;
    height: 18px;
}

.close-share {
    background: #eee;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

/* ===== FEATURED CAMPAIGN (HORIZONTAL LAYOUT) ===== */
.nyina-featured-card {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.featured-card-image {
    width: 45%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.featured-card-content {
    width: 55%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card-content h2 {
    font-size: 2rem;
    color: #222;
    margin: 0 0 20px 0;
    font-weight: 600;
    line-height: 1.3;
}

.featured-card-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 25px 0;
}

.featured-supporters {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.featured-card-actions {
    display: flex;
    gap: 15px;
}

.btn-donate-featured,
.btn-learn-more {
    flex: 1;
    padding: 16px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-donate-featured {
    background: var(--yellow);
    color: #222;
}

.btn-donate-featured:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

.btn-learn-more {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}

.btn-learn-more:hover {
    background: var(--green);
    color: white;
}

/* ===== CAMPAIGN CARDS (GRID/REGULAR) ===== */
.nyina-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.nyina-campaign-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nyina-campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.nyina-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.nyina-card-content {
    padding: 16px 20px 0 20px;
    display: flex;
    flex-direction: column;
}

.nyina-card-content h3 {
    font-size: 1.3rem;
    color: #222;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.3;
}

.nyina-card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.nyina-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin: 0;
}

.nyina-card-footer .supporters {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.nyina-card-actions {
    padding: 10px 20px 20px 20px;
}

.support-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: var(--yellow);
    color: #222;
}

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

/* ===== PAGINATION ===== */
.nyina-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px 0;
    flex-wrap: wrap;
}

.nyina-pagination a,
.nyina-pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    background: white;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nyina-pagination a:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    transform: translateY(-2px);
}

.nyina-pagination .current {
    background: var(--green);
    color: white;
    border-color: var(--green);
    font-weight: 600;
}

.nyina-pagination .dots {
    border: none;
    background: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .nyina-content-wrapper { 
        flex-direction: column; 
        gap: 30px;
    }
    
    .nyina-sidebar { 
        display: none !important; 
    }
    
    .mobile-sticky-bar { 
        display: flex; 
    }
}

@media (min-width: 993px) {
    .mobile-sticky-bar { 
        display: none !important; 
    }
    
    .nyina-sidebar { 
        display: block !important; 
    }
}

@media (max-width: 768px) {
    .hero-title { 
        font-size: 2.4rem; 
    }
    
    .hero-title-container { 
        padding: 60px 5% 30px; 
    }
    
    /* Featured campaign - stack vertically on mobile */
    .nyina-featured-card {
        flex-direction: column;
    }
    
    .featured-card-image {
        width: 100%;
        min-height: 250px;
    }
    
    .featured-card-content {
        width: 100%;
        padding: 30px 20px;
    }
    
    .featured-card-content h2 {
        font-size: 1.5rem;
    }
    
    .featured-card-actions {
        flex-direction: column;
    }
    
    .nyina-campaigns-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .support-btn {
        width: 100%;
    }
}

.nyina-initiatives-page .section-title {
    text-align: center !important;
    margin: 0 auto 16px;
    max-width: 900px;
}

.nyina-initiatives-page .section-subtitle {
    text-align: center !important;
    margin: 0 auto 40px;
    max-width: 780px;
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
}