/*
 Theme Name:   GP Custom
 Theme URI:    https://ensata.id
 Description:  GeneratePress Child Theme
 Author:       Endang Nurdin
 Author URI:   https://ensata.id
 Template:     generatepress
 Version:      0.1
*/

/* Header */
    div.search-modal-fields {
        padding: 10px 0 0 10px;
    }

    /* Main Nav Sub */
    .main-navigation ul.sub-menu {
        background: #fff;
        border-radius: 5px;
        padding: 8px 5px;
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.08);
        border-bottom: 2px solid var(--accent);
    }

    .sub-menu.toggled-on {
        box-shadow: none!important;
        border: 0px solid #f1f1f1!important;
        border-radius: 0;
        margin-left: 10px;
        width: 100%!important;
        padding: 0!important;
    }
    .sub-menu.toggled-on li a {
        position: relative;
        padding-left: 25px!Important;
    }
    .sub-menu.toggled-on li a::before {
        width: 5px;
        height: 5px;
        content: " ";
        position: absolute;
        left: 12px;
        background: var(--accent);
        border-radius: 50px;
        top: 17px;
    }

/* Slide Nav */
    .owl-dots {
        text-align: center;
        margin: 10px auto 20px;
        position: static;
        bottom: 20px;
        right: 20px;
    }
    .owl-dots button {
        width: 10px;
        height: 10px;
        opacity: 0.3;
        border-radius: 100px;
        margin: 0 2px;
        background: var(--contrast-3)!important;
    }
    .owl-dots button.active {
        opacity: 0.75;
        width: 30px;
    }
    .owl-stage {
        display: flex;       
    }

    /* Owl Nav */
    .owl-nav button {
        position: absolute;
        top: 38%;
        width: 35px;
        opacity: 1;
        height: 35px;
        transition: all .2s ease-in-out;
        background-repeat: no-repeat;
        background-position: center center!important;
    }
    .owl-nav button:hover { opacity:1; }
    .owl-nav button span {
        display: none;
    }
    .owl-nav button.owl-prev {
        left: -20px;
        background-image: url(images/arrow-left.svg) !important;
    }
    .owl-nav button.owl-next {
        right: -20px;
        background-image: url(images/arrow-right.svg) !important;
    }

    .owl-dots {} 
    .owl-carousel .owl-stage::after {
        display: none!important;
    }
    .top_post .owl-dots {
        position: absolute;
        margin: 0;
        top: auto;
        bottom: 20px;
    }

/* Table of Contents */
.toc-container {
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 5px;
    position: relative;
    font-family: Arial, sans-serif;
}

.toc-container h3 {
    margin: 0;
    cursor: pointer;
    padding: 10px;
    font-size: 20px; /* Ukuran lebih kecil */
    font-weight: bold;
}

.toc-container ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0; /* Kurangi jarak atas */
    counter-reset: section;
}

.toc-container ul li {
    margin-bottom: 4px;
    font-size: 14px; /* Ukuran font lebih kecil */
}

.toc-container ul .toc-h2 {
    font-weight: bold;
    color: #005580;
    margin-top: 6px;
    padding-left: 10px; /* Sejajar dengan konten */
}

.toc-container ul .toc-h3 {
    font-weight: normal;
    color: #0073aa;
    padding-left: 20px; /* Subheading lebih ke dalam */
}

.toc-container ul li a {
    text-decoration: none;
}

.toc-container ul li a:hover {
    text-decoration: underline;
}

html {
    scroll-behavior: smooth; /* Efek smooth scrolling */
}

/* Custom Social Share */
.custom-social-share {
    margin: 0;
    display: flex;
}

.custom-social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    border-radius: 5px;
    font-size: 20px !important;
    text-decoration: none;
    color: #fff; 
    transition: background 0.3s ease-in-out;
}

/* Warna khusus untuk tiap platform */
.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }

.custom-social-share a:hover {
    opacity: 0.8;
}

/* Container Width */
.container .grid-container {
  width: auto !important;
  padding-left: 15px;
  padding-right: 15px;
}
