/* -------------------------------------
   STYLE: BLOG COMPONENTS 
   Premium Aesthetics, Glassmorphism, Micro-animations 
--------------------------------------- */

/* --- Blog Hero / Index --- */
.blog-hero {
    background: linear-gradient(135deg, rgba(29, 122, 58, 0.9) 0%, rgba(22, 101, 52, 1) 100%), url('../img/logo.webp') center/cover;
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    border-radius: 0 0 40px 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 50%);
    pointer-events: none;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* --- Blog Grid (Cards) --- */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(29, 122, 58, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(29, 122, 58, 0.15);
}

.blog-card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(120deg, #dff6f2, #ccefe8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #1d7a3a;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-img-wrapper {
    overflow: hidden;
    height: 220px;
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #166534;
    background: #dff6f2;
    padding: 5px 12px;
    border-radius: 20px;
    display: table;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.blog-card h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.blog-card-excerpt {
    color: #556171;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    margin-top: auto;
}

.blog-card-readmore {
    color: #1d7a3a;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-readmore {
    gap: 12px;
}

/* --- Article Page --- */
.article-header {
    max-width: 900px;
    margin: 120px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.article-category {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #1d7a3a;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #6b7280;
    font-size: 0.95rem;
}

.article-meta img {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid #1d7a3a;
}

.article-featured-image {
    max-width: 1000px;
    margin: 0 auto 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #dff6f2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}
.article-featured-image i {
    font-size: 8rem;
    color: #1d7a3a;
    opacity: 0.5;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 2rem;
    color: #1f2937;
    margin: 50px 0 20px;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.5rem;
    color: #111827;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul {
    margin: 20px 0 30px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.article-content li::marker {
    color: #1d7a3a;
}

.article-content strong {
    color: #1f2937;
}

.article-cta {
    background: linear-gradient(135deg, #1d7a3a 0%, #166534 100%);
    padding: 40px;
    border-radius: 20px;
    color: white;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 15px 35px rgba(29, 122, 58, 0.2);
    position: relative;
    overflow: hidden;
}

.article-cta::after {
    content: '\f232'; /* WhatsApp icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 10rem;
    color: white;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.article-cta h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.article-cta p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-whatsapp-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-inline:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 30px;
}
.breadcrumbs a {
    color: #1d7a3a;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    margin: 0 10px;
    opacity: 0.5;
}

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f3f4f6;
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: #1d7a3a;
    width: 0%;
    transition: width 0.1s;
}

@media (max-width: 768px) {
    .blog-hero { padding: 100px 20px 60px; }
    .article-header { margin-top: 100px; }
    .article-cta { padding: 30px 20px; }
}
