.elementor-5378 .elementor-element.elementor-element-e541eb0{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--z-index:1;overflow:visible;}.elementor-5378 .elementor-element.elementor-element-0cce8e6{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--border-radius:15px 15px 15px 15px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--z-index:9;overflow:visible;}.elementor-5378 .elementor-element.elementor-element-0cce8e6:hover{box-shadow:0px 0px 10px 0px #E80000;}.elementor-5378 .elementor-element.elementor-element-d2ace47{--display:flex;--min-height:300px;--border-radius:15px 15px 15px 15px;--padding-top:80px;--padding-bottom:80px;--padding-left:0px;--padding-right:0px;--z-index:1;overflow:visible;}.elementor-5378 .elementor-element.elementor-element-d2ace47:not(.elementor-motion-effects-element-type-background), .elementor-5378 .elementor-element.elementor-element-d2ace47 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-position:top center;background-repeat:no-repeat;background-size:cover;}.elementor-5378 .elementor-element.elementor-element-0af7e7a{--display:flex;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--border-radius:15px 15px 15px 15px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:15px;--padding-bottom:15px;--padding-left:25px;--padding-right:25px;--z-index:10;overflow:visible;}.elementor-5378 .elementor-element.elementor-element-6a6cd70{--display:flex;--gap:21px 0px;--row-gap:21px;--column-gap:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;overflow:visible;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-5378 .elementor-element.elementor-element-100e19a .elementor-heading-title{font-family:"Kanit", Sans-serif;font-size:24px;font-weight:700;text-transform:uppercase;color:#000000;}.elementor-5378 .elementor-element.elementor-element-caf2a54{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--justify-content:flex-end;--padding-top:40px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--z-index:145;overflow:visible;}.elementor-widget-button .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-5378 .elementor-element.elementor-element-67fecba .elementor-button{background-color:#61CE7000;font-family:"Kanit", Sans-serif;font-size:20px;font-weight:600;fill:var( --e-global-color-a8a9d7c );color:var( --e-global-color-a8a9d7c );padding:0px 0px 0px 0px;}.elementor-5378 .elementor-element.elementor-element-67fecba .elementor-button-content-wrapper{flex-direction:row-reverse;}.elementor-5378 .elementor-element.elementor-element-e9c6a1c{--display:flex;--flex-direction:column;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--align-items:center;--gap:0px 0px;--row-gap:0px;--column-gap:0px;border-style:none;--border-style:none;--border-radius:15px 15px 15px 15px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--z-index:9;overflow:visible;}.elementor-5378 .elementor-element.elementor-element-a7dd665{--display:flex;--min-height:420px;--border-radius:15px 15px 15px 15px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--z-index:1;overflow:visible;}.elementor-5378 .elementor-element.elementor-element-a7dd665:not(.elementor-motion-effects-element-type-background), .elementor-5378 .elementor-element.elementor-element-a7dd665 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-position:top center;background-repeat:no-repeat;background-size:cover;}.elementor-5378 .elementor-element.elementor-element-8418619{--display:flex;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--border-radius:15px 15px 15px 15px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:15px;--padding-bottom:15px;--padding-left:25px;--padding-right:25px;--z-index:10;overflow:visible;}.elementor-5378 .elementor-element.elementor-element-eb68079{--display:flex;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;overflow:visible;}.elementor-5378 .elementor-element.elementor-element-7951202{padding:0px 0px 10px 0px;text-align:center;}.elementor-5378 .elementor-element.elementor-element-7951202 .elementor-heading-title{font-family:"Kanit", Sans-serif;font-size:18px;font-weight:600;text-transform:uppercase;line-height:18px;color:#000000;}.elementor-5378 .elementor-element.elementor-element-9af8708.elementor-element{--align-self:stretch;}.elementor-5378 .elementor-element.elementor-element-9af8708{text-align:center;}.elementor-5378 .elementor-element.elementor-element-9af8708 .elementor-heading-title{font-family:"Kanit", Sans-serif;font-size:18px;font-weight:600;text-transform:uppercase;line-height:18px;color:var( --e-global-color-a8a9d7c );}.elementor-5378 .elementor-element.elementor-element-28b2c57{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--justify-content:flex-end;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--z-index:145;overflow:visible;}.elementor-5378 .elementor-element.elementor-element-ed743ec{--spacer-size:5px;}@media(max-width:1024px){.elementor-5378 .elementor-element.elementor-element-8418619{--padding-top:20px;--padding-bottom:10px;--padding-left:10px;--padding-right:10px;}.elementor-5378 .elementor-element.elementor-element-7951202.elementor-element{--align-self:center;}.elementor-5378 .elementor-element.elementor-element-9af8708{text-align:center;}}@media(max-width:767px){.elementor-5378 .elementor-element.elementor-element-0af7e7a{--padding-top:0px;--padding-bottom:20px;--padding-left:20px;--padding-right:20px;}.elementor-5378 .elementor-element.elementor-element-6a6cd70{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-5378 .elementor-element.elementor-element-100e19a{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}.elementor-5378 .elementor-element.elementor-element-8418619{--padding-top:20px;--padding-bottom:10px;--padding-left:10px;--padding-right:10px;}.elementor-5378 .elementor-element.elementor-element-7951202{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 10px 0px;}.elementor-5378 .elementor-element.elementor-element-9af8708{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}}@media(min-width:768px){.elementor-5378 .elementor-element.elementor-element-a7dd665{--width:340px;}}/* Start custom CSS for button, class: .elementor-element-67fecba *//* Default button state */
.books {
  color: #e80000;                      /* red */
  transition: color 0.6s ease-in-out;    /* smooth fade over 1s */
}

/* Make inner parts follow color */
.books *,
.books i,
.books svg {
  color: inherit !important;
  fill: currentColor !important;
  transition: color 0.3s ease-in-out, fill 0.3s ease-in-out; /* smooth fade too */
}

/* When hovering .main (or jkd-card) → change button to white */
.jkd-card:hover .books,
.main:hover .books {
  color: #fff;
}/* End custom CSS */
/* Start custom CSS for container, class: .elementor-element-0cce8e6 *//* CARD WRAPPER */
.jkd-card {
  position: relative;
  border-radius: 0px 0px 15px 15px;
  overflow: hidden;
}

/* QUARTER CIRCLE (hidden initially) */
.jkd-card::after {
  content: "";
  position: absolute;
  width: 258px;
  height: 70px;
  bottom: 0;
  right: 0;
  background: #e80000;        /* red color */
  border-radius: 20px 0 0 0;  /* quarter circle */
  transform: scale(0);        /* hidden */
  transform-origin: bottom right;
  transition: transform 0.3s ease; /* smooth circle animation */
  z-index: 3;
}

/* SHOW + SCALE UP ON HOVER */
.jkd-card:hover::after {
  transform: scale(0.78);
}

/* APPLY LINK STYLE */
.apply-link {
  z-index: 2;
  color: #e80000;                          /* red by default */
  transition: color 0.5s ease-in-out;      /* fade between colors */
}

/* Make inner icon/text follow button color */
.apply-link *,
.apply-link i,
.apply-link svg {
  color: inherit !important;
  fill: currentColor !important;
  transition: inherit;
}

/* CHANGE TO WHITE WHEN CARD IS HOVERED */
.jkd-card:hover .apply-link {
  color: #fff;   /* fades to white */
}
.jkd-card,
.apply-link,
.apply-link * {
  box-shadow: none !important;
}/* End custom CSS */