.main-item-morelink {
    text-align: center;
    margin: 25px 0 30px 0;
    padding: 0;
}

.main-item-morelink a {
    display: inline-block;
    border: 2px solid #339999;
    border-radius: 8px;
    background-color: #f5f5f5; 
    padding: 2px 5px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-item-morelink a:hover {
    cursor: pointer;
    background-color: #339999;
    color: white;
    border-color: #339999;
}
h2.main-item-head {
    display: inline-block;
    
    border: 4px solid #339999; 
    border-radius: 8px;
    padding: 5px 10px; 
    
    background-color: #339999;
    margin: 25px auto; 
    color: #333;
}

h2.main-item-head a {
    color: #ffffff; 
    text-decoration: none; 
    font-weight: bold;
}
.metadata-row {
    color: #fff;
}

.metadata-row svg {
    fill: #fff;
}
.metadata-row,
.metadata-row span,
.category-link-wrap a {
    color: #fff !important; 
}
.meta-inline {
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.home-blog-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-blog-item {
    display: flex;
    flex-direction: row;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-blog-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.home-blog-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 16px;
}

.home-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-blog-content {
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-blog-name {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.home-blog-name a {
    display: block;
    color: #111;
    text-decoration: none;
}

.home-blog-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .home-blog-item {
        flex-direction: column;
    }
    .home-blog-thumb {
        width: 120px;
        height: 120px;
        margin: 0 auto 12px;
    }
    .home-blog-content {
        padding: 8px 12px;
    }
    .home-blog-name {
        margin-bottom: 10px;
    }
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Arrow on the right */
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #111;
    list-style: none;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Custom Arrow Icon */
.faq-item summary::after {
    content: '\25BC'; /* Unicode Down Triangle */
    font-size: 12px;
    color: #339999;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

/* Rotate Arrow when open */
.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background-color: #f9f9f9;
    color: #339999;
}

.faq-item summary h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: inherit;
}

.faq-answer {
    padding: 0 20px 15px 20px;
    border-top: 1px solid #f9f9f9;
}

.faq-answer p {
    margin: 10px 0 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.faq-item[open] {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #339999;
}

.blog-thumb {
  width: 100%;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .blog-thumb img {
    max-height: 380px;
  }
}

.pc-only, .mobile-only { display: none; }

@media (min-width: 992px) {
    .site-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 5px 40px !important;
        position: relative !important;
        background: #fff;
        box-sizing: border-box !important;
        border-bottom: 1px solid #eee;
        height: 60px !important;
    }

    .site-branding {
        position: absolute !important;
        left: 40px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }

    .site-branding-text, .site-title, .site-description {
        display: none !important;
    }

    .site-branding img {
        max-height: 45px !important;
        width: auto !important;
    }

    .codehap_sidebar, .mobile-only {
        display: none !important;
    }

    #pc-nav-custom {
        display: block !important;
        margin: 0 auto !important;
    }

    .list-menu-pc {
        display: flex !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .list-menu-pc li {
        margin: 0 15px !important;
        list-style: none !important;
        position: relative !important; 
    }

    .list-menu-pc li a {
        text-decoration: none !important;
        color: #333 !important;
        font-weight: 700 !important;
        font-size: 15px !important;
        white-space: nowrap !important;
        line-height: 60px !important;
        display: block !important;
    }

    .list-menu-pc li a:hover {
        color: #5ba1a1 !important;
    }

    .list-menu-pc .sub-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: #fff !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
        padding: 10px 0 !important;
        min-width: 200px !important;
        z-index: 9999 !important;
        margin: 0 !important;
        border-radius: 0 0 5px 5px;
    }

    .list-menu-pc li:hover > .sub-menu {
        display: block !important;
    }

    .list-menu-pc .sub-menu li {
        margin: 0 !important;
        width: 100% !important;
    }

    .list-menu-pc .sub-menu li a {
        line-height: 35px !important;
        padding: 0 20px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }
}

@media (max-width: 991px) {
    #pc-nav-custom { display: none !important; }
    .codehap_sidebar { display: block !important; }
}
@media (min-width: 992px) {
    .list-menu-pc li.menu-item-has-children > a:after {
        content: "";
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 6px;
        vertical-align: middle;
        border-top: 5px solid #333;
        border-right: 4px solid transparent;
        border-left: 4px solid transparent;
        transition: 0.3s;
    }

    .list-menu-pc li.menu-item-has-children:hover > a:after {
        border-top-color: #5ba1a1;
        transform: rotate(180deg);
    }
}

#download-button-mp3 {
    width: 100%;
    background: #000;
    color: #fff;

    border-radius: 50px;

    padding: 14px 20px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    cursor: pointer;

    transition: all .25s ease;

    appearance: none;
    -webkit-appearance: none;

    outline: none;
}

#download-button-mp3:hover {
    opacity: .92;
}

#download-button-mp3 svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
}

#download-button-mp3 span {
    white-space: nowrap;
}

@media (max-width: 768px) {

    #download-button-mp3 {
        font-size: 15px;
        padding: 13px 16px;
    }

}