/* =========================================
   FUNDRAISE PAGE SPECIFIC STYLES
   ========================================= */

/* Active link in the header */
#umuri-header-root .umuri-nav-links > li > a.active {
    color: var(--secondary-color) !important;
    box-shadow: 0 3px 0 var(--secondary-color) !important;
}

#umuri-header-root .umuri-top-row .secondary-nav a.active {
    color: var(--secondary-color) !important;
    box-shadow: 0 3px 0 var(--secondary-color) !important;
}

/* ---- Masthead (Hero) ---- */
.fr-masthead {
    margin-top: 170px;
    height: 500px;
    position: relative;
    background-image: url('../img/DSC_0775.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Aligns box to bottom */
    padding-bottom: 60px;
}

/* NO dark overlay over the image */
.fr-masthead::before {
    display: none;
}

/* Text box at the bottom left */
.fr-masthead-content {
    background: rgba(88, 27, 24, 0.88);
    padding: 40px;
    max-width: 650px;
    color: #fff;
    border-left: 6px solid var(--secondary-color);
    margin-left: 10%;
    position: relative;
    z-index: 2;
}

.fr-masthead h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.2;
}

.fr-masthead p {
    font-size: 1.2rem;
    margin: 0 0 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Primary Button */
.fr-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--secondary-color) !important;
    color: #403135 !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border: 2px solid var(--secondary-color) !important;
    border-radius: 5px;
}

.fr-btn-primary:hover {
    background: #b06227 !important;
    color: var(--primary-color) !important;
}

/* ---- Sections ---- */
.fr-section { padding: 80px 0; }
.fr-tint { background: #f7f3f0; border-top: 1px solid #e6ddd8; border-bottom: 1px solid #e6ddd8; }

.fr-head {
    text-align: center;
    margin-bottom: 50px;
}

.fr-head h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.fr-head h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

/* ---- Grids ---- */
.fr-grid {
    display: grid;
    gap: 30px;
}
.fr-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fr-grid-4 { grid-template-columns: repeat(4, 1fr); }
.fr-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---- Cards ---- */
.fr-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.fr-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.fr-card-img {
    height: 200px;
    overflow: hidden;
}

.fr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fr-card:hover .fr-card-img img {
    transform: scale(1.05);
}

.fr-card-body {
    padding: 30px;
    flex-grow: 1;
}

.fr-card-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px;
}

.fr-card-body p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ---- Steps ---- */
.fr-step {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.fr-step-num {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    opacity: 0.15;
}

.fr-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.fr-step p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ---- Success Stories ---- */
.fr-success {
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.fr-success h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px;
}

.fr-success p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
}

.fr-success-meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
}

/* ---- Resources ---- */
.fr-resource {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.fr-resource:hover { transform: translateY(-5px); }

.fr-resource i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.fr-resource h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.fr-resource p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

.fr-resource a {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.fr-resource a:hover { text-decoration: underline; }

/* ---- GoFundMe Section ---- */
.fr-gofundme {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.fr-gofundme h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.fr-campaign {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.fr-campaign-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fr-campaign-body {
    padding: 20px;
}

.fr-campaign h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.fr-campaign p {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
}

.fr-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.fr-progress-fill {
    height: 100%;
    background: #27ae60;
    border-radius: 4px;
}

.fr-donate-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #27ae60;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s;
}

.fr-donate-btn:hover { background: #219150; }

/* ---- FAQ ---- */
.fr-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fr-faq-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.fr-faq-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.fr-faq-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .fr-masthead { margin-top: 70px; height: 450px; }
    .fr-masthead-content { margin-left: 5%; padding: 30px; }
    .fr-masthead h1 { font-size: 2.2rem; }
    
    .fr-grid-3, .fr-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .fr-masthead { height: 400px; padding-bottom: 30px; }
    .fr-masthead-content { margin: 0 20px; padding: 25px; }
    .fr-masthead h1 { font-size: 1.8rem; }
    .fr-masthead p { font-size: 1rem; }
    
    .fr-grid-3, .fr-grid-4, .fr-grid-2, .fr-faq-grid { grid-template-columns: 1fr; }
    .fr-head h2 { font-size: 2rem; }
    .fr-section { padding: 50px 0; }
}