/*
Theme Name: Madrasah Theme
Theme URI: https://mathpro.id
Author: Agung Izzul Haq
Author URI: https://kimiamath.com
Description: A theme that specially build for a Madrasah.
Tags: blog, two-column, featured-images
Version: 1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: madrasah
This theme, like WordPress, is licensed under the GPL.
*/


/* General Styling */
:root {
    /*--main-color: #037951;*/
    --main-color: #036d49;
	--secondary-color: #f0c929;
	--tertiary-color: #e9f1f9;
    --main-font: 'Poppins', sans-serif;
    --secondary-font: 'Open Sans', sans-serif;
    --btn-size-1: 40px;
    --btn-size-2: 45px;
    --btn-size-3: 50px;
	--space: 2.5em;
}
*{
	box-sizing: border-box;
}
html{
    font-size:16px;
}
body{
    font-family: var(--secondary-font);
    background-color: #fff;
    margin:0;
    padding:0;
    color:#333333;
    font-weight:400;
    /*-webkit-font-smoothing: antialiased;*/
    /*-moz-osx-font-smoothing: grayscale;*/
}
.single{
    background-color:#f4f4f4;
}
.container{margin: 0 1.1em;}
a {text-decoration: none;}
.home-wrapper {
    padding: 60px 0;
}
.even-columns {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	grid-gap: 2em;
}
.flex-start{
	align-items: flex-start;
}
.flex-center{
	align-items: center;
}
.space-between{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.space-evenly{
	display: flex;
	justify-content: space-evenly;
}
.space-around{
	display: flex;
	justify-content: space-around;
	align-items: center;
}

.home-h2{
    font-family: var(--main-font);
    font-weight: bold;
    font-size: 2em;
    text-align: center;
    position: relative;
    padding-bottom: 7px;
    margin: 0;
}
.diff{
    color: var(--main-color);
}
.diff2{
    color: var(--secondary-color);
}
.home-h2::after {
    position: absolute;
    content: '';
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 4px;
    background-color: var(--main-color);
}
.home-h2.bg-main::after {
    background-color: var(--secondary-color);
}
.home-content{
    margin-top: 70px;
}
button{
    background-color: var(--secondary-color);
    color: #333333;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    display: inline-block;
    border: none;
    padding: 0.9em 1.5em;
    border-radius: 13px;
    font-weight: 500;
    font-family: var(--main-font);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.berita-btn button:hover{
    background-color: var(--secondary-color);
    color: #333333;
}
.has-text-align-center {
    text-align: center;
}


/* 1. Header */

header{
	font-family: var(--main-font);
    /*box-shadow: 0px 3px 8px 0px rgba(158, 158, 158, 0.3);*/
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
}




/* Header Top Bar */
.top-bar{
    background-color: #025f39;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    padding: 11px 0;
    color: #e8e8e8;
    font-size: 0.85em;
}

.whatsapp{
    padding-top: 2px;
}
.whatsapp a{
    padding-left: 5px;
}
.whatsapp a, .whatsapp a:visited{
    color: #e8e8e8;
}
.ppdb {
    background-color: var(--secondary-color);
    color: #333;
    font-weight: 500;
    font-size: 0.9em;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.ppdb a, .ppdb a:visited{
	color: #333;
}




/* Header Title Bar */
.siteTitle{
    vertical-align:top;
    display:inline-block;
    font-size:20px;
    font-weight:bold;
}
.siteTitle img{
    vertical-align:bottom;
}
.title-bar{
    background-color:var(--main-color);
}
.title-bar .container{
    padding:15px 0;
}
.side-menu {
    display: none;
}
.hamb {
    display: flex;
    align-items: center;
	font-size: 2em;
}
.siteTitle img,.hamb{height:var(--btn-size-1);}
.hamb svg{height:calc(var(--btn-size-1)/2);}



/* Header Desktop Navigation */

.mobile-nav-active{
    overflow: hidden;
}
.mobile-nav-active .menu-utama-container::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 106, 93, 0.8);
    z-index: 9996;
}
.mobile-nav-active .menu-utama-container {
    right: 0;
    background-color: var(--main-color);
}
.mobile-nav-active .menu-item-has-children li {
    padding-right: 0;
}
.mobile-nav-hide{
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 9999;
    color: #e8e8e8;
}
.mobile-nav-toggle {
    color: #e8e8e8;
}
.d-none {
    display: none !important;
}
#menu-utama {
    overflow-y: auto;
}
.sub-menu.active {
    display: block;
    position: relative;
    padding: 1em 0 0 0.7em;
}.sub-menu{
    display: none;
    font-size: 1em;
}

.menu-utama-container{
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    bottom: 0;
    transition: 0.3s;
    z-index: 9997;
}
#menu-utama, .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    font-weight: 500;
    font-size: 0.9em;
    position: absolute;
    z-index: 9998;
    padding: 60px 0 25px 0;
    inset: 0;
}
.sub-menu .sub-menu{
    font-size: 1em;
}
#menu-utama > li, .sub-menu li{
    white-space: nowrap;
    position: relative;
    padding: 0.7em 1em;
}
.sub-menu li{
    padding: 0.6em 1.3em;
}
#menu-utama a, #menu-utama a:visited {
    color: #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.title-bar + .title-bar{
    margin-top: 3em;
}







/* 2. Slide Show */

.slideshow{
    margin-top:var(--space);
}
.slider_container{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	overflow: hidden;
}
.slider {
    position: relative;
    width: 200%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    animation: 15s cubic-bezier(1, 0.95, 0.565, 1) sliding infinite;
}
.slide {
    position: relative;
    min-width: 100%;
    height: 100%;
}
.slide img {
    width: 100%;
    height: 100%;
}
@keyframes sliding {
    0% {
        transform: translateX(0%);
    }
    40% {
        transform: translateX(0%);
    }
    50% {
        transform: translateX(-100%);
    }
    90% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}


/* 3. Welcome Section */

.welcome-flex{
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}
.welcome-flex img{
    width: 300px;
    max-width: 100%;
}
.welcome-text{
    text-align: center;
}
.budaya-kerja ul{
    display: inline-block;
    text-align: left;
}
.welcome-img{
    flex: 45 1 0;
}
.welcome-text{
    flex: 55 1 0;
}
.budaya-kerja{
    margin-top: 1.5em;
}
.budaya-kerja ul {
    list-style-type: none;
    padding: 0;
}
.budaya-kerja ul li {
    margin-bottom: 8px;
}
.budaya-kerja ul li .icon {
    color: var(--main-color);
}



/* 4. Prestasi Madrasah */
.prestasi{
    background-color: var(--main-color);
    color: #e8e8e8;
}
.overflow-hidden{
    overflow: hidden;
}
.whitespace-nowrap{
    white-space: nowrap;
}
.prestasi-el{
    display: inline-block;
    margin-right: 3em;
}
.prestasi-el:last-child{
    margin: 0;
}
.prestasi-btn, .berita-btn{
    text-align: center;
    padding-top: 50px;
}
.marquee {
    width: 100%;
    position: relative;
}
.marquee-content {
    display: inline-block;
    animation: scroll-reverse 20s linear infinite;
}
@keyframes scroll-reverse {
    to {
        transform:translateX(calc(-100% + 1280px))
    }
}




/* 5. Berita Madrasah */
.berita {
    background-color: #fff;
}
.berita p{
    text-align: center;
}
.berita .even-columns, .galeri .even-columns {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.berita-div{
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 5px;
}
.berita-meta{
    font-size: 0.8em;
    padding: 1em 1.3em;
    line-height: 1.5;
}
.berita-meta a, .berita-meta a:visited{
    color: #333333;
}
.berita-title{
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.berita-category{
    padding: 0.4em 0;
}
.responsive-image-container {
    position: relative;
    width: 100%;
    padding-top: 52.5%;
    overflow: hidden;
}
.responsive-image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    border-radius: 5px 5px 0 0;
}
.berita-btn button{
    background-color: var(--main-color);
    color: #e8e8e8;
}


/* 6. Fakta Madrasah */
.icon-background {
    opacity: 0.25;
}
.fact-icon,.fact-desc{
    text-align: center;
}
.circle{
    border-radius: 50%;
    display: inline-block;
    height: 100px;
    line-height: 120px;
    text-align: center;
    width: 100px;
    border-radius: 2px solid var(--main-color);
}
.fact{
    background-color: var(--main-color);
    color: #e8e8e8;
}
.fact-num {
	font-family: var(--main-font);
	font-size: 1.5em;
	font-weight: bold;
	margin: 0.7em 0 0.1em 0;
}
.fact-text {
	font-family: var(--main-font);
	font-size: 1em;
}
.fact-grid{
	display: grid;
	grid-template-columns: 1fr;
	gap: 3em;
}
.fact-icon{
	font-size: 5.5em;
}



/* 7. Galeri Madrasah */
.galeri-div{
    position: relative;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 5px;
}
.galeri-div img{
    transition: 0.3s ease;
}
.galeri-div:hover img {
    filter: brightness(0.5);
}
.galeri-text {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: 80%;
    text-align: center;
    font-size: 0.9em;
    background-color: var(--main-color);
    color: #ffffff;
    padding: 0.7em 1em;
}
.galeri-div:hover .galeri-text {
    opacity: 0.9;
}
.galeri .responsive-image-container img{
    border-radius: 5px;
}


/*8. Main*/

main{
    margin-bottom: 1.7em;
}
.meta{
    text-align: center;
    font-size: 0.9em;
    padding-top: 1em;
    margin: 0 auto;
}
.post-icon{
    font-size: 2.5em;
    text-align: center;
    padding-bottom: 0.5em;
}
.main-title{
    background-color: var(--main-color);
    color: #e8e8e8;
    margin-bottom: 1.7em;
}
.main-title .container{
    padding: 4em 0 4.5em 0;
    border-top: 1px solid #049d66;
}
.main-title h1{
    font-size: 1.5em;
    font-family: var(--main-font);
    text-align: center;
    margin: 0 auto;
}
.main-part {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.7em;
    align-items: start;
}
.main-article {
    background: #fff;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    overflow: hidden;
}
.featured img{
    max-width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0;
}
.breadcrumb, .content{
	margin: 24px;
}
.breadcrumb{
    font-family: var(--main-font);
    font-size: 0.9em;
}
.bread{
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    font-weight: 500;
    line-height: 1.5;
}
.bread span{
  color: var(--main-color);
}
.bread a, .bread a:visited {
  color: var(--main-color);
}
.published-date {
    padding: 7px 0 2px 0;
}
.content img {
    max-width: 100%;
    height: auto;
}
.featured{
    position: relative;
    width: 100%;
    padding-top: 52.5%;
    overflow: hidden;
}
.featured img{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    border-radius: 5px 5px 0 0;
}
p {
  line-height: 1.5;
}


/*Custom Gallery Page*/
.gallery-page, .archive-page{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
}
.gallery-page-caption{
    font-size: 0.9em;
    text-align: center;
    margin: 0.5em 0 0.25em 0;
}
.gallery-page .responsive-image-container img{
    border-radius: 5px;
}



/* 8. Unsur Pimpinan */
.pimpinan-container{
    display: grid;
    gap: 40px;
    justify-items: center;
}
.pimpinan{
    background-color: #e8e8e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1em;
    border-radius: 7px;
    color: #333333;
    text-align: center;
}
.pimpinan img{
    border-radius: 7px;
    max-width: 100%;
}
.pimpinan-nama{
    font-weight: 500;
    padding: 0.35em 0;
}
.pimpinan-jabatan{
    font-size: 0.9em;
}





/* 8. Maps */
.mapouter{position:relative;text-align:right;width:100%;height:400px;}.gmap_canvas {overflow:hidden;background:none!important;width:100%;height:400px;}.gmap_iframe {height:400px!important;}



/* 9. Footer */
.bottom-nav-title{
	display:inline-block;padding-bottom:10px;margin-bottom:20px;position:relative;font-size:1em;font-weight:500;
	font-family: var(--main-font);
	color: var(--secondary-color);
}
.bottom-nav-title::before {
	position: absolute;
	content: '';
	bottom: 0;
	left: 0;
	width: 42px;
	height: 2px;
}
.bottom-nav-title::before {
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--secondary-color);
}
.bottom-nav a{color:#e8e8e8;}
.bottom-nav-list{font-size:0.9em}
footer{
	font-size: 0.9em;
	text-align: center;
	background-color: var(--main-color);
	color: #e8e8e8;
}
footer > .container {
	border-top: 1px solid #e8e8e8;
	padding: 1.7em 0;
}
.footer-social{height:32px;margin-bottom:0.5em;}
.footer-credit{font-size: 0.9em}
.bottom-nav{
	background: var(--main-color);
	color: #e8e8e8;
	padding: 3em 0;
	text-align:center;
	line-height:1.5em;
}
.bottom-nav > div > div {width:100%}
.bottom-nav .container{
	display: flex;
	gap: 2em;
	align-content: space-around;
	flex-direction: column;
}


/*10. Sidebar*/
aside .widget {
	background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	border-radius: 5px;
	padding: 24px;
}
aside .widget + .widget {
	margin-top: 1em;
}
.widgetheading {
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 1.2em;
	text-align: center;
}
.widgetcontent a {
	color: #464646;
}
.widgetcontent > div + div {
	padding-top: 1em;
}
.content, .widgetcontent > div{
    font-size: 0.95em;
}


/*Additional*/
.content .responsive-image-container img {
    height: 100%;
}


/* 11. Media Query */
@media (min-width: 540px) {
	.siteTitle img {height:var(--btn-size-2);}
	.fact-grid{
		grid-template-columns: repeat(2, 1fr);
		gap: 3em 0;
	}
	.welcome-text{
		text-align: left;
	}
	.budaya-kerja ul{
		display: block;
	}
}

@media (min-width: 640px) {
	.fact-icon{
		font-size: 5em;
	}
	.fact-grid{
		grid-template-columns: repeat(3, 1fr);
		gap: 2em 0;
	}
	.fact-grid > div:nth-child(4) {
		grid-column: span 3;
		justify-self: center;
	}
	.mobile-menu{
		grid-template-columns: 1fr 1fr;
	}
	.welcome-text{
		font-size: 1.1em;
	}
    .content, .widgetcontent > div{
        font-size: 1em;
    }
    
    .gallery-page, .archive-page{
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
	html{font-size:16px}
	.container{max-width: 710px;margin: 0 auto;}
	.home-wrapper {
		padding: 100px 0;
	}
    .bottom-nav{text-align:left;}
    .bottom-nav > div > div{width:auto;padding:0;}
    .bottom-nav .container{
        flex-direction: row;
        justify-content: space-around;
    }
    .widget-title::before,.bottom-nav-title::before {
        left: 0;
        transform: none;
    }
	.even-columns{
		grid-gap: 2em;
	}
	.fact-num{
		font-size: 1.65em;
	}
	.fact-text{
		font-size: 0.9em;
	}
	.fact-icon{
		font-size: 4em;
	}
	.fact-grid{
		grid-template-columns: repeat(4, 1fr);
		gap: 0;
	}
	.fact-grid > div:nth-child(4) {
		grid-column: auto;
		justify-self: stretch;
	}

	.welcome-flex{
		flex-direction: row;
	}
	.welcome-flex img{
		width: 400px;
	}
	
	
	.pimpinan-container{
        grid-template-columns: repeat(2,1fr);
    }
    .pimpinan:nth-child(odd) {
      justify-self: end; /* Align items in the first column to the right */
    }
    
    .pimpinan:nth-child(even) {
      justify-self: start; /* Align items in the second column to the left */
    }
    
}


@media (min-width: 1024px) {
	html{font-size:17px}
	.container{max-width: 90%;margin: 0 auto;}
	.hamb{display: none;}
	.even-columns{
		grid-gap: 2.5em;
	}
	.fact-num{
		font-size: 1.85em;
	}
	.fact-text{
		font-size: 1.1em;
	}
    .home-nav{
        display: none;
    }
    
    .widgetcontent > div {
    	font-size: 0.85em;
    }
    .main-part {
        grid-template-columns: 7fr 3fr;
    }
    .main-part.guestbook-container{
        grid-template-columns: 6fr 4fr;
    }
    .main-title h1, .meta{
        max-width: 750px;
    }
    

}


@media (min-width: 1280px) {
	.container{max-width: 1200px}
	.siteTitle img,.hamb{height:var(--btn-size-3);}

    .mobile-nav-show{
        display: none;
    }
 
    .menu-utama-container{
        position: relative;
        max-width: unset;
        right: 0;
        width: unset;
    }
    #menu-utama {
        display: flex;
        overflow-y: unset;
        position: relative;
        padding: 0;
        inset: unset;
    }
    #menu-utama > li:last-child{
        padding-right: 0;
    }
    .sub-menu {
        display: block;
        position: absolute;
        margin: 0;
        padding: 13px 0;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        background: #fff;
        box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
        transition: 0.3s;
        border-radius: 4px;
        /*overflow-y: unset;*/
        inset: unset;
        top: calc(100% + 30px);
    }
    .menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }
    
    #menu-utama .sub-menu a, #menu-utama .sub-menu a:visited{
        color: var(--main-color);
    }
    .menu-item-has-children .menu-item-has-children .sub-menu {
        top: 0;
        left: calc(100% - 28px);
    }
    .menu-item-has-children .menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        left: 100%;
        visibility: visible;
    }
    
    
	.pimpinan-container{
        grid-template-columns: repeat(4,1fr);
        /*grid-template-rows: auto auto;*/
    }
    .pimpinan-container > div:nth-child(1) {
      grid-column: 2;
    }
    
    .pimpinan-container > div:nth-child(2) {
      grid-column: 3;
    }
    .pimpinan-container > div:nth-child(3) {
      grid-column: 1;
    }

    
}