/* =========================================================
   Agriculture Home Page
   ========================================================= */

.agri-home {
    --agri-green: #126b3d;
    --agri-dark-green: #0b5831;
    --agri-blue: #1759d1;
    --agri-text: #10233d;
    --agri-muted: #607084;

    color: var(--agri-text);
    background: #f8fcfb;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
        
}


/* =========================================================
   Container
   ========================================================= */

.agri-container {
    width: min(100% - 40px, 960px);
    margin: 0 auto;
}


/* =========================================================
   Hero
   ========================================================= */

.agri-hero {
    padding: 24px 0 31px;
    text-align: center;

    background:
        linear-gradient(
            135deg,
            #effcf5 0%,
            #edf9f7 48%,
            #eef5ff 100%
        );
}

.agri-hero h1 {
    margin: 0;

    color: var(--agri-green);

    font-size: clamp(28px, 4vw, 36px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.hero-subtitle {
    margin: 8px 0 15px;

    color: var(--agri-muted);

    font-size: 14px;
    line-height: 1.6;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 32px;
    padding: 0 17px;

    border-radius: 6px;

    background: var(--agri-green);
    color: #ffffff;

    font-size: 11px;
    font-weight: 500;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-button span {
    font-size: 18px;
    line-height: 1;
}

.hero-button:hover {
    background: var(--agri-dark-green);
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(19, 166, 81, 0.2);
}


/* =========================================================
   Category Cards
   ========================================================= */

.research-categories {
    padding: 21px 0;
    background: #f3fbf8;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;

    height: 143px;

    overflow: hidden;

    border-radius: 11px;

    background-position: center;
    background-size: cover;

    text-decoration: none;

    box-shadow:
        0 3px 8px rgba(20, 45, 50, 0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(20, 45, 50, 0.2);
}


/*
 * Replace these images with your own files.
 *
 * Example:
 * assets/images/smart-agriculture.jpg
 * assets/images/soil-analysis.jpg
 * assets/images/crop-health.jpg
 */

.category-smart {
    background-image: url("../images/smart-agriculture.jpg");
}

.category-soil {
    background-image: url("../images/soil-analysis.jpg");
}

.category-health {
    background-image: url("../images/crop-health.jpg");
}


.category-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.08) 65%
        );
}

.category-content {
    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 13px;

    color: #ffffff;
}

.category-content h3 {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.category-content p {
    margin: 0;

    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   Featured Research
   ========================================================= */

.featured-research {
    padding: 0 0 40px;

    background:
        linear-gradient(
            180deg,
            #f3fbf8 0%,
            #f8fcfb 100%
        );
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 0 0 18px;
}

.section-heading h2 {
    margin: 0;

    color: var(--agri-green);

    font-size: 21px;
    font-weight: 750;
    line-height: 1.3;
}

.view-all-research {
    flex-shrink: 0;

    color: var(--agri-blue);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
}

.view-all-research:hover {
    text-decoration: underline;
}


/* =========================================================
   Research Grid
   ========================================================= */

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.line-height{
        line-height: 0.7;
    }
/* =========================================================
   Research Card - 3:1 width:height ratio
   ========================================================= */

.research-card {
    position: relative;
    
    padding: 12px;
    box-sizing: border-box;

    /* display: flex;
    flex-direction: column;
    justify-content: center; */
    overflow: hidden;

    cursor: pointer;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.research-detail-citation{
    margin-top: 5px;
}


.research-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.12);
}


/* Keyboard accessibility */

.research-card:focus {
    outline: 3px solid rgba(40, 124, 75, 0.35);
    outline-offset: 3px;
}


/* =========================================================
   Six Different Card Colours
   ========================================================= */

.research-card-1 {
    background: #e8f5e9;
    border-top: 5px solid #388e3c;
}

.research-card-2 {
    background: #e3f2fd;
    border-top: 5px solid #1976d2;
}

.research-card-3 {
    background: #f3e5f5;
    border-top: 5px solid #8e44ad;
}

.research-card-4 {
    background: #fff3e0;
    border-top: 5px solid #ef8c00;
}

.research-card-5 {
    background: #fce4ec;
    border-top: 5px solid #d81b60;
}

.research-card-6 {
    background: #e0f7fa;
    border-top: 5px solid #00838f;
}


/* =========================================================
   Publication Title
   ========================================================= */

.research-card h3 {
    margin: 0 0 6px;

    color: #17251c;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   Authors
   ========================================================= */

.research-authors {
    margin: 0 0 8px;

    color: #4f5953;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 13px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   Publication Meta
   ========================================================= */

.research-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px 12px;
    overflow: hidden;

    margin-top: auto;
    padding-top: 10px;

    border-top: 1px solid rgba(0, 0, 0, 0.10);

    color: #58635c;

    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.research-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.research-meta em {
    font-style: italic;
}

.meta-icon {
    font-size: 13px;
}


/* =========================================================
   Empty State
   ========================================================= */

.research-empty {
    padding: 70px 25px;

    text-align: center;

    background: #f7f9f7;

    border: 1px solid #e1e7e3;
}

.research-empty h3 {
    margin: 0 0 8px;

    color: #17251c;

    font-size: 22px;
}

.research-empty p {
    margin: 0;

    color: #737c76;

    font-size: 14px;
}


/* =========================================================
   Tablet (900px)
   ========================================================= */

@media (max-width: 900px) {

    .agri-container {
        width: min(100% - 32px, 680px);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card:last-child {
        grid-column: 1 / -1;
    }

    .research-grid {
        grid-template-columns: repeat(2, 1fr);
        
    }
    

}


/* =========================================================
   Mobile (600px)
   ========================================================= */

@media (max-width: 600px) {

    .agri-container {
        width: min(100% - 28px, 420px);
    }

    .agri-hero {
        padding: 30px 0 34px;
    }

    .agri-hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 12px;
        padding: 0 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-card {
        height: 150px;
    }

    .category-card:last-child {
        grid-column: auto;
    }

    .research-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .research-card {
        /* aspect-ratio: 3 / 1; */
        padding: 16px 18px;
    }

    .research-card h3 {
        font-size: 16px;
    }

    .research-authors {
        font-size: 12px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-heading h2 {
        font-size: 20px;
    }

}


/* =========================================================
   Small Mobile (360px)
   ========================================================= */

@media (max-width: 360px) {

    .agri-container {
        width: calc(100% - 24px);
    }

    .agri-hero h1 {
        font-size: 25px;
    }

    .category-card {
        height: 140px;
    }

}