/*
Theme Name: AajBazar GeneratePress Child
Theme URI: https://aajbazar.com/
Description: Lightweight GeneratePress child theme for AajBazar gold and silver rate pages.
Author: AajBazar
Template: generatepress
Version: 1.0.0
Text Domain: aajbazar-child
*/

/* =========================================================
   AAJBAZAR PROFESSIONAL PRICE PORTAL
========================================================= */

body.home .site-content,
body.home .content-area,
body.home .site-main{
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
}

body.home .inside-article{
    padding:0;
}

body.home .entry-content{
    margin:0;
}

.aajbazar-home{
    width:100%;
    background:#fff;
    color:#171717;
}

.aajbazar-home *{
    box-sizing:border-box;
}

.ab-container{
    width:min(1180px,92%);
    margin:auto;
}


/* =========================================================
   HERO
========================================================= */

.ab-hero{
    padding:55px 0 45px;
    background:
    linear-gradient(
        135deg,
        #fffaf0 0%,
        #fff 50%,
        #f5f7f9 100%
    );
    border-bottom:1px solid #e8e8e8;
}

.ab-hero-content{
    max-width:780px;
    margin:auto;
    text-align:center;
}

.ab-eyebrow{
    display:inline-block;
    margin-bottom:11px;
    color:#8a6900;
    font-size:11px;
    font-weight:800;
    letter-spacing:1.5px;
}

.ab-hero h1{
    margin:0;
    color:#111;
    font-size:clamp(30px,5vw,48px);
    line-height:1.1;
    letter-spacing:-1.2px;
}

.ab-hero-content p{
    max-width:680px;
    margin:17px auto 20px;
    color:#626262;
    font-size:15px;
    line-height:1.7;
}

.ab-live-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border:1px solid #e6e6e6;
    border-radius:30px;
    background:#fff;
    color:#666;
    font-size:11px;
    box-shadow:0 3px 15px rgba(0,0,0,.04);
}

.ab-live-status span:nth-child(2){
    color:#16803b;
    font-weight:800;
}

.ab-live-status i{
    width:1px;
    height:12px;
    background:#ddd;
}

.ab-live-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#18a64b;
}


/* =========================================================
   LIVE PRICE CARDS
========================================================= */

.ab-live-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-top:35px;
}

.ab-live-card{
    padding:20px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:14px;
    box-shadow:0 5px 22px rgba(0,0,0,.045);
}

.ab-gold-main{
    border-top:3px solid #c99700;
}

.ab-silver-main{
    border-top:3px solid #8d98a2;
}

.ab-card-head{
    display:flex;
    align-items:center;
    gap:10px;
}

.ab-metal-badge{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#fff3c8;
    color:#886600;
    font-size:13px;
    font-weight:800;
}

.ab-silver-badge{
    background:#edf1f4;
    color:#65727d;
}

.ab-card-head span{
    display:block;
    color:#777;
    font-size:10px;
    font-weight:800;
    letter-spacing:.8px;
}

.ab-card-head strong{
    display:block;
    margin-top:2px;
    font-size:12px;
    color:#222;
}

.ab-main-price{
    margin:20px 0 8px;
    color:#111;
    font-size:25px;
    font-weight:800;
    line-height:1;
}

.ab-main-price small{
    color:#777;
    font-size:11px;
    font-weight:500;
}

.ab-change{
    font-size:11px;
    font-weight:800;
}

.ab-up{
    color:#15813c;
}

.ab-down{
    color:#d02e2e;
}

.ab-flat{
    color:#777;
}


/* =========================================================
   QUICK NAV
========================================================= */

.ab-quick-nav{
    padding:22px 0;
    border-bottom:1px solid #eee;
}

.ab-quick-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
}

.ab-quick-grid a{
    display:flex;
    align-items:center;
    gap:11px;
    padding:14px;
    color:#111;
    text-decoration:none;
    border:1px solid #e7e7e7;
    border-radius:11px;
    background:#fff;
}

.ab-quick-grid a:hover{
    border-color:#caa94e;
}

.ab-quick-grid a > span{
    font-size:20px;
}

.ab-quick-grid strong{
    display:block;
    font-size:13px;
}

.ab-quick-grid small{
    display:block;
    margin-top:3px;
    color:#777;
    font-size:10px;
}

.ab-quick-grid b{
    margin-left:auto;
    color:#9b7a1e;
}


/* =========================================================
   SECTIONS
========================================================= */

.ab-section{
    padding:55px 0;
}

.ab-light-section{
    background:#f7f9fb;
}

.ab-section-title{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px;
}

.ab-section-title > div > span{
    display:block;
    margin-bottom:7px;
    color:#91731d;
    font-size:10px;
    font-weight:800;
    letter-spacing:1.3px;
}

.ab-section-title h2{
    margin:0;
    color:#151515;
    font-size:27px;
    line-height:1.2;
    letter-spacing:-.5px;
}

.ab-section-title > a{
    color:#765b00;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}

.ab-section-title > a:hover{
    text-decoration:underline;
}

.ab-centered{
    justify-content:center;
    text-align:center;
}

.ab-centered p{
    margin:9px 0 0;
    color:#777;
    font-size:13px;
}


/* =========================================================
   GOLD TABLE
========================================================= */

.ab-price-table-wrap{
    overflow-x:auto;
    border:1px solid #e5e5e5;
    border-radius:13px;
}

.ab-price-table{
    width:100%;
    min-width:700px;
    border-collapse:collapse;
}

.ab-price-table th{
    padding:14px 16px;
    background:#171717;
    color:#fff;
    text-align:left;
    font-size:11px;
    font-weight:800;
}

.ab-price-table td{
    padding:16px;
    border-bottom:1px solid #ededed;
    font-size:13px;
}

.ab-price-table tr:last-child td{
    border-bottom:0;
}

.ab-price-table tbody tr:nth-child(even){
    background:#fafafa;
}

.ab-price-table td strong{
    display:block;
    font-size:14px;
}

.ab-price-table td small{
    display:block;
    margin-top:3px;
    color:#888;
    font-size:9px;
}

.ab-data-note{
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:10px;
    color:#777;
    font-size:10px;
}

.ab-data-note i{
    color:#bbb;
}


/* =========================================================
   SILVER
========================================================= */

.ab-silver-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.ab-silver-grid > div{
    padding:20px;
    background:#fff;
    border:1px solid #e2e6e9;
    border-radius:12px;
}

.ab-silver-grid span{
    display:block;
    color:#777;
    font-size:11px;
}

.ab-silver-grid strong{
    display:block;
    margin-top:9px;
    color:#151515;
    font-size:20px;
}

.ab-silver-featured{
    border-top:3px solid #8c969f !important;
}


/* =========================================================
   CHART
========================================================= */

.ab-chart-card{
    height:330px;
    padding:20px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:14px;
}


/* =========================================================
   TOOLS
========================================================= */

.ab-tools-section{
    background:#fbfaf7;
}

.ab-tools-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.ab-tools-grid > a{
    display:flex;
    gap:17px;
    padding:24px;
    background:#fff;
    border:1px solid #e6e6e6;
    border-radius:14px;
    color:#111;
    text-decoration:none;
}

.ab-tools-grid > a:hover{
    border-color:#c9a747;
}

.ab-tool-icon{
    width:48px;
    height:48px;
    flex:0 0 48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#fff4cf;
    font-size:22px;
}

.ab-silver-tool{
    background:#edf1f4;
}

.ab-tools-grid h3{
    margin:0 0 7px;
    font-size:17px;
}

.ab-tools-grid p{
    margin:0 0 10px;
    color:#777;
    font-size:12px;
    line-height:1.6;
}

.ab-tools-grid strong{
    color:#765b00;
    font-size:12px;
}


/* =========================================================
   CITIES
========================================================= */

.ab-city-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:9px;
}

.ab-city-grid a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:13px 15px;
    color:#222;
    background:#fff;
    border:1px solid #e7e7e7;
    border-radius:9px;
    text-decoration:none;
    font-size:12px;
}

.ab-city-grid a:hover{
    border-color:#cbaa52;
}

.ab-city-grid strong{
    color:#a1822d;
}


/* =========================================================
   TRUST
========================================================= */

.ab-trust-section{
    padding-top:25px;
}

.ab-trust-box{
    padding:30px;
    background:#f8fbff;
    border:1px solid #dcecff;
    border-left:4px solid #2879c7;
    border-radius:13px;
}

.ab-trust-heading{
    max-width:700px;
}

.ab-trust-heading > span{
    color:#2879c7;
    font-size:10px;
    font-weight:800;
    letter-spacing:1.2px;
}

.ab-trust-heading h2{
    margin:7px 0;
    font-size:24px;
}

.ab-trust-heading p{
    margin:0;
    color:#666;
    font-size:13px;
    line-height:1.7;
}

.ab-trust-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-top:25px;
}

.ab-trust-grid > div{
    position:relative;
    padding-left:27px;
}

.ab-trust-grid b{
    position:absolute;
    left:0;
    top:0;
    color:#198344;
}

.ab-trust-grid strong{
    display:block;
    font-size:12px;
}

.ab-trust-grid span{
    display:block;
    margin-top:4px;
    color:#777;
    font-size:10px;
    line-height:1.6;
}


/* =========================================================
   FAQ
========================================================= */

.ab-faq-container{
    max-width:900px;
}

.ab-faq-container details{
    border-bottom:1px solid #e7e7e7;
}

.ab-faq-container summary{
    padding:17px 5px;
    cursor:pointer;
    color:#222;
    font-size:13px;
    font-weight:700;
    list-style:none;
}

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

.ab-faq-container summary:after{
    content:"+";
    float:right;
    font-size:18px;
    font-weight:400;
}

.ab-faq-container details[open] summary:after{
    content:"−";
}

.ab-faq-container details p{
    margin:0;
    padding:0 5px 18px;
    color:#666;
    font-size:12px;
    line-height:1.7;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1000px){

    .ab-live-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .ab-quick-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .ab-silver-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .ab-city-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .ab-trust-grid{
        grid-template-columns:repeat(2,1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:600px){

    .ab-container{
        width:94%;
    }

    .ab-hero{
        padding:38px 0 35px;
    }

    .ab-hero h1{
        font-size:30px;
    }

    .ab-hero-content p{
        font-size:13px;
    }

    .ab-live-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .ab-live-card{
        padding:17px;
    }

    .ab-main-price{
        font-size:24px;
    }

    .ab-section{
        padding:42px 0;
    }

    .ab-section-title{
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
    }

    .ab-section-title h2{
        font-size:23px;
    }

    .ab-quick-grid{
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .ab-quick-grid a{
        padding:11px 9px;
    }

    .ab-quick-grid a > span{
        font-size:17px;
    }

    .ab-quick-grid strong{
        font-size:11px;
    }

    .ab-quick-grid small{
        font-size:9px;
    }

    .ab-silver-grid{
        grid-template-columns:1fr 1fr;
    }

    .ab-silver-grid > div{
        padding:15px;
    }

    .ab-silver-grid strong{
        font-size:17px;
    }

    .ab-chart-card{
        height:270px;
        padding:12px;
    }

    .ab-tools-grid{
        grid-template-columns:1fr;
    }

    .ab-tools-grid > a{
        padding:19px;
    }

    .ab-city-grid{
        grid-template-columns:1fr 1fr;
    }

    .ab-trust-box{
        padding:22px;
    }

    .ab-trust-grid{
        grid-template-columns:1fr;
        gap:15px;
    }

    .ab-data-note{
        flex-wrap:wrap;
    }

}