/* ==========================================
   PAPRI Website - Complete CSS
   ========================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-section {
    padding: 5px 0;
}

.logo-section img {
    height: 80px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    color: #faedcd;
    text-decoration: none;
    padding: 22px 22px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.678);
    border-bottom: 3px solid #fb8500;
    color: #000000;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fefae0;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: #562F00;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f4f5f4;
    color: #282727;
    padding-left: 25px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* ==========================================
   IMAGE SLIDER
   ========================================== */
.slider-container {
    position: relative;
    width: 100%;
    height: 860px;
    overflow: hidden;
    background-color: #000;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.slide-overlay h2 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 3px 3px 9px rgb(0, 0, 0);
    color: #fb8500;
    animation: slideInUp 0.6s ease;
}

.slide-overlay p {
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: slideInUp 1s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fdf0d5;
    color: rgb(36, 36, 36);
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 4px;
}

.slider-btn:hover {
    background-color: #d4a373;
    transform: translateY(-50%) scale(1.1);
    color: rgb(0, 0, 0);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.973);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
    background-color: #e6c677;
    transform: scale(1.3);
}

/* ==========================================
   WELCOME SECTION
   ========================================== */
.welcome-section {
    background: #FFFDF1;
    padding: 60px 20px;
    text-shadow: #d4a373 2px 2px 6px;
}

.main-heading {
    font-size: 2.5em;
    color: #15173D;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.welcome-content p {
    font-size: 1.2em;
    color: #25343F;
    line-height: 1.8;
}

/* ==========================================
   VISION & MISSION SECTION
   ========================================== */
.vision-mission-section {
    background: #FFCE99;
    padding: 60px 20px;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.vm-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.vm-card:hover {
    transform: translateY(-10px);
}

.vm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto; /* center + spacing */
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



.vm-card h2 {
    color: #2c7744;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid #3a9d5d;
    padding-bottom: 10px;
}

.vm-card p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.8;
}

/* ==========================================
   SECTIONS COMMON STYLES
   ========================================== */
.section-title {
    font-size: 2.5em;
    color: #40513B;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 4px solid #6CA651;
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.content-card {
    background: #FAF3E1;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.295);
    margin-bottom: 30px;
}

.content-card h3 {
    color: #362F4F;
    font-size: 2em;
    margin-bottom: 20px;
    border-left: 5px solid #362F4F;
    padding-left: 15px;
}

.content-card p {
    color: #222222;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table thead {
    background: #F5E7C6;
    border: solid 5px #5B532C;
    border-radius: 8px;
}

table th {
    color: rgb(0, 0, 0);
    border: solid 5px #5B532C;
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
}

table td {
    background-color: rgb(255, 255, 255);
    border: solid 5px #5B532C;
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #e8f5e9;
    transition: background-color 0.3s ease;
}

/* Director Profile */
.director-profile {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}

.director-image {
    text-align: center;
}

.director-image img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.director-info h4 {
    color: #362F4F;
    font-size: 1.8em;
    margin-bottom: 5px;
}

.director-title {
    color: #A3D78A;
    font-style: italic;
    margin-bottom: 15px !important;
}

/* ==========================================
   OUR WORK SECTION
   ========================================== */
.our-work-section {
    padding: 60px 20px;
    background: white;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.work-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.work-card {
    text-align: center;
}

.work-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.work-icon {
    width: 60px;   
    height: auto;
}

.work-card ul {
    list-style-position: inside;
    padding: 0;
}

.work-card li {
    margin-bottom: 8px;
}


.work-card h3 {
    color: #362F4F;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #15173D;
    padding-bottom: 10px;
}

.work-card ul {
    list-style: none;
    padding-left: 0;
}

.work-card ul li {
    color: #555;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.work-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3a9d5d;
    font-weight: bold;
    font-size: 1.2em;
}

/* ==========================================
   RESOURCES SECTION
   ========================================== */
.resources-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

/* Our Portfolio */
#news-events {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* Title */
#news-events h3 {
    color: #5B532C;
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

/* Text */
#news-list p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Download Button */
.download-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #FF5B5B;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
    background: #427A43;
    transform: translateY(-2px);
}


.initiative-item {
    background: #bfc6c456;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #362F4F;
}

.initiative-item h4 {
    color: #362F4F;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.initiative-item p {
    color: #555;
    line-height: 1.7;
}

/* GALLERY GRID STYLING  */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    width: 100%;
    height: 200px; /* Fixed height for all images */
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill container without distortion */
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}



/* ==========================================
   GET INVOLVED SECTION
   ========================================== */
.get-involved-section {
    padding: 60px 20px;
    background: white;
}

.changemaker-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    background: #e8f5e9;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #362F4F;
}

.feature-item h4 {
    color: #362F4F;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.feature-item p {
    color: #555;
    line-height: 1.6;
}

.volunteer-card {
    text-align: center;
    background: #838383;
    color: white;
}

.volunteer-card h3 {
    color: #1d1d1d;
}

.volunteer-card p {
    color: white;
    font-size: 1.2em;
}

.volunteer-cta {
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background: #25343F;
    color: #ffffff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ffffff;
    color: #25343F;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
/* ==========================================
   CONTACT SECTION - ENHANCED STYLE
   ========================================== */
.contact-section {
    padding: 60px 20px;
    background: #f9f9f9;
    font-family: 'Poppins', sans-serif;
}

.contact-section .section-title {
    text-align: center;
    font-size: 2.2em;
    color: #2c7744;
    margin-bottom: 40px;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3,
.contact-form h3 {
    color: #2c7744;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item .director-image {
    flex-shrink: 0;
}

.contact-item .director-image img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.contact-item:hover .director-image img {
    filter: none;
    transform: scale(1.1);
}

.contact-item p {
    color: #555;
    line-height: 1.6;
    font-size: 1em;
    margin: 0;
}

.contact-item p:hover {
    color: #FF5B5B;
    line-height: 1.6;
    font-size: 1em;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: #362F4F;
    text-decoration: none;
    padding: 8px 15px;
    background: #e8f5e9;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #362F4F;
    color: #e8f5e9;
    transform: translateY(-2px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #362F4F;
    outline: none;
    box-shadow: 0 0 8px rgba(44, 119, 68, 0.2);
}

.contact-form button.btn-primary {
    background-color: #000000;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button.btn-primary:hover {
    background-color: #362F4F;
    transform: translateY(-2px);
}


/* Contact Form */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3a9d5d;
}

.contact-form button {
    align-self: flex-start;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #222222;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer h4 {
    color: #f1f1f1;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.footer p {
    color: rgb(255, 255, 255);
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2c7744;
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #3a9d5d;
    transform: scale(1.1);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2c7744;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li {
        margin: 0;
    }

    .nav-link {
        padding: 15px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Slider */
    .slider-container {
        height: 400px;
    }

    .slide-overlay {
        padding: 30px 20px;
    }

    .slide-overlay h2 {
        font-size: 2em;
    }

    .slide-overlay p {
        font-size: 1.1em;
    }

    .slider-btn {
        padding: 12px 15px;
        font-size: 18px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    /* Sections */
    .main-heading {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 2em;
    }

    .content-card {
        padding: 25px;
    }

    /* Director Profile */
    .director-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .director-image img {
        max-width: 200px;
    }

    /* Work Grid */
    .work-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .gallery-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 300px;
    }

    .slide-overlay h2 {
        font-size: 1.5em;
    }

    .slide-overlay p {
        font-size: 0.9em;
    }

    .main-heading {
        font-size: 1.5em;
    }

    table th,
    table td {
        padding: 10px;
        font-size: 0.9em;
    }
}