/* Theme Name: GeneratePress Child Magazine
Template: generatepress
*/

@import url("../generatepress/style.css");

/* Definisi variabel CSS */
:root {
    --primary1: #017d03;
    --terang1: #5dc001;
    --tua1: #2a362a;
    --primary2: #54af00;
    --primary3: #3c7c01;
    --tua2: #014202;
    --terang2: #b8f59a;
    --primary4: #3eaa08;
    --terang3: #5ec92a;
    --primary5: #3eac08;
    --terang4: #5eca2a;
	--tua3: #3e463e;
}


/* Gaya Container Majalah */
.magazine-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

/* Gaya untuk setiap box artikel */
.magazine-item {
  background: #ffffff; /* Putih untuk latar belakang bersih */
  border: 1px solid #b1ffb27a; /* Border abu-abu terang */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow ringan untuk kedalaman */
  flex: 1 1 calc(33.333% - 20px); /* 3 kolom pada desktop */
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px; /* Sudut melengkung untuk tampilan modern */
}

/* Gaya untuk featured image yang muncul setelah paragraf pertama */
.aligncenter {
    display: block;
    margin: 20px auto;
	width: 100%;
	height: auto;
    max-width: 100%;
	border-radius:8px;
}



/* Top Half */
.top-half {
    display: flex;
    flex-wrap: wrap;
}

.left-sidebar {
    flex: 1;
    padding: 20px;
}

/* Style for list items */
.left-sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.left-sidebar li {
    margin-bottom: 20px; /* Adds space between list items */
}

.left-sidebar li a {
    font-size: 24px;
    font-family: Inter, sans-serif;
	color: var(--primary1);/* #017d03 */
    text-decoration: none; /* Removes underline from links */
	    font-weight: bold;
}

.left-sidebar li a:hover {
    color: var(--terang1);/* #5dc001 */
}

/* Style for excerpt text */
.left-sidebar li p {
    font-size: 1em;
    color: var(--tua1);/* #2a362a */
    line-height: 1.6;
}

.main-center {
    flex: 2;
    padding: 20px;
}

.featured-article img {
    max-width: 100%;
	border-radius: 10px;
}



/* Pastikan gambar menggunakan lebar penuh */
.featured-article img {
    width: 100%;
    height: auto;
}

/* Hapus padding dan margin yang tidak perlu dari kontainer */
.featured-article {
    padding: 0;
    margin: 0;
}

/* Pastikan elemen <a> juga menggunakan lebar penuh */
.featured-article a {
    display: block;
}










.featured-article h2 {
    margin-bottom: 20px; /* Adds space between list items */
}

.featured-article h2 a {
    font-size: 34px;
    font-family: Inter, sans-serif;
    color: var(--primary1);/* #017d03 */
    text-decoration: none; /* Removes underline from links */
}

.featured-article h2 a:hover {
    color: var(--terang1);/* #5dc001 */
}

/* Style for excerpt text */
.featured-article p {
    font-size: 1.4em;
    color: var(--tua1);/* #2a362a */
    line-height: 1.6;
}

/* Bottom Half */
.bottom-half {
    padding: 20px;
}

.grid-section-5, .grid-section-3 {
    margin-bottom: 20px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.grid li {
    flex: 1;
}

/* Style for list items in grid-section-5 */
.grid-section-5 ul {
    list-style-type: none; /* Removes default bullet points */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.grid-section-5 li {
    margin-bottom: 20px; /* Adds space between list items */
}

.grid-section-5 li a {
    font-size: 24px; /* Adjust size as needed */
    font-family: Inter, sans-serif; /* Sets font family */
    color: var(--primary1);/* #017d03 */ /* Initial link color */
    text-decoration: none; /* Removes underline from links */
	font-weight: bold;
}

.grid-section-5 li a:hover {
    color: var(--terang1);/* #5dc001 */ /* Color on hover */
}

/* Style for excerpt text */
.grid-section-5 li p {
    font-size: 1em; /* Adjust font size as needed */
    color: var(--tua1);/* #2a362a */ /* Set color for the excerpt text */
    line-height: 1.6; /* Increases line height for readability */
    margin: 0; /* Removes default margin */
}

/* Grid layout for 5 items */
.grid-section-5 .grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjusts space between grid items */
}

.grid-section-5 .grid li {
    flex: 1;
    min-width: calc(20% - 20px); /* 5 items in a row with spacing */
}

/* Grid layout for 3 items */
.grid-section-3 .grid li {
    min-width: calc(33.33% - 20px);
}

/* Style for list items */
.grid-section-3 ul {
    list-style-type: none; /* Removes default bullet points */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.grid-section-3 li {
    margin-bottom: 20px; /* Adds space between list items */
}

.grid-section-3 li a {
    font-size: 24px; /* Adjust size as needed */
    font-family: Inter, sans-serif; /* Sets font family */
    color: var(--primary1);/* #017d03 */ /* Initial link color */
    text-decoration: none; /* Removes underline from links */
	    font-weight: bold;
}

.grid-section-3 li a:hover {
    color: var(--terang1);/* #5dc001 */ /* Color on hover */
}

/* Style for excerpt text */
.grid-section-3 li p {
    font-size: 1em; /* Adjust font size as needed */
    color: var(--tua1);/* #2a362a */ /* Set color for the excerpt text */
    line-height: 1.6; /* Increases line height for readability */
    margin: 0; /* Removes default margin */
}







/* Responsive Styles */
@media (max-width: 1024px) {
    /* Tablet Styles */
    .magazine-item {
        flex: 1 1 calc(50% - 20px); /* 2 kolom pada tablet */
    }

    .top-half {
        flex-direction: column;
    }

    .left-sidebar {
        flex: 1;
        margin-bottom: 20px;
    }

    .main-center {
        flex: 1;
    }

    .grid-section-5 .grid li {
        min-width: calc(50% - 20px); /* 2 kolom pada tablet */
    }

    .grid-section-3 .grid li {
        min-width: calc(50% - 20px); /* 2 kolom pada tablet */
    }
}

@media (max-width: 768px) {
    /* Mobile Styles */
    .magazine-item {
        flex: 1 1 100%; /* 1 kolom pada ponsel */
    }

    .top-half {
        flex-direction: column;
    }

    .left-sidebar {
        flex: 1;
        margin-bottom: 20px;
    }

    .main-center {
        flex: 1;
    }

    .grid-section-5 .grid li {
        min-width: 100%; /* 1 kolom pada ponsel */
    }

    .grid-section-3 .grid li {
        min-width: 100%; /* 1 kolom pada ponsel */
    }
}










/* Tampilan item untuk tablet */
@media (max-width: 768px) {
  .magazine-item {
    flex: 1 1 calc(50% - 20px); /* 2 kolom pada tablet */
  }
}

/* Tampilan item untuk ponsel */
@media (max-width: 480px) {
  .magazine-item {
    flex: 1 1 100%; /* 1 kolom pada ponsel */
  }
}








/* Gaya untuk gambar dalam item */
.magazine-item img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px; /* Sudut melengkung untuk gambar */
}

/* Gaya untuk judul dalam item */
.magazine-item h2 {
  font-size: 1.2em;
  color: var(--primary1);/* #017d03 */ /* Warna teks gelap untuk keterbacaan */
  margin: 10px 0;
  font-weight: bold; /* Menekankan judul */
}

/* Gaya untuk teks dalam item */
.magazine-item p {
  font-size: 1em;
  color: #435043; /* Warna teks abu-abu gelap untuk teks sekunder */
  color: var(--tua1);/* #2a362a */ /* hijau tuaaa sekali */
  line-height: 1.6;
}


/* typography */
/* Gaya untuk link */

a:hover {
  text-decoration: underline; /* Garis bawah saat hover */
}

















/* NON LAYOUT MAJALAH di bawah ini */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    font-style: normal;
    word-wrap: break-word;
    letter-spacing: .1px;
	  font-family: Inter, sans-serif;
}

.h4, h4 {
	color: var(--primary2);/* #54af00 */
}

.h3, h3 {
	color: var(--primary3);/* #3c7c01 */
}	
	
.h2, h2 {
	  font-family: Inter, sans-serif;
    font-size: 32px;
	/*  line-height: 34px; */
    margin: 0 0 25px;
  box-sizing: border-box;
  clear: both;
  overflow-wrap: break-word;
  margin: 0px 0px 45px;
  color: var(--tua2);/* #014202 */
  text-size-adjust: 100%;


}



.magazine-item h2 a{
	font-size: 24px;
	font-family: Inter, sans-serif;
	color: var(--primary1);/* #017d03 */
}

.magazine-item h2 a:hover{
	
	font-family: Inter, sans-serif;
	color:var(--terang1);/* #5dc001 */
}

.h1, h1 {
	  font-family: Inter, sans-serif;
    font-size: 45px;
	  line-height: 54px;
    margin: 0 0 25px;
  box-sizing: border-box;
  clear: both;
  overflow-wrap: break-word;
  margin: 0px 0px 45px;
  color: var(--tua2);/* #014202 */
  text-size-adjust: 100%;


}

/* Basic Paragraph Styling */
p {
    font-family: Arial, Helvetica, sans-serif; /* Use a web-safe, sans-serif font for better readability */


    margin: 0 0 1.5em 0; /* Space out paragraphs with a bottom margin */
}

p {
  box-sizing: border-box;
  margin: 0px 0px 34px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  color: rgb(37, 37, 37);
  color: var(--tua1);/* #2a362a */ /* hijau tuaaa sekali */
  text-size-adjust: 100%;
  font-size: 24px;
  letter-spacing: -0.2px;
  line-height: 32.775px;
}

li {
	box-sizing: border-box;
    margin: 0px 0px 34px;
    font-weight: 400;
    text-size-adjust: 100%;
    letter-spacing: 0.2px;
    line-height: 32.775px;
    font-size: 19px;
	color: var(--tua1);
    text-size-adjust: 100%;
}



.wp-block-search__inside-wrapper {text-align:center;}


input {
  box-sizing: border-box;
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 21px;
  height: 41px;
  transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(204, 204, 204);
  border-radius: 4px;
  color: rgb(0, 0, 0);
  font-weight: 450;
  padding: 9px 15px;

	margin: 0px 0px 5px;
  zoom: 1;
  outline: rgb(0, 0, 0) none 0px;
  text-size-adjust: 100%;
  text-align: start;
  letter-spacing: normal;
	

}


input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
    color: var(--contrast);
    background-color: #fdfffc;
    border-color: var(--terang2);/* #b8f59a */
    border-radius: 8px;
}


button.menu-toggle:hover, button.menu-toggle:focus {
    color: #ffffff;
}

button {
  box-sizing: border-box;
  font-family: Inter, sans-serif;
  appearance: none;
  border-radius: 4px;
  font-size: 15px;
  line-height: 21px;
  text-transform: capitalize;
  outline: rgb(255, 255, 255) none 0px;
  cursor: pointer;

  color: rgb(255, 255, 255);
  font-weight: 700;
  padding: 9px 35px;
  transition: all 0.3s ease 0s;
  text-align: right;
  display: inline-block;
  text-decoration: none solid rgb(255, 255, 255);
  touch-action: manipulation;
  user-select: none;
  vertical-align: middle;
  box-shadow: rgba(0, 0, 0, 0.53) 10px 9px 18px -12px inset;
  background-image: linear-gradient(45deg, color: var(--primary5) 50%, color: var(--terang4) 50%);
  background-position: 0% 100%;
  background-size: 250% 100%;
  white-space: nowrap;
  opacity: 1;
  text-size-adjust: 100%;
  letter-spacing: normal;
  border: 1px solid color: var(--terang4);/* #5eca2a */

}

.main-navigation .main-nav ul li a, .main-navigation .menu-toggle, .main-navigation .menu-bar-items {
    color: #ffffff;
}

	.main-title a{
		font-family: Inter, sans-serif;

  	line-height: 22px;
		color:var(--terang1);/* #5dc001 */
		font-weight: 300;
    font-size: 88px;
    line-height: 1;
    font-stretch: extra-condensed;
	border: solid;
	}
	
	.main-title a:hover {
    color: var(--terang1);/* #5dc001 */
    text-decoration: none;
}
	
	.site-description {
    margin: 0;
    line-height: 2;
    font-size: 20px;
    letter-spacing: 7px;
    text-transform: uppercase;
    background: var(--terang1);/* #5dc001 */
    font-weight: 400;
    color: #fff;
    padding-left: 5px;
    font-family: fantasy;
	text-align: center;
}
	

/* Gaya untuk blok dengan id block-3 */
#block-3 {
    background-color: var(--tua2); /* #014202 */ /* Warna dasar hijau tua */
    padding: 20px; /* Ruang dalam blok */
    border-radius: 8px; /* Sudut melengkung */
    box-shadow: rgb(0 0 0 / 53%) 10px 9px 18px -12px inset; /* Shadow inset */
	
	
	    background-position: 0% 100%; /* Posisi gradien saat hover */
    background: var(--tua1);
    background: -moz-linear-gradient(45deg, var(--tua2) 0%, var(--primary1) 61%, var(--terang4) 100%);
    background: -webkit-linear-gradient(45deg, var(--tua2) 0%, var(--primary1) 61%, var(--terang4) 100%);
    background: linear-gradient(45deg, var(--tua2) 0%, var(--primary1) 61%, var(--terang4) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#014202', endColorstr='#5eca2a', GradientType=1);
	
	

    opacity: 1; /* Opasitas penuh */
    text-size-adjust: 100%; /* Penyesuaian ukuran teks */
}

/* Menambahkan efek hover untuk meningkatkan konsistensi visual */
#block-3:hover {
    /* Gradien dari gelap ke terang saat hover */
		
    background-image: linear-gradient(45deg, var(--tua2) 80%, var(--terang3) 90%); /* Gradien latar belakang */
    background-position: 0% 0%; /* Posisi latar belakang */
}


/* Gaya untuk heading dalam blok */
#block-3 .wp-block-heading {
    color: #ffffff; /* Warna teks heading putih untuk kontras yang baik */
}

/* Gaya untuk link dalam list post terbaru */
#block-3 .wp-block-latest-posts__post-title {
    color: #ffffff; /* Warna teks link putih */
    text-decoration: none; /* Menghilangkan garis bawah */
}

/* Gaya untuk link saat hover */
#block-3 .wp-block-latest-posts__post-title:hover {
    color: #ffffff; /* Warna link saat hover, misalnya hijau muda */
    text-decoration: underline; /* Garis bawah saat hover */
}

/* Gaya untuk item list */
#block-3 .wp-block-latest-posts__list li {
    font-weight: 700;
    line-height: 1.2;
    font-style: normal;
    word-wrap: break-word;
    letter-spacing: .1px;
    font-family: Inter, sans-serif;
    margin-bottom: 40px; /* Jarak antar item */
}







/* Gaya umum untuk button dan input type button, reset, submit */
button, input[type=button], input[type=reset], input[type=submit] {
    background: #014202; /* Warna latar belakang hijau tua */
    color: #fff; /* Warna teks putih */
    border: 1px solid transparent; /* Border transparan untuk efek hover */
    cursor: pointer; /* Pointer cursor saat hover */
    -webkit-appearance: button; /* Penampilan standar button */
    padding: 10px 20px; /* Jarak dalam button */
    border-radius: 8px; /* Sudut melengkung */
    touch-action: manipulation; /* Pengaturan sentuhan */
    user-select: none; /* Menghindari pemilihan teks */
    vertical-align: middle; /* Penjajaran vertikal tengah */
    box-shadow: rgb(0 0 0 / 53%) 10px 9px 18px -12px inset; /* Shadow inset */
    background-image: linear-gradient(45deg, color: var(--primary5) 50%, color: var(--terang4) 50%); /* Gradien latar belakang */
    background-position: 0% 100%; /* Posisi latar belakang */
    background-size: 250% 100%; /* Ukuran latar belakang */
    white-space: nowrap; /* Menghindari pembungkusan teks */
    opacity: 1; /* Opasitas penuh */
    text-size-adjust: 100%; /* Penyesuaian ukuran teks */
    letter-spacing: normal; /* Jarak huruf normal */
    border: 1px solid color: var(--terang4);/* #5eca2a */ /* Border berwarna hijau terang */
}

/* Efek hover untuk button dan input type button, reset, submit */
button:hover, input[type=button]:hover, input[type=reset]:hover, input[type=submit]:hover {
    background: #014202; /* Warna latar belakang hijau tua saat hover */
    background-image: none; /* Menghilangkan gradien latar belakang saat hover */
    border: 1px solid #014202; /* Border warna hijau tua saat hover */
}













/* Responsive Adjustments */
@media (max-width: 768px) {

	.h2, h2 {
		  font-family: Inter, sans-serif;
    /*  font-size: 40px;
	line-height: 46px; */
		margin: 0 0 25px;
	}
	
	
	p {
  box-sizing: border-box;
  margin: 0px 0px 34px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  color: rgb(37, 37, 37);
  color: var(--tua1);/* #2a362a */ /* hijau tuaaa sekali */
  text-size-adjust: 100%;
  font-size: 19px;
  letter-spacing: -0.2px;
  line-height: 32.775px;
}

	li {
	box-sizing: border-box;
    margin: 0px 0px 34px;
    font-weight: 400;
    text-size-adjust: 100%;
    letter-spacing: 0.2px;
    line-height: 32.775px;
    font-size: 19px;
	color: var(--tua1);
    text-size-adjust: 100%;
}
	h1 {
  font-family: Inter, sans-serif;
  box-sizing: border-box;
  font-size: 45px;
  line-height: 54px;
  clear: both;
  font-weight: 700;
  letter-spacing: 0.1px;
  overflow-wrap: break-word;
  margin: 0px 0px 25px;
  color: var(--tua2);/* #014202 */
  text-size-adjust: 100%;
  background-color: rgb(255, 255, 255);

}
	
	.main-title a{
		font-family: Inter, sans-serif;


		color:var(--terang1);/* #5dc001 */
		font-weight: 300;
    font-size: 68px;
    line-height: 1;
    font-stretch: extra-condensed;
	}
	
	.main-title a:hover {
    color: var(--terang1);/* #5dc001 */
    text-decoration: none;
}
	
	.site-description {
    margin: 0;
    line-height: 1.8;
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: var(--terang1);/* #5dc001 */
    font-weight: 400;
    color: #fff;
    padding-left: 5px;
    font-family: fantasy;
	text-align: center;
}
	

	
	
}
















@media (max-width: 480px) {

	
	.h2, h2 {
		  font-family: Inter, sans-serif;
    font-size: 32px;
	  line-height: 36px;
		margin: 0 0 25px;
	}
	
	p {
  box-sizing: border-box;
  margin: 0px 0px 34px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  color: rgb(37, 37, 37);
  color: var(--tua1);/* #2a362a */ /* hijau tuaaa sekali */
  text-size-adjust: 100%;
  font-size: 19px;
  letter-spacing: -0.1px;
  line-height: 32.775px;
}
	
	li {

	box-sizing: border-box;
    margin: 0px 0px 34px;
    font-weight: 400;
    text-size-adjust: 100%;
    letter-spacing: 0.2px;
    line-height: 32.775px;
    font-size: 19px;
	color: var(--tua1);
    text-size-adjust: 100%;

}
	
	h1 {
  font-family: Inter, sans-serif;
  box-sizing: border-box;
  font-size: 32px;
  line-height: 36px;
  clear: both;
  font-weight: 700;
  letter-spacing: 0.1px;
  overflow-wrap: break-word;
  margin: 0px 0px 25px;
  color: var(--tua2);/* #014202 */
  text-size-adjust: 100%;
  background-color: rgb(255, 255, 255);

}
	
	
	.main-title a{
		font-family: Inter, sans-serif;


		color:var(--terang1);/* #5dc001 */
		font-weight: 300;
    font-size: 55px;
    line-height: 1;
    font-stretch: extra-condensed;
	}
	
	.main-title a:hover {
    color: var(--terang1);/* #5dc001 */
    text-decoration: none;
}
	
	.site-description {
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: var(--terang1);/* #5dc001 */
    font-weight: 400;
    color: #fff;
    padding-left: 5px;
    font-family: fantasy;
	text-align: center;
}
	
	
	
	

}












/* Ensure Text is Legible on Different Backgrounds */
body {
    background-color: #ffffff; /* Light background color for good contrast */
    padding: 10px; /* Add some padding to the body to prevent text from touching the edges */
}

/* Improve Readability on Links */
a {
    color: var(--primary1); /* Use a color that stands out but is still readable */
    text-decoration: none; /* Remove underline for a cleaner look */
}

a:hover {
    text-decoration: underline; /* Underline links on hover for better UX */
}

/* Enhanced Paragraph Formatting */
p strong {
	color: var(--tua2);
 }

p em {
    color: #192419; /* Use a slightly lighter color for italic text */
}

.entry-meta {
    color: var(--terang1);/* #5dc001 */
}

.entry-meta a {
    color: var(--tua2);/* #014202 */
}

.entry-meta a:hover {
    color: rgb(15 143 37);
}



.entry-title a {
    color: var(--primary4);
}



