/* =========================================================================
   Welfare Page Specific Styles
   ========================================================================= */

/* Use colors from parent stylesheet (magenta, green, gold) */
.color-green-text {
    color: var(--c-green);
}

.color-magenta-text {
    color: var(--c-magenta);
}

.color-gold-text {
    color: var(--c-gold);
}

.line-green {
    background: var(--c-green);
}

.line-magenta {
    background: var(--c-magenta);
}

.line-gold {
    background: var(--c-gold);
}

/* --- Page Hero --- */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--h-header);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: #000;
    /* Fallback */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    /* Darken slightly to make text readable */
    animation: slowZoom 20s linear infinite alternate;
}

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

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

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    color: var(--c-white);
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.page-hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-hero-text {
    font-size: 1.125rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- About Mahoroba --- */
.welfare-about-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--c-text-light);
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.welfare-about-card strong {
    color: var(--c-green);
    font-weight: 700;
}

/* --- Feature Rows (Agriculture & Human) --- */
.welfare-feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.welfare-feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--c-text);
}

.feature-description {
    color: var(--c-text-light);
    margin-bottom: 20px;
}

.feature-image-wrapper {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.feature-image {
    width: 100%;
    height: 400px;
    /* Fixed height for consistent look */
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* Modern Image Shaping */
.shape-organic .feature-image {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphing 10s ease-in-out infinite alternate;
}

@keyframes morphing {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.shape-circle .feature-image {
    clip-path: circle(45% at 50% 50%);
}

/* Add decorative accents behind images */
.feature-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: var(--transition);
}

.shape-organic::before {
    background-color: rgba(56, 180, 139, 0.1);
    /* Green tint */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(15deg);
}

.shape-circle::before {
    background-color: rgba(228, 0, 127, 0.1);
    /* Magenta tint */
    border-radius: 50%;
    transform: scale(0.9) translate(30px, 30px);
}

/* --- History/Achievements List --- */
.history-list-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.history-list {
    position: relative;
    padding-left: 30px;
}

.history-list::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 7px;
    bottom: 0;
    width: 2px;
    background-color: var(--c-gold);
    opacity: 0.3;
}

.history-list li {
    position: relative;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

/* Stagger list item animations (rough approximation without JS observer) */
.history-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.history-list li:nth-child(2) {
    animation-delay: 0.2s;
}

.history-list li:nth-child(3) {
    animation-delay: 0.3s;
}

.history-list li:nth-child(4) {
    animation-delay: 0.4s;
}

.history-list li:nth-child(5) {
    animation-delay: 0.5s;
}

.history-list li:last-child {
    margin-bottom: 0;
}

.history-list li::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--c-bg-light);
    border: 3px solid var(--c-gold);
    z-index: 1;
}

.history-year {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--c-gold);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.history-content {
    color: var(--c-text);
    font-weight: 500;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Antenna Shop Placeholder --- */
.shop-placeholder {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background-color: var(--c-bg-light);
    border-radius: var(--radius);
    border: 2px dashed rgba(228, 0, 127, 0.3);
    /* Magenta dashed border */
}

.shop-icon {
    width: 80px;
    height: 80px;
    background: var(--c-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--c-magenta);
    box-shadow: var(--shadow-sm);
}

.shop-icon svg {
    width: 40px;
    height: 40px;
}

.shop-placeholder h3 {
    font-size: 1.5rem;
    color: var(--c-text);
    margin-bottom: 16px;
}

.shop-placeholder p {
    color: var(--c-text-light);
    margin-bottom: 12px;
}

.coming-soon {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--c-magenta) !important;
    letter-spacing: 0.1em;
    margin-top: 24px !important;
    display: inline-block;
    padding: 8px 24px;
    border-radius: 30px;
    background-color: rgba(228, 0, 127, 0.05);
}

/* --- Responsive Adjustments for Welfare Page --- */
@media screen and (max-width: 991px) {

    .welfare-feature-row,
    .welfare-feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .feature-image-wrapper {
        margin: 0 auto;
        width: 100%;
    }

    .shape-organic::before,
    .shape-circle::before {
        display: none;
        /* Hide decorative backgrounds on smaller screens for cleaner look */
    }
}

@media screen and (max-width: 768px) {
    .page-hero {
        height: 50vh;
    }

    .page-hero-title {
        font-size: 1.8rem;
    }

    .page-hero-sub {
        font-size: 0.9rem;
    }

    .feature-image {
        height: 300px;
    }

    .shop-placeholder {
        padding: 40px 20px;
    }
}