/*
 Theme Name: WP Media Child
 Theme URI: https://pai-space.com/
 Description: Child theme for WP Media
 Author: PAI Space
 Template: wpmedia
 Version: 1.0
*/

/* Reset tombol search biar konsisten */
.gmr-search-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Sembunyikan SVG bawaan (kalau ada) */
.gmr-search-icon svg {
    display: none !important;
}

/* Icon search modern */
.gmr-search-icon::before {
    content: "";
    width: 22px;
    height: 22px;
    background-color: currentColor;
    display: block;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='black' stroke-width='2' fill='none'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='black' stroke-width='2' fill='none'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65' stroke='black' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gmr-menugrid-btn .gmr-dropdown {
    border-radius: 4px;
}

/* Hover effect */
.gmr-search-icon:hover::before {
    opacity: 0.75;
    transform: scale(1.1);
}


/* === BERITA TERBARU === */

.box-content {
  display: flex;
  flex-direction: column;
}

.gmr-meta-topic {
  order: 1;
  margin-bottom: 4px;
}

.entry-title {
  order: 2;
  margin: 4px 0;
}

.posted-on {
  order: 3;
  font-size: 12px;
  color: #777;
}

/* gaya kategori */
.gmr-meta-topic a {
  background: #ff8a00;
  color: #fff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 3px;
  display: inline-block;
}

/* -------- ANIMASI -------*/
/* CONTAINER FEATURED IMAGE */
.post-thumbnail{
    width:100%;
}

/* WRAPPER ZOOM */
.thumbnail-zoom{
    overflow:hidden;
    width:100%;
}

/* GAMBAR DALAM WRAPPER */
.thumbnail-zoom img{
    display:block;
    width:100%;
    height:auto;
}

/* TRANSISI GAMBAR */
.entry-content img,
.post-thumbnail img {
    transition: transform 0.4s ease;
}

/* HOVER IMG ATAU LINK */
.entry-content img:hover,
.post-thumbnail img:hover,
.post-thumbnail:hover img,
.thumbnail-zoom:hover img {
    transform: scale(1.15);
}

/* FOTO DALAM ARTIKEL TIDAK BOLEH ZOOM */
.entry-content-single img,
.entry-content-single img:hover {
    transform: none !important;
}

/* KONDISI NORMAL ICON FORMAT */
.svg-format.gmr-format-gallery,
.gmr-format.gmr-format-gallery {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* SAAT HOVER LINK */
.post-thumbnail:hover .svg-format.gmr-format-gallery,
.post-thumbnail:hover .gmr-format.gmr-format-gallery {
    opacity: 0;
    visibility: hidden;
}

.thumbnail-zoom img{
    will-change: transform;
}

.wp-block-image figcaption, .wp-caption-text {
    color: var(--content-greycolor);
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
    margin: 4px 0;
}

/* FULL WIDTH FEATURED IMAGE MOBILE */
@media (max-width:768px){

    .post-thumbnail.gmr-thumbnail-single{
        width:100vw;
        max-width:100vw;
        margin-left:calc(50% - 50vw);
        margin-right:calc(50% - 50vw);
    }

    .post-thumbnail.gmr-thumbnail-single img{
        width:100%;
        height:auto;
        display:block;
    }

}

/* Animasi DOT */
ul.menu li.menu-dot > a:after {
    content: "";
    width: 5px;
    height: 5px;
    background-color: red;
    position: absolute;
    top: 11px;
    right: -4px;
    border-radius: 50%;
    display: inline-block;

    animation: dotBlink 1s infinite steps(1);
}

@keyframes dotBlink {
    0%   { visibility: visible; }
    50%  { visibility: hidden; }
    100% { visibility: visible; }
}

/*----- END ANIMASI ------/*


/*--------- Header---------*/
.branding-text .site-title {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    text-transform: none !important;
}

.branding-text .site-title a {
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    text-decoration: none;
    display: inline-block;
    font-weight: inherit;
}

/* ===== AREA LOGO TEKS ===== */
.site-title.logolink a {
    padding-left: 0px;
}


/* jangan flex agar header kanan aman */
.site-title.logolink a {
    display: inline-block;
    text-decoration: none;
}

/* BARIS ATAS: AI + SPACE */
.site-title .title-main {
    display: inline-flex;
    align-items: center;
}

/* AI */
.site-title .title-ai {
    font-size: 29px;
    font-weight: 600;
    color: #000;
    line-height: 1;
	  transform: translate(-3px, 5.5px);
}

/* SPACE */
.site-title .title-space {
    font-size: 29px;
    font-weight: 400;
    color: #000;
    line-height: 1; 
	 transform: translate(-3px, 5.5px);
}

/* BARIS BAWAH: Pendidikan Agama Islam */
.site-title .title-logo {
    display: block;
    font-size: 10.6px;
    font-weight: 400;
    margin-top: 	1px;
    line-height: 1.3;
    transform: translate(-9.8px, 0.5px);
    background: linear-gradient(
        130deg,
        #012ea9 0%,
        #012ea9 60%,
        #0299c4 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Hide Deskripsi */
.site-description {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

       /* Menu */
ul.menu li.menu-orange > a {
    color: #fe5505;
}

.gmr-mainmenu ul.menu > li.menu-orange {
    --mainmenu-hovercolor: #fe5505;
}

.gmr-mainmenu ul.menu > li > a span, .gmr-sidemenu ul.menu > li > a span {
    font-weight: 700;
    font-family: Poppins;
}

ul.menu li.menu-blue > a {
    color: #21409A;
}

.gmr-mainmenu ul.menu > li.menu-blue {
    --mainmenu-hovercolor: #21409A;
}

.gmr-mainmenu ul.menu > li.menu-red {
    --mainmenu-hovercolor: #ff0000;
}

.gmr-mainmenu ul.menu > li > a span,
.gmr-sidemenu ul.menu > li > a span {
    font-weight: 700;
}
    /* End Menu */

/* AI â€“ Dark Mode */
body.dark-theme .site-title .title-ai {
    color: #ffffff;
}

body.dark-theme .site-title .title-space {
    color: #ffffff;
}

   /* Warna Header */
body.dark-theme .main-navigation {
    background: none !important;
    background-color: #222222 !important;
    box-shadow: 0px 9px 8px -4px rgba(0, 0, 0, 0.5);
}

.gmr-topnavwrap .site-header {
    padding: 10px 0px 0px;
}

/* -------END HEADER---------- */

/* Heading Widget */
h3.page-title.sub-title, .widget-title
{
    font-size: 25px;
    font-family: 'Poppins';
    font-weight: 700;
}

h2.entry-title {
    font-size: 18px;
    margin-bottom: 0px;
}


/*-------VERSI MOBILE---------- */
@media (max-width: 600px) {
/* AI */
	.site-title .title-ai {
    font-size: 27px;
    font-weight: 600;
    color: #000;
    line-height: 1;
	  transform: translate(-3.5px, 6.2px);
}

/* SPACE */
.site-title .title-space {
    font-size: 27px;
    font-weight: 400;
    color: #000;
    line-height: 1; 
	 transform: translate(-3.5px, 6.2px);
}

/* BARIS BAWAH: Pendidikan Agama Islam */
.site-title .title-logo {
    display: block;
    font-size: 10.1px;
    font-weight: 400;
    margin-top: 1px;
    line-height: 1.3;
    transform: translate(-13px, 1px);
    background: linear-gradient(
        130deg,
        #012ea9 0%,
        #012ea9 60%,
        #0299c4 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
	}
	
	/* Logo */
	.branding-logo img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: block;
	  position: relative;
    margin-left: -1px;
	}
	
   /* Icon dan Search */
  #gmr-responsive-menu svg {
    width: 28px !important;
    height: 28px !important;
    transform: translateY(-2px);
	}
	
		.idt-infomainslide h3 a {
		font-size: 20px;
	  line-height: 1.2;
		letter-spacing: -0.5px;
	}
	    .idt-contentbig .idt-cbbox .box-content h2.entry-title a {
        font-size: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
			line-height: 1.2;
			
    }
        h2.entry-title, h2.entry-title a {
        line-height: 1.2;
        color: #3d3d3d;
    }
    .entry-content-single {
    font-size: 16px;
    font-family: sans-serif;
	  line-height: 1.4;
    }
        .row-flex.gmr-navright svg {
        width: 25px;
        height: 25px;
    transform: translateY(-2px);
    }
        #wpmedia-rp-5 {
        display: none !important;
    }
        .idt-contentbig .idt-cbbox .box-content h2.entry-title {
        font-size: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
        .idtsliderthumb-modhome .title-slider {
        font-size: 11px;
        line-height: 1.35;
        margin-top: 6px;

        display: -webkit-box;
        overflow: hidden;

        padding-left: 4px;
        padding-right: 4px;
    }
        .idtsliderthumb-modhome .splide__slide {
        width: calc(100% / 3) !important;
    }
    .idtsliderthumb-modhome .splide__slide:hover, .idtsliderthumb-modhome .splide__slide.is-active {
    border-color: #d3d3d300;
    }
        .idtsliderthumb-modhome .post-thumbnail {
        aspect-ratio: 4 / 3;
    }
    /* Heading Widget */
    h3.page-title.sub-title, .widget-title {
    font-size: 24.5px;
    }
    h2.entry-title {
    font-size: 16.5px;
}
}
/* -------END VERSI MOBILE---------- */

/* Icon Menu & Search â€” MOBILE */
@media (max-width: 768px) {

    /* BUTTON */
    button#gmr-responsive-menu.mobile-only {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 1px;
        margin-left: 1px;
        margin-top: 2px;

        background: none;
        border: 0;
    }

    /* SVG BASE â€” JANGAN KUNCI WARNA */
    button#gmr-responsive-menu svg.icon-search-menu {
        width: 35px !important;
        height: 35px !important;
        transform: translate(6px, 1px);

        color: inherit; /* ðŸ”‘ INI KUNCINYA */
    }

    /* SEMUA SHAPE IKUT WARNA */
    button#gmr-responsive-menu svg.icon-search-menu rect {
        fill: currentColor;
    }

    button#gmr-responsive-menu svg.icon-search-menu circle {
        stroke: currentColor;
    }
}	
/* END Icon menu dan Search */



/*Halaman Index*/
.gmr-filter-index {
    background: var(--greybody-bgcolor);
    border-radius: 5px;
    border: 1px solid #d9d9d9;
    margin-bottom: 20px;
    padding: 10px 10px;
    box-shadow: 0 4px 4px rgba(217,217,217,.25);
}

.gmr-filter-index input[type="number"], .gmr-filter-index select {
    border-radius: 5px;
    margin: 2px 5px 3px 0;
    color: #222222;
}

.gmr-filter-index input[type="submit"] {
    border-radius: 5px;
	  margin: 2px 5px 3px 0;
	  font-weight: 700;
    background-color: #21409a;
}

/* Mode Dark*/
body.dark-theme .gmr-filter-index {
    background: #1e1f23;
    border: 1px solid #2c2d31;
    box-shadow: 0 4px 6px rgba(0,0,0,.45);
}

body.dark-theme .gmr-filter-index input[type="number"],
body.dark-theme .gmr-filter-index select {
    background: #141518;
    color: #e6e6e6;
    border-color: #2c2d31;
}
/*Halaman Index End*/


/*------------ ARTIKEL SELANJUTNYA ----------*/
.gmr-nextposts-button .nextposts-content-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    background:#fff;
    border-radius:8px;
    padding:14px 16px;
    text-decoration:none!important;
    box-shadow:0 2px 4px rgba(0,0,0,.15);
    border-top:5px solid #1e40af;
}

/* Thumbnail off */
.gmr-nextposts-button .post-thumbnail{
    display:none;
}

/* Konten */
.gmr-nextposts-button .nextposts-content{
    flex:1;
    min-width:0;
}

/* LABEL â€” DIPISAH SECARA VISUAL */
.gmr-nextposts-button .nextposts-content::before{
    content:"Artikel Selanjutnya";
    display:block;
    font-size:17px;
    font-weight:700;
    font-family:'Rubik';
    color:#1e40af;
    margin-bottom:6px;
}

/*  JUDUL â€” FIX ASLI 3 BARIS */
.gmr-nextposts-button .recent-title{
    font-size:14px;
    font-weight:500;
font-family: system-ui;
    line-height:1.3;
    color:#21233f;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
    white-space:normal;
    word-break:break-word;
}

/* Panah */
.gmr-nextposts-button .nextposts-icon{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    color:#1e40af;
	  background:transparent;
}

/* SVG */
.gmr-nextposts-button .nextposts-icon svg{
    width:40px;
    height:40px;
    fill:currentColor;
}

/* Mode Dark */

body.dark-theme .gmr-nextposts-button .nextposts-content-link {
    background: #333333;
    color: #f1f1f1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    border-top-color: #3b82f6;
}

/* Label */
body.dark-theme .gmr-nextposts-button .recent-title::before {
    color: #60a5fa;
}

/* Judul */
body.dark-theme .gmr-nextposts-button .recent-title {
    color: #ffffff;
}
/*  END NEXT */



/*--------- POST TERKAIT------- */
.list-gallery {
    display: inline-block;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f4f6ff;
    border-radius: 4px;
	border: 1px solid #e7e7e7;
	box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
}
.list-gallery-title {
    padding: 5px 5px 5px;
}

.list-gallery-title .recent-title {
	font-size: 13px;
	line-height: 1.3;
}

/* Dark Mode */
body.dark-theme 
    .list-gallery {
        background: #333333;
        border: 1px solid #2a2a2a;
        box-shadow: 0 2px 6px rgb(0 0 0 / 45%);
    }
    .list-gallery-title {
        padding: 5px;
    }
body.dark-theme
    .list-gallery-title .recent-title {
        color: #eaeaea;
    }

.entry-content-single img {
	border-radius: 4px;
}
/*--------- END POST TERKAIT------- */

/* Pilihan Font Besar/Kecil*/
.gmr-fontsize-btn {
  display: none;
}
.font-size-panel {
  display: none;
}
@media (max-width: 768px) {
  .font-size-panel {
    display: none;
    position: fixed;
    top: 300px;
    right: 15px;
    width: 220px;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
    z-index: 9999;
  }

  .font-size-panel.active {
    display: block;
  }

  .font-title {
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
  }

  .font-scale {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .font-scale input {
    flex: 1;
  }

  .font-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 6px;
    color: #777;
  }

body.dark-theme .gmr-fontsize-btn button {
  background: #e5e5e5;
}

body.dark-theme .gmr-fontsize-btn svg {
  color: #000;
}

body.dark-theme .font-size-panel {
	background: #000;
}

.font-size-panel.active {
  display: block;
}
  .gmr-fontsize-btn {
    display: inline-block;
  }
.gmr-fontsize-btn button {
  width: 35px;
  height: 22px;
  background: #000;
  border-radius: 4px;
  border: 0;
  padding: 0;

  display: grid;
  place-items: center;
	  /* 🔑 KUNCI POSISI */
  transform: translateY(6.5px);
}
.gmr-fontsize-btn svg {
  width: 24px;
  height: 24px;
  color: #fff;
  display: block;
}
.gmr-fontsize-btn button:hover {
  background: #e5e5e5;
}
.gmr-fontsize-btn button:hover svg {
  color: #000;
}		
}
/* Pilihan END Font Besar/Kecil*/
