/* =====================================================
   YARCC - Youth and Rural Community Care Centre
   Main Stylesheet
   Version: 1.0
===================================================== */

/* =====================================================
   GOOGLE FONTS
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* =====================================================
   ROOT VARIABLES
===================================================== */

:root {

    --primary-color: #1E4D8C;
    --secondary-color: #F4A62A;
    --accent-color: #2E8B57;

    --dark-color: #1d1d1d;
    --light-color: #ffffff;
    --gray-color: #6c757d;
    --bg-light: #F8F9FA;

    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Inter', sans-serif;

    --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,.10);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.15);

    --transition: all .3s ease;

    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;

}

/* =====================================================
   DARK MODE VARIABLES
===================================================== */

body.dark-mode {

    --light-color: #121212;
    --bg-light: #1b1b1b;
    --dark-color: #ffffff;
    --gray-color: #d4d4d4;

    background: #121212;
    color: #ffffff;

}

/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: var(--body-font);
    background: var(--light-color);
    color: #444;
    line-height: 1.8;
    overflow-x: hidden;
    transition: var(--transition);

}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;

}

.section-title {

    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;

}

.section-subtitle {

    max-width: 700px;
    margin: auto;
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 60px;

}

/* =====================================================
   PRELOADER
===================================================== */

.preloader {

    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;

}

.loader {

    width: 60px;
    height: 60px;
    border: 6px solid #eee;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;

}

@keyframes spin {

    100% {
        transform: rotate(360deg);
    }

}

/* =====================================================
   BUTTONS
===================================================== */

.btn-primary-custom {

    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;

}

.btn-primary-custom:hover {

    background: #153a69;
    transform: translateY(-3px);

}

.btn-secondary-custom {

    background: var(--secondary-color);
    color: #fff;
    border-radius: 50px;
    padding: 14px 30px;
    font-weight: 600;
    transition: var(--transition);

}

.btn-secondary-custom:hover {

    transform: translateY(-3px);
    background: #d98d12;

}

.btn-outline-custom {

    border: 2px solid #fff;
    color: #fff;
    border-radius: 50px;
    padding: 12px 30px;

}

.btn-outline-custom:hover {

    background: #fff;
    color: var(--primary-color);

}

/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    padding: 18px 0;
    background: #fff;
    transition: var(--transition);

}

.navbar.scrolled {

    box-shadow: var(--shadow-sm);
    padding: 10px 0;

}

.navbar-brand {

    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-color) !important;

}

.nav-link {

    color: var(--dark-color);
    font-weight: 600;
    margin-left: 15px;

}

.nav-link:hover,
.nav-link.active {

    color: var(--secondary-color);

}

/* =====================================================
   HERO SECTION
===================================================== */

.hero {

    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(0,0,0,.55),
        rgba(0,0,0,.55)),
        url('../images/hero/hero-banner.jpg');
    background-size: cover;
    background-position: center;

}

.hero-content {

    color: #fff;
    text-align: center;

}

.hero-content h1 {

    font-size: 4rem;
    color: #fff;
    margin-bottom: 25px;

}

.hero-content p {

    max-width: 800px;
    margin: auto;
    font-size: 1.2rem;
    margin-bottom: 30px;

}

/* =====================================================
   STATISTICS
===================================================== */

.stats-section {

    padding: 80px 0;
    background: var(--primary-color);
    color: #fff;

}

.stat-card {

    text-align: center;
    padding: 30px;

}

.counter {

    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);

}

/* =====================================================
   ABOUT SECTION
===================================================== */

.about-section {

    padding: 100px 0;

}

.about-image img {

    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);

}

/* =====================================================
   MINISTRY CARDS
===================================================== */

.ministry-card {

    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;

}

.ministry-card:hover {

    transform: translateY(-10px);
    box-shadow: var(--shadow-md);

}

.ministry-card img {

    height: 250px;
    width: 100%;
    object-fit: cover;

}

.ministry-content {

    padding: 25px;

}

/* =====================================================
   PROGRAMS
===================================================== */

.program-card {

    padding: 35px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    height: 100%;

}

.program-card:hover {

    transform: translateY(-10px);

}

.program-icon {

    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;

}

/* =====================================================
   TESTIMONIALS
===================================================== */

.testimonial-card {

    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;

}

.testimonial-image {

    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: auto;
    margin-bottom: 15px;

}

/* =====================================================
   IMPACT SECTION
===================================================== */

.impact-box {

    padding: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    text-align: center;

}

/* =====================================================
   GALLERY
===================================================== */

.gallery-item {

    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;

}

.gallery-item img {

    transition: .5s;

}

.gallery-item:hover img {

    transform: scale(1.1);

}

/* =====================================================
   DONATION CARDS
===================================================== */

.donation-card {

    text-align: center;
    padding: 35px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);

}

.donation-amount {

    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 800;

}

/* =====================================================
   FORMS
===================================================== */

.form-control,
.form-select {

    height: 55px;
    border-radius: 12px;
    border: 1px solid #ddd;

}

textarea.form-control {

    height: auto;
    min-height: 150px;

}

.form-control:focus {

    border-color: var(--primary-color);
    box-shadow: none;

}

/* =====================================================
   NEWS SECTION
===================================================== */

.news-card {

    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);

}

.news-content {

    padding: 25px;

}

/* =====================================================
   CTA SECTION
===================================================== */

.cta-section {

    background: linear-gradient(
        135deg,
        var(--primary-color),
        #0f3568
    );

    color: #fff;
    padding: 100px 0;
    text-align: center;

}

.cta-section h2 {

    color: #fff;

}

/* =====================================================
   FOOTER
===================================================== */

.footer {

    background: #0d2240;
    color: #fff;
    padding-top: 80px;

}

.footer h5 {

    color: #fff;
    margin-bottom: 20px;

}

.footer a {

    color: #ddd;

}

.footer a:hover {

    color: var(--secondary-color);

}

.footer-bottom {

    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);

}

/* =====================================================
   SOCIAL ICONS
===================================================== */

.social-icons a {

    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);

}

.social-icons a:hover {

    background: var(--secondary-color);

}

/* =====================================================
   BACK TO TOP
===================================================== */

.back-to-top {

    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;

}

/* =====================================================
   PAGE BANNER
===================================================== */

.page-banner {

    padding: 140px 0 80px;
    background: linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url('../images/placeholders/placeholder-1.jpg');

    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;

}

.page-banner h1 {

    color: #fff;
    font-size: 3rem;

}

/* =====================================================
   ANIMATIONS
===================================================== */

.fade-up {

    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease;

}

.fade-up.show {

    opacity: 1;
    transform: translateY(0);

}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 992px) {

    .hero-content h1 {

        font-size: 3rem;

    }

    .section-title {

        font-size: 2rem;

    }

}

@media (max-width: 768px) {

    .hero-content h1 {

        font-size: 2.3rem;

    }

    .hero {

        text-align: center;

    }

    .counter {

        font-size: 2rem;

    }

}

@media (max-width: 576px) {

    .hero-content p {

        font-size: 1rem;

    }

    .btn-primary-custom,
    .btn-secondary-custom {

        width: 100%;
        margin-bottom: 10px;

    }

}