* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
        
        body {
            font-family: 'Sarabun', Arial, sans-serif;
            line-height: 1.6;
            color: #191970;
            background-color: #ffffff;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header Styles */
        .header {
            background: linear-gradient(135deg, #2f2f2f 0%, #191970 100%);
            color: white;
            padding: 20px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-icon {
            background: rgba(255,255,255,0.2);
            padding: 12px;
            border-radius: 50%;
            font-size: 24px;
        }

        .logo-text h1 {
            font-size: 1.8rem;
            margin-bottom: 5px;
        }

        .logo-text p {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .nav {
            display: flex;
            gap: 30px;
        }

        .nav a {
            color: white;
            text-decoration: none;
            padding: 10px 15px;
            border-radius: 12px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav a:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }
        
        .hero-section {
            background: linear-gradient(135deg, #2f2f2f 0%, #191970 100%);
            color: white;
            padding: 80px 0;
            text-align: center;
        }
        
        .hero-title {
            font-size: 2.5rem;
            margin-bottom: 20px;
            font-weight: 700;
        }
        
        .hero-subtitle {
            font-size: 1.2rem;
            margin-bottom: 40px;
            opacity: 0.9;
        }

        .pulse {
            animation: pulse 2s ease-in-out infinite alternate;
        }

        @keyframes pulse {
            from { transform: scale(1); }
            to { transform: scale(1.05); }
        }

        .hero-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .stat-item {
            text-align: center;
            padding: 20px;
            background: rgba(255,255,255,0.1);
            border-radius: 12px;
            backdrop-filter: blur(10px);
        }

        .stat-number {
            display: block;
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 1rem;
            opacity: 0.9;
        }

        .animate-fade-in {
            animation: fadeIn 1s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .main-content {
            background: white;
            margin-top: -50px;
            position: relative;
            z-index: 2;
            border-radius: 12px 20px 0 0;
            padding: 50px 0;
        }

        .section {
            margin-bottom: 80px;
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-title h2 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: #191970;
        }

        .section-title p {
            font-size: 1.2rem;
            color: #444444;
        }

        .company-card {
            background: linear-gradient(135deg, #2f2f2f 0%, #191970 100%);
            color: white;
            padding: 50px;
            border-radius: 12px;
            margin-bottom: 50px;
        }

        .company-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .company-header h2 {
            font-size: 2.2rem;
            margin-bottom: 10px;
        }

        .company-header h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            opacity: 0.9;
        }

        .company-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .company-item {
            background: rgba(255,255,255,0.1);
            padding: 25px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
        }

        .company-item i {
            font-size: 1.5rem;
            margin-right: 15px;
            margin-bottom: 10px;
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .service-card {
            background: white;
            padding: 40px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
        }

        .service-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 25px;
            background: linear-gradient(135deg, #2f2f2f 0%, #191970 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 32px;
        }

        .service-card h3 {
            font-size: 1.4rem;
            margin-bottom: 20px;
            color: #191970;
        }

        .service-card p {
            color: #444444;
            line-height: 1.8;
        }

        .management-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .management-card {
            background: white;
            padding: 40px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .management-card:hover {
            transform: translateY(-5px);
        }

        .management-avatar {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, #2f2f2f 0%, #191970 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 32px;
        }

        .management-position {
            font-size: 1.1rem;
            color: #191970;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .management-name {
            font-size: 1.3rem;
            font-weight: bold;
            color: #191970;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .project-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
        }

        .project-header {
            background: linear-gradient(135deg, #2f2f2f 0%, #191970 100%);
            color: white;
            padding: 25px;
        }

        .project-title {
            font-size: 1.4rem;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .project-location {
            opacity: 0.9;
        }

        .project-body {
            padding: 25px;
        }

        .project-detail {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            color: #444444;
        }

        .project-detail i {
            margin-right: 12px;
            color: #191970;
            width: 20px;
        }

        .project-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #191970;
            text-align: right;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #f0f0f0;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin: 60px 0;
        }
        
        .feature-card {
            background: white;
            padding: 30px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
        }
        
        .feature-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 20px;
            background: #2f2f2f;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }
        
        .feature-title {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: #191970;
        }
        
        .feature-description {
            color: #444444;
            line-height: 1.8;
        }
        
        .categories-section {
            background: #ffffff;
            padding: 80px 0;
            margin: 80px 0;
            border-radius: 12px;
        }
        
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }
        
        .category-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
        }
        
        .category-card:hover {
            background: #2f2f2f;
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        }
        
        .category-name {
            font-size: 1.1rem;
            font-weight: 600;
            margin-top: 10px;
        }
        
        .category-icon {
            width: 50px;
            height: 50px;
            margin: 0 auto 15px;
            background: #2f2f2f;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .category-card:hover .category-icon {
            background: white;
            color: #191970;
        }
        
        .news-section {
            background: #ffffff;
            padding: 60px 0;
            text-align: center;
            border-radius: 12px;
            margin: 80px 0;
        }
        
        .news-title {
            font-size: 2rem;
            color: #191970;
            margin-bottom: 20px;
        }
        
        .news-description {
            font-size: 1.1rem;
            color: #444444;
        }
        
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }
            
            .features-grid, .services-grid, .projects-grid {
                grid-template-columns: 1fr;
            }
            
            .categories-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }

            .header-content {
                flex-direction: column;
                gap: 20px;
            }

            .nav {
                gap: 15px;
                flex-wrap: wrap;
                justify-content: center;
            }

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

        /* Contact Section Styles */
        .contact-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

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

        .contact-card {
            background: white;
            padding: 30px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .contact-card:hover {
            transform: translateY(-5px);
        }

        .contact-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, #2f2f2f 0%, #191970 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }

        .contact-card h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: #191970;
        }

        .contact-card p {
            color: #444444;
            line-height: 1.8;
        }

        .contact-card a {
            color: #191970;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .contact-card a:hover {
            color: #191970;
        }

        /* Footer Styles */
        
/* ปรับ Footer ให้ชิดขอบและดูเรียบร้อย */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    border-radius: 0;
    background: #111;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-bottom {
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

        .footer-section h3 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: #fff;
        }

        .footer-section h4 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: #fff;
        }

        .footer-section p {
            color: #ccc;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .footer-section ul {
            list-style: none;
            padding: 0;
        }

        .footer-section ul li {
            margin-bottom: 10px;
        }

        .footer-section ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-section ul li a:hover {
            color: #191970;
        }

        .footer-section ul li i {
            margin-right: 10px;
            color: #191970;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            background: #2f2f2f;
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .footer-bottom p {
            color: #ccc;
            font-size: 0.9rem;
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #2f2f2f 0%, #191970 100%);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
        }

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

        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        }

        @media (max-width: 768px) {
            .contact-container,
            .contact-info {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .social-links {
                justify-content: center;
            }

            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
        }

        /* Product Showcase Styles */
        .product-showcase {
            margin: 40px 0;
        }

        .carousel-container {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .carousel {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }

        .carousel-slide {
            min-width: 100%;
            position: relative;
        }

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

        .carousel-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            padding: 20px;
            text-align: center;
        }

        .carousel-caption h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .carousel-caption p {
            font-size: 1rem;
            opacity: 0.9;
        }

        .carousel-controls {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
        }

        .carousel-control {
            background: rgba(255,255,255,0.3);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.3s ease;
        }

        .carousel-control:hover {
            background: rgba(255,255,255,0.5);
        }

        .carousel-indicators {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
        }

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

        .indicator.active {
            background: white;
            transform: scale(1.2);
        }

        @media (max-width: 768px) {
            .carousel-slide img {
                height: 300px;
            }

            .carousel-caption h3 {
                font-size: 1.2rem;
            }

            .carousel-caption p {
                font-size: 0.9rem;
            }
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.8);
            z-index: 2000;
            overflow-y: auto;
        }

        .modal-content {
            position: relative;
            background-color: #fff;
            margin: 50px auto;
            padding: 30px;
            width: 90%;
            max-width: 1000px;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .close-modal {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 30px;
            cursor: pointer;
            color: #444444;
            transition: color 0.3s ease;
        }

        .close-modal:hover {
            color: #191970;
        }

        .modal-detail {
            display: none;
        }

        .modal-detail.active {
            display: block;
        }

        .detail-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 20px;
        }

        .detail-content img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .detail-text h3 {
            color: #191970;
            margin: 20px 0 10px;
        }

        .detail-text ul {
            list-style: none;
            padding: 0;
        }

        .detail-text ul li {
            margin-bottom: 10px;
            padding-left: 25px;
            position: relative;
        }

        .detail-text ul li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #191970;
        }

        .view-details-btn {
            background: rgba(255,255,255,0.2);
            border: 2px solid white;
            color: white;
            padding: 8px 20px;
            border-radius: 12px;
            cursor: pointer;
            margin-top: 15px;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .view-details-btn:hover {
            background: white;
            color: #191970;
        }

        @media (max-width: 768px) {
            .detail-content {
                grid-template-columns: 1fr;
            }

            .modal-content {
                margin: 20px;
                padding: 20px;
            }
        }

        /* Category Modal Styles */
        .category-detail {
            display: none;
        }

        .category-detail.active {
            display: block;
        }

        .category-content {
            margin-top: 20px;
        }

        .category-text h3 {
            color: #191970;
            margin: 20px 0 10px;
        }

        .category-text p {
            color: #444444;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .category-text ul {
            list-style: none;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .category-text ul li {
            background: #ffffff;
            padding: 15px;
            border-radius: 12px;
            position: relative;
            padding-left: 35px;
        }

        .category-text ul li:before {
            content: "✓";
            position: absolute;
            left: 15px;
            color: #191970;
        }

        .category-card {
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        @media (max-width: 768px) {
            .category-text ul {
                grid-template-columns: 1fr;
            }
        }

        .mega-nav {
            position: relative;
            background: #fff;
            font-family: 'Sarabun', Arial, sans-serif;
            z-index: 2000;
        }
        .main-menu {
            display: flex;
            list-style: none;
            background: #fff;
            padding: 0;
            margin: 0;
            border-bottom: 4px solid #ffffff;
        }
        .main-menu > li {
            position: relative;
        }
        .main-menu > li > a {
            display: block;
            padding: 18px 28px;
            color: #111;
            font-weight: 600;
            text-decoration: none;
            transition: background 0.2s, color 0.2s;
        }
        .main-menu > li > a:hover,
        .main-menu > li.active > a {
            background: #2f2f2f;
            color: #fff;
        }

        /* Mega Menu */
        .has-mega-menu {
            position: relative;
        }
        .mega-menu {
            display: none;
            position: absolute;
            left: 0;
            top: 100%;
            background: #fff;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
            padding: 0;
            min-width: 600px;
            width: max-content;
            border-radius: 0 0 8px 8px;
            border-top: 4px solid #191970;
            z-index: 1000;
            flex-wrap: wrap;
        }
        .has-mega-menu:hover > .mega-menu,
        .has-mega-menu:focus-within > .mega-menu {
            display: flex;
        }
        .mega-menu-col {
            display: flex;
            flex-direction: column;
            min-width: 250px;
            padding: 24px 32px 24px 24px;
            border-right: 1px solid #eee;
        }
        .mega-menu-col:last-child {
            border-right: none;
        }
        .mega-menu-col > a,
        .has-submenu > a {
            color: #191970;
            text-decoration: none;
            padding: 8px 0;
            font-weight: 500;
            transition: color 0.2s;
            position: relative;
        }
        .mega-menu-col > a:hover,
        .has-submenu > a:hover {
            color: #111;
        }

        /* Submenu */
        .has-submenu {
            position: relative;
        }
        .has-submenu > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
        }
        .has-submenu .arrow {
            font-size: 0.9em;
            margin-left: 8px;
        }
        .submenu {
            display: none;
            position: absolute;
            left: 100%;
            top: 0;
            background: #fff;
            min-width: 220px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
            border-radius: 0 8px 8px 0;
            border-left: 4px solid #191970;
            z-index: 1100;
            padding: 12px 0;
        }
        .has-submenu:hover > .submenu,
        .has-submenu:focus-within > .submenu {
            display: block;
        }
        .submenu a {
            display: block;
            color: #191970;
            padding: 8px 24px;
            text-decoration: none;
            font-weight: 400;
            transition: background 0.2s, color 0.2s;
        }
        .submenu a:hover {
            background: #2f2f2f;
            color: #fff;
        }

        /* Responsive */
        @media (max-width: 900px) {
            .main-menu {
                flex-direction: column;
            }
            .main-menu > li > a {
                padding: 14px 18px;
            }
            .mega-menu {
                min-width: 100vw;
                left: 0;
                right: 0;
                flex-direction: column;
                border-radius: 0 0 8px 8px;
            }
            .mega-menu-col {
                min-width: 100%;
                border-right: none;
                border-bottom: 1px solid #eee;
                padding: 18px 18px 18px 18px;
            }
            .mega-menu-col:last-child {
                border-bottom: none;
            }
            .submenu {
                left: 0;
                top: 100%;
                border-left: none;
                border-top: 4px solid #191970;
                border-radius: 0 0 8px 8px;
            }
        }

/* === Project Grid Final Fixes === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
}

.project-header {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* === Project Body & Value Fixes === */
.project-body {
  display: flex;
  flex-direction: column;
  gap: 12px; /* ระยะห่างระหว่างบรรทัด */
}

.project-value {
  margin-top: auto;
}

.project-header {
    position: relative;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease, background-color 0.3s ease;
    filter: brightness(0.6); /* สีจางเริ่มต้น */
}

.project-card:hover .project-header {
    filter: brightness(1); /* เมื่อ hover ทำให้ภาพสว่างขึ้น */
}


/* Custom Rounded and Blurred Menu Style */
.nav {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    justify-content: center;
    margin-top: 20px;
}

.nav a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background: #ffffff;
    color: #191970;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}



/* ปรับเมนูหลักให้สวยและโค้งมนขึ้น */
.main-menu {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 12px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.main-menu > li > a {
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.main-menu > li > a:hover,
.main-menu > li.active > a {
    background: white;
    color: #191970 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}



/* แก้ header และเมนูให้โปร่งใสและไม่มีพื้นหลังขาว */
header,
.header,
.mega-nav {
    background: transparent !important;
    backdrop-filter: blur(10px);
}

.main-menu {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 12px 24px;
    margin: 0 auto;
    justify-content: center;
}



/* ปรับเมนูหลักให้ใช้สีธีม #191970 และไม่โปร่งใส */
header,
.header,
.mega-nav {
    background: #191970 !important;
    backdrop-filter: none;
}

.main-menu {
    background: #34346d;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 12px 24px;
    margin: 0 auto;
    justify-content: center;
}



/* ไล่เฉดสีใน hero section */
.hero-section {
    background: linear-gradient(135deg, #1f1f3a, #191970) !important;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.15), rgba(0,0,0,0));
    pointer-events: none;
    z-index: -1;
}


footer {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    position: relative;
    left: 0;
    right: 0;
}

.footer-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0;
    padding: 40px 0;
}

footer.footer {
    width: 100%;
    background: #111;
    padding: 60px 0 20px 0;
    margin: 0;
}



.footer {
  background: #111;
  color: white;
  padding: 60px 20px 20px;
  width: 100%;
  box-sizing: border-box;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h4,
.footer-section h3 {
  margin-bottom: 10px;
  color: #fff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
  color: #ccc;
}

.footer-section ul li i {
  margin-right: 8px;
  color: #888;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #aaa;
}
