/*
   Cancer Care Nepal - Modern Homepage Styles
   Theme: "Clean & Bold" Structure - Brand Colors (#ED018B, #079669, #DB2627, #1F40AE)
*/

:root {
    /* Brand Colors - Forced */
    --brand-pink: #ED018B !important;
    --brand-green: #079669 !important;
    --brand-red: #DB2627 !important;
    --brand-blue: #1F40AE !important;

    /* Layout Colors */
    --brand-black: #111111;
    --brand-dark-grey: #333333;
    --brand-light-grey: #f4f6f8;
    --white: #ffffff;

    /* Mappings */
    --primary-color: var(--brand-pink);
    --secondary-color: var(--brand-black);
    --accent-color: var(--brand-blue);

    --text-primary: var(--brand-black);
    --text-secondary: #666666;

    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
}

/* --- Global Utilities --- */
.text-pink {
    color: var(--brand-pink) !important;
}

.text-green {
    color: var(--brand-green) !important;
}

.text-red {
    color: var(--brand-red) !important;
}

.text-blue {
    color: var(--brand-blue) !important;
}

.bg-pink {
    background-color: var(--brand-pink) !important;
}

.bg-green {
    background-color: var(--brand-green) !important;
}

.bg-red {
    background-color: var(--brand-red) !important;
}

.bg-blue {
    background-color: var(--brand-blue) !important;
}

.text-black {
    color: var(--brand-black) !important;
}

.section-padding {
    padding: 100px 0;
}

/* Highlight Effect (Brand Pink Background behind text) */
.highlight-brand {
    background-color: var(--brand-pink) !important;
    color: var(--white) !important;
    padding: 0 10px;
    display: inline-block;
    transform: rotate(-1deg);
}

/* Buttons */
.btn-modern {
    display: inline-block;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: var(--transition-fast);
    text-decoration: none !important;
    cursor: pointer;
}

.btn-black {
    background-color: #DC143C;
    color: var(--white);
}

.btn-black:hover {
    background-color: #b91c3c;
    color: var(--white);
    transform: translateY(-3px);
}

.btn-brand {
    background-color: var(--brand-pink);
    color: var(--white);
}

.btn-brand:hover {
    background-color: var(--brand-blue);
    /* Hover to Brand Blue */
    color: var(--white);
    transform: translateY(-3px);
}

/* Fade In Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero Section (Full-width image hero) --- */
.modern-hero {
    position: relative;
    padding: 140px 0 160px;
    background-color: #0f172a;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.95), rgba(15,23,42,0.6), rgba(15,23,42,0.15));
}

.modern-hero > .container {
    position: relative;
    z-index: 1;
}

.hero-content-left {
    padding-right: 40px;
    position: relative;
    z-index: 2;
}

.hero-heading {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #f9fafb !important;
    margin-bottom: 30px;
}

.hero-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-mini-stat {
    display: inline-flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(12px);
    animation: floatChip 8s ease-in-out infinite alternate;
}

.hero-mini-stat:nth-child(2) {
    animation-delay: 0.6s;
}

.hero-mini-stat .label {
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f172a;
}

.hero-mini-stat .text {
    font-size: 0.75rem;
    color: #64748b;
}

@keyframes floatChip {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(0, -6px, 0);
    }
}

/* Circle effect for "Help" */
.circle-text {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.circle-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border: 3px solid #ec4899;
    border-radius: 50%;
    z-index: -1;
}

.hero-subtext {
    font-size: 1.1rem;
    color: #e5e7eb;
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.9);
    margin-bottom: 40px;
    max-width: 450px;
    line-height: 1.6;
}

.hero-image-wrapper {
    position: relative;
    padding: 20px;
}

/* The tilted bold border effect */
.hero-image-frame {
    position: relative;
    z-index: 2;
    background: #fdfcfb;
    border-radius: 8px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.25);
    transform: rotate(-2deg);
    overflow: hidden;
}

.hero-main-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide-caption {
    padding: 10px 16px 14px;
    font-size: 0.8rem;
    color: #374151;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 8px 8px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 10px;
    right: 16px;
    display: flex;
    gap: 6px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background-color: rgba(148, 163, 184, 0.6);
    padding: 0;
}

.hero-dot.is-active {
    background-color: #111111;
}

.hero-rect-1 {
    top: -14px;
    right: -18px;
    width: 100%;
    height: 100%;
    border: 3px solid #111111;
    transform: rotate(2deg);
}

.hero-scribble {
    position: absolute;
    border-radius: 999px;
    background-color: #111111;
}

.hero-scribble-top {
    top: 18px;
    right: -40px;
    width: 120px;
    height: 3px;
}

.hero-scribble-side {
    bottom: -30px;
    left: 30px;
    width: 3px;
    height: 80px;
}

/* Abstract decorations behind image */
.hero-decoration {
    position: absolute;
    border: 2px solid var(--brand-black);
    z-index: 1;
}

.hero-rect-1 {
    top: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--brand-black);
    transform: rotate(3deg);
}


/* --- Info Cards Section --- */
.info-cards-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.info-card-icon {
    width: 80px;
    height: 80px;
    background-color: #DC143C;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: var(--transition-medium);
}

.info-card-icon:hover {
    background-color: #b91c3c;
    color: var(--white);
}

.info-card-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-black);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.4;
}


/* --- Causes / Features Section --- */
.cause-card {
    background: var(--white);
    transition: var(--transition-medium);
}

.cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cause-img-wrapper {
    position: relative;
    overflow: hidden;
}

.cause-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-medium);
}

.cause-card:hover .cause-img {
    transform: scale(1.05);
}

.cause-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 5px 15px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
}

.cause-content {
    padding: 25px;
}

.cause-content h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--brand-black);
}

.cause-desc {
    color: #777;
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.6;
}

.bg-brand {
    background-color: var(--brand-pink) !important;
}

/* --- Fundraising Dark Section --- */
.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--brand-black) !important;
}

/* --- Stats Section (Brand Number Highlights) --- */
.stats-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--brand-black);
    line-height: 1;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* Brand highlight behind number (Alternating or single brand color) */
.stat-number::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 25px;
    background-color: var(--brand-pink);
    /* Default Pink Highlight */
    z-index: -1;
    opacity: 0.3;
    /* Softer opacity for better readability */
}

/* Variant for alternating highlights if needed via JS or nth-child */
.stat-item:nth-child(2) .stat-number::before {
    background-color: var(--brand-green);
}

.stat-item:nth-child(3) .stat-number::before {
    background-color: var(--brand-blue);
}


.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-black);
    max-width: 200px;
    margin: 0 auto;
}


/* --- Donation Today Section --- */
.donation-cta-section {
    padding: 80px 0;
    background-color: var(--brand-light-grey);
}

.donation-form-wrapper {
    background: var(--white);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.donation-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--brand-black);
}

.amount-btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.amount-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}

.amount-btn:hover,
.amount-btn.active {
    background-color: var(--brand-pink);
    border-color: var(--brand-pink);
    color: var(--white);
}


/* --- Featured Program Section --- */
.featured-section {
    background-color: var(--white);
}

.featured-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.featured-img-col {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    height: 500px;
}

.featured-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-split:hover .featured-img-col img {
    transform: scale(1.05);
}

.featured-content-col {
    flex: 1;
    min-width: 300px;
    padding: 60px;
    background-color: var(--white);
}

.section-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(237, 1, 139, 0.1);
    /* Pink transparent */
    color: var(--brand-pink);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-black);
}

.featured-desc {
    color: var(--text-grey);
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 16px;
}


/* --- Events Section --- */
.events-section {
    background-color: var(--light-grey);
}

.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: 0.5s ease;
}

.event-card:hover .event-img img {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-red);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
}

.event-date-day {
    font-size: 18px;
    display: block;
}

.event-date-month {
    font-size: 12px;
    text-transform: uppercase;
}

.event-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-black);
}

.event-excerpt {
    color: var(--text-grey);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.event-link {
    color: var(--brand-pink);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.event-link:hover {
    color: var(--primary-black);
    gap: 8px;
    /* animation on hover */
}


/* --- Testimonial Section --- */
.testimonial-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('/images/banner-bg.png');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.testimonial-slider .carousel-item {
    padding: 0 15px;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--brand-green);
    /* Use Green for testimonial borders */
    object-fit: cover;
    margin: 0 auto 25px;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.testimonial-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-pink);
}

.testimonial-role {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.testimonial-indicators li {
    background-color: var(--white);
    opacity: 0.3;
}

.testimonial-indicators li.active {
    background-color: var(--brand-pink);
    opacity: 1;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .modern-hero {
        height: auto;
        padding-top: 150px;
        padding-bottom: 120px;
        text-align: center;
    }

    .modern-hero-content {
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .floating-card-section {
        margin-top: -60px;
    }

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

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

    .featured-split {
        flex-direction: column;
    }

    .featured-img-col,
    .featured-content-col {
        width: 100%;
        min-width: 100%;
    }

    .featured-img-col {
        height: 250px;
    }

    .featured-content-col {
        padding: 30px;
    }
}