/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
}
a {
    text-align: inherit;
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Layout (Weasyprint friendly block/table layout instead of flex) */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reusable UI Components */
.btn-primary {
    font-family: "Inter", Helvetica, sans-serif;
    display: inline-block;
    background-color: #d6334a;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-align: center;
}
.section-title {
    font-family: "Inter", Helvetica, sans-serif;
    text-align: center;
    font-size: 36px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    color: #111111;
}

/* --- HEADER SECTION --- */
.header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}
.header-table {
    display: table;
    width: 100%;
}
.header-logo-cell {
    display: table-cell;
    vertical-align: middle;
    width: 20%;
}
.header-nav-cell {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}
.logo-img {
    height: 34px;
    width: 180px;
    letter-spacing: 1px;
}
.nav-menu {
    display: inline-block;
}
.nav-item {
    font-family: 'Inter', sans-serif;
    display: inline-block;
    margin-left: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555555;
}
.nav-item:hover {
    color: #d6334a;
}

/* --- HERO BANNER --- */
.hero {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #eae7e2;
    /* Thay bang background-image thuc te cua ban sau nay */
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('img/hero-cake-bg.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 160px 0;
    text-align: center;
}
.hero-title {
    font-family: "Josefin Slab", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 80px;
    line-height: 90px;
    text-align: center; 
    letter-spacing: 0%;
    color: #000000;
}

/* --- PRODUCTS SECTION --- */
.products-section {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}
.product-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 15px 0;
    margin-bottom: 30px;
}
.product-card-cell {
    display: table-cell;
    background: #ffffff;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    vertical-align: top;
}
.product-card-cell.featured {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #f0e6e6;
}
.product-img-wrapper {
    height: 140px;
    margin-bottom: 15px;
    display: block;
}
.product-img-wrapper img {
    margin: 0 auto;
    max-height: 100%;
}
.product-name {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    margin-top: 10px;
}
.pagination-dots {
    margin: 20px 0 25px 0;
}
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cccccc;
    margin: 0 4px;
}
.dot.active {
    background-color: #d6334a;
}

/* --- ABOUT US SECTION (Overlay style) --- */
.about-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('img/about-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}
.about-overlay-box {
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    top: 90px;
    padding: 40px;
    border-radius: 16px;
    border-radius: 56px 56px 56px 0px;
}
.about-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: normal;
    color: #111111;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.about-company-name {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    line-height: 24px;
    font-weight: 500;
    color: #111111;
    margin-bottom: 15px;
}
.about-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color:  #111111;
    margin-bottom: 25px;
    line-height: 24px;
}

/* --- NEWS CENTRE SECTION --- */
.news-section {
    padding: 60px 0;
    background-color: #ffffff;
}
.news-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 20px 0;
}
.news-card-cell {
    display: table-cell;
    vertical-align: top;
    background-color: #DA3745;
    border-radius: 12px;
    overflow: hidden;
}
.news-img-wrapper {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.news-img-wrapper img {
    width: 100%;
    object-fit: cover;
    display: block;
}
.news-content {
    padding: 20px 20px 15px 20px;
}
.news-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 15px;
}
.news-divider {
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}
.news-footer {
    display: table;
    width: 100%;
}
.news-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #ffffff;
    display: table-cell;
    text-align: left;
    vertical-align: middle;
}
.news-arrow {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #ffffff;
    display: table-cell;
    text-align: right;
    vertical-align: middle;
    line-height: 1;
}

/* --- PRODUCT APPLICATION --- */
.application-section {
    padding: 61px 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: #ffffff;
    background-image: url('img/product-application-bg.png');  
    background-size: cover;
    background-position: center;
}
.application-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 20px 0;
    margin-bottom: 30px;
}
.application-card {
    display: table-cell;
    vertical-align: top;
    position: relative;
}
.application-img-wrapper {
    border-radius: 12px;
    border: 6px solid #ffffff;
    overflow: hidden;
    background-color: #f5f5f5;
    aspect-ratio: 1 / 1;
}
.application-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.application-caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* --- FOOTER SECTION --- */
/* --- FOOTER SECTION --- */
.footer {
    background-color: #ffffff;
    padding: 60px 0 30px 0;
    border-top: 1px solid #eeeeee;
    font-size: 13px;
    color: #111111;
}
.footer-logo {
    margin-bottom: 40px;
}
.footer-logo img {
    height: 34px;
    width: auto;
    display: block;
}
.footer-columns {
    display: table;
    width: 100%;
    table-layout: fixed;
}
.footer-col {
    display: table-cell;
    vertical-align: top;
    padding-right: 30px;
}
.footer-col-contact {
    width: 25%;
}
.footer-col-links {
    width: 15%;
}
.footer-col-form {
    width: 30%;
}
.footer-col-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 18px;
    text-transform: capitalize;
}
.footer-info-item {
    margin-bottom: 18px;
}
.footer-info-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 4px;
}
.footer-info-item p {
    margin: 0;
    line-height: 1.5;
}
.footer-info-item a {
    color: #111111;
    text-decoration: none;
}
.footer-info-item a:hover {
    color: #d6334a;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #111111;
    text-decoration: none;
}
.footer-links a:hover {
    color: #d6334a;
}
.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    resize: none;
}
.footer-form textarea {
    padding: 12px;
    min-height: 80px;
}
.footer-form button {
    width: 100%;
    background-color: #d6334a;
    color: #ffffff;
    border: none;
    padding: 12px 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    text-align: left;
    font-size: 12px;
    color: #111111;
}

/* ==================== RESPONSIVE ==================== */

@media screen and (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Header */
    .header {
        width: 100%;
        max-width: 100%;
    }
    .header-table {
        display: block;
    }
    .header-logo-cell {
        display: block;
        width: 100%;
        text-align: center;
        padding-bottom: 15px;
    }
    .logo-img {
        margin: 0 auto;
        height: 28px;
        width: 150px;
    }
    .header-nav-cell {
        display: block;
        width: 100%;
        text-align: center;
    }
    .nav-menu {
        display: inline-block;
    }
    .nav-item {
        margin-left: 0;
        margin-right: 8px;
        font-size: 11px;
        line-height: 2;
    }

    /* Hero */
    .hero {
        padding: 100px 0;
        max-width: 100%;
    }
    .hero-title {
        font-size: 42px;
        line-height: 50px;
    }

    /* Section title */
    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    /* Products */
    .products-section {
        padding: 40px 0;
    }
    .product-grid {
        display: block;
        border-spacing: 0;
    }
    .product-card-cell {
        display: inline-block;
        width: calc(50% - 15px);
        margin: 7px 0;
        padding: 18px 10px;
        box-sizing: border-box;
        vertical-align: top;
    }
    .product-card-cell:nth-child(even) {
        margin-left: 10px;
    }
    .product-card-cell:nth-child(odd) {
        margin-right: 10px;
    }
    .product-img-wrapper {
        height: 100px;
    }

    /* About */
    .about-section {
        max-width: 100%;
        padding: 40px 0;
    }
    .about-overlay-box {
        height: auto;
        max-width: 100%;
        padding: 30px 25px;
        border-radius: 20px;
    }
    .about-subtitle {
        font-size: 26px;
    }
    .about-company-name {
        font-size: 18px;
    }
    .about-text {
        font-size: 13px;
    }

    /* News */
    .news-section {
        padding: 40px 0;
    }
    .news-grid {
        display: block;
        border-spacing: 0;
    }
    .news-card-cell {
        display: block;
        margin-bottom: 15px;
    }

    /* Application */
    .application-section {
        max-width: 100%;
        padding: 40px 0;
    }
    .application-grid {
        display: block;
        border-spacing: 0;
    }
    .application-card {
        display: inline-block;
        width: calc(50% - 15px);
        margin: 7px 0;
        box-sizing: border-box;
        vertical-align: top;
    }
    .application-card:nth-child(even) {
        margin-left: 10px;
    }
    .application-card:nth-child(odd) {
        margin-right: 10px;
    }
    .application-caption {
        font-size: 12px;
        padding: 6px 14px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 25px;
    }
    .footer-logo {
        margin-bottom: 25px;
    }
    .footer-columns {
        display: block;
    }
    .footer-col {
        display: block;
        width: 100% !important;
        padding-right: 0;
        margin-bottom: 25px;
    }
    .footer-bottom {
        margin-top: 30px;
    }
}

/* Small phone */
@media screen and (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }
    .hero-title {
        font-size: 32px;
        line-height: 40px;
    }
    .product-card-cell,
    .application-card {
        width: 100%;
        margin: 8px 0;
    }
    .product-card-cell:nth-child(even),
    .product-card-cell:nth-child(odd),
    .application-card:nth-child(even),
    .application-card:nth-child(odd) {
        margin-left: 0;
        margin-right: 0;
    }
}