/* ========== 1. CSS Variables ========== */
    :root {
        --primary: #0a4d8c;
        --primary-dark: #042449;
        --primary-light: #e8f2fb;
        --secondary: #1e3a5f;
        --accent: #2563eb;
        --accent-light: #60a5fa;
        --gold: #d4af37;
        --white: #ffffff;
        --gray-50: #f8fafc;
        --gray-100: #f1f5f9;
        --gray-200: #e2e8f0;
        --gray-300: #cbd5e1;
        --gray-400: #94a3b8;
        --gray-500: #6b7280;
        --gray-600: #475569;
        --gray-700: #334155;
        --gray-800: #1e293b;
        --text: #0f172a;
        --text-light: #64748b;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        --gradient-primary: linear-gradient(135deg, #0a4d8c 0%, #1e3a5f 100%);
        --gradient-accent: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
        --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f59e0b 100%);
        --gradient-e-card: linear-gradient(145deg, #1a5276 0%, #0a3d5e 100%);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
        font-family: 'Prompt', 'Inter', system-ui, -apple-system, sans-serif;
        overflow-x: hidden;
    }

    /* ========== 2. Hero Section ========== */
    .hero-section {
        position: relative;
        padding: 0;
        overflow: hidden;
        z-index: 1;
        min-height: 550px;
        display: flex;
        align-items: center;
    }

    .hero-bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('assets/carousel/tree.jpg');
        background-size: cover;
        background-position: center;
        z-index: 0;
    }
    /* ===== Governance Policy ===== */

.governance-policy-wrap{
    max-width:1300px;
    margin:50px auto 0;
    padding:0 20px;
}

.governance-policy-header,
.governance-manual-btn{
    background:#b3b3b3;
    border-radius:30px;
    padding:15px 30px;
    display:flex;
    align-items:center;
    gap:20px;
}

.governance-policy-header{
    margin-bottom:30px;
}

.governance-policy-icon{
    width:48px;
    height:48px;
    object-fit:contain;
    flex-shrink:0;
}

.governance-policy-title{
    font-size:2rem;
    font-weight:600;
    color:#000;
    line-height:1.2;
    margin:0;
}

.governance-policy-subtitle{
    font-size:1.4rem;
    font-weight:500;
    color:#004aad;
    line-height:1.4;
}

.governance-policy-content{
    background:#d9d9d9;
    border-radius:30px;
    padding:30px 40px;
    margin-bottom:40px;
}

.governance-policy-content ul{
    margin:0;
    padding-left:30px;
}

.governance-policy-content li{
    color:#000;
    font-size:1.35rem;
    line-height:2;
    margin-bottom:5px;
}

.governance-manual-btn{
    text-decoration:none;
    max-width:1000px;
    transition:all .3s ease;
}

.governance-manual-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.governance-manual-text{
    font-size:1.8rem;
    font-weight:500;
    color:#000;
}

/* ===== Responsive ===== */

@media (max-width: 992px){

    .governance-policy-title{
        font-size:1.7rem;
    }

    .governance-policy-subtitle{
        font-size:1.2rem;
    }

    .governance-policy-content li{
        font-size:1.15rem;
    }

    .governance-manual-text{
        font-size:1.5rem;
    }
}

@media (max-width: 768px){

    .governance-policy-header,
    .governance-manual-btn{
        padding:15px 20px;
        gap:15px;
    }

    .governance-policy-icon{
        width:40px;
        height:40px;
    }

    .governance-policy-title{
        font-size:1.3rem;
    }

    .governance-policy-subtitle{
        font-size:1rem;
    }

    .governance-policy-content{
        padding:20px 25px;
    }

    .governance-policy-content li{
        font-size:1rem;
        line-height:1.8;
    }

    .governance-manual-text{
        font-size:1.1rem;
    }
}
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            rgba(10, 77, 140, 0.9) 0%, 
            rgba(10, 77, 140, 0.75) 20%,
            rgba(10, 77, 140, 0.5) 45%,
            rgba(10, 77, 140, 0.2) 70%,
            transparent 100%);
        z-index: 1;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(to top, var(--gray-50), transparent);
        z-index: 2;
    }

    .hero-floating {
        position: absolute;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255,255,255,0.08), transparent);
        border-radius: 50%;
        top: -150px;
        left: -100px;
        animation: float 20s infinite ease-in-out;
        z-index: 1;
    }

    .hero-floating-2 {
        position: absolute;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255,255,255,0.05), transparent);
        border-radius: 50%;
        bottom: -80px;
        right: 10%;
        animation: float 15s infinite ease-in-out reverse;
        z-index: 1;
    }

    @keyframes float {
        0%, 100% { transform: translate(0, 0) rotate(0deg); }
        50% { transform: translate(30px, 20px) rotate(5deg); }
    }

    .hero-content {
        position: relative;
        z-index: 3;
        text-align: left;
        max-width: 900px;
        margin: 0;
        padding: 100px 0 100px 80px;
    }

    .hero-logo {
        font-size: 3.5rem;
        font-weight: 800;
        color: var(--white);
        letter-spacing: -0.02em;
        margin-bottom: 16px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .hero-tagline {
        font-size: 2rem;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 8px;
        text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    }

    .hero-subtitle {
        font-size: 1.3rem;
        color: rgba(255,255,255,0.95);
        max-width: 600px;
        margin: 0;
        line-height: 1.6;
    }

    /* ========== 3. ESG Cards Section ========== */
    .esg-cards-section {
        position: relative;
        padding: 80px 0 60px;
        z-index: 2;
        scroll-margin-top: 30px;
    }

    .esg-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 40px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
    }

    .esg-card {
        flex: 1;
        min-width: 300px;
        max-width: 400px;
        border-radius: 32px;
        transition: var(--transition);
        cursor: pointer;
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-xl);
        aspect-ratio: 3 / 3.5;
    }

    .esg-card.e { background: linear-gradient(145deg, #4a7ff7 0%, #004aad 100%); }
    .esg-card.s { background: linear-gradient(145deg, #9ca3af 0%, #6b7280 100%); }
    .esg-card.g { background: linear-gradient(145deg, #4b5563 0%, #374151 100%); }

    .esg-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-2xl);
    }

    .esg-front {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        background: inherit;
        border-radius: 32px;
    }

    .esg-front-letter {
        font-size: 160px;
        font-weight: 800;
        color: rgba(255,255,255,0.9);
        text-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }

    .esg-back {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 38px 30px 42px 30px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        display: flex;
        flex-direction: column;
    }

    .esg-card:hover .esg-front {
        opacity: 0;
        visibility: hidden;
    }

    .esg-card:hover .esg-back {
        opacity: 1;
        visibility: visible;
    }

    .esg-icon {
        width: 75px;
        height: 75px;
        object-fit: contain;
        margin-bottom: 20px;
        filter: brightness(0) invert(1);
    }

    .esg-title {
        font-size: 1.9rem;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

    .esg-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 18px 0 18px;
    }

    .esg-badge {
        background: rgba(255,255,255,0.2);
        padding: 6px 16px;
        border-radius: 30px;
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--white);
        letter-spacing: 0.5px;
    }

    .esg-text {
        font-size: 0.9rem;
        color: rgba(255,255,255,0.85);
        line-height: 1.65;
        margin: 0;
    }

    /* ===== Environmental Management Section ===== */
    .env-management-section {
        padding: 80px 0;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    }

    .env-header-wrap {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 50px;
        flex-wrap: wrap;
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .env-big-letter {
        width: 380px;
        height: 380px;
        min-width: 380px;
        border-radius: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.95);
        font-size: 280px;
        font-weight: 800;
        line-height: 1;
        font-family: 'Prompt', 'Inter', sans-serif;
        text-shadow: 0 5px 20px rgba(0,0,0,0.2);
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        cursor: pointer;
    }

    .env-big-letter.e-color { background: linear-gradient(145deg, #4a7ff7 0%, #004aad 100%); }
    .env-big-letter.s-color { background: linear-gradient(145deg, #9ca3af 0%, #6b7280 100%); }
    .env-big-letter.g-color { background: linear-gradient(145deg, #4b5563 0%, #374151 100%); }

    .env-big-letter:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-2xl);
    }

    .env-title-area {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .env-title-line-1 {
        margin: 0;
        color: #4a7fc5;
        font-size: 5rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -2px;
    }

    .env-title-line-2 {
        margin: 0;
        color: #4a7fc5;
        font-size: 5rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -2px;
        margin-bottom: 40px;
    }

    .env-title-inline {
        display: flex;
        align-items: baseline;
        margin-bottom: 15px;
    }

    .env-title-main {
        font-size: 5rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -2px;
    }

    .env-title-sub {
        font-size: 4rem;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -2px;
        margin-left: -4px;
    }

    .env-desc-text {
        font-size: 1.2rem;
        color: var(--text-light);
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .governance-desc-text {
        font-size: 1.2rem;
        color: #4b5563;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .env-cert-row {
        display: flex;
        align-items: center;
        gap: 30px;
        flex-wrap: nowrap;
        width: 100%;
    }

    .env-cert-box {
        height: 140px;
        padding: 20px 30px;
        background: #ffffff;
        border-radius: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        flex: 1;
        min-width: 0;
        cursor: default;
    }

    .env-cert-box.border-e { border: 4px solid #4a7fc5; }
    .env-cert-box.border-s { border: 4px solid #4a7fc5; }
    .env-cert-box.border-g { border: 4px solid #4a7fc5; }

    .env-cert-box:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

    .env-cert-box img {
        display: block;
        max-height: 90px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        pointer-events: none;
    }

    /* ===== Carousel Slider สำหรับชุมชนและพนักงาน ===== */
    .carousel-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 28px;
        background: #e5e7eb;
        min-height: 380px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-slider {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%;
        height: 100%;
    }

    .carousel-slide {
        min-width: 100%;
        height: 380px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 28px;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 28px;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.8);
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 24px;
        font-weight: bold;
        color: #333;
        transition: all 0.3s ease;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-btn:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: var(--shadow-md);
    }

    .carousel-btn-prev { left: 15px; }
    .carousel-btn-next { right: 15px; }

    .carousel-dots {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10;
    }

    .carousel-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--primary);
        width: 30px;
        border-radius: 6px;
    }

    /* ===== Carbon Footprint Section ===== */
    .carbon-section {
        padding: 80px 0;
        background: var(--white);
    }

    .carbon-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
    }

    .carbon-card {
        background: #b4d7ff;
        padding: 32px;
        border-radius: 28px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .carbon-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

    /* Social Section - ใช้ grid แบบเดียวกับ carbon-grid ทุกประการ */
    .social-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 1500px;
        margin: 50px auto 0;
        padding: 0 30px;
    }

    .social-card {
        background: #e5e7eb;
        border-radius: 28px;
        overflow: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        min-height: 380px;
        display: flex;
        flex-direction: column;
    }

    .social-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

    .social-card .carousel-container {
        border-radius: 28px;
        min-height: 500px;
        flex: 1;
    }

    .social-card .carousel-slide {
        height: 500px;
    }

    .carbon-icon { font-size: 3.5rem; margin-bottom: 20px; }
    .carbon-title { font-size: 1.5rem; font-weight: 700; color: #004aad; margin-bottom: 10px; }
    .carbon-subtitle { font-size: 1.0rem; font-weight: 0; color: rgba(10, 10, 10, 0.8); margin-bottom: 20px; }
    .carbon-text { font-size: 1.2rem; color: rgba(0, 0, 0, 0.75); line-height: 1.6; margin-bottom: 20px; }
    .carbon-text strong { color: #141414; font-weight: 700; }
    .carbon-badges { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; align-items: center; }

    .carbon-chart-container {
        margin: 20px 0;
        text-align: center;
    }
    
    .carbon-chart-container canvas {
        max-width: 100%;
        height: auto;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 10px;
    }

    .carbon-badge-img {
        background: transparent;
        border-radius: 16px;
        padding: 15px 25px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 140px;
        height: 110px;
    }

    .carbon-badge-img img { max-height: 75px; width: auto; object-fit: contain; }
    .product-item { margin-bottom: 25px; position: relative; }

    .product-image {
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
        height: 160px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        position: relative;
        overflow: hidden;
    }

    .product-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

    .product-badge {
        position: absolute;
        bottom: 12px;
        right: 12px;
        background: var(--white);
        border-radius: 30px;
        padding: 8px 18px;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-dark);
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: var(--shadow-sm);
    }

    .product-badge img { max-height: 60px; width: auto; }

    .product-name {
        font-size: 1rem;
        font-weight: 700;
        color: #000000;
        line-height: 1.4;
    }
    .product-name small {
        font-weight: 400;
        color: rgba(0, 0, 0, 0.7);
        font-size: 0.7rem;
    }

    /* Stats Icons Section */
    .stats-section {
        position: relative;
        padding: 60px 0;
        background: linear-gradient(135deg, var(--primary-light), var(--white));
        margin-top: 0;
        z-index: 2;
    }

    .stats-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
    .stat-item { text-align: center; flex: 1; min-width: 180px; }

    .stat-number {
        font-size: 2.2rem;
        font-weight: 800;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: block;
        line-height: 1.2;
    }

    .stat-label { font-size: 0.9rem; color: var(--text-light); margin-top: 8px; }

    .scroll-target { scroll-margin-top: 30px; }

    /* Water Drop SVG Style */
    .water-drop-chart {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .drop-icon {
        display: inline-block;
        width: 50px;
        height: 60px;
        position: relative;
    }
    
    .drop-icon svg { width: 100%; height: 100%; }

    /* ========== ปุ่มย้อนกลับไปด้านบนสุด ========== */
    .back-to-top-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background-color: var(--primary);
        color: var(--white);
        border: none;
        border-radius: 50%;
        box-shadow: var(--shadow-lg);
        cursor: pointer;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .back-to-top-btn.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top-btn:hover {
        background-color: var(--accent);
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

    .carbon-badge-img {
    background: #ffffff;  /* ✅ เพิ่มพื้นหลังสีขาว */
    border-radius: 16px;
    padding: 15px 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 110px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* ✅ เพิ่มเงาเล็กน้อยให้ดูมีมิติ */
    transition: all 0.3s ease;
}

.carbon-badge-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.carbon-badge-img img {
    max-height: 75px;
    width: auto;
    object-fit: contain;
    display: block;  /* ✅ ป้องกันช่องว่างใต้รูป */
}
    
    /* ========== Responsive ========== */
    @media (max-width: 1400px) {
        .env-title-line-1, .env-title-line-2, .env-title-main { font-size: 4rem; }
        .env-title-sub { font-size: 3.2rem; }
        .env-cert-box { height: 120px; padding: 15px 25px; }
        .env-cert-box img { max-height: 75px; }
        .carbon-grid { gap: 30px; }
        .social-grid { gap: 30px; }
        .product-image { height: 140px; }
        .carbon-badge-img { min-width: 120px; height: 95px; padding: 12px 20px; }
        .carbon-badge-img img { max-height: 65px; }
        .carousel-slide { height: 340px; }
        .social-card .carousel-slide { height: 340px; }
        .social-card { min-height: 340px; }
        .social-card .carousel-container { min-height: 340px; }
        .product-badge img { max-height: 38px; }
    }
    
    @media (max-width: 1200px) {
        .env-big-letter { width: 300px; height: 300px; min-width: 300px; font-size: 220px; }
        .env-title-line-1, .env-title-line-2, .env-title-main { font-size: 3.2rem; }
        .env-title-sub { font-size: 2.5rem; }
        .env-cert-box { height: 110px; padding: 12px 20px; }
        .env-cert-box img { max-height: 70px; }
        .carbon-card { padding: 25px; }
        .carbon-title { font-size: 1.3rem; }
        .product-image { height: 130px; }
        .carbon-badge-img { min-width: 110px; height: 85px; padding: 10px 18px; }
        .carbon-badge-img img { max-height: 55px; }
        .carousel-slide { height: 320px; }
        .social-card .carousel-slide { height: 320px; }
        .social-card { min-height: 320px; }
        .social-card .carousel-container { min-height: 320px; }
        .product-badge img { max-height: 35px; }
        .drop-icon { width: 40px; height: 48px; }
    }

    @media (max-width: 991px) {
        .hero-content { padding: 80px 0 80px 40px; }
        .hero-logo { font-size: 2.5rem; }
        .hero-tagline { font-size: 1.5rem; }
        .hero-subtitle { font-size: 1rem; }
        .esg-cards-section { padding: 60px 0 50px; }
        .esg-grid { gap: 25px; }
        .esg-card { min-width: 280px; max-width: 320px; aspect-ratio: 3 / 3.3; }
        .esg-front-letter { font-size: 120px; }
        
        .env-header-wrap { flex-direction: column; align-items: center; text-align: center; gap: 35px; }
        .env-title-area { align-items: center; width: 100%; }
        .env-title-line-1, .env-title-line-2, .env-title-inline { text-align: center; justify-content: center; }
        .env-cert-row { justify-content: center; flex-wrap: wrap; }
        .env-cert-box { flex: 0 1 auto; min-width: 220px; }
        .env-big-letter { width: 260px; height: 260px; min-width: 260px; font-size: 180px; border-radius: 40px; }
        .env-title-line-1, .env-title-line-2, .env-title-main { font-size: 3rem; }
        .env-title-sub { font-size: 2.3rem; }
        
        .carbon-grid { grid-template-columns: 1fr; }
        .social-grid { grid-template-columns: 1fr; gap: 30px; }
        .carbon-section { padding: 60px 0; }
        .product-image { height: 150px; }
        .carousel-slide { height: 350px; }
        .social-card .carousel-slide { height: 350px; }
        .product-badge img { max-height: 40px; }
        .drop-icon { width: 35px; height: 42px; }
    }

    @media (max-width: 767px) {
        .hero-content { padding: 60px 0 60px 30px; }
        .hero-logo { font-size: 1.8rem; }
        .hero-tagline { font-size: 1.2rem; }
        .hero-subtitle { font-size: 0.9rem; }
        .hero-section { min-height: 380px; }
        .esg-cards-section { padding: 40px 0 30px; }
        .esg-grid { flex-direction: column; align-items: center; gap: 30px; }
        .esg-card { min-width: 100%; max-width: 400px; }
        .stats-grid { gap: 30px; }
        .stat-number { font-size: 1.5rem; }
        
        .env-management-section { padding: 50px 0; }
        .env-big-letter { width: 220px; height: 220px; min-width: 220px; font-size: 150px; border-radius: 32px; }
        .env-title-line-1, .env-title-line-2, .env-title-main { font-size: 2.2rem; }
        .env-title-sub { font-size: 1.8rem; }
        .env-title-line-2 { margin-bottom: 30px; }
        .env-cert-row { gap: 20px; }
        .env-cert-box { height: 100px; padding: 10px 18px; min-width: 180px; }
        .env-cert-box img { max-height: 65px; }
        
        .carbon-section { padding: 40px 0; }
        .carbon-card { padding: 20px; }
        .carbon-title { font-size: 1.2rem; }
        .product-image { height: 140px; }
        .carbon-badge-img { min-width: 100px; height: 80px; padding: 8px 15px; }
        .carbon-badge-img img { max-height: 50px; }
        .carousel-slide { height: 280px; }
        .social-card .carousel-slide { height: 280px; }
        .carousel-btn { width: 35px; height: 35px; font-size: 18px; }
        .product-badge { padding: 6px 14px; }
        .product-badge img { max-height: 32px; }
        .drop-icon { width: 30px; height: 36px; }
        .back-to-top-btn { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 16px; }
    }

    @media (max-width: 480px) {
        .hero-content { padding: 50px 0 50px 20px; }
        .hero-logo { font-size: 1.4rem; }
        .hero-tagline { font-size: 1rem; }
        .hero-subtitle { font-size: 0.8rem; }
        .esg-card { aspect-ratio: 3 / 3.5; }
        .esg-front-letter { font-size: 100px; }
        
        .env-big-letter { width: 160px; height: 160px; min-width: 160px; font-size: 110px; border-radius: 28px; }
        .env-title-line-1, .env-title-line-2, .env-title-main { font-size: 1.6rem; }
        .env-title-sub { font-size: 1.3rem; }
        .env-title-line-2 { margin-bottom: 25px; }
        .env-cert-row { gap: 15px; flex-direction: column; align-items: stretch; }
        .env-cert-box { height: 80px; padding: 8px 16px; border-width: 3px; min-width: auto; }
        .env-cert-box img { max-height: 50px; }
        
        .carbon-badges { gap: 12px; }
        .carbon-badge-img { min-width: 85px; height: 70px; padding: 6px 12px; }
        .carbon-badge-img img { max-height: 45px; }
        .product-image { height: 120px; }
        .carousel-slide { height: 240px; }
        .social-card .carousel-slide { height: 240px; }
        .carousel-btn { width: 30px; height: 30px; font-size: 14px; }
        .product-badge { padding: 4px 10px; }
        .product-badge img { max-height: 28px; }
        .drop-icon { width: 25px; height: 30px; }
        
    }
    
/* บังคับแก้ขนาดการ์ด ESG บนมือถือ */
@media screen and (max-width: 768px) {
    .esg-card {
        aspect-ratio: unset !important; /* ปลดล็อกอัตราส่วนเดิม */
        height: auto !important;        /* ปล่อยให้ความสูงขยายตามเนื้อหา */
        min-height: 480px !important;    /* ความสูงขั้นต่ำกันการ์ดเล็กลงเกินไป */
    }

    .esg-back {
        position: relative !important;
        padding: 24px 20px 28px !important; /* ลดระยะขอบด้านใน */
        height: 100% !important;
        justify-content: flex-start !important;
    }

    .esg-icon {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 12px !important;
    }

    .esg-title {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
    }

    .esg-badges {
        margin: 8px 0 12px 0 !important;
        gap: 6px !important;
    }

    .esg-badge {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
    }

    .esg-text {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        overflow: visible !important;
        display: block !important;
    }
}
