/* ============================================
   PUBLIC WEBSITE STYLES
   ============================================ */

/* Navbar */
#mainNav {
    background: rgba(27, 94, 32, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

#mainNav.scrolled {
    padding: 8px 0;
}

.nav-logo {
    height: 60px;
    width: auto;
    margin-right: 10px;
}

.navbar-brand span {
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #ffc107 !important;
}

.btn-donate {
    background: #ffc107;
    color: #1b5e20 !important;
    border-radius: 25px;
    padding: 8px 20px !important;
    font-weight: 600;
    transition: all 0.2s;
}

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

/* Hero Carousel */
.hero-carousel {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background: #0d3b12;
}

.carousel-inner {
    height: 100%;
    position: relative;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background-color: #0d3b12;
    overflow: hidden;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(13, 59, 18, 0.55) 0%, rgba(27, 94, 32, 0.35) 100%);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    transition: background 0.3s;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(255,255,255,0.3);
}

/* Sections */
.section-padding {
    padding: 80px 0;
    background: #ff8d000f
}

.section-tag {
    display: inline-block;
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* About */
.about-image-grid {
    position: relative;
    height: 400px;
}

.about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 85%;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.about-img-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 55%;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 5px solid #fff;
}

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

.about-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.about-content ul {
    padding-left: 20px;
}

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

/* Program Cards */
.program-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.program-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover .program-img img {
    transform: scale(1.08);
}

.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.program-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.progress-section {
    margin: 15px 0;
}

.progress-section .progress {
    border-radius: 10px;
}

/* News Cards */
.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.news-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Testimonials */
.testimonial-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 30px;
    color: #fff;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    font-size: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
} 

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Partners */
.partner-logo {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.partner-logo:hover {
    transform: translateY(-3px);
}

.partner-logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-name {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact */
.contact-info-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(27, 94, 32, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-item h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), #ff8f00);
}

/* Pages */
.page-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.page-content {
    line-height: 1.8;
    color: var(--text-muted);
}

.page-content h2 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

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

/* Footer */
.footer-section {
    background: #1a1a2e;
    color: #b0b0b0;
    padding: 60px 0 0;
}

.footer-brand h4 {
    color: #fff;
    font-weight: 700;
}

.footer-brand p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #ffc107;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0;
}

.footer-bottom {
    padding: 20px 0;
    font-size: 0.85rem;
    color: #888;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    border: none;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-carousel {
        min-height: 500px;
        height: 80vh;
    }

    .carousel-caption h1 {
        font-size: 2rem !important;
    }

    #mainNav {
        padding: 10px 0;
    }

    .navbar-collapse {
        background: rgba(27, 94, 32, 0.98);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }

    .about-image-grid {
        height: 300px;
    }

    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.5rem !important;
    }

    .carousel-caption p {
        font-size: 0.95rem !important;
    }

    .about-image-grid {
        height: 250px;
    }
}

/* Article / Program Detail Pages */
.article-detail {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.article-title {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-meta span {
    font-size: 0.9rem;
}

.article-image {
    border-radius: var(--radius);
    overflow: hidden;
}

.article-content {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.article-content h2 {
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content h3 {
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 12px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

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

.article-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-share {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Comments */
.comments-section {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.comments-list .card {
    border-left: 3px solid var(--primary);
}

.comments-list .card-body h6 {
    color: var(--text-dark);
    font-weight: 600;
}

/* Program Detail */
.program-donation-card {
    border: 2px solid #e8f5e9;
    background: #f8fff8;
}

.program-donation-card .card-title {
    color: var(--primary);
    font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Gallery */
.article-gallery h5 {
    color: var(--text-dark);
    font-weight: 600;
}

.gallery-thumb {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: var(--radius);
}

.gallery-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

@media (max-width: 768px) {
    .article-detail {
        padding: 20px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .comments-section {
        padding: 20px;
    }

    .article-share {
        flex-direction: column;
    }

    .article-share .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
