/*
Theme Name: Crazy Web Studio (Divi Child)
Template: Divi
Text Domain: Divi-child
Author: Crazy Web Studio
Author URI: https://www.crazywebstudio.co.th
*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
	font-weight: 400;
}

/* Gravity Forms */
body .gform-theme--framework {
  --gf-ctrl-date-picker-cell-content-bg-color-selected: #73a218;
  --gf-ctrl-date-picker-cell-content-border: #73a218;
  --gf-radius: 0px !important;
  --gf-radius-max-sm: 0 !important;
  --gf-radius-max-md: 0 !important;
  --gf-radius-max-lg: 0 !important;
}

body .gform-theme--framework input:focus, 
body .gform-theme--framework textarea:focus, 
body .gform-theme--framework select:focus {
	outline-color: #73a218;
}

body .gform_wrapper input[type="checkbox"] {
	border: solid 2px #73a218;
	background-color: transparent;
	accent-color: #73a218 !important;
}

/*ACF Gallery*/

.acf-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.acf-gallery img {
  width: 300px;
  height: 200px; 
  object-fit: cover;
  border-radius: 0px;
  display: block;
  max-width: 100%;
}

/* Tablet */
@media (max-width: 980px) {
  .acf-gallery img {
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .acf-gallery img {
    height: 100px;
  }
}

/* Blog Page*/

.et_pb_post .more-link {
    background-color: #1e1e1e;
    color: #fff !important;
	padding-bottom: 4px;
	padding-top: 8px;
	padding-right: 10px;
	padding-left: 10px;
	border: 2px solid #1e1e1e;
    border-radius: 0px;
    text-transform: uppercase;
    font-weight: bold;
	margin-top: 10px;
    display: inline-block;
}

.et_pb_post .more-link:hover {
    background-color: #fff;
    color: #000000;            
}

.et_pb_post h2.entry-title {
    margin-top: -15px;
	pointer-events: none;
    cursor: default;
}

.et_pb_post .et_pb_image_container a {
    pointer-events: none;
    cursor: default;
}


/* Search Bar */


.acf-search-bar-wrapper {
  background-color: #72a218;
  padding: 15px 15px;
  max-width: 250px;
  margin: 0 auto;
  font-family: 'League Spartan', sans-serif;
  border-radius: 0px;
  text-align: left;
  color: #ffffff;
}

@media (max-width: 600px) {
  .acf-search-bar-wrapper {
    max-width: 100%;
  }
}


.acf-search-heading {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 300;
  margin-bottom: 0px;
  color: #fff;
}

@media (max-width: 600px) {
  .acf-search-heading {
    font-size: 30px;
    line-height: 1;
  }
}

.acf-field-group {
  display: flex;
  align-items: center;
  background: white;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 0px;
  position: relative;
}

.acf-icon-img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  flex-shrink: 0;
}

.acf-select-wrapper {
  position: relative;
  width: 100%;
}

.acf-select-wrapper select {
  width: 100%;
  padding-top: 8px;
  font-size: 17px;
  border: none;
  outline: none;
  appearance: none;
  background: transparent;
  color: #72a218;
  cursor: pointer;
}

@media (max-width: 600px) {
    .acf-select-wrapper select {
    font-size: 23px;
    }
}

/* Arrow for select */
.acf-select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 0px;
  top: 65%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #1e1e1e;
  font-size: 16px;
}

.acf-search-button-wrapper {
  margin-top: 10px;
}

.acf-search-button {
  background-color: #1e1e1e;
  color: white;
  border: solid 3px #1e1e1e;
  padding: 15px 25px;
  font-size: 28px;
  font-weight: 400;
  border-radius: 0px;
  cursor: pointer;
  width: 100%;
  /*transition: background-color 0.3s ease;*/
}

@media (max-width: 600px) {
  .acf-search-button {
    font-size: 30px;
    
  }
}

.acf-search-button:hover {
  background-color: transparent;
  color: #1e1e1e;
}


/* Blog Cards Home Page */


.custom-blog-cards-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  /*padding: 20px 0;*/
}

.custom-blog-card {
  background: #fff;
  /*border: 1px solid #ddd;*/
  border-radius: 0px;
  width: 500px;
  padding: 20px;
  /*box-shadow: 0 2px 10px rgba(0,0,0,0.05);*/
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .custom-blog-card {
    margin-right: -11%;
  }
}



.custom-blog-title {
  font-size: 30px;
  margin-bottom: 0px;
  font-weight: 300;
  color: #72a218;
  text-align: left;
}

.custom-blog-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.custom-blog-excerpt {
  width: 60%;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 400;
  color: #1e1e1e;
  text-align: left;
}

.custom-blog-readmore {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  text-align: right;
}

.custom-blog-readmore img.ant-icon {
  width: 80px;
  height: auto;
  margin-top: 0px;
  margin-bottom: -10px;
}

.read-article-btn {
  background: #1e1e1e;
  color: #fff;
  padding-top: 2px;
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 0px;
  border: solid 3px #1e1e1e;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  /*transition: background 0.3s ease;*/
}

@media (max-width: 600px) {
  .custom-blog-readmore img.ant-icon {
    margin-top: 0px;
  }
}
 

.read-article-btn:hover {
  background: transparent;
  color: #1e1e1e;
}


