/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(249, 247, 242, 1));
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
    /* Limit height on desktop */
    width: auto;
}

.hero-text {
    flex: 1.5;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--subtext-color);
    white-space: pre-line;
}

/* Intro Page Image */
.intro-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* RWD */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-image {
        min-width: auto;
        width: 100%;
    }

    .hero-image img {
        max-height: 300px;
        /* Smaller max height on mobile */
        width: 100%;
    }
}

/* News Section */
.news-section {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.news-section::before {
    content: 'NEWS';
    position: absolute;
    top: 20px;
    right: -20px;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    line-height: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--subtext-color);
    font-size: 1.2rem;
    font-family: var(--font-main);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.news-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background: #fdfaf5;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9f7f2, #f5f5f5);
    font-size: 4rem;
}

.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.news-date {
    font-size: 0.95rem;
    color: var(--subtext-color);
    font-weight: 500;
}

.news-tag {
    font-size: 0.85rem;
    background: rgba(139, 0, 0, 0.05);
    color: var(--primary-color);
    padding: 4px 15px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.news-card:hover .news-tag {
    background: var(--primary-color);
    color: #fff;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.news-title a {
    color: var(--text-color);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 1rem;
    color: var(--subtext-color);
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    line-height: 1.6;
}

.news-more {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.news-more:hover {
    gap: 15px;
}

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px;
    background: var(--bg-color);
    border-radius: 15px;
    color: var(--subtext-color);
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}