/*
 Theme Name:   Kingster Child
 Theme URI:    http://demo.goodlayers.com/kingster
 Description:  Goodlayers Kingster Child Theme
 Author:       Goodlayers
 Author URI:   http://goodlayers.com
 Template:     kingster
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, right-sidebar, responsive-layout
 Text Domain:  kingster-child

 START YOUR CHILD THEME CSS HERE
*/
/* =========================================================
   PPC FACEBOOK NEWS
========================================================= */

.ppc-facebook-news{
    background:#eeeeee;
    padding:38px 0 45px;
}


/* =========================================================
   TITLE
========================================================= */

.ppc-fb-section-title{
    max-width:1120px;
    margin:0 auto 24px;

    display:flex;
    align-items:center;

    gap:14px;
}


.ppc-fb-title-left{
    display:flex;
    align-items:center;

    gap:8px;

    white-space:nowrap;

    color:#40588d;

    font-size:20px;

    font-weight:600;
}


.ppc-fb-title-left i{
    color:#1877f2;
    font-size:22px;
}


.ppc-fb-title-line{
    height:2px;
    width:100%;

    background:#e1ba20;
}


/* =========================================================
   GRID
========================================================= */

.ppc-facebook-grid{

    max-width:1120px;

    margin:auto;

    display:grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap:18px;
}


/* =========================================================
   CARD
========================================================= */

.ppc-facebook-card{

    min-width:0;

    background:#ffffff;

    overflow:hidden;

    border-radius:3px;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,.14);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.ppc-facebook-card:hover{

    transform:
        translateY(-3px);

    box-shadow:
        0 7px 18px
        rgba(0,0,0,.18);
}


/* =========================================================
   FACEBOOK EMBED
========================================================= */

.ppc-facebook-embed{

    position:relative;

    height:350px;

    overflow:hidden;

    background:#ffffff;
}


/*
Facebook สร้าง iframe ข้างใน
*/

.ppc-facebook-embed iframe{

    width:500px !important;

    max-width:none !important;

    transform-origin:
        top left;

}


/* =========================================================
   FOOTER
========================================================= */

.ppc-facebook-footer{

    position:relative;

    z-index:5;

    padding:
        12px 14px;

    background:#ffffff;

    border-top:
        1px solid #eeeeee;
}


.ppc-facebook-footer a{

    color:#1877f2;

    font-size:13px;

    font-weight:600;

    text-decoration:none;
}


.ppc-facebook-footer a:hover{

    text-decoration:underline;
}


/* =========================================================
   VIEW MORE
========================================================= */

.ppc-facebook-more{

    text-align:center;

    margin-top:30px;
}


.ppc-facebook-more-btn{

    display:inline-block;

    padding:
        11px 28px;

    background:#b4002b;

    color:#ffffff !important;

    font-size:11px;

    font-weight:600;

    letter-spacing:1px;

    text-decoration:none !important;

    transition:
        background .25s ease,
        transform .25s ease;
}


.ppc-facebook-more-btn:hover{

    background:#8f0022;

    transform:
        translateY(-2px);
}


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

@media(max-width:991px){

    .ppc-facebook-grid{

        grid-template-columns:
            repeat(2, minmax(0,1fr));

        padding:
            0 20px;

    }


    .ppc-fb-section-title{

        margin-left:
            20px;

        margin-right:
            20px;

    }


    .ppc-facebook-embed{

        height:
            380px;

    }

}


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

@media(max-width:575px){

    .ppc-facebook-news{

        padding:
            30px 0 38px;

    }


    .ppc-facebook-grid{

        grid-template-columns:
            1fr;

        padding:
            0 15px;

    }


    .ppc-fb-section-title{

        margin:
            0 15px 20px;

    }


    .ppc-fb-title-left{

        font-size:
            17px;

    }


    .ppc-facebook-embed{

        height:
            420px;

    }

}