@charset "ISO-8859-1";

/* Smooth Font Rendering */
body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* ================= HERO ================= */

.cabbage-hero {
    background: url('/images/csr-banner.webp') center/cover no-repeat;
    height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.cabbage-hero .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.45));
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeUp 1.2s ease;
}

.hero-tag {
    font-size: 14px;
    letter-spacing: 3px;
    color: #90ee90;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-top: 15px;
}

/* ================= OVERVIEW ================= */

.cabbage-overview {
    padding: 80px 0;
}

.cabbage-overview h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.cabbage-overview p {
    color: #555;
    line-height: 1.7;
}

.highlight-points div {
    margin-bottom: 10px;
    font-weight: 500;
    transition: 0.3s;
}

.highlight-points div:hover {
    transform: translateX(6px);
    color: #2e7d32;
}

.product-img {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

.product-img:hover {
    transform: scale(1.03);
}

/* ================= SPEC SECTION ================= */

.cabbage-spec-section {
    background: #f8faf8;
    padding: 80px 0;
}

.spec-box {
    background: #fff;
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.spec-box:hover {
    transform: translateY(-5px);
}

.spec-box h2 {
    margin-bottom: 25px;
    font-weight: 700;
}

.spec-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.spec-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.capacity-box {
    background: linear-gradient(135deg,#e8f5e9,#f1f8f4);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.highlight-points div {
    margin-bottom: 10px;
    font-weight: 500;
    transition: 0.3s;
}

/* ================= BUTTON ANIMATION ================= */

.spec-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-inquiry,
.btn-download {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
}

.btn-inquiry {
    background: #2e7d32;
    color: #fff;
}

.btn-download {
    background: #000;
    color: #fff;
}

.btn-inquiry:hover {
    background: #1b5e20;
    box-shadow: 0 10px 25px rgba(46,125,50,0.4);
    transform: translateY(-3px);
}

.btn-download:hover {
    background: #333;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.btn-inquiry::after,
.btn-download::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.6s;
}

.btn-inquiry:hover::after,
.btn-download:hover::after {
    width: 300px;
    height: 300px;
}

/* ================= QUALITY ================= */

.quality-section {
    padding: 80px 0;
    background: #fff;
}

.quality-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    transition: 0.4s;
    text-align: center;
}

.quality-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* ================= ANIMATION ================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 991px) {

    .hero-content h1 {
        font-size: 34px;
    }

    .cabbage-overview,
    .cabbage-spec-section,
    .quality-section {
        padding: 60px 20px;
    }

    .spec-box {
        padding: 30px;
        margin-top: 30px;
    }

    .product-img {
        margin-bottom: 30px;
    }

    .cabbage-overview .row,
    .cabbage-spec-section .row {
        text-align: center;
    }

    .highlight-points {
        text-align: center;
    }

    .spec-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-tag {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .spec-table td {
        font-size: 14px;
    }

    .btn-inquiry,
    .btn-download {
        width: 100%;
        text-align: center;
    }

}

/* ================= PROFESSIONAL SPEC TABLE ================= */

.spec-table tr {
    transition: 0.3s ease;
}

.spec-table tr:nth-child(odd) {
    background: #f9fbf9;
}

.spec-table tr:nth-child(even) {
    background: #ffffff;
}

.spec-table tr:hover {
    background: #eef7f1;
    transform: scale(1.01);
}

.spec-table td:first-child {
    font-weight: 600;
    color: #2e7d32;
    width: 45%;
    position: relative;
}

.spec-table td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #2e7d32;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* ================= SPEC SECTION FULL HEIGHT IMAGE ================= */

.cabbage-spec-section .row.align-items-center {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.spec-image-box {
    flex: 1 1 50%;
    display: flex;
}

.spec-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}

.spec-box {
    flex: 1 1 50%;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ================= MOBILE ================= */
@media (max-width: 991px) {
    .cabbage-spec-section .row.align-items-center {
        flex-direction: column;
    }

    .spec-image-box {
        margin-bottom: 30px;
        flex: unset;
    }

    .spec-image-box img {
        height: auto;
        max-height: 400px;
    }

    .spec-box {
        padding-left: 0;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .spec-buttons {
        flex-direction: column;
    }
}


/* ================= SPEC IMAGE MOBILE FIX ================= */
@media (max-width: 991px) {
    /* Make the spec image proportional to the table on mobile */
    .spec-image-box img {
        height: auto;         /* let image scale naturally */
        max-height: 10px;    /* adjust this as needed */
        width: 100%;          /* full width of container */
        object-fit: cover;    /* keep aspect ratio and crop nicely */
        border-radius: 18px;  /* keep existing style */
    }
}
