:root {
    --primary: #f2b51d;
    --primary-dark: #c99008;
    --primary-rgb: 242, 181, 29;
    --secondary: #fffbf2;
    --dark: #0c0c0e;
    --dark-rgb: 12, 12, 14;
    --ink: #1e1e24;
    --muted: #5e6472;
    --light: #faf9f6;
    --line: #e3dec3;
    --accent: #10b981;
    --accent-dark: #059669;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--ink); 
    background: var(--light); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Saira', sans-serif; 
    color: var(--dark); 
    font-weight: 700;
    letter-spacing: -0.01em; 
}

a { 
    color: var(--primary-dark); 
    text-decoration: none; 
    transition: var(--transition);
}
a:hover { 
    color: var(--dark); 
}

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.text-muted { color: var(--muted) !important; }

#spinner { 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity .4s ease-out, visibility 0s linear .4s; 
    z-index: 99999; 
    backdrop-filter: blur(8px);
}
#spinner.show { 
    opacity: 1; 
    visibility: visible; 
    transition: opacity .4s ease-out, visibility 0s linear 0s; 
}
.spinner-grow { 
    color: var(--primary) !important; 
}

/* Buttons Redesign */
.btn { 
    font-weight: 700; 
    border-radius: var(--radius-md); 
    padding: .75rem 1.5rem; 
    transition: var(--transition);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.btn-primary { 
    color: #0c0c0e !important; 
    background: var(--primary) !important; 
    border-color: var(--primary) !important; 
}
.btn-primary:hover { 
    color: #fff !important; 
    background: var(--dark) !important; 
    border-color: var(--dark) !important; 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 181, 29, 0.3);
}
.btn-outline-primary { 
    color: var(--primary-dark) !important; 
    border-color: var(--primary) !important; 
}
.btn-outline-primary:hover { 
    color: #0c0c0e !important; 
    background: var(--primary) !important; 
    border-color: var(--primary) !important; 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 181, 29, 0.2);
}
.btn-light { 
    background: #fff; 
    border-color: var(--line); 
    color: var(--ink);
}
.btn-light:hover {
    background: var(--secondary);
    border-color: var(--primary);
}
.btn-square, .btn-sm-square, .btn-lg-square { 
    padding: 0; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: normal; 
}
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/* Sticky Navbar Glassmorphism */
.fixed-top { transition: var(--transition); }
.top-bar { 
    min-height: 44px; 
    background: rgba(12, 12, 14, 0.96); 
    border-bottom: 1px solid rgba(242, 181, 29, 0.15); 
    backdrop-filter: blur(10px);
}
.navbar { 
    background: rgba(12, 12, 14, 0.9); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(16px);
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { 
    width: 58px; 
    height: 58px; 
    object-fit: contain; 
    border-radius: 50%; 
    background: #fff; 
    padding: 3px; 
    box-shadow: 0 0 0 2px rgba(242, 181, 29, 0.45); 
    transition: var(--transition);
}
.brand-logo:hover {
    transform: rotate(5deg) scale(1.05);
}
.brand-text { line-height: 1.1; }
.brand-title { font-family: 'Saira', sans-serif; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand-subtitle { color: var(--primary); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.navbar .navbar-nav .nav-link { 
    margin-right: 24px; 
    padding: 28px 0; 
    color: rgba(255, 255, 255, 0.85); 
    font-weight: 600; 
    outline: none; 
    font-size: 0.95rem;
    position: relative;
}
.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.navbar .navbar-nav .nav-link:hover::after, 
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}
.navbar .navbar-nav .nav-link:hover, 
.navbar .navbar-nav .nav-link.active { 
    color: var(--primary); 
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav { 
        margin-top: 10px; 
        padding: 15px; 
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.1); 
        background: rgba(12, 12, 14, 0.98); 
    }
    .navbar .navbar-nav .nav-link { 
        padding: 10px 0; 
    }
    .navbar .navbar-nav .nav-link::after {
        display: none;
    }
    .brand-logo { width: 48px; height: 48px; }
    .brand-title { font-size: 1.1rem; }
}

/* Hero Section */
.hero { 
    position: relative; 
    min-height: 780px; 
    display: flex; 
    align-items: center; 
    background: linear-gradient(90deg, rgba(12, 12, 14, 0.94) 0%, rgba(12, 12, 14, 0.75) 50%, rgba(12, 12, 14, 0.3) 100%), url('../img/crss-hero.png') center/cover no-repeat; 
    padding-top: 130px; 
}
.hero::after { 
    content: ''; 
    position: absolute; 
    inset: auto 0 0; 
    height: 4px; 
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent); 
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker, .section-kicker { 
    display: inline-block; 
    border-radius: 999px; 
    background: rgba(242, 181, 29, 0.12); 
    color: var(--primary); 
    border: 1px solid rgba(242, 181, 29, 0.3); 
    padding: .4rem 1rem; 
    font-weight: 800; 
    font-size: .8rem; 
    text-transform: uppercase; 
    letter-spacing: .08em; 
}
.hero h1 { 
    color: #fff; 
    max-width: 860px; 
    font-size: clamp(2.4rem, 5.5vw, 4.8rem); 
    line-height: 1.1; 
    font-weight: 800;
}
.hero p { 
    color: rgba(255, 255, 255, 0.88); 
    max-width: 740px; 
    font-size: 1.2rem; 
    line-height: 1.8;
}
.hero-panel { 
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-top: 5px solid var(--primary);
    border-radius: var(--radius-lg); 
    padding: 30px; 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); 
    color: #fff;
}
.hero-stat { 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 15px 0; 
}
.hero-stat:last-child { border-bottom: 0; }
.hero-stat strong { 
    display: block; 
    font-family: 'Saira', sans-serif; 
    font-size: 2.2rem; 
    color: var(--primary); 
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Page Header */
.page-header { 
    position: relative; 
    padding: 190px 0 100px; 
    background: linear-gradient(rgba(12, 12, 14, 0.8), rgba(12, 12, 14, 0.8)), url('../img/crss-hero.png') center/cover no-repeat; 
}
.page-header h1 { color: #fff; font-weight: 800; }
.breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .active { color: var(--primary) !important; }

/* Sections Styling */
.section-pad { padding: 100px 0; }
.section-title { max-width: 760px; }
.section-title h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.2; font-weight: 800; }
.lead-text { color: var(--muted); font-size: 1.1rem; line-height: 1.8; }

/* Card Redesign & Lift Interactivity */
.card-clean { 
    background: #fff; 
    border: 1px solid var(--line); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    overflow: hidden; 
    height: 100%; 
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.card-clean:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(242, 181, 29, 0.35);
}
.card-clean img { 
    width: 100%; 
    aspect-ratio: 4/3; 
    object-fit: cover; 
    transition: var(--transition);
}
.card-clean:hover img {
    transform: scale(1.03);
}
.card-body-pad { 
    padding: 32px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-body-pad h4 {
    font-weight: 700;
    margin-bottom: 12px;
}
.card-body-pad .btn {
    margin-top: auto;
}

.icon-badge { 
    width: 64px; 
    height: 64px; 
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--dark); 
    color: var(--primary); 
    font-size: 1.65rem; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 15px rgba(242, 181, 29, 0.15);
    transition: var(--transition);
}
.card-clean:hover .icon-badge {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(10deg);
}

.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li { display: flex; gap: 14px; margin-bottom: 16px; color: var(--ink); font-weight: 500; }
.value-list i { color: var(--accent); font-size: 1.2rem; margin-top: 2px; }

/* Impact Band */
.impact-band { 
    background: linear-gradient(135deg, #0c0c0e 0%, #1e190f 100%); 
    color: rgba(255, 255, 255, 0.85); 
    border-top: 1px solid rgba(242, 181, 29, 0.15);
    border-bottom: 1px solid rgba(242, 181, 29, 0.15);
}
.impact-band h2, .impact-band h3, .impact-band h4 { color: #fff; }
.impact-number { 
    font-family: 'Saira', sans-serif; 
    font-size: 3.5rem; 
    line-height: 1; 
    color: var(--primary); 
    font-weight: 800; 
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(242, 181, 29, 0.15);
}

.program-image {
    min-height: 520px;
    border-radius: var(--radius-lg);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.image-justice { background-image: url('../img/crss-justice.png'); }
.image-education { background-image: url('../img/crss-education.png'); }
.image-health { background-image: url('../img/crss-health.png'); }
.image-livelihoods { background-image: url('../img/crss-livelihoods.png'); }
.image-agriculture { background-image: url('../img/courses-1.jpg'); }
.image-need { background-image: url('../img/courses-3.jpg'); }

/* Donate Section */
.donate {
    background: linear-gradient(rgba(12, 12, 14, 0.82), rgba(12, 12, 14, 0.82)), url('../img/crss-education.png') center/cover fixed no-repeat;
    border-top: 4px solid var(--primary);
}
.form-control, .form-select { 
    border-radius: var(--radius-md); 
    min-height: 54px; 
    border: 1.5px solid var(--line); 
    background: #fff;
    color: var(--ink);
    padding: 12px 20px;
    font-weight: 500;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 .25rem rgba(242, 181, 29, 0.18); 
    background: #fff;
}

/* Team Icon Cards */
.team-icon-card { 
    background: #fff; 
    border: 1px solid var(--line); 
    border-radius: var(--radius-lg); 
    padding: 38px 28px; 
    text-align: center; 
    height: 100%; 
    box-shadow: var(--shadow-md); 
    transition: var(--transition);
}
.team-icon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(242, 181, 29, 0.3);
}
.team-icon { 
    width: 110px; 
    height: 110px; 
    border-radius: 50%; 
    margin: 0 auto 24px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: radial-gradient(circle at 30% 25%, #ffffff, var(--secondary)); 
    color: var(--primary-dark); 
    font-size: 2.8rem; 
    box-shadow: 0 10px 25px rgba(242, 181, 29, 0.15), inset 0 0 0 3px #fff; 
    transition: var(--transition);
}
.team-icon-card:hover .team-icon {
    transform: scale(1.08);
    background: radial-gradient(circle at 30% 25%, var(--primary), var(--primary-dark));
    color: #fff;
}
.team-icon-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* Testimonial Carousel */
.testimonial-carousel { padding-bottom: 10px; }
.testimonial-item { padding: 12px; }
.testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 36px;
    height: 100%;
    transition: var(--transition);
}
.owl-item.center .testimonial-card {
    box-shadow: var(--shadow-lg);
    border-color: rgba(242, 181, 29, 0.4);
    transform: translateY(-6px);
}
.quote-icon { color: var(--primary); font-size: 1.8rem; margin-bottom: 16px; display: block; }
.testimonial-card p { color: var(--ink); font-size: 1.05rem; line-height: 1.8; font-style: italic; min-height: 130px; }
.testimonial-author { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 25%, #ffffff, var(--secondary));
    color: var(--primary-dark);
    font-size: 1.4rem;
    box-shadow: 0 0 0 3px var(--secondary);
}
.testimonial-author h6 { margin: 0; font-weight: 700; }
.testimonial-author span { color: var(--muted); font-size: 0.85rem; }
.testimonial-carousel .owl-nav { text-align: center; margin-top: 10px; }
.testimonial-carousel .owl-nav button.owl-prev,
.testimonial-carousel .owl-nav button.owl-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--dark) !important;
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 6px;
    transition: var(--transition);
}
.testimonial-carousel .owl-nav button.owl-prev:hover,
.testimonial-carousel .owl-nav button.owl-next:hover {
    background: var(--primary) !important;
    color: var(--dark) !important;
}

/* Team Photo Cards */
.team-photo-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.team-photo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(242, 181, 29, 0.35);
}
.team-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--dark); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.team-photo-card:hover .team-photo img { transform: scale(1.06); }
.team-monogram {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 25%, #1e190f, var(--dark));
    color: var(--primary);
    font-family: 'Saira', sans-serif;
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: .05em;
}
.team-social {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 0;
    background: linear-gradient(0deg, rgba(12, 12, 14, 0.85), transparent);
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition);
}
.team-photo-card:hover .team-social { transform: translateY(0); opacity: 1; }
.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    font-size: .85rem;
}
.team-social a:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); }
.team-photo-body { padding: 26px 24px; flex-grow: 1; display: flex; flex-direction: column; }
.team-photo-body h5 { margin-bottom: 4px; }
.team-photo-body .role { color: var(--primary-dark); font-weight: 700; margin-bottom: 12px; font-size: .92rem; }
.team-photo-body p.bio { color: var(--muted); font-size: .92rem; line-height: 1.65; flex-grow: 1; margin-bottom: 0; }
.team-credentials { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); line-height: 1.6; }
.team-credentials i { color: var(--primary-dark); margin-right: 6px; }

/* Progress Bars */
.progress {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    overflow: hidden;
}
.progress-bar {
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary)) !important;
}

/* Footer redesign */
.footer { 
    background: #08080a; 
    color: rgba(255, 255, 255, 0.7); 
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer .brand-logo { width: 70px; height: 70px; }
.footer h5, .footer .brand-title { color: #fff; font-weight: 700; }
.footer .btn.btn-link { 
    display: block; 
    margin-bottom: 10px; 
    padding: 0; 
    text-align: left; 
    color: rgba(255, 255, 255, 0.7); 
    font-weight: 500; 
    transition: var(--transition);
}
.footer .btn.btn-link:hover { 
    color: var(--primary); 
    transform: translateX(4px);
}
.footer .btn.btn-link::before { 
    content: '\f105'; 
    font-family: 'Font Awesome 5 Free'; 
    font-weight: 900; 
    margin-right: 10px; 
    color: var(--primary); 
}
.footer .btn.btn-square { 
    color: var(--primary); 
    border: 1px solid rgba(242, 181, 29, 0.35); 
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
}
.footer .btn.btn-square:hover { 
    color: #0c0c0e; 
    background: var(--primary); 
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 181, 29, 0.3);
}
.footer .copyright { 
    padding: 24px 0; 
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
}
.footer .copyright a { color: var(--primary); }

.back-to-top { 
    position: fixed; 
    right: 30px; 
    bottom: 30px; 
    z-index: 99; 
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.rounded { border-radius: var(--radius-lg) !important; }

/* Custom programmatic Toast notification styling */
.crss-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(12, 12, 14, 0.95);
    border: 1px solid var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 16px 28px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.crss-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.crss-toast-icon {
    font-size: 1.45rem;
    color: var(--accent);
}
.crss-toast-content h6 {
    color: #fff;
    margin: 0 0 2px 0;
    font-weight: 700;
}
.crss-toast-content p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

@media (max-width: 767.98px) {
    .hero { min-height: 700px; padding-top: 115px; }
    .section-pad { padding: 70px 0; }
    .program-image { min-height: 350px; }
}
