/* BASE: Mobile */

/* Section1 */
.jet-form-row {
    margin: 10px;
}

input, select, textarea {
    border-radius: 2px;
    border: 1px solid #e0e0e085;
}

#btn_home, .jet-form-row--submit button {
    width: 100%;
    background: black;
    background-image: linear-gradient(to right, #081519 0%, #eaf1ff 51%, #081519 100%);
    background-size: 200% auto;
    padding: 15px;
    color: white;
    text-align: center;
    transition: 0.5s;
}

#btn_home {
    background-image: linear-gradient(to right, #D1913C 0%, #FFD194 51%, #D1913C 100%);
}

.jet-form-row--submit button:hover, #btn_home:hover {
    background-position: right center;
    color: #fff;
}

/* Section2 */
.mobile {
    display: none;
}
.tab {
    display: grid;
    grid-template-columns: 35% 35% 35% 35%;
    gap: 10px;
    width: 100%;
    overflow: auto;
    padding: 0px 10px;
}
.tablink {
    position: relative;
    cursor: pointer;
    padding: 10px 5px 30px 5px;
    text-align: center;
}
.tablink img {
    border-radius: 15px !important;
    transition: 0.3s;
}
.tablink h3 {
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
}
.tablink p {
    display: none;
}
.tablink.active::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 0px);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 20px solid #f8f8f8;
    clear: both;
}
.tabcontent {
    display: none;
    text-align: center;
    padding: 30px 15px;
    border-radius: 3px;
    background: rgb(248, 248, 248);
    position: relative;
}
.tabcontent a {
    position: absolute;
    bottom: -16px;
    padding: 5px 15px 5px 15px;
    transform: translateX(-50%);
    color: white !important;
    border-radius: 3px;
    background-image: linear-gradient(to right, #081519 0%, #eaf1ff 51%, #081519 100%);
    transition: 0.5s;
    background-size: 200% auto;
}
.tabcontent button {
    margin-top: 15px;
}
.pc {
    display: none !important;
}
.mb {
    display: block !important;
}

/* Tab */
#tab1 {
    display: block;
}
.marquee {
    overflow: hidden;
}
.marquee-content {
    display: flex;
    animation: scrolling_mobile 12s linear infinite;
}
.marquee-item {
    flex: 0 0 35vw;
    margin: 0 2vw;
}

/* S3: About SCC */
/* Homepage History */
.history-wrapper {
    margin: auto;
    width: 95%;
}
#history-bar-container {
    position: relative;
    width: 100%;
    margin: 15px 0 15px 0;
    overflow: auto;
}
#history-bar-container ul {
    display: grid;
    padding: 0;
    margin: 0;
    padding-top: 10px;
    z-index: 10;
}
#history-bar-container li {
    list-style: none;
    text-align: center;
    color: #aaa;
    text-transform: uppercase;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    transition: all ease 0.2s;
    vertical-align: bottom;
    position: relative;
    z-index: 10;
    min-width: 110px;
}
#history-bar-container li:first-child {
    text-align: left;
}
#history-bar-container li:last-child {
    text-align: right;
}
#history-bar-container li .step-inner {
    width: 100%;
    bottom: 0;
    font-size: 12px;
    z-index: 10;
    padding-bottom: 10px;
}
#history-bar-container li.active, #history-bar-container li:hover {
    color: #444;
}
#history-bar-container li:after {
    content: " ";
    display: block;
    width: 20px;
    height: 20px;
    background: #f3f3f3;
    border: solid 7px #fff;
    border-radius: 50%;
    margin-top: 10px;
    outline: 1px solid #f3f3f3;
    transition: all ease 0.2s;
    margin: auto;
}
#history-bar-container li:first-child::after {
    float: left;
}
#history-bar-container li:last-child::after {
    float: right;
}
#history-bar-container li:hover:after {
    background: #dbab6b;
}
#history-bar-container li.active:after {
    background: #dbab6b;
}
#history-bar-container #line {
    width: 100%;
    margin: auto;
    background: #eee;
    height: 6px;
    left: 0%;
    top: -15px;
    z-index: 1;
    border-radius: 50px;
    transition: all ease 0.9s;
    position: relative;
}
#history-bar-container #line-progress {
    content: " ";
    width: 1%;
    height: 6px;
    background: #dbab6b;
    position: absolute;
    z-index: 2;
    border-radius: 50px;
    transition: all ease 0.9s;
}
#history-content-section {
    width: 100%;
    margin: auto;
    border-radius: 4px;
    border: 1px solid #eee;
}
#history-content-section .section-content {
    padding: 10px;
    text-align: center;
}
#history-content-section .section-content .grid-content {
    display: grid;
    grid-template-columns: 40% auto;
    column-gap: 10px;
}
#history-content-section .section-content p {
    font-size: 14px;
    line-height: 1.4em;
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}
#history-content-section .section-content {
    display: none;
    animation: FadeInUp 700ms ease 1;
    animation-fill-mode: forwards;
    transform: translateY(15px);
    opacity: 0;
}
#history-content-section .section-content.active {
    display: block;
}
@keyframes FadeInUp {
    0% {
        transform: translateY(15px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* S4: BLOG */
.grid-posts {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 15px;
}

.gp-image {
    border-radius: 20px;
    overflow: hidden;
}

.gp-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gp-title {
    margin-bottom: 5px;
    font-family: Helvetica;
}

.gp-title a {
    font-size: 16px !important;
    color: #0c234b !important;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.gp-content {
    padding: 15px 10px 5px 10px;
}

.gp-ex-info {
    padding: 0px 0 10px 0;
}

.gp-date, .gp-category, .gp-category a, .gp-date2 {
    display: inline-block;
    padding: 0 10px 0 0;
    color: #dbab6b;
    font-size: 14px;
}

.gp-excerpt, .gp-excerpt p {
    text-align: justify;
    font-size: 15px !important;
    color: #303030;
    font-family: "Helvetica";
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5em;
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gp-excerpt a {
    color: #dbab6b;
}

.grid-post-mini {
    display: grid;
    grid-template-columns: 30% auto;
    column-gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #efefef;
}

.gp-content2 {
    padding: 10px;
}

.gp-title2 {
    margin-bottom: 5px;
    overflow: hidden;
}

.gp-title2 a {
    font-size: 15px !important;
    color: #0c234b !important;
    font-weight: 500;
    font-family: Helvetica;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.grid-post-mini .gp-image {
    border-radius: 5px;
}

/* BREAKPOINT: Desktop */
@media (min-width: 1279px) {
    .tab {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tablink {
        padding: 30px;
    }
    
    .tablink img {
        border-radius: 30px !important;
    }
    
    .tablink h3 {
        font-size: 18px;
    }
    
    .tablink p {
        display: block;
        font-weight: 300;
        padding-bottom: 20px;
    }
    
    .tablink:hover img {
        transform: scale(1.05);
    }
    
    .tablink.active::after {
        border-left: 120px solid transparent;
        border-right: 120px solid transparent;
        border-bottom: 30px solid #f8f8f8;
    }
    
    .tabcontent {
        text-align: center;
        padding: 45px;
        border-radius: 25px;
    }
    
    .tabcontent a:hover {
        background-position: right center;
        color: #fff;
        text-decoration: none;
    }
    
    .pc {
        display: block !important;
    }
    
    .mb {
        display: none !important;
    }
    
    /* Tab */
    #tab1 {
        display: block;
    }
    
    .marquee-content {
        animation: PC_scrolling 8s linear infinite;
    }
    
    .marquee-item {
        flex: 0 0 10vw;
        margin: 0 1vw;
    }
    
    .marquee-item img {
        display: block;
        width: 100%;
    }

    .grid-posts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 40px;
        row-gap: 25px;
    }
    
    .grid-post-mini {
        padding-top: 25px;
    }
}

/* BREAKPOINT: Mobile landscape */
@media (min-width: 767px) {
    /* Add any specific styles for this breakpoint if needed */
}

/* BREAKPOINT: Tablet portrait */
@media (min-width: 991px) {
    /* Add any specific styles for this breakpoint if needed */
}
