/********** Template CSS **********/
:root {
    --primary: #28a745;
    --secondary: #20c997;
    --tertiary: #218838;
    --light: #d4edda;
    --dark: #155724;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Floating Donate Button ***/
.floating-donate-btn {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.donate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 180px;
    background: linear-gradient(135deg, #118817, #199b0d);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 15px 10px;
}

.donate-button:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.6);
    transform: scale(1.05);
    text-decoration: none;
    color: white;
}

.donate-button i {
    font-size: 20px;
    margin-bottom: 10px;
}

.donate-button span {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-donate-btn {
        left: 10px;
    }
    
    .donate-button {
        width: 50px;
        height: 150px;
        font-size: 14px;
    }
    
    .donate-button i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .floating-donate-btn {
        display: none;
    }
}

/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.navbar-blur-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 15px 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
    .navbar {
        margin: 10px 15px;
    }
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(40, 167, 69, .07);
}

.top-bar small {
    color: #000000;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: #000000;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #000000;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}


/*** Facts ***/
.facts {
    background: linear-gradient(rgba(71, 201, 59, 0.95), rgba(23, 63, 11, 0.95)), url(../img/bg.png);
}


/*** Callback ***/
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(24, 163, 24, 0.95)), url(../img/bg.png);
    z-index: -1;
}

/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}


/*** Runawasi ***/
.runawasi-section {
    background: linear-gradient(rgba(232, 248, 240, 0.95), rgba(232, 248, 240, 0.95)), url('../img/carousel-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0;
    text-align: center;
}

.runawasi-title {
    font-size: 9rem;
    font-weight: 900;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 15%, #db2777 30%, #f97316 50%, #16a34a 70%, #059669 85%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    margin-bottom: 25px;
    line-height: 1.1;
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.2));
}

.runawasi-divider {
    width: 120px;
    height: 1px;
    background: #94a3b8;
    margin: 30px auto 40px;
}

.runawasi-description {
    font-size: 2rem;
    color: #2563eb;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    letter-spacing: 3px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .runawasi-title {
        font-size: 7rem;
    }
    .runawasi-description {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .runawasi-section {
        padding: 80px 15px;
    }
    
    .runawasi-title {
        font-size: 4.5rem;
        letter-spacing: 1px;
    }
    
    .runawasi-description {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    padding: 4rem 0;
}

.team-item img {
    position: relative;
    z-index: 2;
}

.team-item .team-text {
    position: absolute;
    top: 0;
    right: 3rem;
    bottom: 0;
    left: 3rem;
    padding: 15px;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    background: var(--primary);
    border-color: var(--primary);
}

.team-item .team-text h4 {
    transition: .5s;
}

.team-item:hover .team-text h4 {
    color: #FFFFFF;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item:hover .team-social .btn {
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Testimonial ***/
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.testimonial-carousel .owl-item img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    border-color: var(--primary);
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}

/*** Welcome Quote ***/
.welcome-heading {
    font-size: 5rem;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.welcome-quote-section {
    background-color: #e8f8f0;
    padding: 100px 0;
}

.welcome-quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 800;
    font-style: italic;
    color: #1a1a1a;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 992px) {
    .welcome-heading {
        font-size: 3.5rem;
    }
    .welcome-quote-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .welcome-heading {
        font-size: 2.5rem;
    }
    .welcome-quote-text {
        font-size: 1.8rem;
    }
}

/*** Project Cards Redesign ***/
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-overlay {
    transition: all 0.3s ease-in-out;
}

.project-overlay:hover {
    opacity: 1 !important;
}

.icon-box {
    transition: all 0.3s ease;
}

.project-card:hover .icon-box {
    transform: scale(1.1);
}

.section-title h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.bg-light {
    background-color: #f8f9fa !important;
}

.text-secondary {
    color: #6c757d !important;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
}
/*** Project Cards Redesign ***/
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-overlay {
    transition: all 0.3s ease-in-out;
}

.project-overlay:hover {
    opacity: 1 !important;
}

.icon-box {
    transition: all 0.3s ease;
}

.project-card:hover .icon-box {
    transform: scale(1.1);
}

.section-title h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.bg-light {
    background-color: #f8f9fa !important;
}

.text-secondary {
    color: #6c757d !important;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
}



/* Hover lift effect for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Additional youth page specific styles */
.youth-program-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.youth-testimonial-card {
    position: relative;
    padding-top: 2rem;
}

.youth-testimonial-card .quote-icon {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*** Mobile Sidebar Navigation ***/
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sidebar-logo {
    max-height: 50px;
    width: auto;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.sidebar-close:hover {
    transform: scale(1.1);
}

.sidebar-content {
    padding: 20px;
}

.sidebar-link {
    display: block;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.sidebar-link:hover {
    color: var(--primary);
    padding-left: 15px;
    background: rgba(40, 167, 69, 0.05);
}

.sidebar-dropdown {
    margin-bottom: 0;
}

.sidebar-dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 15px 10px;
    background: none;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.sidebar-dropdown-btn:hover {
    color: var(--primary);
    background: rgba(40, 167, 69, 0.05);
}

.sidebar-dropdown-btn i {
    transition: transform 0.3s;
}

.sidebar-dropdown-btn.active i {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(40, 167, 69, 0.03);
}

.sidebar-submenu.show {
    max-height: 500px;
}

.sidebar-sublink {
    display: block;
    padding: 12px 10px 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.sidebar-sublink:hover {
    color: var(--primary);
    padding-left: 25px;
    background: rgba(40, 167, 69, 0.05);
}

.sidebar-social {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sidebar-social .btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-language {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Logo Sizing */
@media (max-width: 768px) {
    .mobile-logo {
        max-height: 50px !important;
    }
    
    .navbar-brand img {
        max-height: 50px !important;
    }
}
