﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}



/* ปรับขนาดโลโก้ */
.logo-large {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

/* เพิ่ม padding ให้ body เพราะ navbar fixed จะทับ content */
body {
    padding-top: 80px; /* ปรับตามความสูง navbar */
}

/* ถ้าใช้ fixed-top */
.fixed-top {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05) !important;
}

/* ถ้าใช้ sticky-top */
.sticky-top {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Navbar link styles */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #2563eb !important;
    }

    /* Active link */
    .navbar-nav .nav-link.active {
        color: #2563eb !important;
        font-weight: 600;
    }

/* Consult Now button */
.navbar-nav .btn-primary {
    background-color: #2563eb;
    border: none;
    padding: 8px 24px !important;
    margin-left: 10px;
    transition: all 0.3s ease;
}

    .navbar-nav .btn-primary:hover {
        background-color: #1d4ed8;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    }

/* Responsive */
@media (max-width: 768px) {
    .logo-large {
        height: 40px;
    }

    body {
        padding-top: 70px;
    }

    .navbar-nav .btn-primary {
        margin: 10px 0;
        width: 100%;
    }
}

/* Optional: Navbar shrink on scroll (JavaScript) */
.navbar-scrolled {
    padding: 5px 0 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
}

    .navbar-scrolled .logo-large {
        height: 40px;
    }

.hero-full-white {
    background-color: #ffffff;
    padding: 100px 0;
   /* min-height: 100vh;*/
    display: flex;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-full-title {
    font-size: 2.0rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #0f172a;
    letter-spacing: -0.02em;
    max-width: 900px; /* จำกัดความกว้างเพื่อให้อ่านง่าย */
}

.hero-full-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 40px;
    max-width: 800px; /* จำกัดความกว้างเพื่อให้อ่านง่าย */
    font-weight: 400;
}

/* Buttons - Left Aligned */
.hero-full-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-consult {
    background-color: #2563eb;
    color: white;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

    .btn-consult:hover {
        background-color: #1d4ed8;
        transform: translateY(-3px);
        box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
    }

.btn-learn {
    background-color: transparent;
    color: #2563eb;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid #2563eb;
    transition: all 0.3s ease;
}

    .btn-learn:hover {
        background-color: #2563eb;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
    }

/* Image */
.hero-full-image-wrapper {
    margin: 50px 0 40px;
}

.hero-full-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

/* Trust Badges - Left Aligned */
.trust-badges {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.trust-item {
    text-align: left;
}

.trust-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 5px;
}

.trust-label {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-full-title {
        font-size: 3rem;
        max-width: 800px;
    }

    .hero-full-description {
        font-size: 1.2rem;
        max-width: 700px;
    }
}

@media (max-width: 992px) {
    .hero-full-white {
        padding: 80px 0;
    }

    .hero-full-title {
        font-size: 2.5rem;
        max-width: 700px;
    }

    .hero-full-description {
        font-size: 1.1rem;
        max-width: 600px;
    }

    .trust-badges {
        gap: 40px;
    }

    .trust-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-full-white {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-full-title {
        font-size: 2rem;
        max-width: 100%;
    }

    .hero-full-description {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }

    .hero-full-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
    }

    .btn-consult, .btn-learn {
        width: 100%;
        padding: 14px 30px;
        text-align: center;
    }

    .trust-badges {
        gap: 25px;
        justify-content: flex-start; /* ชิดซ้ายบนมือถือ */
    }

    .trust-item {
        flex: 1 1 calc(50% - 25px);
        text-align: left;
    }

    .trust-number {
        font-size: 1.5rem;
    }

    .trust-label {
        font-size: 0.8rem;
    }

    .hero-full-image {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-full-title {
        font-size: 1.5rem;
    }

    .hero-full-description {
        font-size: 0.9rem;
    }

    .trust-badges {
        gap: 15px;
    }

    .trust-number {
        font-size: 1.2rem;
    }

    .trust-label {
        font-size: 0.7rem;
    }

    .hero-full-image {
        max-height: 200px;
    }
}

/* Animations */
.hero-full-title {
    animation: fadeInLeft 0.8s ease;
}

.hero-full-description {
    animation: fadeInLeft 0.8s ease 0.2s;
    animation-fill-mode: both;
}

.hero-full-buttons {
    animation: fadeInLeft 0.8s ease 0.4s;
    animation-fill-mode: both;
}

.hero-full-image-wrapper {
    animation: fadeInLeft 0.8s ease 0.6s;
    animation-fill-mode: both;
}

.trust-badges {
    animation: fadeInLeft 0.8s ease 0.8s;
    animation-fill-mode: both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Optional: Add decorative elements on the right */
.hero-full-white {
    position: relative;
    overflow: hidden;
}

    .hero-full-white::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30%;
        height: 100%;
        background: linear-gradient(270deg, rgba(37, 99, 235, 0.02) 0%, transparent 100%);
        pointer-events: none;
    }



.hero-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 คอลัมน์เท่ากัน */
    gap: 30px;
    margin: 60px 0 50px;
}




.hero-images-one-grid {
    display: grid;
    grid-template-columns: 1fr; /* 2 คอลัมน์เท่ากัน */
    gap: 30px;
    margin: 60px 0 50px;
}


.hero-image-grid-item {
    position: relative;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.hero-image-grid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-image-one-grid {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.hero-image-grid-item:hover {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

    .hero-image-grid-item:hover .hero-image-grid {
        transform: scale(1.02);
    }

.image-label-grid {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 400;
    color: #64748b;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 16px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(0, 0, 0, 0.02);
    white-space: nowrap;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .hero-images-grid {
        grid-template-columns: 1fr; /* 1 คอลัมน์บนมือถือ */
        gap: 20px;
    }

    .hero-image-grid-item {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-image-grid-item {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero-image-grid-item {
        height: 200px;
    }
}




.hydrogen-grid-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8faff 0%, #eef2f9 100%);
}

/* Header Styles */
.hydrogen-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2b4c;
    margin-bottom: 20px;
}

.h2-symbol {
    color: #2563eb;
    font-weight: 800;
    font-size: 2.8rem;
    margin-right: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Styles */
.hydrogen-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    aspect-ratio: 4/3; /* หรือ 16/9 ตามต้องการ */
    cursor: pointer;
}

    .hydrogen-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    }

.hydrogen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hydrogen-card:hover .hydrogen-image {
    transform: scale(1.1);
}

/* Overlay Styles */
.hydrogen-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hydrogen-card:hover .hydrogen-overlay {
    transform: translateY(0);
}

.hydrogen-overlay span {
    font-size: 1rem;
    font-weight: 500;
    display: block;
    text-align: center;
}

/* Bottom H2 Symbol */
.h2-symbol-bottom {
    font-size: 3rem;
    font-weight: 800;
    color: #2563eb;
    opacity: 0.3;
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .hydrogen-grid-section {
        padding: 60px 0;
    }

    .hydrogen-title {
        font-size: 2.2rem;
    }

    .h2-symbol {
        font-size: 2.4rem;
    }

    .hydrogen-card {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .hydrogen-grid-section {
        padding: 40px 0;
    }

    .hydrogen-title {
        font-size: 1.8rem;
    }

    .h2-symbol {
        font-size: 2rem;
    }

    .hydrogen-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 51, 102, 0.8), transparent);
        padding: 15px;
    }

        .hydrogen-overlay span {
            font-size: 0.9rem;
        }

    .h2-symbol-bottom {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hydrogen-title {
        font-size: 1.5rem;
    }

    .h2-symbol {
        font-size: 1.8rem;
    }

    .hydrogen-card {
        aspect-ratio: 1/1;
    }

    .hydrogen-overlay span {
        font-size: 0.8rem;
    }
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Optional: Hover effect for cards */
.hydrogen-card::before {
 /*   content: 'H₂';*/
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.8);
    padding: 5px 15px;
    border-radius: 50px;
    z-index: 2;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.hydrogen-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Gradient border on hover */
.hydrogen-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.hydrogen-card:hover::after {
    border-color: #2563eb;
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

    .cookie-text strong {
        color: #fff;
        margin-right: 5px;
    }

    .cookie-text span {
        color: #ddd;
        font-size: 0.95rem;
    }

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .cookie-buttons .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .cookie-buttons .btn-primary {
        background-color: #007bff;
        border: none;
    }

        .cookie-buttons .btn-primary:hover {
            background-color: #0056b3;
        }

    .cookie-buttons .btn-outline-secondary {
        color: white;
        border-color: rgba(255,255,255,0.5);
    }

        .cookie-buttons .btn-outline-secondary:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }
}