/*
Theme Name: Agbor Poultry Farmers
Author: Agbor Poultry Farmers
Description: A simple and responsive poultry farmers community website.
Version: 1.0
*/


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}


/* =========================================
   CONTAINER
========================================= */

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    width: 100%;
    background: #e8f5e9;
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #2e7d32;

    white-space: nowrap;
}

.logo span {
    color: #222222;
    font-weight: 500;
}


/* NAVIGATION */

.site-navigation {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-menu li a {
    display: block;
    padding: 11px 14px;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.25s ease;
}
.main-menu li a:hover {
    color: #2e7d32;
    background: #edf7ed;
}


/* =========================================
   HERO
========================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #eef8ed 0%,
            #f8fbf7 100%
        );

    padding: 100px 0;
}

.hero-content {
    max-width: 780px;
}


/* SMALL TITLE */

.hero-small-title {
    color: #2e7d32;

    font-size: 14px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 15px;
}


/* HERO HEADING */

.hero h1 {
    font-size: clamp(40px, 7vw, 70px);

    line-height: 1.05;

    color: #173d1b;

    margin-bottom: 22px;
}


/* HERO TEXT */

.hero p:not(.hero-small-title) {
    max-width: 680px;

    color: #5d675e;

    font-size: 18px;

    margin-bottom: 30px;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 12px 22px;

    border-radius: 7px;

    font-size: 15px;
    font-weight: 700;

    border: 1px solid transparent;

    transition: all 0.25s ease;
}

.btn-primary {
    background: #2e7d32;
    color: #ffffff;
}

.btn-primary:hover {
    background: #215c25;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;

    color: #2e7d32;

    border-color: #2e7d32;
}

.btn-secondary:hover {
    background: #edf7ed;
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    padding: 85px 0;
}


/* SECTION TITLE */

.section-title {
    max-width: 720px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-label {
    color: #2e7d32;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    margin-bottom: 10px;
}

.section-title h2 {
    color: #183e1c;

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.15;

    margin-bottom: 14px;
}

.section-title p {
    color: #687169;

    font-size: 16px;
}


/* =========================================
   CARDS
========================================= */

.cards {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;
}

.card {
    background: #ffffff;

    border: 1px solid #e5e9e4;

    border-radius: 12px;

    padding: 30px;

    min-width: 0;

    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.07);
}


/* CARD ICON */

.card-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #edf7ed;

    border-radius: 10px;

    font-size: 25px;

    margin-bottom: 20px;
}


/* CARD HEADING */

.card h3 {
    color: #244d28;

    font-size: 20px;

    line-height: 1.3;

    margin-bottom: 12px;
}


/* CARD TEXT */

.card p {
    color: #687169;

    font-size: 15px;

    margin-bottom: 18px;
}


/* CARD LINK */

.card-link {
    color: #2e7d32;

    font-size: 14px;

    font-weight: 700;
}

.card-link:hover {
    text-decoration: underline;
}


/* =========================================
   COMMUNITY SECTION
========================================= */

.community-section {
    background: #19351d;

    color: #ffffff;

    padding: 85px 0;
}

.community-content {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;

    gap: 70px;
}

.community-content .section-label {
    color: #9bd39f;
}

.community-content h2 {
    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    margin-bottom: 18px;
}

.community-content p:not(.section-label) {
    color: #d3ddd4;

    max-width: 650px;

    margin-bottom: 25px;
}


/* COMMUNITY BOX */

.community-box {
    background: #ffffff;

    border-radius: 14px;

    padding: 25px;
}

.community-item {
    display: flex;

    align-items: center;

    gap: 15px;

    color: #222222;

    padding: 18px 10px;

    border-bottom: 1px solid #eeeeee;
}

.community-item:last-child {
    border-bottom: none;
}

.community-item strong {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #edf7ed;

    border-radius: 8px;

    font-size: 20px;
}


/* =========================================
   PRICE PREVIEW
========================================= */

.price-preview {
    max-width: 850px;

    margin: 0 auto;

    border: 1px solid #e5e9e4;

    border-radius: 12px;

    overflow: hidden;

    background: #ffffff;
}

.price-item {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 25px;

    border-bottom: 1px solid #eeeeee;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item strong {
    display: block;

    color: #244d28;

    font-size: 17px;

    margin-bottom: 3px;
}

.price-item span {
    color: #777777;

    font-size: 14px;
}

.price-button {
    flex-shrink: 0;

    padding: 8px 16px;

    background: #edf7ed;

    color: #2e7d32;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 700;
}

.price-button:hover {
    background: #2e7d32;

    color: #ffffff;
}


/* CENTER BUTTON */

.center-button {
    text-align: center;

    margin-top: 35px;
}


/* =========================================
   LEARN SECTION
========================================= */

.learn-section {
    background: #f7faf6;

    padding: 85px 0;
}


/* =========================================
   CTA SECTION
========================================= */

.cta-section {
    background: #edf7ed;

    padding: 85px 0;
}

.cta-content {
    max-width: 750px;

    margin: 0 auto;

    text-align: center;
}

.cta-content h2 {
    color: #193d1d;

    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    margin-bottom: 15px;
}

.cta-content p:not(.section-label) {
    color: #687169;

    margin-bottom: 25px;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: #172018;

    color: #ffffff;

    padding: 40px 0;
}

.footer-inner {
    text-align: center;
}

.footer-inner p {
    color: #c8d0c9;

    font-size: 14px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .header-inner {
        flex-direction: column;

        justify-content: center;

        padding: 18px 0;

        gap: 12px;
    }


    .main-menu {
        flex-wrap: wrap;

        justify-content: center;
    }


    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .community-content {
        grid-template-columns: 1fr;

        gap: 40px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }


    /* HEADER */

    .logo {
        font-size: 20px;

        text-align: center;
    }


    .main-menu {
        width: 100%;

        gap: 3px;
    }

    .main-menu li a {
        padding: 7px 8px;

        font-size: 12px;
    }


    /* HERO */

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p:not(.hero-small-title) {
        font-size: 16px;
    }


    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }


    /* SECTIONS */

    .section {
        padding: 60px 0;
    }


    .section-title {
        margin-bottom: 32px;
    }


    .section-title h2 {
        font-size: 30px;
    }


    /* CARDS */

    .cards {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .card {
        padding: 24px;
    }


    /* COMMUNITY */

    .community-section {
        padding: 60px 0;
    }

    .community-content h2 {
        font-size: 32px;
    }

    .community-box {
        padding: 15px;
    }


    /* PRICES */

    .price-item {
        padding: 18px;

        align-items: center;
    }

    .price-item strong {
        font-size: 15px;
    }

    .price-item span {
        font-size: 12px;
    }

    .price-button {
        padding: 7px 12px;

        font-size: 12px;
    }


    /* LEARN */

    .learn-section {
        padding: 60px 0;
    }


    /* CTA */

    .cta-section {
        padding: 60px 0;
    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .container {
        width: 94%;
    }


    .logo {
        font-size: 18px;
    }


    .main-menu {
        gap: 1px;
    }

    .main-menu li a {
        padding: 6px;

        font-size: 11px;
    }


    .hero h1 {
        font-size: 34px;
    }


    .hero {
        padding: 50px 0;
    }


    .card {
        padding: 20px;
    }


    .price-item {
        gap: 10px;

        padding: 15px;
    }

}


/* =========================
   POULTRY OWNERS PAGE
========================= */

.page-hero {
    background: #f1f8f3;
    padding: 80px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    margin: 10px 0 15px;
}

.page-hero p:not(.section-label) {
    max-width: 650px;
    margin: auto;
    color: #666;
    font-size: 18px;
}

.owner-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}


/* =========================
   FORM
========================= */

.form-wrapper {
    max-width: 900px;
    margin: auto;
}

.farmer-form {
    margin-top: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2e7d32;
}

.form-group textarea {
    resize: vertical;
}

.form-submit {
    margin-top: 25px;
}


/* =========================
   EMPTY DIRECTORY
========================= */

.empty-directory {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
    padding: 50px 25px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.empty-directory h3 {
    margin-bottom: 10px;
}

.empty-directory p {
    color: #666;
    margin-bottom: 25px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {

    .page-hero {
        padding: 60px 20px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: auto;
    }

    .owner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .owner-actions .btn {
        text-align: center;
    }

    .form-submit {
        width: 100%;
    }

}


/* =========================
   MARKET PRICES
========================= */

.price-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 40px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e5e5;
    min-width: 650px;
}

.price-table th,
.price-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.price-table th {
    background: #f1f8f3;
    font-weight: 700;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table td {
    color: #555;
}

.price-table td:nth-child(3) {
    font-weight: 700;
    color: #2e7d32;
}


/* =========================
   MARKET MOBILE
========================= */

@media (max-width: 700px) {

    .price-table-wrapper {
        margin-top: 25px;
    }

    .price-table th,
    .price-table td {
        padding: 12px;
        font-size: 14px;
    }

}

/* =========================
   POULTRY OWNER DIRECTORY
========================= */

.owner-directory {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.owner-card {

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 12px;

    padding: 25px;

    display: flex;

    gap: 18px;

}

.owner-card-icon {
    font-size: 40px;
}

.owner-card-content {
    flex: 1;
}

.owner-card h3 {
    margin-bottom: 15px;
}

.owner-card p {
    margin-bottom: 8px;
    color: #666;
}

.owner-contact {
    display: inline-block;
    margin-top: 15px;
}

.registration-success {
    background: #eaf7ed;
    border: 1px solid #b7dfbf;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 25px;
}

.registration-success strong {
    color: #2e7d32;
}

.registration-success p {
    margin: 5px 0 0;
}


/* MOBILE */

@media (max-width: 900px) {

    .owner-directory {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .owner-directory {
        grid-template-columns: 1fr;
    }

    .owner-card {
        flex-direction: column;
    }

}

/* =========================
   POULTRY OWNER PROFILE
========================= */

.profile-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.profile-main {
    background: #fff;
    padding: 35px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.profile-main h2 {
    margin-bottom: 25px;
}

.profile-detail {
    margin-bottom: 12px;
    color: #555;
}

.profile-section {
    margin-top: 30px;
}

.profile-section h3 {
    margin-bottom: 10px;
}

.profile-sidebar {
    background: #f1f8f3;
    padding: 30px;
    border-radius: 12px;
}

.profile-sidebar h3 {
    margin-bottom: 20px;
}

.profile-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.profile-location {
    margin-top: 20px;
    color: #555;
}

.profile-back {
    margin-top: 30px;
}


/* MOBILE */

@media (max-width: 700px) {

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-main {
        padding: 25px;
    }

}

/* =========================
   COMMUNITY CHAT
========================= */

.chat-box {
    max-width: 850px;
    margin: 35px auto 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.chat-header {
    padding: 25px;
    background: #f1f8f3;
}

.chat-header h3 {
    margin-bottom: 5px;
}

.chat-header p {
    margin: 0;
    color: #666;
}

.chat-messages {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.chat-message:last-child {
    border-bottom: none;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: #f1f8f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message p {
    margin: 6px 0;
    color: #555;
}

.chat-message small {
    color: #999;
}

.chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.chat-empty div {
    font-size: 40px;
    margin-bottom: 10px;
}

.chat-empty p {
    font-weight: 600;
    margin-bottom: 5px;
}

.chat-empty span {
    font-size: 14px;
}

.chat-form {
    padding: 30px;
    border-top: 1px solid #eee;
}

.chat-form h3 {
    margin-bottom: 20px;
}


/* MOBILE */

@media (max-width: 600px) {

    .chat-messages {
        padding: 18px;
    }

    .chat-form {
        padding: 20px;
    }

}

/* =========================
   VENDOR DIRECTORY
========================= */

.vendor-directory {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.vendor-card {

    background: #ffffff;

    border: 1px solid #e1e8e1;

    border-radius: 14px;

    padding: 25px;

    display: flex;

    gap: 20px;

    align-items: flex-start;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);

}

.vendor-icon {

    width: 60px;

    height: 60px;

    min-width: 60px;

    border-radius: 12px;

    background: #e8f5e9;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;

}

.vendor-content {
    flex: 1;
}

.vendor-content h3 {

    margin-top: 0;

    margin-bottom: 15px;

    color: #1b5e20;

    font-size: 21px;

    font-weight: 600;

}

.vendor-content p {
    margin-bottom: 8px;
    color: #666;
}

.vendor-contact {
    display: inline-block;
    margin-top: 15px;
}

@media (max-width: 900px) {

    .vendor-directory {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .vendor-directory {
        grid-template-columns: 1fr;
    }

    .vendor-card {
        flex-direction: column;
    }

}

/* =========================
   PRICE SUBMISSION
========================= */

.price-submit-box {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 35px;
}

.price-submit-box h2 {
    margin-bottom: 10px;
}

.price-submit-box > p {
    color: #666;
    margin-bottom: 25px;
}

.price-submit-box .farmer-form {
    margin-top: 25px;
}

@media (max-width: 600px) {

    .price-submit-box {
        padding: 25px 20px;
    }

}

/* =========================
   PRICE SEARCH
========================= */

.price-search-box {
    max-width: 600px;
    margin: 30px auto;
}

.price-search-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.price-search-box input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.price-search-box input:focus {
    border-color: #2e7d32;
}

/* =========================
   PRICE SORT
========================= */

.price-sort-box {
    max-width: 600px;
    margin: 0 auto 25px;
}

.price-sort-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.price-sort-box select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

/* =========================
   FARMER LOGIN
========================= */

.farmer-login-box {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 35px;
}

.farmer-login-box h2 {
    margin-bottom: 10px;
}

.farmer-login-box > p {
    color: #666;
    margin-bottom: 25px;
}

.farmer-login-box form p {
    margin-bottom: 18px;
}

.farmer-login-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.farmer-login-box input[type="text"],
.farmer-login-box input[type="password"] {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.farmer-login-box input[type="text"]:focus,
.farmer-login-box input[type="password"]:focus {
    outline: none;
    border-color: #2e7d32;
}

.farmer-login-box input[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #2e7d32;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.login-links {
    margin-top: 25px;
    text-align: center;
}

.login-links p {
    color: #666;
}

.login-links a {
    color: #2e7d32;
    font-weight: 600;
}

@media (max-width: 600px) {

    .farmer-login-box {
        padding: 25px 20px;
    }

}

/* =========================
   REGISTRATION ERROR
========================= */

.registration-error {
    background: #fff1f1;
    border: 1px solid #e5b8b8;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 25px;
}

.registration-error strong {
    color: #b3261e;
}

.registration-error p {
    margin: 5px 0 0;
    color: #666;
}

/* FARMER DASHBOARD */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
}

.dashboard-card h3 {
    margin-bottom: 12px;
}

.dashboard-card p {
    color: #666;
    line-height: 1.6;
}

.dashboard-card .btn {
    display: inline-block;
    margin-top: 10px;
}

.btn-secondary {
    background: #555;
    color: #fff;
}

@media (max-width: 700px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

/* FARM PROFILE */

.farm-profile-box {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 35px;
}

.farm-profile-box .form-group {
    margin-bottom: 20px;
}

.farm-profile-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.farm-profile-box input,
.farm-profile-box select,
.farm-profile-box textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.farm-profile-box textarea {
    resize: vertical;
}

.farm-profile-box input:focus,
.farm-profile-box select:focus,
.farm-profile-box textarea:focus {
    outline: none;
    border-color: #2e7d32;
}

.profile-success {
    background: #edf8ee;
    border: 1px solid #b7dcb9;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 25px;
}

.profile-success strong {
    color: #2e7d32;
}

.profile-success p {
    margin: 5px 0 0;
}

.profile-links {
    margin-top: 25px;
}

.profile-links a {
    color: #2e7d32;
    font-weight: 600;
}

@media (max-width: 600px) {

    .farm-profile-box {
        padding: 25px 20px;
    }

}

/* FARM PROFILE BUTTONS */

.profile-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.profile-links .btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    min-width: 180px;
    box-sizing: border-box;
}

.profile-links .btn-primary {
    background: #2e7d32;
    color: #ffffff;
}

.profile-links .btn-secondary {
    background: #555555;
    color: #ffffff;
}

.profile-links .btn:hover {
    opacity: 0.85;
}

@media (max-width: 600px) {

    .profile-links {
        flex-direction: column;
    }

    .profile-links .btn {
        width: 100%;
    }

}

/* POULTRY OWNER SEARCH */

.owner-search {
    margin-top: 30px;
    margin-bottom: 35px;
}

.owner-search input {
    width: 100%;
    max-width: 500px;
    padding: 18px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 17px;
    box-sizing: border-box;
}

.owner-search input:focus {
    outline: none;
    border-color: #2e7d32;
}

/* =========================
   PUBLIC FARM PROFILE
========================= */

.profile-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 35px;
    align-items: start;
}

.profile-main,
.profile-sidebar {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
}

.profile-detail {
    margin: 15px 0;
    line-height: 1.7;
}

.profile-section {
    margin-top: 30px;
}

.profile-section h3 {
    margin-bottom: 10px;
}

.profile-section p {
    line-height: 1.8;
    color: #555;
}

.profile-sidebar h3 {
    margin-bottom: 20px;
}

.profile-button {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
    text-align: center;
}

.profile-location {
    margin-top: 20px;
    line-height: 1.6;
    color: #666;
}

.profile-back {
    margin-top: 25px;
}

@media (max-width: 800px) {

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-main,
    .profile-sidebar {
        padding: 25px 20px;
    }

}

/* FARM PROFILE IMAGE */

/* FARM PROFILE IMAGE */

.profile-image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;

}

/* POULTRY OWNER CARD IMAGE */

.owner-card-image {
    margin-bottom: 15px;
    text-align: center;
}

.owner-card-image img {

    width: 100px;

    height: 100px;

    object-fit: cover;

    border-radius: 50%;

    display: inline-block;

}

/* =========================
   POULTRY FARMERS COMMUNITY
   CHAT DESIGN
========================= */

.community-chat-box {
    max-width: 900px;
    margin: 35px auto 0;
    background: #ffffff;
    border: 1px solid #e3e7e3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* CHAT HEADER */

.community-chat-header {
    padding: 25px 30px;
    background: #2e7d32;
    color: #ffffff;
}

.community-chat-header h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 21px;
}

.community-chat-header p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    opacity: 0.9;
}

/* MESSAGES AREA */

.community-chat-messages {
    padding: 25px 30px;
    background: #f5f7f5;
    max-height: 500px;
    overflow-y: auto;
}

/* MESSAGE */

.community-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.community-message:last-child {
    margin-bottom: 0;
}

/* FARMER PHOTO */

.community-message-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #dcefdc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 21px;
}

.community-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MESSAGE CONTENT */

.community-message-content {
    max-width: 650px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 4px 14px 14px 14px;
    border: 1px solid #e4e8e4;
}

/* FARMER NAME */

.community-message-content strong {
    display: block;
    color: #2e7d32;
    font-size: 14px;
    margin-bottom: 5px;
}

/* MESSAGE TEXT */

.community-message-content p {
    margin: 0 0 7px;
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

/* DATE */

.community-message-content small {
    display: block;
    color: #999999;
    font-size: 11px;
}

/* EMPTY CHAT */

.community-chat-empty {
    text-align: center;
    padding: 55px 20px;
}

.community-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.community-chat-empty h3 {
    margin: 0 0 8px;
}

.community-chat-empty p {
    margin: 0;
    color: #777777;
}

/* MESSAGE FORM */

.community-chat-form {
    padding: 25px 30px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

/* CURRENT FARMER */

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.chat-user-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #dcefdc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 22px;
}

.chat-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-user-info strong {
    display: block;
    color: #222222;
    font-size: 15px;
    margin-bottom: 3px;
}

.chat-user-info span {
    display: block;
    color: #888888;
    font-size: 12px;
}

/* TEXT BOX */

.chat-input-group textarea {
    display: block;
    width: 100%;
    min-height: 90px;
    padding: 14px 16px;
    border: 1px solid #d5dad5;
    border-radius: 10px;
    background: #fafafa;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.chat-input-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
    background: #ffffff;
}

/* SEND BUTTON */

.chat-input-group .btn {
    border: none;
    cursor: pointer;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
}

/* LOGIN AREA */

.chat-login-message {
    text-align: center;
    padding: 35px 20px;
}

.chat-login-message > div {
    font-size: 38px;
    margin-bottom: 8px;
}

.chat-login-message h3 {
    margin: 0 0 8px;
}

.chat-login-message p {
    max-width: 550px;
    margin: 0 auto 20px;
    color: #666666;
    line-height: 1.6;
}

/* MOBILE */

@media (max-width: 600px) {

    .community-chat-header {
        padding: 22px 18px;
    }

    .community-chat-messages {
        padding: 20px 14px;
        max-height: 500px;
    }

    .community-chat-form {
        padding: 20px 15px;
    }

    .community-message {
        gap: 9px;
        margin-bottom: 18px;
    }

    .community-message-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 19px;
    }

    .community-message-content {
        max-width: calc(100% - 49px);
        padding: 10px 13px;
    }

    .community-message-content p {
        font-size: 14px;
    }

    .chat-user-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

}

/* =========================
   POULTRY OWNER PROFILE
========================= */

/* PROFILE HERO */

.profile-image {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.profile-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.profile-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}


/* PROFILE LAYOUT */

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 35px;
    align-items: start;
}

/* COMPACT PHOTO UPLOAD BOX */

.profile-photo-upload {
    width: 360px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    margin: 0 0 20px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
}

.profile-photo-upload h4 {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 700;
}

.profile-photo-upload .photo-upload-note {
    margin: 0 0 8px !important;
    font-size: 13px !important;
    line-height: 1.4;
    color: #666;
}

.profile-photo-upload p {
    margin: 0 0 8px;
}

.profile-photo-upload input[type="file"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px;
    padding: 5px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fafafa;
    font-size: 13px;
}

.profile-photo-upload .btn-primary {
    display: inline-block;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}


/* MAIN PROFILE CARD */

.profile-main {
    background: #ffffff;
    padding: 35px;
    border: 1px solid #e5e9e5;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.profile-main h2 {
    margin-top: 0;
    margin-bottom: 25px;
}


/* FARM DETAILS */

.profile-detail {
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid #eeeeee;
    color: #555555;
}

.profile-detail strong {
    color: #222222;
    margin-right: 5px;
}


/* PROFILE SECTIONS */

.profile-section {
    margin-top: 15px;
}

.profile-section h3 {
    margin-bottom: 10px;
    color: #2e7d32;
}

.profile-section p {
    color: #555555;
    line-height: 1.8;
}


/* CONTACT SIDEBAR */

.profile-sidebar {
    background: #f7faf7;
    border: 1px solid #e1e8e1;
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 25px;
}

.profile-sidebar h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #222222;
}


/* CONTACT BUTTONS */

.profile-button {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 12px;
}


/* LOCATION */

.profile-location {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid #dddddd;
    color: #666666;
    line-height: 1.6;
}


/* BACK BUTTON */

.profile-back {
    margin-top: 30px;
}


/* MOBILE */

@media (max-width: 768px) {

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .profile-main {
        padding: 25px 20px;
    }

    .profile-sidebar {
        position: static;
        padding: 25px 20px;
    }

    .profile-image img,
    .profile-icon {
        width: 125px;
        height: 125px;
    }

    .profile-icon {
        font-size: 45px;
    }

}

/* ABOUT THE FARM TEXT */

.profile-section p {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
}

.profile-section {
    font-size: 17px;
}

.profile-section h3 {
    font-size: 21px;
}

/* ABOUT THIS FARM */

.profile-section {
    margin-top: 24px;
}

.profile-section h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.profile-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* =========================
   CONTACT FARMER CARD
========================= */

.profile-sidebar {
    background: #ffffff;
    border: 1px solid #e1e8e1;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.profile-sidebar h3 {
    font-size: 21px;
    margin-bottom: 22px;
    color: #222;
}

.profile-button {
    display: block;
    width: 100%;
    padding: 13px 18px;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 12px;
    border-radius: 9px;
    font-weight: 600;
    text-decoration: none;
}

.profile-location {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   HOMEPAGE HERO
========================= */

.hero {
    padding: 100px 20px;
    background: linear-gradient(
        135deg,
        #e8f5e9 0%,
        #ffffff 100%
    );
}

.hero-content {
    max-width: 760px;
}

.hero-small-title {
    color: #2e7d32;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 20px;
    color: #1b5e20;
}

.hero p:not(.hero-small-title) {
    max-width: 650px;
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 24px;
    border-radius: 9px;
    font-weight: 600;
}


/* MOBILE */

@media (max-width: 768px) {

    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p:not(.hero-small-title) {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

}

/* =========================
   HOMEPAGE FEATURE CARDS
========================= */

.section-title {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-title h2 {
    margin-bottom: 12px;
}

.section-title > p:last-child {
    color: #666;
    line-height: 1.7;
}


/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e9e5;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.card h3 {
    margin-bottom: 12px;
    color: #222;
}

.card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

.card-link {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}


/* MOBILE */

@media (max-width: 768px) {

    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card {
        padding: 25px 20px;
    }

}

/* =========================
   HOMEPAGE COMMUNITY SECTION
========================= */

.community-section {
    padding: 85px 20px;
    background: #f1f8f2;
}

.community-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.community-content h2 {
    font-size: 36px;
    color: #1b5e20;
    margin: 10px 0 18px;
}

.community-content p:not(.section-label) {
    color: #555;
    font-size: 17px;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 25px;
}


/* COMMUNITY FEATURE BOX */

.community-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #dce8dc;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.08);
}

.community-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 15px;
    border-bottom: 1px solid #eeeeee;
}

.community-item:last-child {
    border-bottom: none;
}

.community-item strong {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 14px;
    background: #fff8df;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.community-item span {
    font-weight: 600;
    color: #333;
}


/* MOBILE */

@media (max-width: 768px) {

    .community-section {
        padding: 65px 20px;
    }

    .community-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .community-content h2 {
        font-size: 30px;
    }

}

/* =========================
   COLORFUL HOMEPAGE DESIGN
========================= */

/* MAIN PAGE */

.home {
    background: #fffdf5;
}


/* INTRO / FEATURE SECTION */

.hero + .section {
    background: #fffdf5;
}


/* FEATURE CARDS */

.hero + .section .card:nth-child(1) {
    border-top: 5px solid #2e7d32;
}

.hero + .section .card:nth-child(2) {
    border-top: 5px solid #f9a825;
}

.hero + .section .card:nth-child(3) {
    border-top: 5px solid #43a047;
}


/* LEARN SECTION */

.learn-section {
    padding: 85px 20px;
    background: #fff8e1;
}

.learn-section .card {
    background: #ffffff;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.learn-section .card:nth-child(1) {
    border-top: 5px solid #43a047;
}

.learn-section .card:nth-child(2) {
    border-top: 5px solid #f9a825;
}

.learn-section .card:nth-child(3) {
    border-top: 5px solid #2e7d32;
}


/* CTA SECTION */

.cta-section {
    padding: 90px 20px;
    background: #1b5e20;
    color: #ffffff;
}

.cta-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 38px;
    margin: 10px 0 18px;
}

.cta-content p:not(.section-label) {
    color: #e8f5e9;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.cta-content .section-label {
    color: #ffd54f;
}


/* CTA BUTTON */

.cta-content .btn-primary {
    background: #ffd54f;
    color: #1b5e20;
}

.cta-content .btn-primary:hover {
    background: #ffca28;
}


/* MOBILE */

@media (max-width: 768px) {

    .learn-section {
        padding: 65px 20px;
    }

    .cta-section {
        padding: 70px 20px;
    }

    .cta-content h2 {
        font-size: 30px;
    }

}

/* =========================
   HERO TWO-COLUMN LAYOUT
========================= */

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 520px;
    object-fit: contain;
    border-radius: 22px;
    display: block;
}


/* MOBILE */

@media (max-width: 768px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-image img {
        height: 300px;
    }

}

/* =========================
   HOMEPAGE MARKET PRICES
========================= */

.price-preview {
    max-width: 850px;
    margin: 0 auto 30px;
    display: grid;
    gap: 15px;
}

.price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e5e9e5;
    border-left: 5px solid #2e7d32;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.price-item:nth-child(2) {
    border-left-color: #f9a825;
}

.price-item:nth-child(3) {
    border-left-color: #43a047;
}

.price-item strong {
    display: block;
    color: #222;
    font-size: 17px;
    margin-bottom: 5px;
}

.price-item span {
    display: block;
    color: #777;
    font-size: 13px;
}

.price-button {
    display: inline-block;
    padding: 9px 18px;
    background: #2e7d32;
    color: #ffffff;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.price-item:nth-child(2) .price-button {
    background: #f9a825;
    color: #222;
}

.price-item:nth-child(3) .price-button {
    background: #43a047;
}

.price-button:hover {
    opacity: 0.85;
}

.center-button {
    text-align: center;
    margin-top: 30px;
}


/* MOBILE */

@media (max-width: 600px) {

    .price-item {
        padding: 18px;
    }

    .price-button {
        padding: 8px 14px;
    }

}

/* =========================
   LEARN & GROW CARDS
========================= */

.learn-section .section-title {
    margin-bottom: 45px;
}

.learn-section .card-icon {
    width: 75px;
    height: 75px;
    font-size: 34px;
    background: #fff3cd;
}

.learn-section .card {
    position: relative;
    overflow: hidden;
}

.learn-section .card:nth-child(1)::before,
.learn-section .card:nth-child(2)::before,
.learn-section .card:nth-child(3)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.learn-section .card:nth-child(1)::before {
    background: #43a047;
}

.learn-section .card:nth-child(2)::before {
    background: #f9a825;
}

.learn-section .card:nth-child(3)::before {
    background: #2e7d32;
}

.learn-section .card h3 {
    font-size: 20px;
    margin-top: 5px;
}

.learn-section .card p {
    font-size: 15px;
}


/* LEARN BUTTON */

.learn-section .center-button .btn {
    margin-top: 10px;
}


/* MOBILE */

@media (max-width: 600px) {

    .learn-section .card-icon {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }

}

/* =========================
   LEARN SECTION - FINAL STYLE
========================= */

.learn-section {
    padding: 90px 20px;
    background: #fff8e1 !important;
}

.learn-section .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.learn-section .card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 18px;
    padding: 35px 28px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.learn-section .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.learn-section .card:nth-child(1)::before {
    background: #43a047;
}

.learn-section .card:nth-child(2)::before {
    background: #f9a825;
}

.learn-section .card:nth-child(3)::before {
    background: #2e7d32;
}

.learn-section .card-icon {
    width: 75px !important;
    height: 75px !important;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e8f5e9 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px !important;
}

.learn-section .card:nth-child(2) .card-icon {
    background: #fff3cd !important;
}

.learn-section .card h3 {
    font-size: 21px;
    color: #222;
    margin-bottom: 12px;
}

.learn-section .card p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.learn-section .card-link {
    color: #2e7d32;
    font-weight: 700;
}


/* MOBILE */

@media (max-width: 768px) {

    .learn-section .cards {
        grid-template-columns: 1fr;
    }

    .learn-section {
        padding: 65px 20px;
    }

}

/* COLORFUL LEARN CARDS */

.learn-section .card:nth-child(1) {
    background: #e8f5e9 !important;
}

.learn-section .card:nth-child(2) {
    background: #e3f2fd !important;
}

.learn-section .card:nth-child(3) {
    background: #fff8e1 !important;
}

/* =========================
   LEARN PAGE COLORS
========================= */

/* LEARN PAGE HERO */

.page-template-page-learn .page-hero {
    background: linear-gradient(
        135deg,
        #e8f5e9,
        #fff8e1
    );
}


/* POULTRY EDUCATION SECTION */

.page-template-page-learn .section {
    background: #f3f8f3;
}


/* LEARN CARDS */

.page-template-page-learn .card:nth-child(1) {
    background: #e8f5e9 !important;
}

.page-template-page-learn .card:nth-child(2) {
    background: #e3f2fd !important;
}

.page-template-page-learn .card:nth-child(3) {
    background: #fff3cd !important;
}


/* LEARN CARD ICONS */

.page-template-page-learn .card:nth-child(1) .card-icon {
    background: #c8e6c9;
}

.page-template-page-learn .card:nth-child(2) .card-icon {
    background: #bbdefb;
}

.page-template-page-learn .card:nth-child(3) .card-icon {
    background: #ffe082;
}

/* =========================
   LEARN PAGE - COLORFUL DESIGN
========================= */

/* FARMING KNOWLEDGE */

.page-hero {
    background: linear-gradient(
        135deg,
        #1b5e20,
        #43a047
    );
    color: #ffffff;
}

.page-hero .section-label {
    color: #ffd54f;
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p:not(.section-label) {
    color: #e8f5e9;
}


/* POULTRY EDUCATION */

.learn-section + .community-section {
    background: #fff8e1;
}


/* FEATURED TOPICS */

.learn-section {
    background: #f1f8e9;
    padding: 90px 20px;
}

.learn-section .card {
    background: #ffffff;
    border-radius: 18px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}


/* FEATURED TOPIC COLORS */

.learn-section .card:nth-child(1) {
    border-top: 5px solid #43a047;
}

.learn-section .card:nth-child(2) {
    border-top: 5px solid #f9a825;
}

.learn-section .card:nth-child(3) {
    border-top: 5px solid #2196f3;
}

.learn-section .card:nth-child(4) {
    border-top: 5px solid #e91e63;
}

.learn-section .card:nth-child(5) {
    border-top: 5px solid #795548;
}

.learn-section .card:nth-child(6) {
    border-top: 5px solid #2e7d32;
}


/* COMMUNITY CTA */

.community-section {
    background: #e8f5e9;
    padding: 75px 20px;
}

.community-content h2 {
    color: #1b5e20;
}


/* MOBILE */

@media (max-width: 768px) {

    .learn-section {
        padding: 65px 20px;
    }

    .community-section {
        padding: 60px 20px;
    }

}

/* =========================
   LEARN PAGE CATEGORY CARDS
========================= */

main > .section .cards .card:nth-child(1) {
    background: #e8f5e9;
}

main > .section .cards .card:nth-child(2) {
    background: #e3f2fd;
}

main > .section .cards .card:nth-child(3) {
    background: #fff8e1;
}

/* =========================
   FEATURED TOPIC CARDS
========================= */

.learn-section .cards {
    grid-template-columns: repeat(3, 1fr);
}

.learn-section .card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #e5e9e5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.learn-section .card:nth-child(1) {
    border-top: 5px solid #43a047;
}

.learn-section .card:nth-child(2) {
    border-top: 5px solid #2196f3;
}

.learn-section .card:nth-child(3) {
    border-top: 5px solid #f9a825;
}

.learn-section .card:nth-child(4) {
    border-top: 5px solid #e91e63;
}

.learn-section .card:nth-child(5) {
    border-top: 5px solid #795548;
}

.learn-section .card:nth-child(6) {
    border-top: 5px solid #2e7d32;
}

.learn-section .card h3 {
    color: #222;
    margin-bottom: 12px;
}

.learn-section .card p {
    color: #666;
    line-height: 1.7;
}

.learn-section .card-link {
    color: #2e7d32;
    font-weight: 600;
}

/* =========================
   FEATURED TOPIC HOVER
========================= */

.learn-section .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learn-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* =========================
   LEARN ARTICLE PAGES
========================= */

.page-content {
    max-width: 850px;
    margin: 0 auto;
}

.page-content h2 {
    color: #1b5e20;
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-content h3 {
    color: #2e7d32;
    font-size: 21px;
    margin-top: 28px;
    margin-bottom: 10px;
}

.page-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.page-content ul,
.page-content ol {
    padding-left: 25px;
    margin-bottom: 22px;
}

.page-content li {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ARTICLE TITLE */

.page-content > h1 {
    color: #1b5e20;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 3px solid #e8f5e9;
}

@media (max-width: 600px) {
    .page-content > h1 {
        font-size: 30px;
    }
}

/* HEADER LOGO */
.site-header .logo img {
    width: 150px;
    height: 90px;
    object-fit: contain;
    display: block;
}

/* =================================
   WHATSAPP STYLE COMMUNITY CHAT
================================= */

.community-chat-box {
    max-width: 900px;
    margin: 40px auto;
    background: #efeae2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


/* CHAT HEADER */

.community-chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #075e54;
    color: #fff;
}

.community-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.community-chat-header h3 {
    margin: 0 0 4px;
    color: #fff;
}

.community-chat-header p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}


/* MESSAGES */

.community-chat-messages {
    padding: 25px 18px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}


/* MESSAGE */

.community-message {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.my-community-message {
    flex-direction: row-reverse;
}


/* AVATAR */

.community-message-avatar,
.chat-user-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 22px;
}

.community-message-avatar img,
.chat-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* MESSAGE CONTENT */

.community-message-content {
    max-width: 75%;
}

.my-community-message .community-message-content {
    text-align: right;
}

.community-message-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #075e54;
}


/* MESSAGE BUBBLE */

.community-message-bubble {
    display: inline-block;
    padding: 10px 13px;
    background: #fff;
    border-radius: 8px;
    line-height: 1.5;
    text-align: left;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.my-community-message .community-message-bubble {
    background: #dcf8c6;
}


/* FOOTER */

.community-message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 4px;
}

.my-community-message .community-message-footer {
    justify-content: flex-end;
}

.community-message-footer small {
    font-size: 11px;
    color: #777;
}


/* REACTIONS */

.message-reactions {
    display: flex;
    gap: 3px;
}

.reaction-count {
    background: #fff;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.my-reaction {
    border: 1px solid #075e54;
}


/* REACTION BUTTONS */

.reaction-buttons {
    display: flex;
    gap: 3px;
    margin-top: 5px;
    opacity: 0;
    transition: 0.2s;
}

.community-message:hover .reaction-buttons {
    opacity: 1;
}

.reaction-form {
    display: inline;
    margin: 0;
}

.reaction-form button {
    border: none;
    background: transparent;
    padding: 3px 5px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
}

.reaction-form button:hover,
.reaction-form button.active-reaction {
    background: rgba(7,94,84,0.12);
}


/* CHAT INPUT */

.community-chat-form {
    background: #f0f2f5;
    padding: 15px;
    border-top: 1px solid #ddd;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.chat-user-info strong {
    display: block;
}

.chat-user-info span {
    display: block;
    font-size: 12px;
    color: #25d366;
}


/* INPUT */

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-input-wrapper textarea {
    flex: 1;
    min-height: 45px;
    max-height: 130px;
    resize: none;
    border: none;
    border-radius: 22px;
    padding: 12px 15px;
    outline: none;
    font-size: 15px;
    background: #fff;
}


/* EMOJI BUTTON */

.emoji-toggle {
    border: none;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
    padding: 7px;
}


/* SEND BUTTON */

.chat-send-button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #128c7e;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.chat-send-button:hover {
    transform: scale(1.05);
}


/* EMOJI PICKER */

.emoji-picker {
    display: none;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.emoji-picker-show {
    display: flex;
}

.emoji-picker button {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
}

.emoji-picker button:hover {
    background: #f0f0f0;
}


/* EMPTY CHAT */

.community-chat-empty {
    text-align: center;
    padding: 70px 20px;
}

.community-empty-icon {
    font-size: 50px;
    margin-bottom: 10px;
}


/* MOBILE */

@media (max-width: 768px) {

    .community-chat-box {
        margin: 25px 0;
        border-radius: 10px;
    }

    .community-chat-messages {
        min-height: 350px;
        padding: 18px 10px;
    }

    .community-message-content {
        max-width: 82%;
    }

    .community-message-bubble {
        font-size: 14px;
    }

    .reaction-buttons {
        opacity: 1;
    }

    .community-chat-header {
        padding: 15px;
    }

    .community-chat-header h3 {
        font-size: 16px;
    }

}

/* =========================
   LEARN BACK TO HOME
========================= */

.learn-back-home {
    text-align: center;
    padding: 30px 20px 50px;
}

.learn-back-home .btn {
    display: inline-block;
}

/* =========================
   FARM PRODUCT PHOTOS
========================= */

.catalog-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
}

.catalog-product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.catalog-product-photos {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.catalog-product-photos img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.catalog-product-content {
    padding: 15px;
}

.catalog-product-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.catalog-product-content p {
    margin: 0;
    line-height: 1.5;
}


/* =========================
   FARM PRODUCT UPLOAD FORM
========================= */

.photo-catalog-dashboard {
    margin-top: 40px;
}

.photo-catalog-dashboard .section-heading {
    margin-bottom: 25px;
}

.photo-catalog-dashboard .section-heading h2 {
    margin-bottom: 8px;
}

.photo-catalog-dashboard .section-heading p:not(.section-label) {
    margin: 0;
    max-width: 650px;
}

.catalog-upload-box {
    max-width: 750px;
    padding: 25px;
    margin-bottom: 45px;
}

.catalog-form-group {
    margin-bottom: 22px;
}

.catalog-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.catalog-form-group input[type="text"],
.catalog-form-group textarea,
.catalog-form-group input[type="file"] {
    width: 100%;
    box-sizing: border-box;
}

.catalog-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.catalog-form-group small {
    display: block;
    margin-top: 7px;
}

.catalog-form-group input[type="text"],
.catalog-form-group textarea {
    width: 500px;
    max-width: 100%;
}

/* =========================
   PUBLIC FARM PRODUCTS
========================= */

.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.catalog-product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.10);
}

.catalog-product-photos {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f7f7f7;
}

.catalog-product-photos img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.catalog-product-content {
    padding: 13px;
}

.catalog-product-content h3 {
    margin: 0 0 7px;
    font-size: 17px;
    font-weight: 600;
}

.catalog-product-content p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}

.catalog-farmer-info {
    margin-bottom: 14px;
    font-size: 13px;
}

.catalog-product-content .btn {
    font-size: 13px;
    padding: 8px 12px;
}

.catalog-no-photo {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}


/* TABLET */

@media (max-width: 900px) {

    .catalog-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .catalog-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .catalog-product-photos {
        height: 150px;
    }

    .catalog-product-photos img {
        height: 150px;
    }

    .catalog-product-content {
        padding: 10px;
    }

    .catalog-product-content h3 {
        font-size: 15px;
    }

    .catalog-product-content p {
        font-size: 13px;
    }

    .catalog-no-photo {
        height: 150px;
    }

}

/* =========================
   FARM PRODUCTS MARKETPLACE
========================= */

.farm-products-page {
    background: #f7f8f7;
}

.farm-products-page .section {
    padding-top: 45px;
}


/* PRODUCTS GRID */

.farm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}


/* PRODUCT CARD */

.farm-product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.farm-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.10);
}


/* PRODUCT IMAGE */

.farm-product-image {
    width: 100%;
    height: 210px;
    background: #f1f3f1;
    overflow: hidden;
}

.farm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* NO IMAGE */

.farm-product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
}


/* PRODUCT DETAILS */

.farm-product-details {
    padding: 16px;
}


/* PRODUCT NAME */

.farm-product-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}


/* DESCRIPTION */

.farm-product-description {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}


/* FARMER */

.farm-product-farmer {
    margin: 0 0 15px;
    font-size: 13px;
    color: #555;
}

.farm-product-farmer span {
    font-weight: 600;
    color: #333;
}


/* BUTTON */

.farm-product-button {
    display: inline-block;
    padding: 9px 13px;
    background: #2e7d32;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.farm-product-button:hover {
    background: #256628;
    color: #ffffff !important;
}


/* EMPTY STATE */

.farm-products-empty {
    text-align: center;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 50px 20px;
    margin-top: 30px;
}

.farm-products-empty-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.farm-products-empty h3 {
    margin-bottom: 8px;
}

.farm-products-empty p {
    margin: 0;
    color: #666;
}


/* TABLET */

@media (max-width: 1000px) {

    .farm-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* SMALL TABLET */

@media (max-width: 750px) {

    .farm-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .farm-product-image {
        height: 180px;
    }

}


/* MOBILE */

@media (max-width: 500px) {

    .farm-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .farm-product-image {
        height: 145px;
    }

    .farm-product-details {
        padding: 11px;
    }

    .farm-product-title {
        font-size: 15px;
    }

    .farm-product-description {
        font-size: 12px;
    }

    .farm-product-farmer {
        font-size: 12px;
    }

    .farm-product-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        font-size: 12px;
        padding: 8px;
    }

}

/* =========================
   VENDOR CONTACT BUTTON
========================= */

.vendor-contact {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
}

.vendor-phone-link {
    width: auto;
}

@media (max-width: 500px) {

    .vendor-contact {
        display: block;
        width: 100%;
        margin-top: 10px;
        padding: 10px 12px;
        box-sizing: border-box;
        text-align: center;
        white-space: normal;
    }

}

/* =========================================
   VENDOR DASHBOARD CARDS
========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.dashboard-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
}

.dashboard-card p {
    margin-bottom: 22px;
    line-height: 1.6;
}

.dashboard-card .btn {
    display: inline-block;
    text-decoration: none;
}

/* Tablet */

@media (max-width: 900px) {

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Mobile */

@media (max-width: 600px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dashboard-card {
        padding: 22px;
    }

}



.vendor-photo-item:hover img {
    transform: scale(1.04);
}


/* Tablet */
@media (max-width: 768px) {

    .vendor-photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

}


/* Phone */
@media (max-width: 480px) {

    .vendor-photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .vendor-photo-item {
        border-radius: 5px;
    }

}


/* =========================================
   CLEAN VENDOR PHOTO GALLERY
========================================= */

.profile-photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 20px !important;
}

.profile-photo-grid .profile-photo-item {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
}

.profile-photo-grid .profile-photo-item img.profile-catalog-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* TABLET */

@media (max-width: 768px) {

    .profile-photo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

}


/* PHONE */

@media (max-width: 480px) {

    .profile-photo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
    }

}


/* =========================================
   PROFESSIONAL VENDOR PROFILE
========================================= */

.profile-main h2 {
    margin-bottom: 25px;
}

.profile-detail {
    font-size: 16px;
    margin-bottom: 25px;
}

.profile-section {
    margin-top: 35px;
}

.profile-section h3 {
    font-size: 22px;
    margin-bottom: 18px;
}



    .profile-main h2 {
        font-size: 24px;
    }

    .profile-section h3 {
        font-size: 20px;
    }

    .profile-photo-upload {
        padding: 18px 0;
    }

    .profile-photo-upload input[type="file"] {
        max-width: 100%;
    }

}















