/* ============================
   GOOGLE FONT & CSS VARIABLES
============================ */
:root {
    --primary: #0F4C81;
    --secondary: #2E8B57;
    --accent: #FFC857;
    --light: #FFF7EE;
    --dark: #1F2937;
    --white: #ffffff;
    --gray: #6B7280;
}
.navbar-brand img {
    width: auto;
    max-width: 200px;
    height: 55px;
    object-fit: contain;
    display: block;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.8;
}

/* ============================
   NAVBAR
============================ */
.navbar {
    background: linear-gradient(90deg, #FF7A59 0%, #FFB86B 25%, #FFD36E 50%, #6DD3B6 75%, #5BC0F8 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.35s ease;
    padding: 12px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    background-size: 200% 100%;
    animation: gradientShift 10s linear infinite;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff !important;
}

/* Brand text next to logo */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.brand-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.5rem;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    margin-top: 1px;
    opacity: 0.95;
    transform: translateY(-1px);
}

.nav-link {
    color: #fff !important;
    margin-left: 20px;
    font-weight: 600;
    position: relative;
    transition: all 0.25s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-link::after {
    content: "";
    width: 0%;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
}

/* Animated gradient keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navbar appearance when scrolled */
.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(-2px);
    opacity: 0.98;
}

/* ============================
   HERO
============================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(15, 76, 129, 0.75), rgba(15, 76, 129, 0.75)), url("images/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero h3 {
    color: var(--accent);
    margin: 20px 0;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin-bottom: 35px;
}

.btn-warning {
    background: var(--accent);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
    color: var(--dark);
}

.btn-warning:hover {
    transform: translateY(-4px);
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 8px 20px rgba(255, 200, 87, 0.4);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.btn-outline-light:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

/* ============================
   SECTION HEADINGS
============================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================
   ABOUT
============================ */
#about {
    padding: 100px 0;
}

#about img {
    border-radius: 20px;
    transition: transform 0.4s ease;
}

#about img:hover {
    transform: scale(1.02);
}

#about h2 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 25px;
}

#about p {
    color: var(--gray);
    text-align: justify;
}

#about .list-group-item {
    border: none;
    padding-left: 0;
    color: var(--dark);
    font-weight: 500;
}

/* ============================
   CARDS (Info, Value, Program)
============================ */
.info-card,
.value-card,
.program-card {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover,
.value-card:hover,
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.value-card i,
.program-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.value-card:hover i,
.program-card:hover i {
    transform: scale(1.1);
}

.info-card p,
.value-card p,
.program-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* ============================
   MISSION & VISION
============================ */
#mission .info-card i {
    display: inline-block;
    margin-bottom: 15px;
}

/* ============================
   IMPACT
============================ */
.impact {
    background: var(--primary);
    color: white;
}

.impact .section-title {
    color: white;
}

.impact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.counter-box {
    padding: 30px;
}

.counter {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.counter-box p {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* ============================
   PROJECTS
============================ */
.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(18, 38, 63, 0.12);
}

/* New project tile styles */
.project-image {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.06) rotate(-0.5deg);
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.35) 100%);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.project-card:hover .overlay { opacity: 1; }

.overlay-inner {
    text-align: center;
    color: white;
}

.overlay-inner h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 700;
}

.overlay-inner .btn {
    border-radius: 30px;
    padding: 8px 14px;
    font-weight: 700;
}

.project-card:focus { outline: 3px solid rgba(15,76,129,0.12); transform: translateY(-6px); }

.project-body h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.project-body p { color: var(--gray); }

/* Project metadata */
.project-meta {
    display:flex;
    gap:8px;
    align-items:center;
    margin-bottom:8px;
}

.project-tag {
    background: rgba(15,76,129,0.08);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.project-date {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Modal image sizing */
#projectModalImage { width: 100%; height: 100%; object-fit: cover; }

/* Make overlay button a bit larger */
.overlay .project-open { padding: 8px 12px; }

.project-card h4 {
    color: var(--primary);
    font-weight: 600;
}

.project-card p {
    color: var(--gray);
}

/* ============================
   PARTNERS
============================ */
.partners { background: white; }

/* Partner blocks: mature tiles behind logos */
.partner-block {
    border-radius: 22px;
    min-height: 120px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.35s ease;
    box-shadow: 0 10px 22px rgba(12, 20, 34, 0.08);
    overflow: hidden;
}

.partner-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(12, 20, 34, 0.18);
}

.partner-logo {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.partner-logo:hover {
    transform: scale(1.06);
}

/* Individual partner colors */
.partner-1 { background: linear-gradient(135deg,#172f40 0%,#385b70 100%); }
.partner-2 { background: linear-gradient(135deg,#2f3f45 0%,#5a7a83 100%); }
.partner-3 { background: linear-gradient(135deg,#43374a 0%,#7c6381 100%); }
.partner-4 { background: linear-gradient(135deg,#54473a 0%,#9a8475 100%); }

@media (max-width: 992px) {
    .partner-block {
        min-height: 140px;
        padding: 24px;
    }
    .partner-logo {
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    .partner-block {
        min-height: 150px;
        padding: 20px;
    }
    .partner-logo {
        max-width: 130px;
    }
}

@media (max-width: 576px) {
    .partner-block {
        min-height: 160px;
        padding: 18px;
    }
    .partner-logo {
        max-width: 120px;
    }
}


/* ============================
   NEWSLETTER
============================ */
.newsletter {
    background: var(--primary);
    color: white;
}

.newsletter h2 {
    color: white;
    font-weight: 700;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.85);
}

.newsletter .btn-warning {
    border-radius: 0 6px 6px 0;
    padding: 12px 25px;
}

.newsletter .form-control {
    border-radius: 6px 0 0 6px;
    padding: 12px 20px;
    border: none;
}

/* ============================
   TESTIMONIALS
============================ */
.info-card h5 {
    font-weight: 600;
}

/* ============================
   CONTACT
============================ */
#contact .form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

#contact .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

#contact .btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#contact .btn-primary:hover {
    background: #0a3a63;
    transform: translateY(-2px);
}

/* ============================
   BACK TO TOP BUTTON
============================ */
#topBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#topBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ============================
   FOOTER
============================ */
.footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer i {
    transition: all 0.3s ease;
    color: white;
}

.footer i:hover {
    transform: scale(1.2);
    color: var(--accent);
}

.footer .list-unstyled li {
    margin-bottom: 8px;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 991px) {
    .hero {
        text-align: center;
        padding: 120px 0 80px;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        margin: 0 auto 30px;
    }

    #about {
        text-align: center;
        padding: 60px 0;
    }

    #about img {
        margin-bottom: 40px;
    }

    #about p {
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .nav-link::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .brand-title { font-size: 0.98rem; }
    .brand-subtitle { font-size: 0.45rem; }

    .hero h3 {
        font-size: 1.3rem;
    }

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

    .btn-warning,
    .btn-outline-light {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }

    .counter {
        font-size: 2.5rem;
    }

    .partner-logo {
        max-width: 120px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .counter {
        font-size: 2.2rem;
    }

    .info-card,
    .value-card,
    .program-card {
        padding: 25px;
    }

    #topBtn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
.project-body {
    width: 100%;
}
