/* 
Theme Name: Marsudirini
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Marsudirini is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 3.3.0
Text Domain: marsudirini
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Link Color*/
.stylelinkcolor a,a.stylelinkcolor{
	color:var(--e-global-color-primary);
}
.stylelinkcolor a:hover,a.stylelinkcolor:hover{
	color:var(--e-global-color-4a2d4c1);
}

/* Header Menu */

.menuutama .hfe-nav-menu li.hfe-button-wrapper {
  margin-left: 15px;
}

a.hfe-menu-item.elementor-button {
  margin-left: 15px !important;
}

/* End Header Menu */

/* Homepage */
    .horizontal-scroll >div{
        min-width: 265px;
    }
    .horizontal-scroll .horizontal-scroll_content{
        min-height: 170px;
    }
    .overflowhidden{
        overflow: hidden;
    }
    .imgboxfit .elementor-image-box-wrapper{
    display: flex !important
    ;
    justify-content: space-between !important;
    min-height: 300px;
  flex-direction: column !important; }
  .imgboxfit figure{
      order: 1 ;
  }
.imgboxfit   .elementor-image-box-content{
    order:0 ;
}
    .imgboxfit figure {
    display: block !important; /* Pastikan figure berperilaku sebagai block jika perlu mengatur dimensi */
    width: 100% !important;    /* Set lebar figure sesuai keinginan (bisa juga auto) */
    /* Atur tinggi figure jika Anda ingin ukuran cover yang spesifik */
    /* height: 300px; */
    overflow: hidden !important; /* Penting agar gambar yang "cover" tidak keluar batas figure */
    margin: 0px !important;
}
.imgboxfit figure img {
    display: block;
    width: 100% ;
    height: 120px ;
    max-height: 120px;
    object-fit: cover; /* Membuat gambar menjadi cover */
    border-radius: 0px 0px 20px 20px ;
}
.imgboxfit .elementor-image-box-content {
    padding:20px;
}

/* End Homepage */

/* Artikel */

/* Container for the page content */
.blog .page-content,
.archive .page-content{
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between the items */
    padding: 0px; /* wrapper padding the items */
}

/* Styling for individual post */
.blog .page-content .post,
.archive  .page-content .post{
    flex: 1 1 calc(25% - 20px); /* Default to 4 columns on desktop */
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px; /* Space between posts */
}

/* Move the image to the top */
.blog .page-content .post img,
.archive  .page-content .post img {
    order: -1; /* Ensure the image comes first */
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Title styling */
.blog .page-content .post h2.entry-title,
.archive .page-content .post h2.entry-title{
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Paragraph styling */
.blog article.post,
.archive article.post{
display: flex;
	flex-direction: column;}
.blog article.post > a,
.archive article.post > a{
	order: -1 !important;
}
.blog .page-content .post p,
.archive .page-content .post p{
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limits the text to 5 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    font-size: 1rem; /* Fixed font size */
    max-height: clamp(3rem, 5vw, 7.8rem); /* Adjust the max height to fit the line count */
    margin-bottom: 10px; /* Optional: margin between paragraph and other elements */
    position: relative;
}

/*Nav Breadcrumb*/
.page-content nav.breadcrumb  a{
	text-decoration:none !important;
}
/*UAE Post Link*/
a.eac-accessible-link:hover h2 {
    color: #149bf7 !important;
	transition-duration: 0.2s;
}
a.eac-accessible-link h2 {
    text-align: left !important;
}

/* === Form Container Styling === */
.wpcf7 {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
}
/* Label styling */
/* Spasi antar label dan field bahkan jika ada <br> */
.wpcf7-form label br + .wpcf7-form-control-wrap {
  margin-top: 8px;
  display: block;
}

.wpcf7 input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: 20px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.wpcf7 input[type="file"]:hover {
  border-color: #007bff;
}

.wpcf7 input[type="file"]::file-selector-button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background-color: var(--e-global-color-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpcf7 input[type="file"]::file-selector-button:hover {
  background-color: var(--e-global-color-4a2d4c1);
}


/* === Form Fields === */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus{
  border-color: #004d99;
  outline: none;
}

/* === Submit Button === */
.wpcf7 input[type="submit"] {
  background-color: var(--e-global-color-primary);
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 150px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.wpcf7 input[type="submit"]:hover {
  background-color: var(--e-global-color-4a2d4c1);
}

/* === Validation Error Styling === */
.wpcf7 .wpcf7-not-valid-tip {
  color: red;
  font-size: 0.9rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
}

/* === Response Message === */
.wpcf7 .wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 500;
}

.wpcf7 .wpcf7-mail-sent-ok {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.wpcf7 .wpcf7-validation-errors {
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
}

/* modal agar tampil */
.premium-modal-box-modal .premium-modal-box-modal-dialog{
	opacity:1;
}


/* Custom placeholder for select */
.wpcf7 select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M0 3l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.wpcf7 .wpcf7-form.submitting::after {
  content: "⏳ Mengirim data... Harap tunggu";
  display: block;
  margin-top: 16px;
  color: #0073aa;
  font-weight: bold;
  animation: pulseText 1.5s infinite;
}

/* Optional: animasi berdenyut */
@keyframes pulseText {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}


/* Make the layout responsive */
@media screen and (max-width: 1200px) {
    .blog .page-content .post,
	.archive .page-content .post{
        flex: 1 1 calc(33.33% - 20px); /* 3 columns for tablet */
    }
}

@media screen and (max-width: 768px) {
    .blog .page-content .post,
	.archive .page-content .post{
        flex: 1 1 calc(50% - 20px); /* 2 columns for smaller tablets */
    }
}

@media screen and (max-width: 480px) {
    .blog .page-content .post,
	.archive .page-content .post{
        flex: 1 1 100%; /* 1 column for mobile */
    }
}

