@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Noto+Sans+Thai:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap');

:root {
    --background-color: #ffffff;
    --font-color: #0e0d0d;
    --hover-color: #ff5c05;
    --navborder-color: #ea0303;
    --seconadry-color: #3ec8ff;
    --font2-color: #006ac0;
    --font3-color: #002d5b;
}

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

body {
    font-family: "Noto Sans Thai", serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #fdfbfd;
    font-weight: normal;
}

.top-bar {
    width: 100%;
    padding: 10px 20px;
    border-bottom: 1px solid #dddddd;
    border-bottom: none;
    background: linear-gradient(to bottom, #dff6ff, #ffffff);
}

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

}

#nav-links,
header {
    padding: 20px;
    background-color: #fffefe;
}


/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icons a img {
    width: 16px;
    height: auto;
    transition: transform 0.5s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}


/* Logo */
.logo img {
    height: 100px;
    left: 50%;
}

/* Actions (Search and Hamburger Menu) */
.actions {
    display: flex;
    gap: 15px;
}

.actions i {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.actions i:hover {
    color: #0078d7;
}


/* Language Switcher Styling */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher a {
    text-decoration: none;
}

.language-switcher img {
    width: 20px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.language-switcher img:hover {
    transform: scale(1.1);
}

/* ปรับการจัดตำแหน่งของ Search Bar */
.search-bar {
    display: none;
    gap: 5px;
}


/* กล่องค้นหา */
.search-bar input {
    flex: 1;
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* ปุ่มค้นหา */
.search-bar button {
    padding: 5px 15px;
    font-size: 14px;
    background-color: #4cc6ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #0084ff;
}

.search-bar.active {
    display: flex;
    align-items: center;
}

/* Hamburger Menu */
#hamburger-icon {
    display: block;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-links ul li a {
    color: #333 !important;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px 15px;
    background-color: var(--background-color);
    position: relative;
    z-index: 1000;
}

.nav-links ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.nav-links ul li {
    position: relative;
}

.nav-links ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links ul li a:hover {
    color: #007BFF;
}

.insight-metrics {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0px;
}


.metric-box:hover {
    transform: translateY(-5px);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
}

.metric-unit {
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 0.2rem;
    color: #333;
}

.metric-label {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #555;
}

@media (max-width: 768px) {
    .insight-metrics {
        flex-direction: column;
    }

    .metric-box {
        width: 100%;
        max-width: 300px;
    }
}


/* Fix Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 250px;
        height: 100%;
        background-color: var(--background-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 0;
        z-index: 2000;
        overflow-y: auto;
        transition: right 0.3s ease-in-out;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 5px;
        /* Reduce space */
    }

    .nav-links ul li {
        width: 100%;
        text-align: center;
        padding: 5px 0;
        /* Reduce padding */
    }

    .nav-links ul li a {
        font-size: 16px;
        width: 100%;
        display: block;
        padding: 10px 0;
    }
}




/* Dropdown Menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 130px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}


.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #000;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #007BFF;
}



/* Responsive Design */
@media (max-width: 768px) {
    .nav-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links ul li a {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .nav-links ul li a {
        font-size: 14px;
        padding: 8px 10px;
    }

    .logo img {
        height: 80px;
    }
}

/* Responsive for tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 10px 15px;
    }

    .logo img {
        height: 80px;
    }

    .actions i {
        font-size: 18px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: white;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-links ul li {
        text-align: center;
        width: 100%;
        padding: 8px 0;
    }

    .nav-links ul li a {
        font-size: 16px;
        padding: 10px 15px;
    }

    #hamburger-icon {
        display: block;
        font-size: 22px;
        cursor: pointer;
    }
}


/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu.active+.services {
    margin-top: 100px;
}

/* Close Icon */
#close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: black;
    cursor: pointer;
}

/* Adjust Dropdown Menu Styling */
.dropdown-menu1 {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 130px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

/* Ensure Dropdown Menu Stays Open When Hovered */
.dropdown1:hover .dropdown-menu1 {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Adjust Dropdown Parent Styling */
.dropdown1 {
    position: relative;
    cursor: pointer;
}

.dropdown-menu1 li {
    display: block;
}

.dropdown-menu1 a {
    display: block;
    padding: 10px 15px;
    color: #000;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu1 a:hover {
    background-color: #f0f0f0;
    color: #007BFF;
}


/* Responsive Design */
@media (max-width: 768px) {
    .ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ul li a {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .ul li a {
        font-size: 14px;
        padding: 8px 10px;
    }

    .logo img {
        height: 80px;
    }
}

/* Menu Logo */
.menu-logo {
    margin-bottom: 20px;
    text-align: center;
}

.menu-logo img {
    height: 80px;
}

/* Menu Content */
.menu-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

.menu-section {
    flex: 1 1 30%;
    /* Adjust for responsiveness */
    margin: 10px;
}

.menu-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--font3-color);
    font-weight: bold;
}

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

.menu-section ul li {
    margin: 5px 0;
}

.menu-section ul li a {
    text-decoration: none;
    color: var(--font3-color);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu-section ul li a:hover {
    color: var(--hover-color);
}

.menu-social-icons {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 15px;
}

.menu-social-icons a {
    font-size: 1.2rem;
    color: black;
    transition: color 0.3s ease;
}

#hamburger-icon {
    font-size: 1.5rem;
    color: black;
    cursor: pointer;
}

.menu-link {
    text-decoration: none;
    color: var(--font3-color);
    transition: color 0.3s ease;
}

.menu-link:hover {
    color: var(--hover-color);
}

/* Hide search and language switcher by default on mobile */
@media (max-width: 768px) {

    .language-switcher,
    .search-bar {
        display: none;
    }

    /* Show inside the fullscreen menu */
    .fullscreen-menu .language-switcher,
    .fullscreen-menu .search-bar {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}


/*line*/
.contact-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.contact-item:nth-child(2) {
    background-color: white;
    border: 1px solid #28a745;
    color: #28a745;
}

.contact-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 1.2rem;
}

.contact-item:hover {
    background-color: #1e7e34;
    color: white;
}

.contact-item:nth-child(2):hover {
    background-color: #28a745;
    color: white;
}

@media screen and (max-width: 450px) {
    .contact-container {
        flex-direction: row;
        gap: 15px;
        bottom: 10px;
    }

    .contact-item {
        width: 90%;
        padding: 12px;
        font-size: 1rem;
        text-align: center;
        white-space: nowrap;
    }

    .contact-item .icon {
        margin-right: 8px;
        /* Maintain spacing between icon and text */
    }
}


/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 188.8px) !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

@media screen and (max-width: 1024px) {
    .hero {
        height: calc(100vh - 100px) !important;
    }
}


/* Background Image with Animation */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/hero-bg1.jpg') no-repeat center center/cover;
    transform-origin: center;
    animation: zoomAnimation 10s infinite alternate ease-in-out;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    max-width: 800px;
    padding: 20px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-content h1 span {
    color: var(--background-color);
}

.hero-content p {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--background-color);
}

/* Hero Buttons */
.hero-buttons {
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    text-decoration: none;
}

.btn-primary {
    background-color: #ff7f50;
    color: white;
    margin-right: 10px;
}

.btn-primary:hover {
    background-color: #ff5722;
}

.btn-secondary {
    background-color: white;
    color: #333;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: transparent;
    color: white;
}

.btn-secondary i {
    margin-right: 8px;
}

/* Zoom In & Zoom Out Animation */
@keyframes zoomAnimation {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}



/* .carousel-container {
    max-width: 1200px;
    margin: 30px auto;
    overflow: hidden;
}


.carousel_items {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    height: 500px;
}

.carousel_item {
    position: relative;
    min-width: 100%;
    height: 500px;
    transition: transform 0.5s ease-in-out;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
} */

/* Services Section Start */
.services {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--font-color);
    text-align: center;
    width: 100vw;
    height: min(fit-content, 45vh);
    padding: 3rem 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 20px 5rem;
    border-radius: 0;
    z-index: 1;
    margin-bottom: 30px;
    transition: background-image 1s ease-in-out;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}


.services-header h2 {
    font-size: 4rem;
    font-weight: bold;
    color: var(--background-color);
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 90%;
    max-width: 1200px;
    z-index: 2;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(12, 12, 12, 0.2);
    transition: all 0.3s ease;
    background: rgba(253, 249, 249, 0.1);
    backdrop-filter: blur(5px);
}

.service-card:hover {
    background-color: rgba(29, 185, 233, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #eef0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.service-icon img {
    width: 60%;
    height: auto;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--background-color);
    margin-bottom: 10px;
    font-weight: bold;
}

@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services {
        padding: 30px 15px;
    }

    .service-card {
        width: 90%;
        margin: 10px auto;
        padding: 15px;
    }

    .services-header h2 {
        font-size: 2.5rem;
    }
    .service-card h3 {
        font-size: 1.25rem;
    }
}

/* Wrapper Section */
.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    margin-top: 50px;
}


.inspection-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background: linear-gradient(to right, rgba(0, 33, 71, 0.9) 40%, rgba(0, 33, 71, 0) 100%); */
    border-radius: 15px;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    min-height: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.info-content {
    flex: 1;
    padding: 40px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-content h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.info-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.5;
}


.info-content button {
    background: #0a0a26;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    outline: none;
    text-decoration: none;
}

.info-content a {
    text-decoration: none;
}

.info-content button i {
    margin-right: 8px;
}

.info-content button:hover {
    background: #008cff;
    box-shadow: 0 12px 25px rgba(139, 227, 253, 0.5);
}

.info-content button:active {
    transform: scale(0.95);

}



/* Responsive Design */
@media screen and (max-width: 768px) {
    .inspection-info {
        flex-direction: column;
        text-align: center;
    }

    .info-content {
        padding: 30px;
    }

    /* .info-image img {
        width: 100%;
        height: auto;
        border-radius: 0;
    } */
}


/* General Section Styling */
.why-choose-us {
    max-width: min(1200px, 100vw);
    height: fit-content;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--font2-color);
    margin-bottom: 40px;
    position: relative;
}

.content-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    margin-bottom: 80px;
}

.icon-box img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Text Content */
.text-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    align-items: self-start;
    text-align: left;
}

.text-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

/* Right Image Section */
.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    max-width: 100%;
    border-radius: 8px;
    height: 350px;
    object-fit: cover;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
    .content-container {
        flex-direction: column;
        text-align: center;
    }

    .text-section {
        order: 1;
        text-align: left;
    }

    .text-item {
        flex-direction: row;
        align-items: center;
    }

    .image-section {
        order: 2;
        margin-top: 20px;
    }

    .image-section img {
        height: auto;
    }

    .text-content h3 {
        font-size: 18px;
    }

    .text-content p {
        font-size: 14px;
    }
}



.certifications {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 70px;
    padding-top: 5px;
    margin-left: 40px;
}

.certification {
    text-align: center;
    max-width: 150px;
}

.certification img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.certification p {
    font-size: 12px;
    color: #333;
    margin: 8px 0 0 0;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 768px) {
    .certifications {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-left: 0;
        padding: 10px;
    }

    .certification {
        max-width: 100%;
    }

    .certification img {
        max-width: 80px;
    }

    .certification p {
        font-size: 10px;
    }
}


.single-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;

}

.single-image {
    height: auto;
    width: 400px;
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
}

/* projets */
.projects {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    top: 3PX;
}

.projects-title {
    font-size: 2em;
    color: var(--font-color);
    margin: 0 0 20px 0;
    padding-left: 10px;
    font-weight: bold;

}


/* Cal Strat*/
.cal-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Calculator Section */
.cal {
    display: flex;
    justify-content: space-between;
    height: fit-content;
    /* align-items: stretch; */
    gap: 30px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Left Side */
.cal-item {
    flex: 1;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Logo Image */
.logo-container {
    text-align: center;
    margin-top: 20px;
}

.logo-container img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
}

/* Headings */
.cal-item h2 {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: var(--font2-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.cal-item h2 i {
    margin-right: 10px;
    color: var(--font2-color);
}

/* Text and Icons */
.cal-item p {
    display: flex;
    align-items: center;
    font-size: 16px;
    margin: 10px 0;
}

.cal-item p i {
    margin-right: 10px;
    color: var(--font2-color);
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #0073e6;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    margin-top: 15px;
}

.read-more-btn:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* Right Side Iframe */
.cal-iframe {
    width: 30%;
    border: none;
    border-radius: 8px;
}

.cta-section {
    width: 100%;
    background: linear-gradient(to right, #003f87, #007bff);
    color: white;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 900px;
}

.cta-section h2 {
    font-size: 24px;
    margin: 0;
    text-align: left;
    flex: 1;
}

.cta-section a {
    text-align: right;
    flex-shrink: 0;
}

.cta-section .btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffcc00;
    color: #003f87;
    text-decoration: none;
    font-size: 18px;
    border-radius: 15px;
    font-weight: bold;
    transition: 0.3s;
}

.cta-section .btn:hover {
    background-color: #ffdb4d;
    transform: scale(1.05);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffcc00;
    color: #003f87;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #ffdb4d;
    transform: scale(1.05);
}
/* Responsive Design */
@media (max-width: 768px) {
    .cal {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        height: calc(150vh);
    }

    .cal-item,
    .cal-iframe {
        width: 100%;
        flex: 0;
        height: 190px;
        text-align: center;
    }

    .cal-iframe {
        flex: 1 !important;
        /* height: 60% !important; */
    }

    .cal-item h2,
    .cal-item p {
        justify-content: center;
    }

    .logo-container {
        margin-bottom: 15px;
        display: none;
    }

    .read-more-btn {
        width: 100%;
        text-align: center;
    }

    .cta-section {
        padding: 30px 15px;
    }

    .cta-section {
        flex-direction: column;
        /* Stack in column on small screens */
        text-align: center;
    }

    .cta-section h2 {
        text-align: center;
        margin-bottom: 15px;
    }

    .cta-section a {
        text-align: center;
    }
}

/* Cal End */

.btn-firstall {
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    border-color: var(--font2-color);
    padding: 10px 15px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
}

.projects btn-firstall1:hover {
    background-color: var(--seconadry-color);

}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;

}

.project-card a {
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 15px;
    text-align: left;
}

.project-info h3 {
    font-size: 1.2em;
    margin: 5px 0;
    color: #333;
}

.project-info p {
    font-size: 0.9em;
    margin: 5px 0;
    color: #555;
}



@media (max-width: 768px) {

    .wrapper,
    .header .container,
    .carousel-container,
    .services,
    .why-choose-us,
    .projects {
        padding: 0 10px;
    }

    .projects {
        margin-bottom: 3rem;
    }
}

/* Full-Screen Background */
.carousel-container3 {
    background-color: #001b39;
    padding: 40px;
    border-radius: 0;
    color: white;
    width: 100vw;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Section */
.carousel-header3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

/* Title aligned to the left */
.carousel-title3 {
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0;
}

/* "ดูทั้งหมด" Button aligned to the right */
.btn-all {
    border: 1px solid #ddd;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-block;
    white-space: nowrap;
}

.btn-all:hover {
    background-color: #ff5c05;
}

/* Main Carousel */
.carousel3 {
    width: 80%;
    max-width: 1200px;
    text-align: center;
    position: relative;
}

/* Center Carousel Slides */
.carousel-slides3 {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Individual Slide */
.carousel-slide3 {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: none;
}

.carousel-slide3.active {
    display: block;
}

/* Image */
.carousel-slide3 img {
    width: 70%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.slide-content3 {
    position: absolute;
    bottom: 0px;
    left: 14%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    text-align: left;
    width: 40%;
    scale: 0.9;
}

.slide-content3 h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.slide-content3 p {
    margin-bottom: 10px;
}

.slide-content3 .btn {
    background-color: #ffa500;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px !important;
}

.slide-content3 .btn:hover {
    background-color: #ff5c05;
}


/* Center Thumbnails */
.carousel-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 0;
    width: 100%;
    max-width: 1200px;
    white-space: nowrap;
}

.carousel-thumbnails::-webkit-scrollbar {
    display: none;
}

/* Thumbnail Style */
.thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #ffa500;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Navigation Buttons */
button.prev-btn,
button.next-btn {
    background-color: #ffa500;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.prev-btn:hover,
button.next-btn:hover {
    background-color: #ff5c05;
}

/* Responsive for Smartphones */
@media screen and (max-width: 768px) {
    .carousel-container3 {
        padding: 20px;
    }

    .carousel-header3 {
        flex-direction: row;
        align-items: center;
        padding: 0 15px;
    }

    .carousel-title3 {
        font-size: 18px;
        /* Adjust for smaller screens */
    }

    .btn-all {
        font-size: 12px;
        padding: 8px 15px;
    }

    .carousel3 {
        width: 95%;
    }

    .carousel-slide3 img {
        width: 100%;
        height: auto;
    }

    .slide-content3 {
        left: 20px;
        width: 95%;
        padding: 10px;
    }

    .slide-content3 h3 {
        font-size: 16px;
    }

    .slide-content3 p {
        font-size: 14px;
    }

    .slide-content3 .btn {
        font-size: 12px;
        padding: 8px 15px;
    }

    .carousel-thumbnails {
        width: 95%;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    button.prev-btn,
    button.next-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
}


/* Article */
.articles {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    top: 90PX;
    margin-bottom: 90px;
    padding-bottom: 60px;
}

.articles-title {
    font-size: 2em;
    color: var(--font-color);
    margin: 0 0 20px 0;
    padding-left: 10px;
}


.btn-firstall {
    text-decoration: none;
    font-size: 0.9em;
    border-color: var(--font2-color);
    padding: 10px 15px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
}

.btn-firstall:hover {
    background-color: var(--seconadry-color);
}

.review-cards {
    display: flex;
    gap: 50px 30px;
    justify-content: center;
    flex-wrap: wrap;
    text-decoration: none;
}

.new-card {
    width: 30%;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
    padding-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.new-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.new-card img {
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.new-card a {
    text-decoration: none;
    color: inherit;
    height: fit-content;
}

.new-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-left: 5px;
}

.new-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 5px;
}

.new-card-tags a {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-date {
    color: #888;
    margin-left: 5px;
}

@media (max-width: 968px) {
    .new-card {
        width: 45%;
    }
}


.card {
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* Image Styling */
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

/* Card Text */
.card p {
    padding: 10px;
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease-in-out;
}


/* Dark Overlay Effect Using ::before */
.card::before {
    content: "ดูเพิ่มเติม";  /* "View More" in Thai */
    font-size: 18px;
    color: white;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card:hover::before {
    opacity: 1;
}


.card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 15px;
}

.card:hover .overlay {
    opacity: 1;
}

.card .overlay p {
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: white !important;
}

@media (max-width: 768px) {
    .card {
        width: 90%;
    }
}

/* newapp */
.container-newapp {
    margin: 0;
    padding: 0;
    background: color(black);
    margin-bottom: 30px;
}

.header-newapp {
    position: relative;
    background: linear-gradient(-225deg, #20E2D7 0%, #F9FEA5 100%);
    color: var(--font-color);
    padding: 50px 20px;
    text-align: center;
    transform: skewY(-5deg);
}

.header-newapp h1 {
    font-size: 2.5rem;
    margin: 0;
    transform: skewY(5deg);
    font-weight: bold;
}

.header-newapp h2 {
    font-size: 1.5rem;
    margin: 10px 0 0;
    transform: skewY(5deg);
    font-weight: bold;
}

.header-newapp p {
    font-size: 1.2rem;
    margin: 10px 0;
    transform: skewY(5deg);
    font-weight: bold;
}

.content-newapp {
    max-width: 900px;
    margin: -40px auto 20px;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.app-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.app-preview img {
    width: 180px;
    border-radius: 10px;
}

.cta {
    margin-top: 20px;
}

.main-btn {
    margin-top: 20px;
}

.main-btn button {
    /* background-color: #ffe600; */
    /* color: rgb(1, 35, 107); */
    background-color: #1c4587 !important;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    text-decoration: none;
}

.main-btn button a {
    color: #ffff00 !important;
}

.main-btn button:hover {
    background-color: #2a9881;
}

.main-btn button a {
    text-decoration: none;
}

.cta button {
    background-color: #000000;
    color: rgb(1, 35, 107);
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta button a {
    text-decoration: none;
}

.cta button:hover {
    background-color: #2a9881;
}

/* @media screen and (max-width: 768px) {
    .container-newapp {
        padding: 20px;
        text-align: center;
    }

    .content-newapp {
        padding: 20px;
        max-width: 100%;
    }

    .app-preview {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .app-preview img {
        width: 45%;
        max-width: 180px;
    }

    .cta button {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

@media screen and (max-width: 480px) {
    .app-preview {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .app-preview img {
        width: 45%;
        max-width: 150px;
    }
} */

@media screen and (max-width: 768px) {
    .container-newapp {
        padding: 20px;
        text-align: center;
    }

    .content-newapp {
        padding: 20px;
        max-width: 100%;
    }

    .app-preview {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .app-preview img {
        width: 45%;
        max-width: 180px;
    }

    .cta button {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

/* Extra Small Screens (Phones under 480px) */
@media screen and (max-width: 480px) {
    .app-preview {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .app-preview img {
        width: 45%;
        max-width: 150px;
    }
}


/* Stats Section with Skewed Background */
.stats-section {
    background: color(#f0f8ff);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    box-sizing: border-box;
}

.trustindex {
    display: flex;
    justify-content: center;
    align-items: left;
    margin-top: 20px;
}

.section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.elfsight-app-c9e9af2e-5acf-4478-8bc7-62f17e30af1c {
    display: flex;
    justify-content: center;
    width: 100%;
}


.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}


.stat-box {
    background-color: #f0f8ff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 150px;
    height: 200px;
}

.stat-box img {
    width: 40px;
    height: 40px;
    margin: 10px 0;
}


.stat-box h2 {
    font-size: 2.2em;
    color: #007bff;
    margin: 0;
}


.stat-box p {
    font-size: 1em;
    color: #555;
    margin-top: 5px;
}

/* @media screen and (max-width: 768px) {
    .content-wrapper {
        max-width: 90%;
    }

    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 1.1em;
    }

    .stats-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }


    .stat-box {
        width: 30%;
        max-width: 140px;
    }

    .stat-box h2 {
        font-size: 1.8em;
    }

    .stat-box p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .stats-container {
        justify-content: center;
    }


    .stat-box {
        width: 30%;
        max-width: 120px;
    }
} */
/* Responsive Design */
@media screen and (max-width: 768px) {
    .content-wrapper {
        max-width: 90%;
    }

    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 1.1em;
    }

    .stats-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* Ensure Three Stat Boxes Per Row */
    .stat-box {
        width: calc(33.33% - 10px);
        max-width: 140px;
        min-width: 100px;
        text-align: center;
        padding: 15px;
    }

    .stat-box h2 {
        font-size: 1.5em;
    }

    .stat-box p {
        font-size: 0.9em;
    }
}


@media screen and (max-width: 480px) {
    .stats-container {
        justify-content: center;
        gap: 5px;
    }

    /* Ensure Three Per Row */
    .stat-box {
        width: 32%;
        max-width: 120px;
        min-width: 90px;
    }

    .stat-box h2 {
        font-size: 1em;
    }

    .stat-box p {
        font-size: 0.8em;
    }
}

.hero-image {
    flex: 1 1 400px;
    z-index: 2;
    position: relative;
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
}




/* FAQ */

.faq {
    color: #0077ff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 50px 20px;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: skewY(-2deg);
    transform-origin: top;
    z-index: -1;
    -webkit-transform: skewY(-2deg);
    -moz-transform: skewY(-2deg);
    -ms-transform: skewY(-2deg);
    -o-transform: skewY(-2deg);
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.faq-title {
    font-size: 36px;
    font-weight: bold;
    color: #006aff;
    /* dark gray */
    margin-bottom: 10px;
}

.faq-subtitle {
    font-size: 18px;
    color: #6b7280;
    /* subtle gray */
    margin-bottom: 30px;
}

.faq-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.faq-menu {
    width: 220px;
}

.faq-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-menu li {
    padding: 12px 16px;
    margin-bottom: 10px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    color: #111827;
}

.faq-menu li:hover {
    background-color: #98d6ff;
}

.faq-menu li.active {
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
}

.faq-questions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.faq-item {
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.faq-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: left;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    background-color: #f9fafb;
    border: none;
    width: 100%;
    transition: background-color 0.3s;
    gap: 12px;
}

.faq-item {
    width: 100%;
}

.faq-question:hover {
    background-color: #98d6ff;
}

.faq-question .icon {
    font-size: 20px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: start;
	line-height: 1.4;
    flex-shrink: 0;
    margin-left: 12px;
}


.faq-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.faq-answer {
    padding: 16px 24px;
    background-color: #ffffff;
    display: none;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .faq-content {
        flex-direction: column;
        gap: 24px;
    }

    .faq-menu {
        width: 100%;
    }

    .faq-menu ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .faq-menu li {
        flex: 1 1 45%;
        text-align: center;
    }

    .faq-questions {
        width: 100%;
    }

    .faq-question {
        font-size: 16px;
        padding: 14px 16px;
    }

    .faq-answer {
        font-size: 14px;
        padding: 14px 18px;
    }
}



/* elfsight */

.elfsight {
    margin-top: 30px;
    margin-bottom: 20px;
}

.elfsight h1 {
    text-align: center;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
}


.trustindex-widget {
    display: block;
    width: 80%;
    max-width: 500px;
    margin: 20px auto;
}

/* Footer Base */
.footer {
    background: rgb(236, 236, 236);
    color: white;
    padding: 50px 20px;
    font-size: 16px;
    position: relative;
    z-index: 0;
}

/* Footer Container */
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* .footer-left {
    flex: 1;
    max-width: 300px;
    text-align: left;
}

.footer-left h2 {
    font-size: 20px;
    color: var(--font2-color);
    display: inline-block;
    padding-bottom: 5px;
    font-weight: bold;
}

.footer-logo {
    width: 180px;
} */
.footer-left h2 {
    font-size: 20px;
    color: var(--font2-color);
    display: inline-block;
    padding-bottom: 5px;
    font-weight: bold;
}

.footer-left {
    flex: 1 1 20%;
    margin-bottom: 20px;
}

.footer-logo {
    height: auto;
    width: 50%;
    display: inline-block;
}

.footer-left p {
    font-size: 16px;
    color: var(--font-color);
    margin-top: 10px;
    font-weight: 600;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    width: 20px;
    height: auto;
    transition: transform 0.5s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

/* Footer Center & Right (Company & Services) */
.footer-center,
.footer-right,
.footer-help,
.footer-payment {
    flex: 1;
    text-align: left;
    min-width: 200px;
}

.footer-center h2,
.footer-right h2,
.footer-help h2,
.footer-payment h2 {
    font-size: 18px;
    color: #002d5b;
    /* border-bottom: 2px solid var(--font2-color); */
    display: inline-block;
    padding-bottom: 5px;
    font-weight: bold;
}

.footer-center ul,
.footer-right ul,
.footer-help ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li,
.footer-right ul li,
.footer-help ul li {
    margin: 5px 0;
}

.footer-center ul li a,
.footer-right ul li a,
.footer-help ul li a {
    color: #002d5b;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    font-weight: 600;
}

.footer-center ul li a:hover,
.footer-right ul li a:hover,
.footer-help ul li a:hover {
    color: var(--font2-color);
}

/* Payment Logos */
.payment-logos {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.payment-logos img {
    width: 50px;
    transition: transform 0.3s ease;
}

.payment-logos img:hover {
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    color: var(--font2-color);
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-container {
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right,
    .footer-help,
    .footer-payment {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .footer-left {
        text-align: center;
    }

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

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-left,
    .footer-center,
    .footer-right,
    .footer-help,
    .footer-payment {
        width: 100%;
    }

    .footer-logo {
        margin: 10px auto;
    }

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

    .footer-center ul,
    .footer-right ul,
    .footer-help ul {
        padding: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 10px;
    }

    .footer-left h2,
    .footer-center h2,
    .footer-right h2,
    .footer-help h2 {
        font-size: 16px;
    }

    .footer-center ul li a,
    .footer-right ul li a,
    .footer-help ul li a {
        font-size: 14px;
    }

    .footer-logo {
        width: 100px;
    }

    .social-icons img {
        width: 28px;
    }

    .payment-logos img {
        width: 40px;
    }
}

@media (max-width: 768px) {

    .footer-center ul,
    .footer-right ul,
    .footer-help ul {
        display: none;
        /* Hide lists initially */
    }

    .footer-center h2,
    .footer-right h2,
    .footer-help h2 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        font-weight: bold;
        color: #002d5b;
        /* Adjust color */
        padding: 10px 0;
        border-bottom: 1px solid #ccc;
    }

    .toggle-icon {
        font-size: 18px;
        font-weight: bold;
        transition: transform 0.3s ease;
        display: inline-block;
    }
}

/* Hide the "+" symbol on larger screens */
@media (min-width: 769px) {
    .toggle-icon {
        display: none;
    }

    .footer-center ul,
    .footer-right ul,
    .footer-help ul {
        display: block;
    }
}


/* logo */
@media (max-width: 768px) {
    .footer-left {
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }

    .footer-left h2 {
        font-size: 18px;
    }

    .footer-logo {
        width: 140px;
    }
}

/* for tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        padding: 20px;
    }

    .footer-sections {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
    }

    .footer-center,
    .footer-right,
    .footer-help {
        flex: 1 1 calc(33.33% - 20px);
        max-width: 33.33%;
        text-align: left;
    }

    .footer-payment {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    .payment-logos {
        display: flex;
        gap: 10px;
        margin-top: 5px;
    }

    .payment-logos img {
        width: 50px;
        transition: transform 0.3s ease;
    }

    .payment-logos img:hover {
        transform: scale(1.1);
    }
}

/* phone */
@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .footer-sections {
        width: 100%;
    }

    .footer-center,
    .footer-right,
    .footer-help {
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    .footer-center h2,
    .footer-right h2,
    .footer-help h2 {
        font-size: 16px;
        font-weight: bold;
        color: #002d5b;
        padding: 8px 0;
        border-bottom: 1px solid #ccc;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5px;
    }

    .footer-center ul,
    .footer-right ul,
    .footer-help ul {
        display: none;
        list-style: none;
        padding-left: 0;
        margin-top: 5px;
    }

    .footer-center.active ul,
    .footer-right.active ul,
    .footer-help.active ul {
        display: block;
    }

    .footer-payment {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    .payment-logos {
        display: flex;
        gap: 10px;
    }

    .payment-logos img {
        width: 50px;
        transition: transform 0.3s ease;
    }

    .payment-logos img:hover {
        transform: scale(1.1);
    }
}

.small-font {
    font-size: 12px;
    color: #333;
    margin: 8px 0 0 0;
    line-height: 1.4;
    text-align: center;
}

.small-cert {
     display: flex; 
     justify-content: center;
     align-items: center;
     flex-direction: column;
}

.metric-text{
	display: flex;
    width: 100%;
	justify-content: end;
}

