/* Page Wrapper */
.page {
    animation: fadeIn 0.6s ease-out;
    background-color: #F8FAFC;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Hero Section (Ref: Inner Banner) --- */
.hero {
    padding: 8rem 0 8rem;
    text-align: center;
    background-image: url('/hero-inner-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.heroContent {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.heroTitle {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breadcrumbs {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs span {
    color: #fff;
    font-weight: 600;
}


/* --- Grid & Cards --- */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* Ensure no underline on card */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.imageWrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .image {
    transform: scale(1.05);
}

.content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94A3B8;
    border-top: 1px solid #F1F5F9;
    padding-top: 1rem;
}

.author {
    font-weight: 500;
}

.date {
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Detail Page Styles */
.detailPage {
    background: white;
}

/* Moved Title to Hero, so this header is deprecated/removed in new design,
   but keeping a simplified version just in case of fallback usage 
*/
.detailHeaderDeprecated {
    text-align: center;
    padding: 4rem 1.5rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.detailImageWrapper {
    max-width: 1000px;
    height: 400px;
    margin: 3rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.detailImageWrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detailContent {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    /* Adjusted padding */
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.125rem;
}

/* Ensure no unwanted underlines in content unless links */
.detailContent h2,
.detailContent h3,
.detailContent p,
.detailContent li {
    text-decoration: none;
}

.detailContent a {
    text-decoration: underline;
    color: var(--primary);
}

.detailContent h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #1E293B;
}

.detailContent h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #334155;
}

.detailContent p {
    margin-bottom: 1.5rem;
}

.detailContent ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.detailContent li {
    margin-bottom: 0.5rem;
}