/*
 Theme Name:   Page Builder Framework Child
 Theme URI:    https://wp-pagebuilderframework.com/
 Description:  Child theme for Page Builder Framework
 Author:       Smooets Teknologi
 Author URI:   https://www.smooets.com/
 Template:     page-builder-framework
 Version:      1.0.0
 Text Domain:  page-builder-framework-child
*/

/* Custom Header Styles */
.custom-header {
    background: #fff;
    border-bottom: 1px solid #efefef;
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 10px 0;
}

/* Unified Container for Perfect Alignment */
.header-container,
.pre-footer-section,
.footer-container,
.footer-bottom-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.header-container {
    display: flex;
    align-items: center;
}

.header-logo {
    margin-right: 40px;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-main-nav {
    flex: 1;
}

/* Main Menu List Layout */
.header-main-nav .main-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* The magic class to push items to the right */
.header-main-nav .main-menu-list li.menu-item-right {
    margin-left: auto !important;
}

/* Fix spacing if multiple items have the 'menu-item-right' class */
.header-main-nav .main-menu-list li.menu-item-right ~ li.menu-item-right {
    margin-left: 10px !important; /* Reset the push if already pushed */
}

.header-main-nav .main-menu-list > li {
    margin: 0 5px;
    position: relative;
    padding: 10px 0;
}

.header-main-nav .main-menu-list > li > a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-main-nav .main-menu-list > li:hover > a {
    background: #e9f3f7;
    color: #00aeef;
}

/* Menu Icons - Font Awesome 5 Compatibility */
.menu-icon-wa > a::before {
    content: "\f232";
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

.menu-icon-login > a::before {
    content: "\f2f6";
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.menu-icon-chat > a::before {
    content: "\f4ad";
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* CTA Menu Icons */
.btn-cta-menu > a::before {
    content: "\f232";
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

/* CTA Menu Class Styling */
.btn-cta-menu > a {
    background-color: #00aeef !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background 0.3s ease !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.btn-cta-menu > a:hover {
    background-color: #0093ca !important;
    color: #fff !important;
}

/* Sub-menu (Dropdown) */
.header-main-nav .main-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px 0;
    list-style: none !important; /* Forces bullets to disappear */
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.header-main-nav .main-menu-list .sub-menu li {
    list-style: none !important; /* Extra safety for some themes */
    margin: 0;
    padding: 0;
}

.header-main-nav .main-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-main-nav .main-menu-list .sub-menu li a {
    padding: 12px 25px;
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-main-nav .main-menu-list .sub-menu li a:hover {
    background: #f8fbff;
    color: #00aeef;
    padding-left: 30px;
}

/* Dropdown Arrow Indicator (Fixed Version 5) */
.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900;
    font-size: 11px;
    margin-left: 8px;
    display: inline-block;
}

.btn-text {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.btn-cta {
    background-color: #00aeef;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn-cta:hover {
    background-color: #0093ca;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
}

.mobile-header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 15px;
}

/* Custom Footer Styles */
.custom-footer {
    background: #fdfdfd;
    color: #444;
}

.pre-footer-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    background: #fff;
}

.footer-bottom-container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.pre-footer-heading {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.pre-footer-text {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 16px;
    opacity: 0.8;
}

.large-cta {
    padding: 15px 40px;
    font-size: 18px;
}

.main-footer-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 0 1 auto;
    min-width: 180px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 48px;
    width: auto;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 25px;
}

.social-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #00aeef;
    color: #fff;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    list-style: none !important;
}

.footer-column ul li a {
    text-decoration: none;
    color: #555; /* Default matches text color */
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #00aeef; /* Only blue on hover */
    transform: translateX(3px);
}

.footer-contact-column .contact-info {
    font-size: 14px;
}

.contact-label {
    opacity: 0.7;
    margin-bottom: 10px;
}

.contact-item {
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-section {
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid #efefef;
}

.footer-bottom-centered {
    text-align: center;
    width: 100%;
}

.copyright-text {
    font-size: 13px;
    opacity: 0.7;
    margin: 0 0 10px 0;
    color: #444;
    line-height: 1.6;
}

.footer-member-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.footer-member-logo {
    height: 32px;
    width: auto;
    display: block;
}

/* Header Actions Styling */
.header-right-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.mobile-cta {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .header-main-nav, .header-right-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-nav-column, .footer-sidebar {
        flex: none;
        width: 100%;
    }
}

/* Blog Archive Styles */
.blog-archive-main {
    background-color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 40px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.aspect-\[16\/10\] {
    aspect-ratio: 16/10;
}

.blog-title a {
    text-decoration: none;
    color: #0f172a;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: #00aeef;
}

.blog-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination Styling */
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #00aeef;
    border-color: #00aeef;
    color: #fff;
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #94a3b8;
}

/* Single Post Content Styling (Gutenberg & HTML Support) */
.post-content-inner {
    font-size: 1.125rem;
    color: #334155;
    line-height: 1.8;
}

/* Standard Header & Paragraph spacing */
.post-content-inner p { margin-bottom: 2rem; }
.post-content-inner h1, 
.post-content-inner h2, 
.post-content-inner h3, 
.post-content-inner h4, 
.post-content-inner h5, 
.post-content-inner h6 {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.25;
}
.post-content-inner h2 { font-size: 2.25rem; }
.post-content-inner h3 { font-size: 1.75rem; }
.post-content-inner h4 { font-size: 1.5rem; }

/* Lists */
.post-content-inner ul, 
.post-content-inner ol {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}
.post-content-inner ul { list-style: disc; }
.post-content-inner ol { list-style: decimal; }
.post-content-inner li { margin-bottom: 0.75rem; }
.post-content-inner li > ul, 
.post-content-inner li > ol { margin-top: 0.75rem; margin-bottom: 0; }

/* Images & Media Alignments */
.post-content-inner img, 
.post-content-inner iframe, 
.post-content-inner video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    margin: 3rem auto;
}

.post-content-inner .aligncenter,
.post-content-inner .wp-block-image.aligncenter { text-align: center; margin: 3.5rem auto; }
.post-content-inner .alignleft,
.post-content-inner .wp-block-image.alignleft { float: left; margin: 0 2rem 2rem 0; max-width: 50%; }
.post-content-inner .alignright,
.post-content-inner .wp-block-image.alignright { float: right; margin: 0 0 2rem 2rem; max-width: 50%; }

.post-content-inner .alignwide { 
    margin-left: -10%; 
    margin-right: -10%; 
    max-width: 120%; 
    width: 120%; 
}
.post-content-inner .alignfull { 
    margin-left: calc(50% - 50vw); 
    margin-right: calc(50% - 50vw); 
    max-width: 100vw; 
    width: 100vw; 
    border-radius: 0;
}
@media (max-width: 1024px) {
    .post-content-inner .alignwide,
    .post-content-inner .alignfull {
        margin-left: 0; margin-right: 0; width: 100%; max-width: 100%; border-radius: 1.5rem;
    }
}

/* Figure Captions */
.post-content-inner figcaption {
    text-align: center;
    font-size: 0.875rem;
    font-style: italic;
    color: #94a3b8;
    margin-top: -2rem;
    margin-bottom: 3.5rem;
}

/* Tables */
.post-content-inner table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2.5rem;
    font-size: 0.875rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}
.post-content-inner th { background: #f8fafc; font-weight: 700; text-align: left; }
.post-content-inner th, 
.post-content-inner td { padding: 1rem; border: 1px solid #f1f5f9; }

/* Blockquotes */
.post-content-inner blockquote {
    margin: 4rem 0;
    padding: 2.5rem 3rem;
    background: #f8fafc;
    border-left: 6px solid #00aeef;
    border-radius: 1.5rem;
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 500;
    color: #0f172a;
}

/* Code & Pre */
.post-content-inner pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin-bottom: 2.5rem;
    font-family: inherit;
    font-size: 0.9rem;
}
.post-content-inner code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.2rem 0.4rem;
    border-radius: 0.4rem;
    font-size: 0.875rem;
}

/* Single Page Specific Adjustments */
.single-page-main {
    background: #fff;
}

.page-header h1 {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
}

.page-article .post-content-inner {
    margin-top: 3rem;
}

/* Tag List Styling */
.tags-list a {
    display: inline-block;
    padding: 6px 16px;
    background: #f1f5f9;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tags-list a:hover {
    background: #00aeef;
    color: #fff;
}

/* Post Navigation Hovers */
.post-navigation .group:hover span:last-child {
    color: #00aeef;
}

/* Global Font Awesome Fix for Child Theme */
.fas, .fa-solid {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

.far, .fa-regular {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
}
