﻿/* hero.css - Tang Maju reusable hero plugin */

/* Hero Section 基本样式 (固定 min-height:200px 版本) */
.hero-sections {
    width: 100%;
    background-image: url('/Content/RecentProjectsContent/assets/images/img_rectangle_2.png');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 黑色遮罩层，绝对覆盖背景 */
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    z-index: 1;
    padding: 20px 0;
}

    /* 遮罩中的容器（使用全站通用的 content-container） */
    .hero-overlay .content-container {
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 16px;
    }

/* 标题在遮罩之上 */
.hero-titles {
    position: relative;
    z-index: 2;
    color: #fff;
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

/* 小屏微調 */
@media (max-width: 420px) {
    .hero-sections {
        min-height: 200px;
    }

    .hero-overlay {
        padding: 16px 12px;
    }

    .hero-titles {
        font-size: 40px;
    }
}

/* 中型螢幕以上 */
@media (min-width: 640px) {
    .hero-overlay .content-container {
        padding: 0 24px;
    }

    .hero-titles {
        font-size: 36px;
    }
}

@media (min-width: 768px) {
    .hero-overlay .content-container {
        padding: 0 32px;
    }

    .hero-overlay {
        padding: 48px 0;
    }

    .hero-titles {
        font-size: 48px;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-overlay .content-container {
        padding: 0 48px;
    }

    .hero-titles {
        font-size: 50px;
    }
}
