/* Reset some default styles */
body,
h1,
h2,
ul,
li,
p {
    margin: 0;
    padding: 0;
}

/*font*/
@font-face {
    font-family: 'Gugi';
    src: local('Gugi'), url('/Gugi-Regular.ttf') format('truetype');
    font-display: swap;
    /* Add other font formats if needed (woff, ttf, etc.) */
}

@font-face {
    font-family: 'NotosansBold';
    src: local('NotosansBold'), url('/NotoSansKR-Bold.ttf') format('truetype');
    font-display: swap;
    /* Add other font formats if needed (woff, ttf, etc.) */
}

@font-face {
    font-family: 'NotosansLight';
    src: local('NotosansLight'), url('/NotoSansKR-ExtraLight.ttf') format('truetype');
    font-display: swap;
    /* Add other font formats if needed (woff, ttf, etc.) */
}

/* Basic styling */
body {
    font-family: 'NotosansLight', sans-serif;
    line-height: 1.6;
    background-color: #fbfbfb;
    font-size: 17px;
    overflow-x: hidden;
}


body main {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 24px;
}

nav {
    background-color: #ffffff;
    padding: 10px;
    display: flex;
    /* Make the logo and menu items display in a row */
    justify-content: space-between;
    /* Distribute items evenly; pushes the logo to the left and the menu to the right */
    align-items: center;
    /* Center items vertically */
}

#language-switch {
    display: block;
    margin-left: auto;
}

#language-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 36px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid #e3e3e3;
    border-radius: 18px;
    font-family: 'NotosansBold', 'Noto Sans', sans-serif;
    font-size: 1em;
    color: #333;
    text-decoration: none;
    line-height: 1;
}

.logo img {
    max-height: 40px;
    /* Set a maximum height for the logo */
    margin-right: 10px;
    /* Add some space between the logo and menu items */
}

nav ul {
    list-style: none;
    display: flex;
    /* Display the list items in a row */
    justify-content: center;
    /* Center menu items horizontally */
    flex-grow: 1;
    /* Allow the menu items to take up any available space */
    align-items: center;
    margin-left: 24px;
}

nav li {
    margin-right: 40px;
    /* Add some space between menu items */
}

nav a {
    text-decoration: none;
    color: #333;
    font-family: 'NotosansBold', 'Noto Sans', sans-serif;
    padding: 5px;
    display: block;
    transition: color 0.3s;
    white-space: nowrap;
    word-break: keep-all;
    position: relative;
    /* Add transition for text color */
}

nav a:hover {
    color: #0088cc;
    /* Change the text color on hover */
}

nav a.active {
    color: #f47b7b;
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 3px;
    background: #f47b7b;
    border-radius: 999px;
}


.photo-slideshow {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 70px;
}

.photo {
    position: relative;
    /* Make the container a positioning context */
}

.photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* slideshow visibility control */
.mySlides {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

.mySlides.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* slideshow visibility control */
.mySlides {
    display: none;
}

.mySlides.active {
    display: block;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 2s;
}

@keyframes fade {
    from {
        opacity: .3
    }

    to {
        opacity: 1
    }
}

.main-text {
    font-size: 2.5em;
    /* Adjust the font size as needed */
    color: #333;
    text-align: center;
    font-family: 'NotosansBold', sans-serif;
    margin-bottom: 10px;
}

.sub-text {
    font-size: 1.3em;
    /* Adjust the font size as needed */
    color: #333;
    text-align: center;
    font-family: 'NotosansLight', sans-serif;
    line-height: 1.6;
}

/* Responsive Margin Adjustment */
@media (min-width: 768px) {

    .main-text,
    .sub-text {
        margin-bottom: 20px;
        /* Adjust the margin for larger screens */
    }
}

/* .link-menu {
    background-color: #f0f0f0;
    padding: 10px;
    text-align: center;
    margin-bottom: 100px;
}

.link-menu .link-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px; /* Add space between groups 
    
} 
*/

.link-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
}

.link-group {
    display: flex;
    justify-content: center;
    width: 100%;
}

.link-group a {
    /* flex: 1; /* /* 모든 링크가 같은 비율로 너비를 차지하도록 함 */
    text-align: center;
    /* 이미지를 가운데 정렬 */
    margin: 10px;

    position: relative;
    overflow: hidden;
}

.link-group a img {
    width: 100%;
    /* 이미지가 링크의 전체 너비를 차지하도록 함 */
    height: 100%;
    /* 이미지의 높이를 자동으로 설정하여 비율 유지 */
    max-width: 100%;
    /* 이미지가 컨테이너를 초과하지 않도록 함 */

    transition: opacity 0.3s ease-out;
}

.link-group a:hover img {
    opacity: 0.5;
    /* Reduce opacity on hover */
}

.link-menu a {
    text-decoration: none;
    color: #333;
    display: block;
    /* Make the entire link a block to contain image */
    transition: color 0.3s;
}

.link-menu img {
    max-width: 100%;
    /* Ensure images don't exceed the container width */
    height: auto;
    border-radius: 8px;
}

.link-menu a:hover {
    color: #0088cc;
}



.text-image-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 100px
}

.text-content {
    flex: 1;
}



/* Apply styles to the h2 element */
.text-content h2 {
    color: #ff0000;
    font-family: 'NotosansBold', sans-serif;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: #f47b7b;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s;
    margin-top: 20px;
    font-family: 'NotosansBold', 'Noto Sans', sans-serif;
}

.cta-button:hover {
    background-color: #ff0000;
}


.image-content {
    flex: 1;
    text-align: right;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-right: 50PX;
}


.youtube-video-section {
    text-align: center;
    margin-top: 20px;
    /* Add some space at the top */
    margin-bottom: 100px
}

.youtube-video-section iframe {
    max-width: 100%;
}

.google-maps-section {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px;
    margin-bottom: 100px
}

.google-maps {
    flex: 1;
    min-height: 360px;
    display: flex;
}

.google-maps iframe {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.text-content {
    flex: 1;
    padding-left: 20px;
    /* Add some space between the map and text */
}

.contact-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.site-footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: inline-block;
    margin-right: 15px;
}

.footer-links a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0088cc;
}

/* get in touch */

.contact-section {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    padding: 2rem;
    text-align: center;
    flex: 1;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'NotosansBold', sans-serif;
    color: #f47b7b;
}

.contact-section .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 두 컬럼으로 구성 */
    grid-gap: 1rem;
    /* 그리드 아이템 사이의 간격 */
    text-align: left;
}

.contact-section .contact-grid>div {
    padding: 1rem;
    /* 패딩 추가 */
}

.contact-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'NotosansBold', sans-serif;
}

.contact-section p {
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'NotosansLight', sans-serif;
}

.contact-section .contact-form button {
    background-color: #f47b7b;
    color: #fff;
    border-radius: 30px;
    padding: 1rem 2rem;
    font-family: 'NotosansBold', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 70%;
    /* 버튼 너비를 부모 컨테이너에 맞춤 */
}

.contact-section .contact-form button:hover {
    background-color: #ff0000;
}

@media (max-width: 1024px) {
    .google-maps-section {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }

    .google-maps {
        min-height: 320px;
    }

    .contact-section {
        width: 100%;
        padding: 1.75rem;
    }

    .contact-section .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-section .contact-form button {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* 반응형 디자인을 위한 미디어 쿼리 */
    .contact-section .contact-grid {
        grid-template-columns: 1fr;
        /* 모바일 화면에서는 한 컬럼으로 구성 */
    }
}

/* Home: responsive adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
        padding: 0 8px;
        width: 100%;
        margin-left: 0;
    }

    nav li {
        margin: 0 12px 4px 0;
    }

    #language-switch {
        margin-left: 0;
    }

    #language-switch a {
        min-width: auto;
        height: 32px;
        padding: 0 12px;
    }

    .main-content {
        padding: 0 16px;
    }

    .main-text {
        font-size: 1.6em;
    }

    .sub-text {
        font-size: 1em;
        line-height: 1.6;
    }

    .photo img {
        margin-bottom: 30px;
    }

    .link-menu {
        margin-top: 40px;
        width: 100%;
        padding: 0 12px;
    }

    .link-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .link-group a {
        flex: 1 1 calc(50% - 12px);
        min-width: 150px;
        margin: 0;
    }

    .text-image-section,
    .google-maps-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 16px;
    }

    .image-content {
        text-align: center;
        margin-right: 0;
    }

    .image-content img {
        margin: 0 auto;
    }

    .youtube-video-section {
        padding: 0 16px;
    }

    .youtube-video-section iframe {
        width: 100%;
        height: 56vw;
        max-height: 280px;
    }

    .google-maps iframe {
        width: 100%;
        min-height: 240px;
    }

    .google-maps {
        min-height: 240px;
    }

    .contact-section {
        width: 100%;
    }

    .contact-section {
        padding: 1.5rem;
    }

    .contact-section .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-section .contact-form button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    body main {
        margin-left: 16px;
        margin-right: 16px;
        margin-top: 30px;
    }
}

/* Mobile grid for category links: make first item full width, rest 2 columns */
@media (max-width: 900px) {

    /* Product / gallery grids */
    .photo-grid .photo-container {
        width: calc(50% - 20px);
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 40px;
        margin-right: 40px;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .photo-grid .photo-container {
        width: 100%;
    }

    .image-grid {
        grid-template-columns: 1fr;
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* Product CTA */
.cta-button2-div {
    width: 100%;
    padding: 32px 16px;
    display: flex;
    justify-content: center;
}

.cta-button2 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 720px;
    width: 100%;
    background-color: #f47b7b;
    color: #fff;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 999px;
    transition: background-color 0.3s;
    margin: 48px auto;
    font-family: 'NotosansBold', 'Noto Sans', sans-serif;
    line-height: 1.3;
    text-align: center;
    word-break: keep-all;
}

.cta-button2:hover {
    background-color: #ff0000;
}

/* Mobile tighten spacing */
@media (max-width: 600px) {
    .cta-button2-div {
        padding: 20px 12px;
    }
    .cta-button2 {
        max-width: 100%;
        margin: 28px auto;
        padding: 12px 16px;
    }
}


.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    /* Add space between the heading and buttons */
}

.button-container a {
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    transition: filter 0.3s ease-out;
    /* Add transition for scaling and grayscale effect */
}

.button-container img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    /* Set default grayscale effect */
}

.button-container a:hover img {
    filter: grayscale(0%);
    /* Remove grayscale effect on hover */
}

.button-container a.active img {
    filter: grayscale(0%);
}

#box1.product-box {
    display: block;
    /* Set box1 to be initially visible */
}

.product-box {
    display: none;
    /* Initially hide all boxes */
}

.product-box h3 {
    font-size: 2em;
    /* Set the desired font size */
    font-family: 'NotosansBold', sans-serif;
    color: #000000;
    /* Set the desired color */
    margin-left: 100px;
}

.product-box p {
    margin-left: 100px;
    margin-bottom: 70px;
}



.product-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 20px;
    margin-right: 100px;
    /* Right margin */
    margin-left: 100px;
    /* Left margin */
    margin-bottom: 100px;

    /* Add space between the heading and the grid */
}

.image-grid img {
    /* width: 100%; */
    height: auto;
    border-radius: 8px;
}

/*process page setting*/
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 3%;
    margin-bottom: 3%;
}

.photo-container {
    position: relative;
    width: calc(33.33% - 20px);
    /* Adjust width as needed with margin */
    margin: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.photo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-container-single-img {
    width: 100%;
    height: auto;
    display: block;
}

.step-badge {
    position: absolute;
    top: 9px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'NotosansBold', 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    z-index: 2;
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: #000000;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.photo-text {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-top: 10px;
    opacity: 1;
    /* Set opacity to 1 to make it always visible */
    font-family: NotosansBold;
}

/* Hover effect on photo */
.photo-container:hover img {
    opacity: 0.3;
}

.photo-container:hover .caption {
    opacity: 1;
}

body.contact-page {
    background-color: #fbfbfb;
    /* Change to the desired background color */
}

body.contact-page main {
    margin-left: 100px;
    margin-top: 50px;
}

/* Add styling for the contact form */
form {
    max-width: 480px;
    margin: 40px auto 80px;
    background-color: #fff;
    padding: 24px;
    margin-left: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #7b7b7b;
    font-weight: bold;
    border-radius: 5px;
    /* Added border-radius for labels */
}


input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'NotosansLight', sans-serif;
    font-size: 1em;
}


textarea {
    resize: vertical;
    /* Allow vertical resizing of the textarea */
}

button {
    background-color: #0088cc;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e82b2b;
}

/*about us*/

@media (max-width: 600px) {
    form {
        margin: 24px 16px 64px;
        padding: 20px;
        max-width: 100%;
    }
}

.vision-section h3,
.vision-section p,
.mission-section h3,
.core-value-section h3,
.core-value-section p {
    font-family: 'NotosansBold', sans-serif;
    /* Replace 'Your Desired Font' with the actual font you want to use */
    margin: 0;
    /* Remove default margin for h3 and p */
}

.about-intro {
    padding: 48px 0;
}

.vision-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 48px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.image-container {
    flex: 1;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.text-container h3 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-family: 'NotosansBold', 'Noto Sans', sans-serif;
    font-weight: 700;
}

.text-container p {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 600;
    word-break: keep-all;
}


/* Cert section*/

.cert-section {
    padding: 48px 0;
    text-align: center;
    background: #fff;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.03), 0 10px 25px rgba(0, 0, 0, 0.03);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: auto;
    place-items: center;
}

.cert-item {
    text-align: center;
}

.cert-item img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.cert-item p {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    word-break: keep-all;
}

/* Optional: Force each item to take up equal space */
.cert-item {
    width: calc(50% - 10px);
    /* Subtract the gap to evenly space items */
}

/* Vision and Mission Section styles */

.vision-section,
.mission-section {
    padding: 48px 0;
    text-align: center;
    /* Center align the text for both sections */    
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03), 0 -10px 25px rgba(0, 0, 0, 0.03);
}

.vision-section {
    background: #fff;
    color: #333;
}

.mission-section {
    background: #eef1f7;
    color: #333;
}

.vision-section .content,
.mission-section .content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    word-break: keep-all;
}

.about-vision-block {
    background: #f9fafc;
    color: #111;
    padding: 40px 0;
    text-align: center;
}

.about-vision-block .content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-vision-block h3,
.mission-section h3 {
    font-size: 2.2em;
    margin-bottom: 0.5em;
    font-family: 'NotosansBold', sans-serif;
}

.about-vision-block p,
.mission-section p,
.mission-section ul {
    font-size: 1em;
    line-height: 1.6;
}

.mission-section ul {
    list-style: disc inside;
    padding-left: 0;
    text-align: left;
    margin: 12px auto 0;
    max-width: 760px;
    display: inline-block;
}

.mission-section ul.mission-list {
    font-size: 1em;
    line-height: 1.6;
    word-break: keep-all;
    display: block;
}

.mission-section p {
    font-weight: normal;
}

.mission-section ul.mission-list li {
    margin-bottom: 6px;
}

.about-vision-block p {
    word-break: keep-all;
}

.vision-section h3,
.mission-section h3 {
    font-size: 2.2em;
    margin-bottom: 0.6em;
    font-weight: bold;
}

/* Additional styles for background and text visibility if needed */
.vision-section {
    background-attachment: fixed;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/*about us end*/

@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }

    .image-container {
        margin-right: 0;
        display: flex;
        justify-content: center;
    }

    .image-container img {
        max-width: 420px;
    }

    .text-container h3 {
        text-align: left;
    }

    .mission-section .content,
    .vision-section .content,
    .about-vision-block .content {
        padding: 0 16px;
    }
}

@media (max-width: 600px) {
    .image-container img {
        max-width: 100%;
    }

    .text-container h3 {
        text-align: center;
    }

    .text-container p {
        text-align: center;
    }
}
/* Responsive tweaks for grids/buttons */
@media (max-width: 1024px) {
    body main {
        margin-left: 40px;
        margin-right: 40px;
        margin-top: 40px;
    }
}

@media (max-width: 900px) {
    body main {
        margin-left: 24px;
        margin-right: 24px;
        margin-top: 32px;
    }

    .button-container {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .button-container a {
        width: 45%;
        min-width: 140px;
    }

    .button-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    .photo-grid .photo-container {
        width: calc(50% - 20px);
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 24px;
        margin-right: 24px;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .button-container a {
        width: 100%;
    }

    .photo-grid .photo-container {
        width: 100%;
    }

    .image-grid {
        grid-template-columns: 1fr;
        margin-left: 12px;
        margin-right: 12px;
        gap: 16px;
    }
}
