/* STATIC PAGE STYLES */

:root {
    --line-top: 0;
}

.pageTabBar {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.pageTabSwiper {
    width: 100%;
    overflow: hidden;
}

.pageTab-slide {
    width: auto !important;
    flex-shrink: 0;
}

.pageTab {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: var(--black-70);
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}
.pageTab div {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s;
}
.pageTab div img {
    width: 20px;
    height: 20px;
    object-fit: fill;
    margin-right: 10px;
    border-radius: unset;
}
.pageTab.active {
    color: var(--black-100);
    border-bottom: 2px solid var(--black-100);
}
.pageTab:hover div {
    background: var(--black-3);
    color: var(--black-100);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--green);
}

.breadcrumb i {
    font-size: 10px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.static-content {
    padding: 80px 0;
}

.content-single {
    /*max-width: 900px;*/
    /*margin: 0 auto;*/
}

/* Sidebar (deprecated) */
.static-sidebar {
    display: none;
}

.sidebar-menu {
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--border);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu li a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background: var(--yellow);
    color: #111;
}

/* Main Content Area */
.main-text {
    /*margin-top: 72px;*/
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.main-text h3 {
    font-size: 36px;
    font-weight: 700;
    margin: 32px 0 16px;
    line-height: 140%;
    color: #000;
}
@media (max-width: 600px) { .main-text h3 { font-size: 28px; } }

.main-text p {
    margin-bottom: 20px;
}

.main-text img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    /*margin: 20px 0 40px;*/
}

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

.stat-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--radius-md);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #111;
}

.contact-info-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
}

.contact-info-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.map-container {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Gallery Grid */
.gallery-section {
    margin-top: 32px;
}

.blocks {
    /*margin-top: 72px;*/
}
.blocks > * {
    /*margin-bottom: 72px;*/
}

.about-block-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.about-block-item {
    position: relative;
    border-radius: var(--radius-md, 6px);
    border: 1px solid #FDB719;
}
.about-block-item img {
    width: 100px;
    position: absolute;
    right: 12px;
    top: 12px;
    margin: 0;
    padding: 0;
}
.about-block-item img.icon {
    width: 48px
}
.about-block-item h5 {
    padding: 24px;
    padding-bottom: 8px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}
.about-block-text {
    padding: 0 24px 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}
.about-block-text p {
    margin: 0;
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: lightbox-in 0.25s ease;
    background-color: #fff;
}

@keyframes lightbox-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* About Page Sections */
.about-section {
    margin-top: 40px;
}

.about-section h3 {
    margin-bottom: 16px;
}

.about-section-image {
    margin-bottom: 24px;
}

.about-section-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

/* Rules Section */
.rules-grid.has-photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rules-photo img,
.rules-item-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

.rules-item-image {
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-single {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .page-header {
        padding: 30px 0;
        margin-bottom: 30px;
    }

    .page-title {
        font-size: 26px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-card {
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .map-container {
        margin-top: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rules-grid.has-photo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 24px 0;
        margin-bottom: 24px;
    }

    .page-title {
        font-size: 22px;
    }

    .static-content {
        padding: 50px 0;
    }

    .main-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .main-text h3 {
        /*font-size: 20px;*/
        margin: 24px 0 12px;
    }

    .main-text img {
        margin: 16px 0 24px;
        border-radius: var(--radius-md);
    }

    .contact-info-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-card {
        padding: 24px;
    }

    .contact-form-card h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .map-container {
        margin-top: 30px;
    }

    .map-container iframe {
        height: 300px;
    }

    .stat-item {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

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

@media (max-width: 576px) {
    .page-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 20px;
    }

    .breadcrumb {
        font-size: 12px;
        gap: 6px;
    }

    .static-content {
        padding: 40px 0;
    }

    .main-text {
        font-size: 14px;
    }

    .main-text img {
        margin: 12px 0 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .map-container iframe {
        height: 250px;
    }
}

.arrow-items > div {
    position: relative;
    margin-bottom: 10px;
}

.arrow-items .line::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: calc(100% - 52px);
    height: 1px;
    background-color: #FDB719;
}

.arrow-items i {
    font-size: 12px;
}

.arrow-items > div img {
    width: 32px;
    height: 32px;
    object-fit: fill;
    margin-right: 10px;
    border-radius: unset;
}

/* ===================== Production Page ===================== */
.production-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}
.production-intro-text .des {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.production-intro > div > img {
    width: 100%;
    /*height: 280px;*/
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

/* Bar chart */
.bar-chart-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 12px;
}
.bar-chart-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}
.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.bar-label {
    font-size: 12px;
    color: #555;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}
.bar-track {
    flex: 1;
    height: 14px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 2px;
}
.bar-fill.blue   { background: #2563eb; }
.bar-fill.orange { background: #f97316; }
.bar-fill.gray   { background: #9ca3af; }
.bar-legend {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    font-size: 12px;
    color: #555;
}
.bar-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.bar-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

/* History timeline */
.production-history {
    margin-bottom: 48px;
}
.history-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.history-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}
.history-year {
    font-size: 15px;
    font-weight: 700;
    color: var(--black-100);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.history-year::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #FDB719;
}
.history-item p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* Product cards grid */
.production-products {
    margin-bottom: 48px;
}

/* Farm stats */
.farm-stats {
    margin-bottom: 48px;
}
.farm-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.farm-stat-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.farm-stat-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.farm-stat-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.farm-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}
.farm-stat-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* Breeding section */
.production-breeding {
    margin-bottom: 48px;
}
.breeding-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.breeding-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
    display: block;
}
.breeding-item p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}


@media (max-width: 1024px) {
    .product-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .history-grid { grid-template-columns: repeat(2, 1fr); }
    .breeding-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .production-intro { grid-template-columns: 1fr; }
    .bar-chart-wrap { grid-template-columns: 1fr; }
    .product-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .history-grid { grid-template-columns: 1fr; }
    .farm-stats-grid { grid-template-columns: 1fr; }
    .breeding-grid { grid-template-columns: 1fr; }
    .farm-stat-card { grid-template-columns: 1fr; }
}

.technology-item {
    position: relative;
}
.technology-item .technology-item-photo {
    position: relative;
    aspect-ratio: 153/125;
    width: 100%;
    height: auto;
}
.technology-item .technology-item-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.technology-item h5 {
    width: 100%;
    padding: 10px;
    color: var(--black-100);
    font-size: 16px;
    font-weight: 600;
}
.technology-item div {
    color: var(--black-70);
    font-size: 16px;
    font-weight: 400;
}

.page-image {
    border: 1px solid var(--yellow);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
}