/* ==========================================
   Hero Banner Styles (Desktop Preserved)
   ========================================== */

.hero-section img {
  width: 100%;
}
.hero-section .container-fluid {
  padding: 0;
}
.hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    background: var(--color-1);
    padding-top: 0px;
}
.hero-section figure {
    margin: 0;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 0 0 0;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

/* Master Anchor ensuring columns stretch full height */
.hero-container {
    position: relative; 
    width: 100%;
    display: flex;
    flex: 1;
    align-items: stretch;
}

.hero-container > .row {
    flex: 1;
    align-items: stretch;
}

/* --- Left Column: Text Content --- */
.hero-content-col {
    padding-right: 30px;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Desktop default for the text wrapper */
.hero-text-box {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #002d62;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-1);
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background-color: var(--color-1);
    margin: 20px 0;
}

.hero-description {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 100%;
}

/* --- Buttons --- */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-dark-blue {
    background-color: var(--color-1);
    color: #ffffff !important;
    border: 2px solid var(--color-1);
}
.btn-dark-blue:hover {
    background-color: var(--color-3);
    border-color: var(--color-3);
    color: var(--color-1) !important;
}

.btn-green {
    background-color: var(--color-3);
    color: #000;
    border: 2px solid var(--color-3);
    font-weight: 600;
}
.btn-green:hover { background-color: var(--color-1); border-color: var(--color-1);color: var(--color-3);}

/* --- Right Column: Image & Info Card --- */
.hero-image-col {
    position: relative; 
    display: flex;
    align-items: flex-end !important;
}

.hero-avatar {
    width: auto;
    object-fit: contain;
    object-position: bottom;
    z-index: 2;
    margin-bottom: 0 !important;
    display: block;
    max-height: 600px;
}

/* --- Floating Info Card --- */
.hero-info-card {
    position: absolute;
    top: 50px; 
    right: 15px; 
    transform: none; 
    background-color: #002d62;
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 10; 
    width: 320px;
    max-width: 100%; 
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 24px;
    color: #79c059; 
    margin-right: 15px;
    margin-top: 3px;
}

.info-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.info-text span {
    display: block;
    font-size: 13px;
    color: #d1e0f3; 
    line-height: 1.4;
}

.slider-content {
    padding: 30px;
    color: #fff;
    text-align: center;
    width: 33.33%;
}
.buttons-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slider-content.linklight.donate-btn {
  background: var(--color-1);
}
.slider-content a h4 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}
.slider-content.linkdark.volunteer-btn a h4 {
  color: var(--color-1);
}
.slider-content.linklight.lawn-btn {
  background: var(--color-3);
}

.slider-content.linklight.donate-btn:hover {
  background: var(--color-3);
}
.slider-content.linklight.lawn-btn:hover {
  background: var(--color-1);
}

.slider-content.linklight.lawn-btn h4 {
  color: var(--color-1);
}
.slider-content.linklight.lawn-btn:hover h4 {
  color: var(--color-3) !important;
}
.slider-content.linklight.donate-btn:hover h4 {
  color: var(--color-1);
}
/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media(max-width:1400px){
    .hero-title {
    font-size: 40px;
}
}
@media (max-width: 1199px) {
    .hero-title { font-size: 42px; }
    .hero-info-card { right: 15px; width: 280px; padding: 20px; }
    .hero-avatar { max-height: 400px; }
}

/* ==========================================
   MOBILE OVERHAUL (Matches Mockup Image)
   ========================================== */
@media (max-width: 991px) {
    
    .hero-slide {
        padding-top: 0; /* Remove top padding to let image touch header */
        min-height: auto; 
    }
    
    .hero-overlay {
        display: none; /* Hide white gradient so the image is fully visible */
    }

    .hero-container {
        padding: 135px 15px 0px 23px !important; /* Remove edges so elements can be flush */
    }

    .hero-container > .row {
        position: relative;
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    /* 1. Image Area (Moves to the very top) */
    .hero-image-col {
        order: 2;
        min-height: 360px;
        padding: 0;
        align-items: flex-end !important;
        justify-content: center;
        position: relative;
    }
    
.hero-avatar {
    max-height: 330px;
    width: 100% !important;
    object-fit: cover;
    object-position: top center;
    position: relative;
    right: 0;
    bottom: 0;
}

    /* 2. Text Content container */
    .hero-content-col {
        order: 1;
        position: relative; /* Allows absolute box to reference the row */
        padding: 0;
    }

    /* The Flush Teal Box */
    .hero-text-box {
    position: relative;
    /*! top: 40px; */
    /*! left: 0; */
    background-color: var(--color-1);
    padding: 20px 20px 20px 15px;
    width: 100%;
    max-width: 90%;
    z-index: 5;
    border-radius: 4px;
}
    /* Override Text formatting inside the Teal Box */
    .hero-text-box .hero-subtitle,
    .hero-text-box .hero-title,
    .hero-text-box .hero-description {
        color: #ffffff !important;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .hero-text-box .hero-subtitle {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
.hero-text-box .hero-title {
    font-size: 24px;
    line-height: 1.1;
}
    
    .hero-text-box .hero-description {
        font-size: 13px;
        padding-top: 10px;
        margin-bottom: 0;
    }

    .hero-text-box .hero-divider {
         /* Hidden to match mockup */
    }

    /* 3. Full Width Stacked Buttons (Moves to the very bottom) */
    .hero-buttons {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    z-index: 10;
    margin-top: 0;
    display: none;
}

    .btn-hero {
        width: 100%;
        padding: 25px 15px; /* Large clickable height */
        font-size: 22px;
        font-weight: 700;
        text-align: center;
        border: none !important;
        border-radius: 0; /* Flush edges */
        text-transform: capitalize; /* "Donate" format instead of "DONATE" */
    }

    /* First Button (Teal Background, White Text) */
    .hero-buttons .btn-hero:nth-child(1) {
        background-color: var(--color-3); !important; 
        color: #ffffff !important;
    }

    /* Second Button (White Background, Teal Text) */
    .hero-buttons .btn-hero:nth-child(2) {
        background-color: #ffffff !important;
        color: var(--color-2) !important;
    }

    /* Hide the floating info card completely on mobile, as per mockup */
    .hero-info-card {
        display: none;
    }
}

/* Very Small Screens adjustments */
@media (max-width: 575px) {
    .hero-text-box .hero-title { font-size: 26px; }
    .hero-text-box{/*! top:165px; */}
    .hero-image-col { min-height: 320px; }
    .hero-avatar { max-height: 350px; }
    .hero-text-box .hero-description{
    }
    .hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
}
.hr-hero-swiper {
    height: 100%;
}
.hero-avatar {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    right: 0;
    bottom: 0;
}
.slider-content {
    padding: 30px;
    color: #fff;
    text-align: center;
    width: 100%;
}
.buttons-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}
.hero-container {
    padding: 165px 0px 0px 13px !important;
}
.slider-content {
    padding: 10px;
    color: #fff;
    text-align: center;
    width: 100%;
}
.btn-hero {
    width: 100%;
    padding: 15px 5px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    border: none !important;
    border-radius: 0;
    text-transform: capitalize;
}
.hero-text-box {
    max-width: 95%;
}
}