﻿:root {
    --primary: #015e38;
    --primary-soft: #eaf3ef;
    --text-muted: #6c757d;
}

.learn-hero {
    height: 70vh;
    background: url("../../assets/hero.jpg") center / cover no-repeat;
    position: relative;
}




.learn-cat-card {
    background: white;
    padding: 20px 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: 1.5px solid rgba(1, 94, 56, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .learn-cat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(1, 94, 56, 0.15);
        border-color: var(--primary);
    }

    .learn-cat-card span {
        font-size: 32px;
        color: var(--primary);
        margin-bottom: 10px;
    }

    .learn-cat-card h6 {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 0;
    }

.encyclopedia-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}

    .encyclopedia-search input {
        width: 100%;
        padding: 12px 45px 12px 20px;
        border: 1px solid var(--primary);
        border-radius: 50px;
        outline: none;
        font-size: 14px;
    }

    .encyclopedia-search span {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary);
    }

.family-title {
    font-family: "Playfair Display", serif;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tea-entry-card {
    background: white;
    border-radius: 12px;
    border: 1.5px solid rgba(1, 94, 56, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    height: 100%;
    overflow: hidden;
}

    .tea-entry-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(1, 94, 56, 0.15);
        border-color: var(--primary);
    }

.tea-card-media {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.tea-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.tea-entry-card:hover .tea-card-img {
    transform: scale(1.1);
}

.entry-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.entry-content {
    padding: 24px;
}

.note-pill {
    font-size: 10px;
    background: #f8f9fa;
    padding: 3px 10px;
    border-radius: 4px;
    color: #555;
    border: 1px solid #eee;
}

.learn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.learn-modal-content {
    background: white;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 45px;
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 35px;
    color: #ccc;
    transition: 0.3s;
}

    .modal-close:hover {
        color: var(--primary);
    }

.learn-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.tab-link {
    background: none;
    border: none;
    padding: 12px 0;
    font-weight: 600;
    font-size: 14px;
    color: #999;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

    .tab-link.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
    }

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

    .tab-content.active {
        display: block;
    }

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.fact-box {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f1f1f1;
    text-align: center;
}

    .fact-box span {
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        color: #999;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }

    .fact-box strong {
        font-size: 13px;
        color: var(--primary);
    }

.meter-row {
    margin-bottom: 15px;
}

.meter-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.meter-track {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.meter-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.brewing-guide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.brew-card {
    background: var(--primary);
    color: white;
    padding: 20px 10px;
    border-radius: 12px;
    text-align: center;
}

    .brew-card i {
        font-size: 18px;
        margin-bottom: 10px;
        opacity: 0.8;
    }

    .brew-card span {
        display: block;
        font-size: 10px;
        opacity: 0.7;
        text-transform: uppercase;
    }

    .brew-card strong {
        font-size: 16px;
        display: block;
        margin-top: 2px;
    }

.benefit-tag {
    background: #f4faf7;
    border: 1px solid #e1f0e8;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.fun-fact-card {
    background: #fff9eb;
    border: 1px solid #ffeeba;
    padding: 20px;
    border-radius: 12px;
}

.processing-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.journey-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
}

.journey-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: 0.3s;
}

.journey-step:hover .step-icon {
    background: var(--primary);
    color: white;
}

.step-connector {
    position: absolute;
    height: 0;
    border-top: 2px dashed rgba(1, 94, 56, 0.3);
    width: 100%;
    top: 25px;
    left: 50%;
    z-index: -1;
}

.journey-step:last-child .step-connector {
    display: none;
}

.grade-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid rgba(1, 94, 56, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    height: 100%;
    transition: all 0.3s ease;
}

    .grade-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(1, 94, 56, 0.12);
    }

.grade-header {
    padding: 25px;
    color: white;
    text-align: center;
}

.grade-card.premium .grade-header {
    background: #015e38;
}

.grade-card.mid-range .grade-header {
    background: #2e7d32;
}

.grade-card.value .grade-header {
    background: #455a64;
}

.grade-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

    .grade-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 8px;
        border-bottom: 1px solid #f9f9f9;
        transition: background-color 0.3s ease;
        border-radius: 8px;
    }

        .grade-list li:hover {
            background-color: var(--primary-soft);
            cursor: pointer;
        }

        .grade-list li:last-child {
            border-bottom: none;
        }

        .grade-list li .dot {
            width: 8px;
            height: 8px;
            background: var(--primary);
            border-radius: 50%;
            margin-top: 6px;
            flex-shrink: 0;
            opacity: 0.3;
        }

.comparison-table {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

    .comparison-table thead {
        background: #f8f9fa;
    }

    .comparison-table th {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #999;
        padding: 15px 20px;
        border: none;
    }

    .comparison-table td {
        padding: 15px 20px;
        vertical-align: middle;
        border-color: #f9f9f9;
        font-size: 14px;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .quick-facts-grid,
    .brewing-guide-cards {
        grid-template-columns: 1fr;
    }

    .journey-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .step-connector {
        display: none;
    }
}



