/* HAF Custom Kid-Friendly CSS */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@400;600;700&display=swap');

:root {
    --haf-primary: #f5a841;
    /* Orange */
    /* Vibrant Red/Pink */
    --haf-secondary: #59c5ce;
    /* Teal */
    /* Teal */
    --haf-accent: #9fcc47;
    /* Green */
    /* Yellow */
    --haf-text: #2D3436;
    /* Dark Gray */
    --haf-bg: #FFFFFF;
    --haf-light-bg: #F7F9FC;
}

body {
    font-family: 'Nunito', sans-serif !important;
    color: var(--haf-text);
    background-color: var(--haf-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-font {
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0.5px;
}

/* Make buttons rounded and friendly */
.btn,
button,
.theme-btn {
    border-radius: 25px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover,
button:hover,
.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Specific colored styling for highlights */
.haf-highlight {
    color: var(--haf-primary);
    font-weight: bold;
}

/* SVG Icon styles */
.haf-icon-svg {
    width: 40px;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Cards and Boxes rounded corners */
.causes-item,
.blog-post,
.team-block,
.event-block {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.causes-item:hover,
.blog-post:hover {
    border-color: var(--haf-secondary);
    transform: translateY(-5px);
}

/* Progress bars styling for donation goals */
.progress-bar {
    background-color: var(--haf-primary) !important;
    border-radius: 20px !important;
}

.progress {
    border-radius: 20px !important;
    background-color: #eee !important;
    height: 12px !important;
}

/* Header & Footer adjustments */
header {
    border-bottom: 3px solid var(--haf-accent);
}

footer {
    background-color: var(--haf-light-bg) !important;
    color: #555 !important;
    border-top: 4px solid var(--haf-secondary);
}

footer h3,
footer h4 {
    color: var(--haf-primary) !important;
}

footer p,
footer a,
footer li {
    color: #ffffff !important;
}

footer a:hover {
    color: var(--haf-primary) !important;
}


/* SVG UI/UX Animations & Founder Block */
.svg-animate-pulse {
    animation: svgPulse 2s infinite alternate ease-in-out;
}

.svg-animate-float {
    animation: svgFloat 3s infinite alternate ease-in-out;
}

.svg-animate-rotate {
    animation: svgRotate 10s infinite linear;
}

@keyframes svgPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

@keyframes svgFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-10px);
    }
}

@keyframes svgRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.founder-img-square {
    border-radius: 20px !important;
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.founder-img-square:hover {
    transform: translateY(-5px);
}

.founder-profile-bg {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/*======================================================
   Flow of Project Section Styles
======================================================*/
#flow-of-project {
    background-color: #fcfcfc;
    position: relative;
}

.flow-title-wrap {
    display: inline-block;
    z-index: 1;
}

.flow-main-title {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #111;
    margin: 0;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.title-bg-bar {
    position: absolute;
    bottom: 5px;
    left: -15px;
    right: -15px;
    height: 30px;
    background-color: #f5a841;
    z-index: 1;
}

.phase-card-wrapper {
    position: relative;
    height: 100%;
    margin-top: 60px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    /* Space for the overlapping circle */
}

.phase-shadow-bg {
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, #67bed9 0%, #67bed9 100%);
    border-radius: 15px;
    z-index: 1;
    transition: all 0.3s ease;
}

.phase-card-content {
    background-color: #f1f3f5;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 20px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.phase-card-wrapper:hover .phase-card-content {
    transform: translate(-5px, -5px);
}

.phase-card-wrapper:hover .phase-shadow-bg {
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    box-shadow: 0 10px 20px rgba(234, 45, 108, 0.3);
}

.phase-circle-header {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5a841 0%, #f5a841 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -70px auto 30px;
    box-shadow: 0 8px 15px rgba(245, 168, 65, 0.4);
    border: 4px solid #f1f3f5;
    transition: transform 0.3s ease;
}

.phase-card-wrapper:hover .phase-circle-header {
    transform: scale(1.05) rotate(5deg);
}

.phase-circle-header h4 {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.phase-list {
    margin: 0;
    color: #444;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    padding-left: 1.25rem;
}

.phase-list li {
    padding-left: 5px;
    margin-bottom: 8px;
}

.phase-list li::marker {
    font-weight: bold;
    color: #f5a841;
}

@media (max-width: 991px) {
    .flow-main-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .flow-main-title {
        font-size: 2.5rem;
    }

    .phase-card-wrapper {
        margin-top: 80px;
    }
}

/*======================================================
   Offset Title Styles (for About Us Redesign)
======================================================*/
.offset-title-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 25px;
}

.offset-title-main {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #111;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    letter-spacing: 1px;
}

.offset-title-bg {
    position: absolute;
    bottom: 5px;
    left: -10px;
    right: -10px;
    height: 20px;
    background-color: var();
    z-index: 1;
}

@media (max-width: 768px) {
    .offset-title-main {
        font-size: 2rem;
    }

    .offset-title-bg {
        height: 12px;
        bottom: 2px;
    }
}

/*======================================================
   Happiness Quotient Bar Chart
======================================================*/
.hq-chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    font-family: 'Nunito', sans-serif;
}

.hq-chart-bg-lines {
    position: absolute;
    top: 5px;
    left: 40px;
    /* Space for labels */
    right: 0;
    bottom: 30px;
    /* Space for x-axis labels */
    display: flex;
    flex-direction: column-reverse;
    /* Bottom to top */
    justify-content: space-between;
}

.hq-chart-line {
    width: 100%;
    border-bottom: 1px solid #ddd;
    position: relative;
    height: 0;
}

.hq-chart-line::before {
    content: attr(data-val);
    position: absolute;
    left: -35px;
    top: -10px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.hq-chart-bars-container {
    position: relative;
    top: 0;
    left: 40px;
    right: 0;
    height: 220px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: 20px;
    /* match line bottom margin visually */
    z-index: 5;
}

.hq-chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    position: relative;
    height: 100%;
    justify-content: flex-end;
}

.hq-chart-bar {
    width: 100%;
    background-color: #f8b133;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: all 1s ease-out;
    box-shadow: 0 -2px 10px rgba(248, 177, 51, 0.3);
}

.hq-chart-bar-group:nth-child(2) .hq-chart-bar {
    background-color: var(--haf-primary);
    /* Primary orange */
}

.hq-chart-label {
    position: absolute;
    bottom: -25px;
    /* Offset it below the line */
    font-weight: 700;
    color: #222;
    text-align: center;
    font-size: 15px;
    width: 150%;
    white-space: nowrap;
}

/*======================================================
   Founder Section
======================================================*/
.founder-redesign-img {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    border: 5px solid #fff;
    /* white border to make it pop */
}

.founder-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #111;
}

.founder-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.3;
}

.founder-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.founder-social a {
    color: #007bb5;
    /* Linkedin blue default */
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #eef5f9;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s;
}

.founder-social a.fb {
    color: #1877F2;
}

.founder-social a.web {
    color: #555;
}

.founder-social a:hover {
    background: var(--haf-primary);
    color: #fff;
    transform: scale(1.1);
}

.founder-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.founder-text-container {
    padding-left: 20px;
}

@media (max-width: 768px) {
    .founder-text-container {
        padding-left: 0;
        margin-top: 30px;
    }
}

/*======================================================
   Contact Form UI Fixes
======================================================*/
/* Title styling overrides (if needed) */
.heading-main .contact-title {
    color: var(--haf-primary) !important;
    font-style: normal;
    font-weight: 800;
}

/* Form Styles */
#contact_form .form-control {
    background-color: #f1f3f5;
    /* Light grey mimicking the screenshot */
    border: 1px solid transparent;
    /* No dark border by default */
    border-radius: 8px;
    /* Slight rounding */
    padding: 15px 20px;
    height: auto;
    font-size: 15px;
    color: #495057;
    box-shadow: none;
    transition: all 0.3s ease;
}

#contact_form .form-control::placeholder {
    color: #6C757D;
}

#contact_form .form-control:focus {
    background-color: #fff;
    border-color: var(--haf-secondary);
    box-shadow: 0 0 0 3px rgba(89, 197, 206, 0.2);
    outline: none;
}

#contact_form .form-group {
    margin-bottom: 5px;
    /* Adjusting breathing room */
}

/* Button Styling (Teal and Pill) */
#contact_form .btn-primary {
    background-color: var(--haf-secondary) !important;
    border-color: var(--haf-secondary) !important;
    color: #fff !important;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 800 !important;
    border-radius: 50px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#contact_form .btn-primary:hover {
    background-color: #4ab1ba !important;
    border-color: #4ab1ba !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(89, 197, 206, 0.4) !important;
}

/*======================================================
   Contact Info Boxes Fixes (Stop icons from being cropped)
======================================================*/
.icon-box-4 {
    padding-left: 5.5rem !important;
    /* Increase padding so text is safely right of the icon */
}

.icon-box-4 svg {
    left: 20px !important;
    /* Move icon fully inside the box */
    width: 48px !important;
    /* Slightly scale it so it fits nicely */
    height: 48px !important;
    stroke-width: 1.5px !important;
    opacity: 0.7;
}
/* Fix for Animated Logo distortion on scroll and in footer */
img[src*="HAF-Animated-Logo"] {
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.header-fullpage.fixed .navbar-brand img[src*="HAF-Animated-Logo"] {
    height: auto !important;
    max-height: 50px !important;
}

/* Fix Breadcrumb background image on mobile */
@media (max-width: 991px) {
    .breadcrumbs-page {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}
