/* =========================================
   Home
========================================= */
section{
    display: flex;
    max-width: 1100px;
    /* min-height: 100vh; */
    min-height: fit-content;
    margin-left: auto;
    margin-right: auto;
    /* margin-top: 120px; */
    margin-bottom: 25px;
}

.home{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding-top: 200px; */
    flex-direction: column;
}

.home .main-container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-direction: column;
}

/* .home-v-line{
    width: calc(100% - 250px);
    height: 1.5px;
    background: var(--line-color);
    margin-left: auto;
    margin-right: auto;
} */

/* =========================================
   Home (Main Page) - Page Navigation
========================================= */
.page-navigation{
    margin-top: 95px;
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    margin-left: 50px;
}

.page-link a{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: var(--text-color-02);
    font-weight: 400;
    text-decoration: none;
    transition: .3s ease;
}

.page-list a:hover{
    color: var(--primary-color);
}

.page-list .active-link{
    color: var(--text-color-01);
}

.page-list .arrow-right{
    width: 22px;
    color: var(--text-color-02);
    margin-left: 5px;
}

.page-link .home-icon{
    width: 20px;
    color: var(--primary-color);
}

.page-link span{
    font-size: .875em;
}

.page-navigation .page-list{
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

/* =========================================
   Home (Main Page) - All Converter Scroll Button
========================================= */
/* .all-converter-scroll-btn{
    z-index: 999;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.all-converter-scroll-btn a{
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    font-size: .95em;
    padding: 8px 20px 8px 27px;
    border-radius: 20px;
}

.all-converter-scroll-btn svg{
    width: 23px;
    margin-left: 5px;
} */

.all-converter-scroll-btn{
    position: relative;
    margin-top: 25px;
    /* animation: wiggle 2s linear infinite;
    animation-delay: 1s; */
}

.all-converter-scroll-btn:hover{
    animation: wiggle 2s linear infinite;
    animation-delay: 1s;
}

.all-converter-scroll-btn a{
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    font-size: .95em;
    padding: 7px 16px 7px 23px;
    border-radius: 20px;
}

.all-converter-scroll-btn svg{
    width: 23px;
    margin-left: 5px;
    animation: arrow-down 2s ease-in-out infinite;
}

@keyframes arrow-down{
  0%, 100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes wiggle {
   0%,
   5%{
      transform: rotateZ(0);
   }
   15%{
      transform: rotateZ(-11deg);
   }
   20%{
      transform: rotateZ(6deg);
   }
   25%{
      transform: rotateZ(-6deg);
   }
   30%{
      transform: rotateZ(2deg);
   }
   35%{
      transform: rotateZ(0deg);
   }
   40%,
   100%{
      transform: rotateZ(0);
   }
}

/* =========================================
   Home (Main Page) - Common Unit Cards
========================================= */
.top-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.ad-container{
    width: 340px;
    height: 340px;
    background: var(--card-bg);
    /* border: var(--card-border); */
    margin-top: 45px;
    border-radius: 7px;
}

.unit-card-wrapper{
    position: relative;
    /* max-width: 890px; */
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.covertify-home-title{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 125px;
    margin-bottom: 15px;
}

.covertify-home-title-main{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
}

.covertify-home-title-img{
    width: 35px;
    /* transform: translateY(-5px); */
    /* height: 28px; */
}

.covertify-home-title h1{
    font-size: 2.25em;
    font-weight: 700;
    /* margin-bottom: 20px; */
}

.covertify-home-title h1 a{
    color: var(--text-color-01);
    text-decoration: none;
}

.covertify-home-title p{
    max-width: 675px;
    text-align: center;
    font-size: .925em;
    font-weight: 400;
    color: var(--text-color-02);
}

.home-sub-title{
    width: 100%;
    margin-bottom: 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-color-01);
}

.unit-card-container{
    display: grid;
    place-items: center;
    grid-template-columns: repeat(5, 1fr);
    /* grid-template-columns: repeat(2, 1fr); */
    column-gap: 30px;
    row-gap: 30px;
}

.unit-card-link{
    text-decoration: none;
}

.unit-card{
    background: var(--card-bg);
    box-shadow: var(--box-shadow-hard);
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    border: var(--card-border);
    border-radius: 5px;
    transition: .3s ease;
    transition-property: transform;
}

.unit-card:hover{
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-color);
}

.unit-card .svg-icon{
    width: 40px;
    height: 40px;
    /* width: 43px; */
    /* height: 43px; */
    color: var(--color-01);
}

.unit-card p{
    color: var(--text-color-02);
    /* color: var(--text-color-01); */
    font-size: .927em;
}

.unit-card:hover p{
    color: var(--text-color-01);
}

/* =========================================
   Home (Main Page) - All Converter List
========================================= */
.home .converter-groups-wrapper{
    /* margin-top: 35px; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.converter-groups-main-title p{
    color: var(--text-color-01);
    font-size: 2.05em;
    font-weight: 700;
    text-align: center;
    margin-top: 65px;
    margin-bottom: 40px;
}

.converter-groups-container{
    display: grid;
    place-items: center;
    align-items: start;
    justify-content: space-between;
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-columns: repeat(2, 1fr); */
    column-gap: 25px;
    row-gap: 40px;
}

.converter-group-title p{
    width: 100%;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color-01);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
    text-align: center;
}

.converter-group-wrapper{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.converter-list-group{
    width: 225px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.converter-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.converter-list li{
    list-style: none;
    /* background: var(--card-bg);
    padding: 3px 15px;
    border-radius: 3px;
    box-shadow: var(--box-shadow-light); */
}

.converter-list li a{
    text-decoration: none;
    display: flex;
    justify-content: start;
    align-items: center;
}

.converter-list li a .main-list-icon{
    color: var(--color-01);
    margin-right: 10px;
    /* width: 22px; */
    width: 23px;
}

.converter-list li a span{
    color: var(--text-color-02);
    /* font-size: .927em; */
    font-size: .975em;
    /* font-size: 1em; */
    font-weight: 400;
    transition: var(--element-transition);
}

.converter-list li a:hover span{
    color: var(--color-01);
}

/* =========================================
   Converter Serch Box
========================================= */
.converter-search-container{
    margin-bottom: 55px;
    width: 100%;
    max-width: 700px;
    /* margin: 0 auto 35px; */
}

.converter-search-box{
    position: relative;
    width: 100%;
}

.converter-search-icon{
    position: absolute;
    width: 20px;
    color: var(--text-color-02);
    transform: translate(12px, 15px);
}

.converter-search-box input{
    width: 100%;
    height: 50px;
    padding: 0 50px 0 40px;
    border: var(--card-border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-color-01);
    font-size: 16px;
    outline: none;
    box-shadow: var(--box-shadow-light);
    transition: 0.3s ease;
}

.converter-search-box input:focus{
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-hard);
}

#clearSearch{
    position: absolute;
    right: 12px;
    top: 50%;
    width: 23px;
    height: 23px;
    padding: 3px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    display: none;
}

#clearSearch:hover {
    background: var(--hover-color);
}

.no-results {
    display: none;
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
    color: var(--text-color-02);
    font-size: 16px;
}

/* =========================================
   About card
========================================= */
.about-card{
    width: 100%;
    background: var(--card-bg);
    box-shadow: var(--box-shadow-hard);
    padding: 25px;
    border-radius: var(--card-border-radius);
    margin-top: 50px;
    border: var(--card-border);
    margin-left: 25px;
    margin-right: 25px;
}

/* .about-title{
    color: var(--text-color-01);
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 25px;
} */

/* .about-card .bold{
    font-size: 1.05em;
    font-weight: 550;
} */

/* .about-card .lighter-text{
    color: var(--text-color-02);
} */

/* .about-card p{
    color: var(--text-color-01);
    font-size: .975em;
    font-weight: 400;
    line-height: 25px;
    margin-bottom: 10px;
} */

.about-card p{
    max-width: 700px;
}

/* =========================================
   To top button
========================================= */
.to-top-btn{
   /* z-index: var(--z-fixed); */
   position: fixed;
   /* background: hsl(var(--hue) 54% 74% / .2); */
   /* height: 100px; */
   /* width: 2px; */
   bottom: 25px;
   right: -35px;
   cursor: pointer;
   transition: all .3s ease;
}

.to-top-btn.active{
   right: 10px;
}

.to-top-btn a{
   background: var(--text-color-02);
   transition: .3s;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 3px;
   width: 32px;
   height: 32px;
   opacity: .5;
}

.to-top-btn a svg{
    width: 22px;
    color: #fff;  
}

.to-top-btn a:hover{
   /* color: var(--hover-color); */
   background: var(--primary-color);
   opacity: 1;
}

/* =========================================
   Other home page cards
========================================= */
.content-card{
    position: relative;
    background: var(--card-bg);
    box-shadow: var(--box-shadow-hard);
    padding: 30px 30px 15px 30px;
    border-radius: var(--card-border-radius);
    margin-top: 25px;
    border: var(--card-border);
    /* margin-top: 120px; */
    margin-left: 25px;
    margin-right: 25px;
    overflow: hidden;
}

.content-card .content-card-img{
    position: relative;
    max-height: 200px;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 40px;
    border-radius: 10px;
}

.content-card .content-card-img img{
    /* position: absolute; */
    width: 110%;
    transform: translateY(-50px);
    height: 100%;
}

.content-main-title{
    color: var(--text-color-01);
    font-size: 2.35em;
    font-weight: 700;
    margin-bottom: 25px;
}

.one-content{
    margin-bottom: 40px;
}

.content-sub-title{
    color: var(--text-color-01);
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* .one-content p{
    margin-bottom: 15px;
} */

.one-content .title-text{
    color: var(--text-color-01);
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 30px;
}

.one-content .one-paragraph{
    color: var(--text-color-02);
    font-size: .975em;
}

.one-content .bold-text{
    font-weight: 500;
    color: var(--text-color-01);
}

.paragraph-margin-bottom-3px{
    margin-bottom: 3px;
}

.paragraph-margin-bottom-7px{
    margin-bottom: 7px;
}

.paragraph-margin-bottom-12px{
    margin-bottom: 12px;
}

.paragraph-margin-bottom-20px{
    margin-bottom: 20px;
}

.paragraph-margin-bottom-25px{
    margin-bottom: 25px;
}

.special-highlight-text{
    font-size: 1.1em;
    color: var(--text-color-01);
    font-weight: 700;
}

.highlight-text{
    font-size: 1.05em;
    color: var(--text-color-01);
    font-weight: 500;
}

.content-paragraph{
    color: var(--text-color-02);
    font-size: .975em;
}

.content-list{
    /* list-style: none; */
    margin-top: 15px;
    margin-left: 35px;
    margin-bottom: 15px;
}

.content-list .content-list-item{
    color: var(--text-color-01);
    font-size: .925em;
    font-weight: 400;
    margin-bottom: 3px;
}

.blog-margin{
    margin-top: 25px;
}

.content-link{
    color: var(--text-color-01);
    font-weight: 600;
    text-decoration: none;
}

.content-link:hover{
    color: var(--primary-color);
    transition: .25s ease;
}

.content-button-list-container{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px; 
    row-gap: 15px;
    max-width: 700px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.content-button-item{
    list-style: none;
    color: var(--text-color-01);
    font-size: .875em;
    background: var(--input-bg-color);
    width: fit-content;
    padding: 5px 15px;
    border-radius: 20px;
    border: var(--box-border);
    cursor: pointer;
}

.content-button-item:hover{
    color: var(--white-color);
    background: var(--primary-color);
}

/* =========================================
   Blog post cards
========================================= */
.blog-content-card {
    /* background: var(--card-bg); */
    /* box-shadow: var(--box-shadow-hard); */
    /* padding: 50px 30px; */
    /* border-radius: var(--card-border-radius); */
    /* margin-top: 25px; */
    /* border: var(--card-border); */
    /* margin-top: 120px; */
    margin-left: 25px;
    margin-right: 25px;
}

.blog-main-title{
    color: var(--text-color-01);
    margin-bottom: 25px;
}

.blog-paragraph{
    /* margin-bottom: 15px; */
}

.blog-p{
    color: var(--text-color-02);
    margin-bottom: 15px;
}

.post-card-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
}

.post-card-container{
    display: grid;
    place-items: center;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-columns: repeat(2, 1fr); */
    column-gap: 35px;
    row-gap: 40px;
    /* width: fit-content; */
}

.post-card-link{
    text-decoration: none;
}

.post-card{
    position: relative;
    background: var(--card-bg);
    border: var(--card-border);
    width: 350px;
    box-shadow: var(--box-shadow-hard);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--element-transition);
}

.post-card:hover{
    transform: translateY(-5px);
    /* border-bottom: 3px solid var(--primary-color); */
}

.post-card .post-img{
    position: relative;
    width: 100%;
    /* height: 200px; */
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-card .post-img img{
    width: 102%;
    height: 102%;
    transition: .3s ease;
}

.post-card:hover .post-img img{
    transform: scale(1.05);
}

.post-content{
    position: relative;
    text-align: center;
    margin: 15px;
}

.post-content .post-title{
    position: relative;
    color: var(--text-color-01);
    font-size: .975em;
    font-weight: 550;
    text-align: left;
    height: 50px;
    overflow: hidden;
    transition: height 0.3s ease;
}

.posted-date{
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 3px;
    color: var(--text-color-02);
}

.posted-date .post-date-icon{
    width: 16px;
}

.posted-date .posted-date-details{
    font-size: .825em;
}

/* .post-content .post-title:before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #fff, transparent);
    display: none;
}

.post-card.gradient .post-content .post-title:before{
    display: block;
} */

/* =========================================
   Value Multiplication Table
========================================= */
.common-table-container{
    position: relative;
    /* width: 700px; */
    width: 100%;
    overflow: hidden;
    padding: 25px;
    margin-top: 7px;
}

.common-table{
    outline: var(--table-border);;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    width: 70%;
}

.common-table-title{
    margin-bottom: 20px;
    
}

.common-table-title .c-table-title{
    /* display: flex;
    justify-content: start;
    align-items: center; */
    /* gap: 5px; */
    margin-bottom: 5px;
}

.common-table-title .multi-table-title-unit-1,
.common-table-title .multi-table-title-unit-2{
    color: var(--text-color-01);
    font-size: 1em;
    font-weight: 500;
}

.common-table-title .c-table-title .multi-table-text{
    color: var(--text-color-01);
    font-size: .95em;
    font-weight: 400;
}

.column-1{
    width: 33%;
}

.column-2{
    width: 33%;
}

.column-3{
    width: 34%;
}

.common-table,  .common-table th, .common-table td{
    border: var(--table-border);
    border-collapse: collapse;
}

.common-table-th{
    padding: 10px;
    font-weight: 600;
    background: var(--input-bg-color);
    font-size: .9em;
    color: var(--text-color-01);
}

.common-table-td{
    padding: 15px 10px;
}

.column-1, .column-2, .column-3{
    text-align: center;
}

.common-table-td .td-x-by{
    color: var(--text-color-03);
    font-weight: 600;
    font-size: .875em;
}

.common-table-td .td-value{
    color: var(--text-color-01);
    font-size: .975em;
    font-weight: 450;
    margin-right: 7px;
}

.common-table-td .td-unit{
    font-size: .925em;
    font-weight: 400;
    color: var(--text-color-02);
}

/*======= Media queries (max-width: 1250px) =======*/
@media screen and (max-width: 1250px) {
    .home .main-container {
        flex-direction: column;
    }

    .top-container{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .ad-container {
        margin-top: 15px;
    }

    .post-card-container{
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 35px 75px;
    }

    .footer-column-one{
        margin-right: 25px;
    }
}

/*======= Media queries (max-width: 1010px) =======*/
@media screen and (max-width: 1010px) {
    .unit-card-container{
        grid-template-columns: repeat(4, 1fr);
    }

    .converter-groups-container{
        grid-template-columns: repeat(3, 1fr);
    }
}

/*======= Media queries (max-width: 850px) =======*/
@media screen and (max-width: 850px) {
    .covertify-home-title h1{
        font-size: 2.25em;
    }
    .unit-card-container{
        grid-template-columns: repeat(3, 1fr);
    }

    .converter-groups-container{
        grid-template-columns: repeat(2, 1fr);
    }

    .post-card-container{
        grid-template-columns: repeat(1, 1fr);
    }

    .footer {
        padding: 25px;
    }

    .footer-column-two {
        gap: 35px;
    }
}

/*======= Media queries (max-width: 650px) =======*/
@media screen and (max-width: 650px) {
    .covertify-home-title p {
        text-align: center;
    }

    .unit-card-container{
        grid-template-columns: repeat(2, 1fr);
    }

    .converter-groups-container{
        grid-template-columns: repeat(1, 1fr);
    }

    .post-card-container{
        column-gap: 25px;
        row-gap: 25px;
    }
}

/*======= Media queries (max-width: 550px) =======*/
@media screen and (max-width: 550px) {
    .post-card{
        width: 100%;
    }

    .content-card .content-card-img {
        max-height: 60px;
        margin-bottom: 25px;
        border-radius: 5px;
    }

    .content-card .content-card-img img {
        transform: translateY(-30px);
    }
}

/*======= Media queries (max-width: 475px) =======*/
@media screen and (max-width: 475px) {
    .unit-card-container{
        grid-template-columns: repeat(1, 1fr);
    }

    .home-sub-title {
        width: fit-content;
    }

    .covertify-home-title{
        margin-left: 25px;
        margin-right: 25px;
    }

    .covertify-home-title h1 {
        font-size: 1.5em;
        margin-bottom: 5px;
    }
}

/*======= Media queries (max-width: 425px) =======*/
@media screen and (max-width: 425px) {
    
}