/* --------------------- global ---------------------*/

.container {
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

body,
html {
    font-family: 'Roboto', sans-serif;
    color: #0D2736;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 4em;
    text-align: center;
    line-height: 15px;
    margin-top: 5%;
    letter-spacing: 2px;
    font-weight: 500;
}

h2 {
    font-size: 4em;
    margin-bottom: 10px;
}

h3 {
    line-height: 30px;
    font-weight: light;
    text-align: left;
    font-size: 1.6em;
}

h4 {
    line-height: 30px;
    font-weight: light;
    text-align: left;
    font-size: 1.4em;
    color: #8f8f8f;
}

h5 {
    line-height: 24px;
    font-size: 16px;
    font-weight: bolder;
}

p {
    line-height: 26px;
    font-size: 18px;
    font-weight: 300;
}

hr {
    border: #e4e4e4 0.5px solid;
    margin: 18px 0 25px;
}

.copyright p {
    color: #585858;
    font-size: 14px;
}

/* link */
a {
    color: #0D2736;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* --------------------- index --------------------- */
.slogan h2 {
    letter-spacing: 5px;
}

.slogan p {
    font-size: 1.4em;
}

/* Define the typing animation */
@keyframes typing {
    from {
      width: 0; /* Start with 0 width */
    }
    to {
      width: 100%; /* End with full width */
    }
  }
  
  /* Apply the typing animation to the element */
  #typing-text {
    overflow: hidden; /* Hide overflowing text */
    white-space: nowrap; /* Prevent line breaks */
    animation: typing 2s steps(40); /* Set the animation duration and steps */
  }



/* --------------------- header --------------------- */
header {
    height: 64px;
    z-index: 9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 5px;
    padding-left: 5px;
    background-color: #fff;
}

.logo {
    float: left;
}

.logo img {
    width: 80%;
}

.nav {
    float: right;
    margin-top: 20px;
    text-align: center;
    display: flex;
}

.nav a {
    padding: 20px;
    padding-bottom: 10px;
    position: relative;
    font-size: 1.1em;
}

.nav a:before,
.nav a:after {
    position: absolute;
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
}

.nav a:before {
    bottom: 0;
    display: block;
    height: 3px;
    width: 0%;
    content: "";
}

.nav a:hover:before,
.nav .current a:before {
    opacity: 1;
    width: 100%;
}

/* --------------------- submenu ---------------------*/
.submenu {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sub_nav {
    display: flex;
    padding-left: 0;
    flex-wrap: wrap;
}

.sub_nav a {
    font-size: 1.1em;
    padding: 16px 25px;
}

/* --------------------- footer --------------------- */
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    max-height: 90%;
}

.icon a {
    margin-left: 10px;
}

.copyright {
    margin-right: 15px;
}



/* --------------------- writing ---------------------*/
.subtitle {
    padding-top: 5vh;
}



.article_container {
    max-width: 1280px;
    width: 97%;
    margin-bottom: 5%;
    padding: 0 3.5%;
    margin: 0 auto;
    padding-bottom: 300px;
}

.detail_container {
    margin-top: 3%;
    margin-bottom: 3%;
}



.article_block {
    display: flex;
}

.article_image img {
    width: 300px;
    height: 200px;
    flex-grow: 1;
}

.article {
    padding: 8px 15px 15px;
}

.article_title {
    font-size: 20px;
    font-weight: 900;
    margin-top: 20px;
}

.read_more a {
    color: #2675A2;
}

.read_more a:hover {
    color: #3A9AD1;
}

.detail_heading {
    margin-top: 10%;
}

.content {
    margin-bottom: 5%;
    padding-right: 4%;
}


/* --------- writing content came from admin editor --------- */

.content img {
    width: 80%;
}

.detail_container ul {
    list-style: unset;
    font-size: 18px;
    font-weight: 300;
}

.detail_container ul ul {
    list-style: unset;
    font-size: 18px;
    font-weight: 300;
}

.detail_container ol {
    /* list-style: initial; */
    font-size: 18px;
}

.detail_container li {
    list-style: unset;
    font-size: 18px;
    font-weight: 300;
}

.detail_container {
    margin-bottom: 300px;
}

/* --------------------- Works ---------------------*/
.works_list {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 300px;
}

.works_box {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 0;
}

.works_item {
    position: relative;
    width: 33.33333%;
    overflow: hidden;
}

.works_item:hover img {
    transform: scale(1.2);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.503);
    display: flex;
    justify-content: center;
    align-items: center;
}

.works_item img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.text_box {
    text-align: center;
    color: white;
}

.text_box h3 {
    font-weight: 400;
    text-align: center;
}

/* --------------------- Contact ---------------------*/

.contact {
    height: 100vh;
    padding-bottom: 13%;
    padding-bottom: 370px
}

.subtitle p {
    margin-top: -20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact_detail {
    margin: auto;
    display: grid;
    justify-content: center;
    align-content: center;
    padding: 15px;
}

.social_links {
    display: flex;
    margin-top: -20px;
    flex-wrap: wrap;
}

.social_links a {
    padding: 0 20px 0 0;
}

.line {
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-width: 1.5px;
    width: fit-content;
}

.email a:hover,
.social_links a:hover {
    color: #3A9AD1;
}

input {
    margin-bottom: 20px;
    margin-top: 5px;
    height: 25px;
    width: 100%;
    box-sizing: border-box;
}

input:focus {
    border-radius: 2px;
    border-color: rgba(255, 255, 255, 0);
}

textarea {
    width: 100%;
    margin-bottom: 20px;
    margin-top: 5px;
    box-sizing: border-box;
}

form {
    border-radius: 10px;
    background-color: #fff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    padding: 3vmin;
    overflow: auto;
}

textarea {
    resize: none;
}

form button {
    float: right;
}


/* --------------------- About ---------------------*/
.content_row {
    display: flex;
}

.title {
    width: 35%;
}

.detail {
    width: 100%;
}

/* --------------------- 404 ---------------------*/

.notfound {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.notfound_title {
    font-size: 12em;
    font-weight: 900;
}

.notfound_subtitle {
    font-size: 3em;
}

button {
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    color: #fff;
}

button:hover {
    opacity: .9;
    cursor: pointer;
}

/* --------------------- modal ---------------------*/
.mask {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.677);
}

.modal_content {
    background-color: #fff;
    width: 70%;
    margin: 22% auto;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 500px;
}

.modal_content h3 {
    text-align: center;
    line-height: 0;

}

.material-symbols-rounded {
    color: #A3C763;
    display: block;
    margin-top: 20px;
}

.close {
    color: #0D2736;
    float: right;
    font-size: 28px;
    cursor: pointer;
    display: block;
    margin-top: -10px;
}

.close:hover {
    opacity: .8;
}

/* --------------------- loader ---------------------*/
.loader {
    border: 5px solid #fff;
    border-radius: 50%;
    border-top: 5px solid #0D2736;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
    margin: 22% auto;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --------------------- screen<950 ---------------------*/
/* menu toggle */
.menu_toggle {
    display: block;
    float: right;
    padding-top: 26px;
    padding-right: 26px;

}

.menu_toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #0D2736;
    margin-bottom: 6px;
}

/* popup overlay */
#popup_overlay:target {
    opacity: 1;
    visibility: visible;
}

.popup_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d2736f2;
    transition: all .3s;
    opacity: 0;
    visibility: hidden;
}

.popup_menu_close span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    top: 5%;
    right: 1.1%;

}


.popup_menu_close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.popup_menu_close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.popup_menu_close {
    padding: 24px;
    width: 80px;
    height: 80px;
    display: block;
    float: right;
    transition: all 0.3s;
    z-index: 1;
}

.menu_item {
    padding-left: 0;
}

.menu_item a {
    color: #fff;
    text-align: center;
    display: block;
    font-size: 40px;
    line-height: 80px;
    letter-spacing: 2px;
}



/* -------------- RWD --------------*/
@media (max-width: 950px) {
    .nav {
        display: none;
    }

    body {
        margin: 0;
    }

    .works_item {
        width: 100%;
    }

    .sub_nav li {
        width: 33.333%;
        padding: 10px 0;
        text-align: center;
    }

    .sub_nav {
        margin: 0px;
    }

    .sub_nav li:hover {
        background-color: #8cc4e457;
    }

    .sub_nav a:hover {
        background-color: unset;
    }

    .detail_heading {
        margin-top: 30%;
    }

    .subtitle {
        padding-top: 13vh;
    }

    .article_block {
        display: block;
    }

    .contact {
        padding-bottom: 40%;
    }

    footer {
        display: block;
        text-align: center;
    }

    .icon a {
        margin-left: 15px;
    }

}

@media (min-width: 951px) {
    .mobile_menu {
        display: none;
    }

    .popup_menu_close {
        display: none;
    }
}

@media (min-width: 1920px) {
    .contact {
        padding-bottom: 0;
    }
}