:root {
    --color-green: #3F8E43;
    --color-teal: #1D8F8A;
    --color-yellow: #D7A94A;
    --color-cream: #FDFBF7;
    --color-wood: #8B5A2B;
    --color-text: #333333;
    --color-light-gray: #f4f4f4;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.8;
    font-size: 18px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--color-teal);
    text-decoration: none;
}

/* CONTAINER & LAYOUT */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-content {
    margin-top: 60px;
    margin-bottom: 80px;
}

.text-content p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: #444;
}

.text-center {
    text-align: center;
}

.text-teal {
    color: var(--color-teal);
}

.bg-light {
    background-color: rgba(63, 142, 67, 0.05);
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
}

.footer {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px;
}

.hero-bg, .footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.hero-overlay, .footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(29, 143, 138, 0.4), rgba(63, 142, 67, 0.6));
    z-index: 2;
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 950px;
    padding: 0 20px;
}

.hero-category {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-yellow);
    margin-bottom: 20px;
    position: relative;
}

.hero-title {
    font-size: 3.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    color: var(--color-yellow);
    font-weight: 700;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background-color: var(--color-yellow);
    margin: 0 auto 30px;
}

.hero-sapo {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-author {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f1f1f1;
}

/* INTRO */
.intro-section {
    padding: 120px 0 80px;
    background: var(--color-cream);
}

.intro-section .container {
    max-width: 750px;
}

.lead-text {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: #333;
    text-align: justify;
    line-height: 1.8;
}

.lead-text::first-letter {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    float: left;
    margin-right: 12px;
    line-height: 0.85;
    font-weight: 700;
    color: var(--color-green);
}

/* SECTION HEADING */
.sticky-heading-wrapper {
    position: relative;
    padding: 40px 0 20px;
    text-align: center;
    margin-bottom: 50px;
}

.sticky-heading {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--color-green);
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin: 0;
}

.sticky-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-yellow);
}

/* IMAGES */
.full-width-image {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    margin: 60px 0;
}

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

.full-width-image:hover img {
    transform: scale(1.05);
}

/* INFOGRAPHICS */
.infographic-section {
    padding: 80px 0;
    margin: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--color-green);
    font-family: var(--font-heading);
    font-weight: 700;
    position: relative;
    display: block;
    text-align: center;
}

.info-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-yellow);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Premium Horizontal Scroll Value Chain */
.timeline-container {
    counter-reset: step;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 10px 20px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 35px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for E-Magazine styling */
.timeline-container::-webkit-scrollbar {
    height: 6px;
}
.timeline-container::-webkit-scrollbar-track {
    background: rgba(63, 142, 67, 0.05);
    border-radius: 10px;
}
.timeline-container::-webkit-scrollbar-thumb {
    background: rgba(29, 143, 138, 0.25);
    border-radius: 10px;
}
.timeline-container::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 143, 138, 0.5);
}

.timeline-line {
    display: none; /* No line needed for horizontal layout */
}

.timeline-item {
    counter-increment: step;
    position: relative;
    flex: 0 0 220px; /* Fixed width for horizontal items */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(63, 142, 67, 0.12);
    border-radius: 16px;
    padding: 30px 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    text-align: center;
    z-index: 2;
}

/* Step numbering (CSS Counter) */
.timeline-item::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 15px;
    right: 18px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(29, 143, 138, 0.15);
    transition: color 0.3s ease;
}

/* Hover effects */
.timeline-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(63, 142, 67, 0.08);
    border-color: rgba(63, 142, 67, 0.35);
}

.timeline-item:hover::before {
    color: rgba(63, 142, 67, 0.3);
}

.timeline-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ffffff 0%, #f5faf5 100%);
    border: 2px solid var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(63, 142, 67, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
    z-index: 3;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-teal);
    background: linear-gradient(135deg, #ffffff 0%, #eef8f7 100%);
}

.timeline-content {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 18px;
    line-height: 1.4;
}

/* Value Chain Connecting Arrows (Horizontal Row) */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 62px; /* Align with center of the icon */
    right: -28px; /* Position in the center of the gap */
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231D8F8A' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M14 5l7 7m0 0l-7 7m7-7H3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.65;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Arrow Hover Interaction */
.timeline-item:hover::after {
    opacity: 0.9;
}
.timeline-item:not(:last-child):hover::after {
    transform: translateY(-50%) translateX(3px);
}

/* Circle Diagram */
.circle-info-container {
    background-color: rgba(29, 143, 138, 0.05);
}

.circle-diagram {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 80px auto;
    border-radius: 50%;
    border: 2px dashed var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-center {
    width: 120px;
    height: 120px;
    background: var(--color-teal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 10px 20px rgba(29, 143, 138, 0.3);
    z-index: 10;
}

.circle-item {
    position: absolute;
    width: 140px;
    text-align: center;
}

.circle-item .icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.circle-item span {
    font-size: 0.85rem;
    font-weight: 600;
}

.item-1 { top: -60px; left: 50%; transform: translateX(-50%); }
.item-2 { top: 40px; right: -90px; }
.item-3 { bottom: 40px; right: -90px; }
.item-4 { bottom: -60px; left: 50%; transform: translateX(-50%); }
.item-5 { bottom: 40px; left: -90px; }
.item-6 { top: 40px; left: -90px; }

/* Flowchart */
.flowchart-container {
    background-color: rgba(215, 169, 74, 0.05);
}

.flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.flow-item {
    text-align: center;
    margin: 10px;
    width: 120px;
}

.flow-icon {
    width: 70px;
    height: 70px;
    background: #fff;
    border: 2px solid var(--color-teal);
    border-radius: 12px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.flow-item:hover .flow-icon {
    background: var(--color-teal);
    color: #fff;
}

.flow-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.flow-arrow {
    font-size: 24px;
    color: var(--color-teal);
    margin: 0 10px;
}

/* FOOTER */
.footer-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: left;
    max-width: 800px;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 10px;
}

.footer-content p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* POST FOOTER */
.post-footer {
    padding: 40px 20px;
    background: var(--color-cream);
    text-align: center;
}

.footer-author {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-green);
    font-weight: 700;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-sapo { font-size: 1.2rem; }
    .lead-text { font-size: 1.4rem; }
    .sticky-heading { font-size: 1.5rem; }
    
    .timeline-container {
        padding: 20px 10px 15px;
        gap: 25px;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .timeline-line {
        display: none !important;
    }
    
    .timeline-item {
        flex: 0 0 190px;
        padding: 24px 12px 20px;
        border-radius: 12px;
        display: flex;
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }
    
    .timeline-item::before {
        top: 12px;
        right: 12px;
        transform: none;
        font-size: 1.2rem;
    }
    
    .timeline-icon {
        position: static;
        transform: none;
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .timeline-item:hover .timeline-icon {
        transform: scale(1.05) rotate(5deg);
    }
    
    .timeline-content {
        margin-top: 14px;
        text-align: center;
        font-size: 0.95rem;
    }
    
    .timeline-item:not(:last-child)::after {
        display: block !important;
        top: 52px; /* Align with center of the smaller icon */
        right: -22px;
        left: auto;
        width: 16px;
        height: 16px;
        transform: translateY(-50%);
    }
    
    .circle-diagram { width: 250px; height: 250px; margin: 60px auto; }
    .circle-center { width: 80px; height: 80px; font-size: 1.5rem; }
    .circle-item { width: 100px; }
    .circle-item .icon { width: 40px; height: 40px; font-size: 16px; }
    .item-1 { top: -40px; left: 50%; transform: translateX(-50%); }
    .item-2 { top: 20px; right: -50px; }
    .item-3 { bottom: 20px; right: -50px; }
    .item-4 { bottom: -40px; left: 50%; transform: translateX(-50%); }
    .item-5 { bottom: 20px; left: -50px; }
    .item-6 { top: 20px; left: -50px; }

    .flow-diagram { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); margin: 20px 0; }
    
    .full-width-image { height: 40vh; }
}
