@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #f9df00;
    --secondary-color: #1e3c54;
    --light-blue-color: #005f85;
    --sky-blue-color: #5acaf4;
    --accent: #ff7805;
    --light: #ffffff;
    --dark: #000000;
    --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background-color: var(--light);
}

p {
    font-size: 17px !important;
}

/* h2 {
    font-weight: 600 !important;
} */

h2 {
    font-weight: 700 !important;
    color: var(--light-blue-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

p {
    font-size: 14px;
}

a {
    text-decoration: none;
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.card {
    padding: 25px 35px;
    border-radius: 2rem;
    box-shadow: var(--box-shadow);
    border: none;
    background-color: var(--light-blue-color);
    color: var(--light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 2rem;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    color: var(--light);
    transform: translateY(-2px);
    border: 2px solid var(--light-blue-color) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--light-blue-color);
    z-index: -1;
    transition: all 0.4s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 25px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline:hover {
    color: var(--light);
    transform: translateY(-2px);
    border-color: var(--light-blue-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--light-blue-color);
    z-index: -1;
    transition: all 0.4s ease;
}

.btn-outline:hover::before {
    left: 0;
}

nav.navbar {
    background-color: transparent !important;
    transition: all 0.3s ease;
    padding: 20px 0;
}

nav.navbar.scrolled {
    background-color: var(--light) !important;
    box-shadow: var(--box-shadow);
    padding: 10px 0;
}

nav .navbar-brand {
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    color: var(--light);
    transition: all 0.3s ease;
}

nav.scrolled .navbar-brand,
.offcanvas .navbar-brand {
    color: var(--secondary-color) !important;
}

nav .navbar-brand p {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    color: var(--light) !important;
    transition: all 0.3s ease;
}

nav.scrolled .navbar-brand p,
.offcanvas .navbar-brand p {
    color: var(--sky-blue-color) !important;
}

nav .navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 430px) {
    nav .nav-btn {
        font-size: 12px;
        padding: 8px 15px;
    }

    nav .navbar-brand {
        font-size: 28px !important;
        line-height: 1;
        font-weight: 700;
        color: var(--light);
        transition: all 0.3s ease;
    }

    nav.scrolled .navbar-brand,
    .offcanvas .navbar-brand {
        color: var(--secondary-color) !important;
    }

    nav .navbar-brand p {
        font-size: 7px !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        color: var(--light) !important;
        transition: all 0.3s ease;
    }

}

nav ul li {
    margin: 10px 20px;
}

nav ul li a {
    color: var(--light) !important;
    font-weight: 500 !important;
    font-size: 18px;
    position: relative;
    transition: all 0.3s ease;
}

nav.scrolled ul li a,
.offcanvas ul li a {
    color: var(--secondary-color) !important;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--light);
    transition: width 0.3s ease;
}

nav.scrolled ul li a::after {
    background-color: var(--sky-blue-color);
}

nav ul li a:hover {
    color: var(--light-blue-color) !important;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--accent) !important;
}

nav ul li a.active::after {
    width: 100%;
    background-color: var(--accent);
}

/* Offcanvas menu styles */
.offcanvas {
    background-color: var(--light) !important;
}

/* Hero section with video background */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: end !important;
    padding-bottom: 80px !important;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-heading {
    color: var(--accent);
    font-weight: 700;
    text-transform: capitalize;
}

.hero p {
    color: var(--light);
    font-size: 24px;
    padding: 10px 100px;
}

.hero .btn-outline {
    border: 2px solid var(--light);
    color: var(--light);
}

.hero .social-links {
    display: inline-flex;
}

.hero .social-links a {
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        align-items: end !important;
    }

    .hero-content {
        padding: 50px !important;
    }

    .hero-heading {
        font-size: 1.5rem !important;
    }

    .hero p {
        font-size: 0.7rem !important;
        padding: 10px 20px;
    }

    nav .navbar-brand {
        font-size: 42px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
    }

    .hero-heading {
        font-size: 2rem;
    }

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


#our-missions {
    padding: 80px 0;
    background-color: var(--light);
    position: relative;
}

.vertical-heading {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.vertical-heading h1 {
    color: var(--secondary-color);
    box-shadow: var(--box-shadow);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 6px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: right;
    margin: 0;
    text-transform: uppercase;
    padding: 20px 10px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 8px;
}

.content-wrapper {
    padding-left: 30px;
}

.head-text {
    padding-top: 10px;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

.highlight {
    color: var(--accent);
    font-size: 22px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .vertical-heading h1 {
        font-size: 2rem;
        padding: 15px 8px;
    }

    .content-wrapper {
        padding-left: 20px;
    }
}

@media (max-width: 767.98px) {
    #our-missions {
        padding: 60px 0;
    }

    .vertical-heading {
        justify-content: center;
        margin-bottom: 30px;
    }

    .vertical-heading h1 {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 15px 30px;
    }

    .content-wrapper {
        padding-left: 0;
    }

    .head-text {
        font-size: 1rem;
    }

    .highlight {
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    #our-missions {
        padding: 40px 0;
    }

    .vertical-heading h2 {
        font-size: 1.8rem;
        padding: 12px 25px;
    }

    .highlight {
        font-size: 18px;
    }
}

#prevention {
    padding: 0px 0;
    background-color: var(--light);
}

#prevention .content {
    align-content: center;
}

#prevention .content p {
    text-align: justify;
    margin-bottom: 25px;
}

/* Volunteer Card Styles */
.volunteer-card {
    background: linear-gradient(rgba(30, 60, 84, 0.85)),
        url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    height: 550px;
    min-height: 350px;
    border-radius: 2rem;
    padding: 40px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.volunteer-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.volunteer-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .volunteer-card {
        margin-top: 40px;
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    #prevention {
        padding: 60px 0;
    }

    .volunteer-card {
        padding: 30px 20px;
    }

    .volunteer-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    #prevention {
        padding: 40px 0;
    }
}

#our-approach .top-image {
    padding-bottom: 20px;
}

#our-approach .identity-svg,
.incubate-svg {
    width: 100px;
}

#our-approach .initiate-svg {
    width: 170px;
}

#our-approach .inform-svg {
    width: 130px;
}

@media (max-width: 430px) {

    .card {
        padding: 12px;
    }

    #our-approach .identity-svg,
    .incubate-svg {
        width: 80px;
    }

    #our-approach .initiate-svg {
        width: 110px;
    }

    #our-approach .inform-svg {
        width: 90px;
    }

    #our-approach p {
        font-size: 11px;
    }
}

.footer {
    background-color: var(--secondary-color);
    color: var(--light);
    padding: 60px 0 20px;
    font-family: 'Arial', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer-logo span {
    font-size: 14px;
    font-weight: 600;
    color: var(--sky-blue-color);
    display: block;
    margin-top: 5px;
}

.footer-mission {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--sky-blue-color);
}

.footer-links li,
.latest-posts li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.latest-posts a,
.footer-contact a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover,
.latest-posts a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.latest-posts .post-title {
    display: block;
    font-weight: 500;
    margin-bottom: 3px;
}

.latest-posts .post-date {
    font-size: 12px;
    opacity: 0.7;
    display: block;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--sky-blue-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-legal a {
    color: var(--light);
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

#our-partners {
    padding: 60px 0;
    background-color: var(--light);
}

.section-heading {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin-bottom: 30px;
}

.partner-logo {
    max-height: 110px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 10px;
}

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

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .partner-logo {
        max-height: 60px;
    }
}

@media (max-width: 575.98px) {
    #our-partners {
        padding: 40px 0;
    }

    .partner-logo {
        max-height: 70px;
    }
}

#contact {
    background-image: linear-gradient(rgba(30, 60, 84, 0.8)), url('https://images.pexels.com/photos/9501978/pexels-photo-9501978.jpeg');
    background-size: cover;
    color: var(--light) !important;
}

#contact h2 {
    color: var(--primary-color) !important;
}

#contact h3 {
    color: var(--primary-color) !important;
}

#contact input {
    background-color: transparent;
    height: 50px;
    border: 1px solid #ffffff00;
    border-bottom: 2px solid var(--light);
}

#contact textarea {
    background-color: transparent;
    height: 50px;
    border: 1px solid #ffffff00;
    border-bottom: 2px solid var(--light);
}

#contact input::placeholder {
    color: var(--light);
}

#contact textarea::placeholder {
    color: var(--light);
}

.contact-item:hover .contact-icon {
    background: var(--primary-color) !important;
    transform: scale(1.1);
}

.contact-item:hover .contact-icon i {
    color: var(--secondary-color) !important;
}

.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

#gallery {
    background-color: var(--light);
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 84, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-caption {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .gallery-item {
        aspect-ratio: 1/1;
    }
}

@media (max-width: 575.98px) {
    .gallery-caption {
        font-size: 1rem;
    }
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.splash-content {
    text-align: center;
    max-width: 300px;
}

.splash-logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease;
}

.splash-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--sky-blue-color);
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.splash-loader {
    width: 100%;
    height: 4px;
    background-color: rgba(30, 60, 84, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0;
    background-color: var(--accent);
    border-radius: 2px;
    animation: loading 2s ease-in-out;
}

@keyframes loading {
    0% {
        width: 0;
    }

    20% {
        width: 20%;
    }

    40% {
        width: 45%;
    }

    60% {
        width: 65%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Hide splash screen when loaded */
body.loaded #splash-screen {
    opacity: 0;
    pointer-events: none;
}

#who-we-are img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 2rem;
}

@media (max-width: 430px) {
    #who-we-are img {
        height: 200px;
        margin-top: 10px;
    }
}

/* SidePopup */
.help-sidebar {
    position: fixed;
    right: -290px;
    /* Show only ~30px initially */
    top: 50%;
    transform: translateY(-50%);
    width: 290px;
    background: white;
    border-radius: 12px 0 0 12px;
    box-shadow: var(--box-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
    padding: 40px 30px;
    z-index: 1000;
    transition: right 0.4s ease;
}

.help-sidebar.open {
    right: 0;
    /* Fully visible on open */
}

.help-toggle {
    position: absolute;
    left: -140px;
    top: 10%;
    font-size: 15px;
    transform: translateY(-50%);
    color: var(--secondary-color);
    text-transform: uppercase;
    background-color: var(--primary-color);
    padding: 0.8rem 0.4rem;
    box-shadow: var(--box-shadow);
    border-radius: 12px 0px 0px 12px;
    cursor: pointer;
    /* writing-mode: vertical-rl; */
    text-orientation: mixed;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.help-toggle:hover {
    color: var(--light);
    background-color: var(--secondary-color);
}

.help-toggle i {
    margin: 0 auto;
    font-size: 14px;
}

.help-content {
    text-align: center;
    color: #333;
}

.help-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.help-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.help-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .help-sidebar {
        display: none;
    }

    .help-toggle {
        display: none;
    }
}