:root { --gap: 20px;
       --theme-color: #27afa0;
       --theme-over-color: #298a81;
       --theme-light-color: #f2f9f1;
      }
      h4
      {
        font-weight: 400;
        letter-spacing: 2px;
      }
        h3
      {
        font-weight: 400;
        letter-spacing: 2px;
      }
      h2
      {
        font-weight: 400;
        letter-spacing: 2px;
      }
    .theme-bgcolor{
      background-color: var(--theme-color);
    }
    .theme-light-bgcolor{
      background-color: var(--theme-light-color);
    }
    .white-bgcolor{
      background-color: #FFF;
    }
    td.theme1-bgcolor{
      background-color:#86c9ab ;
      color: #333;
      font-size: medium;
    }
    td.theme2-bgcolor{
      background-color:#d5afd0 ;
      color: #333;
      font-size: medium;
    }
    td.theme3-bgcolor{
      background-color:#f3a773 ;
      color: #333;
      font-size: medium;
    }
     td.theme4-bgcolor{
      background-color:#7da8ce ;
      color: #333;
      font-size: medium;
    }
    td.theme5-bgcolor{
      background-color:#edbcd0 ;
      color: #333;
      font-size: medium;
    }
    td.theme6-bgcolor{
      background-color:#f4d07f ;
      color: #333;
      font-size: medium;
    }
    .news-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: repeat(3, 1fr);
      gap: 20px;
      max-width: 1200px;
      margin: auto;
    }
    /* Left column */
    .grid-tl {
      grid-column: 1 / 2;
      grid-row: 1 / span 2;
      min-height: 240px;
      max-height: 440px;
       max-width: 600px;
    }
    .grid-t2 {
      grid-column: 1 / 2;
      grid-row: 3 / 4;
      min-height: 20px;
      max-width: 600px;
    }
    .grid-bl {
      grid-column: 1 / 2;
      grid-row: 3 / 4;
      min-height: 20px;
      max-width: 600px;
    }
    /* Right column: three equal-height grids */
    .grid-tr1 {
      grid-column: 2 / 3;
      grid-row: 1 / 2;
      min-height:20px;
            max-width: 600px;
    }
    .grid-tr2 {
      grid-column: 2 / 3;
      grid-row: 2 / 3;
      min-height:20px;
      max-width: 600px;
    }
    .grid-tr3 {
      grid-column: 2 / 3;
      grid-row: 3 / 4;
      min-height:20px;
      max-width: 600px;
    }

    /* Common Card Styles */
    .news-card {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
      background: #fff;
      display: flex;
      flex-direction: column;
      transition: 
        box-shadow 0.3s ease-out,
        transform 0.3s ease-out;
      will-change: transform, box-shadow;
      
    }
    .news-card:hover, .news-card:focus-within {
      box-shadow: 0 8px 28px rgba(0,0,0,0.22), 0 1.5px 4px rgba(0,0,0,0.12);
      z-index: 2;
      transform: translateY(-8px);
    }
    /* Overlay Layout (grid-tl) */
    .news-img.overlay2 {
      width: 100%;
      height: 100%;
      object-fit: cover;
      min-height: 180px;
      transition: transform 0.3s ease-out;
      display: block;
    }
    .news-card:hover .news-img.overlay {
      transform: scale(1.03);
    }
    .news-content.overlay2 {
      position: absolute;
      left: 0; right: 0; bottom: 0;
      padding: 24px 24px 20px 24px;
      background: linear-gradient(0deg,rgb(255, 255, 255) 60%,rgb(255, 255, 255) 100%,transparent 100%);
      opacity: 0.95;
      color: #555;
      z-index: 2;
      border-radius: 0px;
    }
    .news-content.overlay2:hover {
      background: linear-gradient(0deg,rgba(255, 255, 255) 60%,rgba(255, 255, 255) 100%,transparent 100%);
      color: #555;
    }
     .news-content.overlay2 .date {
      color: #777;
      margin-bottom: 6px;
    }
    .news-content.overlay2 .title {
      color: #222;
      text-shadow: none;
    }

 
    /* Horizontal Layout (for right and BL) */
    .news-card.horizontal {
      flex-direction: row;
      min-height: 100%;
      max-height: 200px;
    }

    .news-card.horizontal-1 {
      min-height: 300px;
      max-height: 500px;
    }
    .news-img.horizontal {
      width: 44%;
      min-width: 120px;
      max-width: 210px;
      height: 100%;
      min-height: 100px;
      object-fit: cover;
      border-radius: 0px;
      display: block;
      transition: transform 0.3s ease-out;
    }
    .news-img.overlay {
      transition: transform 0.3s ease-out;
    }
    .news-card.horizontal:hover .news-img.horizontal  {
      transform: scale(1.03);
    }
     .news-card:hover .news-img.overlay  {
      transform: scale(1.03);
    }
    .news-content.horizontal {
      flex: 1;
      background: #fff;
      color: #222;
      padding: 24px 20px; 
      display: flex;
      flex-direction: column;
      justify-content: center;
      border-radius: 0 10px 10px 0;
      min-width: 0;
    }
    .news-content.horizontal .tag {
      background: var(--theme-color);
      color: #fff;
      max-width: 100px;
      margin: 0 auto 6px 0; 
      
    }
    .news-content.horizontal .date {
      color: #777;
      margin-bottom: 6px;
    }
    .news-content.horizontal .title {
      color: #222;
      text-shadow: none;
    }
    .tag {
      background: var(--theme-color);
      color: #fff;
      display: inline-block;
      padding: 3px 14px;
      border-radius: 3px;
      font-size: 15px;
      margin-bottom: 10px;
    }
    .date {
      font-size: 13px;
      color: #ccc;
      margin-bottom: 6px;
    }
    .title {
      font-size: 19px;
      font-weight: 400;
      color: #fff;
      line-height: 1.5;
      margin: 0 0 4px 0;
      text-shadow: 0 2px 4px rgba(0,0,0,0.12);
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .img-logo{
      width: auto;
      height: auto;
    }
    /* donate-btn */
    .donate-btn{
      position: fixed;
      top: 35%;
      right: 0px;
      z-index: 9999;
      background: linear-gradient(90deg,rgba(243, 160, 107, 1) 0%, rgba(246, 176, 118, 1) 75%, rgba(248, 193, 139, 1) 100%);
      color: #fff;
      font-weight: bold;
      font-size: 1.5em;
      padding: 2px 4px; /* 8px 16px; */
      border-radius: 30px 0px 0px 30px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.07);
      text-decoration: none;
        transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s, transform 0.5s;
      /* The cubic-bezier above is equivalent to ease-in-out */
      display: flex;
      align-items: center;
      gap: 0px;
      text-decoration: none;
    }
    a.donate-btn:hover {
      background: linear-gradient(90deg,rgb(251, 175, 127) 0%, rgb(246, 181, 129) 75%, rgb(244, 201, 158) 100%);
      color: #fff;
      text-decoration: none;
      transform: translateY(-4px) scale(1.03);
    }

    .donate-btn2{
      position: fixed;
      bottom: 25%;
      right: 0px;
      z-index: 9999;
      background: linear-gradient(90deg,rgba(243, 160, 107, 1) 0%, rgba(246, 176, 118, 1) 75%, rgba(248, 193, 139, 1) 100%);
      color: #fff;
      font-weight: bold;
      font-size: 1.5em;
      padding: 6px 6px;
      border-radius: 30px 0px 0px 30px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.07);
      text-decoration: none;
        transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s, transform 0.5s;
      /* The cubic-bezier above is equivalent to ease-in-out */
      display: flex;
      align-items: center;
      gap: 0px;
      text-decoration: none;
    }
    a.donate-btn2:hover {
      background: linear-gradient(90deg,rgb(251, 175, 127) 0%, rgb(246, 181, 129) 75%, rgb(244, 201, 158) 100%);
      color: #fff;
      text-decoration: none;
      transform: translateY(-4px) scale(1.03);
    }
    .donate-icon2 {
      width: 55px;
      height: auto;
      padding-left: 5px;
      display: inline-block;
      vertical-align: middle;
      transition: transform 0.4s ease-out;
    }
    .donate-icon {
      width: 60px;
      height: 50px;
      display: inline-block;
      vertical-align: middle;
      transition: transform 0.4s ease-out;
    }
    .donate-icon-mobile{
       width: 60px;
      height: 50px;
      display: inline-block;
      vertical-align: middle;
      transition: transform 0.4s ease-out;
    }
    .donate-icon:hover  {
      width: 60px;
      height: 50px;
      display: inline-block;
      vertical-align: middle;
      transform: rotate(10deg) scale(1.1);
    }
    .donate-icon-mobile:hover  {
      width: 60px;
      height: 50px;
      display: inline-block;
      vertical-align: middle;
      transform: rotate(10deg) scale(1.1);
    }
    .donate-icon2:hover  {
      display: inline-block;
      vertical-align: middle;
      transform: rotate(10deg) scale(1.1);
    }
    .donate-btn.scrolled {
      top: 100px;
    }
    .donate-icon-mobile.scrolled {
      top: 100px;
    }
    @media (max-width: 999px) { /* max-width: 900px */
      .news-grid {
        display: block;
        grid-template-columns: 1fr;
        grid-template-rows: none;
       
      }
      .grid-tl, .grid-t2, .grid-bl, .grid-tr1, .grid-tr2, .grid-tr3 {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 180px;
        margin-bottom: 50px;

      }
      .news-card:hover, .news-card:focus-within {
      transform: translateY(0px);
      }
      .news-card , .news-card.horizontal {
        flex-direction: column;
        width: auto;
        margin: 10px;
        max-height: 300px;
      }
  
       .news-card.news-img.overlay {
        flex-direction: column;
        width: auto;
        margin: 10px;
      }
      .news-img.horizontal {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 180px;
        border-radius: 10px 10px 0 0;
      }
      .news-content.horizontal {
        border-radius: 0 0 10px 10px;
        padding: 16px 14px;
      }
    }
    @media (max-width: 500px) {
         .img-logo{
          width: 280px;
          height: auto;
        }
        .donate-icon2 {
          width: 40px;
          height: auto;
          padding-left: 5px;
          display: inline-block;
          vertical-align: middle;
          transition: transform 0.4s ease-out;
        }
      }

 /*-------------------------  by leo -----------------------------*/

 
 /* --- Font Styles --- */
	.lxgw-marker-gothic-regular {
	font-family: "LXGW Marker Gothic", sans-serif;
	font-weight: 400;
	font-style: normal;
	}
	.kaisei-decol-regular {
	font-family: "Kaisei Decol", serif;
	font-weight: 400;
	font-style: normal;
	}
	.hachi-maru-pop-regular {
	font-family: "Hachi Maru Pop", cursive;
	font-weight: 400;
	font-style: normal;
	}

	/* --- Animation Styles  #home  --- */
	@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
	}
	@keyframes fadeIn {
	from { opacity: 0; transform: translateY(24px);}
	to { opacity: 1; transform: translateY(0);}
	}
    /* ---#end Animation Styles  #home  --- */

	/* --- Left Content & Right Slider & Circle Slider #home --- */
	.left-content.animated {
	animation: fadeInUp 0.6s cubic-bezier(.38,1.13,.6,.89);
	}
	.left-content {
	flex: 1 1 340px;
	min-width: 320px;
	max-width: 540px;
	}
	.left-content h2 {
	color: #333;
	font-size: 2.5rem;
	font-weight: bold;
	margin-bottom: 10px;
	}
	.left-content h3 {
	color: #333;
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 18px;
	}
	.left-content p {
	color: #555;
	line-height: 1.8;
	margin-bottom: 28px;
	}
	.learn-more {
	padding: 12px 32px;
	background-color: var(--theme-color);
	color: #fff;
	border: none;
	border-radius: 16px;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s;
	}
	.learn-more:hover {
	background-color: var(--theme-over-color);
	}
	.right-slider {
	flex: 1 1 340px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 300px;
	min-height: 500px;
	}
	/* --- Circle Slider Styles --- */
	.circle-slider {
	position: relative;
	width: 340px;
	height: 340px;
	max-width: 90vw;
	max-height: 90vw;
	display: flex;
	align-items: center;
	justify-content: center;
	}
	.slides {
	position: relative;
	width: 100%;
	height: 100%;
	}
	.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 350px;
	height: 350px;
	object-fit: cover;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.5s, transform 0.5s, z-index 0s 0.5s;
	box-shadow: 0 8px 24px rgba(0,0,0,0.13);
	z-index: 1;
	}
	/* Next slide (behind, right) */
	.slide.next {
	opacity: 1;
	z-index: 1;
	transform: translateX(20px) scale(0.97);
	filter: blur(0.5px) brightness(0.94);
	}
	/* Current slide (in front, left 0px) */
	.slide.active {
	opacity: 1;
	z-index: 2;
	transform: translateX(0) scale(1.02);
	filter: none;
	box-shadow: 0 12px 32px rgba(234,45,98,0.12);
	}
	.slide:not(.active):not(.next) {
	opacity: 0 !important;
	z-index: 0 !important;
	}
	/* Arrow styles */
	.arrow-slider {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color:rgba(0, 0, 0, 0.0);
	color: #cecece;
	border: none;
	font-size: 3rem;
	padding: 0 8px;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(234,45,98,0.10);
	/* cursor: pointer; */
	z-index: 5;
	outline: none;
	transition: background 0.18s;
	}
	.arrow-slider.prev { left: -34px; }
	.arrow-slider.next { right: 10px; }
	.arrow-slider:hover { color: #83ccc9; }
	/* Responsive layout */
	@media (max-width: 1000px) {
	.right-slider { min-width: 220px; min-height: 220px; }
	.circle-slider { width: 220px; height: 220px; }
	.slide { width: 200px; height: 200px; }
	.left-content h2 {
	font-size: 1.3rem;
	}
	.left-content h3 {
	font-size: 0.8rem;
	}
	}
	@media (max-width: 500px) {
   .right-slider { min-width: 280px; min-height: 280px; }
	.circle-slider { width: 280px; height: 280px; }
	.slide { width: 280px; height: 280px; }
	.arrow-slider.prev { left: -34px; }
	.arrow-slider.next { right: 5px; }
	.arrow-slider:hover { color: #83ccc9; }
	}
     /* ---#End Left Content & Right Slider & Circle Slider #home --- */


	.image-section {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	}

	/* Overlay button */
	.donate-toggle {
	position: absolute;
	bottom: 0px;
	right: 0px;
	width: 200px;
	height: 50px;
	background: orange;
	color: white;
	font-size: 28px;
	font-weight: bold;
	border: none;
	border-radius: 25px 0px 0px 0px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	z-index: 10000000;
	transition: background 0.2s;
	}
	.donate-toggle:hover {
	background: #ffe066;
	}

	/* Expansion content - full width under image */
	.donate-content {
	display: none;
	width: 100%;
	background: #e76f00;
	color: #fff;
	padding: 0;
	margin: 0;
	animation: fadeIn 0.3s;
	}
	.donate-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 16px;
	}
	.donate-inner-text{
	font-size: x-large;
	color: white;
	}

	@media (max-width: 700px) {
	.donate-inner {
	max-width: 500px;
	margin: 0 auto;
	padding: 2px;
	}
	.donate-toggle {
		width: 120px;
		height: 24px;
		font-size: 12px;
		right: 0px;
		bottom: 0px;
	}
	.donate-inner-text{
	font-size: small;
	color: white;
		}
	.donate-content {
		display: none;
		width: 100%;
		background: #e76f00;
		color: #fff;
		padding: 0;
		margin: 0;
		animation: fadeIn 0.3s;
		}

		 /* Google Map */
    .google-maps {
		position: relative;
		padding-bottom: 70%; 
		height: 0;
		overflow: hidden;
        }

    .google-maps iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100% !important;
		height: 100% !important;
    }
	}
     /*--- #End Expansion content - full width under image ---*/

	/*--- Control Responsive Display #max-width: 500px---*/ 
	.display-desktop{
	visibility: visible ;
	display: block;
	}
	.display-mobile{
	visibility: hidden ;
	display: none;
	}
	@media (max-width: 500px) {
	.display-desktop{
		visibility: hidden ;
		display: none;
		}
	.display-mobile{
		visibility: visible ;
		display: block;
		}
	}
	@media (min-width: 501px) {
		.display-desktop{
		visibility: visible ;
		display: block;
		}
		.display-mobile{
		visibility: hidden ;
		display: none;
		}
	}
	/*--- #end Control Responsive Slide Display #max-width: 500px---*/ 

     /*--- Control Responsive Display #max-width: 849px---*/ 
	.display-desktop2{
	visibility: visible ;
	display: block;
	}
	.display-mobile2{
	visibility: hidden ;
	display: none;
	}
	.grid-border-radius-l1{
	  border-radius: 50px 0px 0px 0px;
	}
	.grid-border-radius-l2{
	  border-radius: 0px 0px 0px 50px;
	}
	.grid-border-radius-r1{
      border-radius: 0px 50px 0px 0px;
	}
	.grid-border-radius-r2{
       border-radius: 0px;
	}
	.grid-border-radius-r3{
      border-radius: 0px 0px 50px 0px;
	}
	@media (max-width: 1099px) {
		.display-desktop2{
		  visibility: hidden ;
		 display: none;
		}
		.display-mobile2{
		  visibility: visible ;
		  display: block;
		}
		.grid-border-radius-l1{
	     border-radius: 10px;
	    }
		.grid-border-radius-l2{
		  border-radius: 10px;
		}
		.grid-border-radius-r1{
		  border-radius: 10px;
		}
		.grid-border-radius-r2{
		  border-radius: 10px;
		}
		.grid-border-radius-r3{
		  border-radius: 10px;
		}
	}
	@media (min-width: 1100px) {
		.display-desktop2{
		  visibility: visible ;
		  display: block;
		}
		.display-mobile2{
		  visibility: hidden ;
		  display: none;
		}
	}
     /*---#end Control Responsive Display #max-width: 849px---*/ 

  /*-------------------------  by leo #donationmethods.html -----------------------------*/
    .huninn-regular {
      font-family: "Huninn", sans-serif;
      font-weight: normal;
      font-style: normal;
    }
    .noto-sans-tc-regular {
      font-family: "Noto Sans TC", sans-serif;
      font-optical-sizing: auto;
      font-weight: 400;
      font-style: normal;
    }
    *{
    letter-spacing:2px ;  
    }
    p.text-large{
      font-size: large;
    }
    p.title {font-size: medium;}
    span.text-large{
      font-size: large;
    }
    .amount-selected {
      color: #ff86ba;   
      font-weight: bold;
      font-size: x-large;
    }

    /* ============================
      必填標記
      ============================ */
    .required-star {
      color: #d35400;
      margin-left: 4px;
    }

    /* ============================
      按鍵
        ============================ */
    .btn-base-8{color:#FFF;background-color:#dc2784;border:0px solid #dc2784}
    .btn-base-8:active,.btn-base-8.active,.btn-base-8:focus,.btn-base-8:hover{background-color:#ef6fb1;color:#FFF}
   
    /* 奉獻名義紅點／紅星樣式 */
    .required-dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      background-color: #dc2784;
      border-radius: 50%;
      vertical-align: middle;
      margin-left: 4px;
    }

    /* ================================
       Radio 按鈕區塊（Flex + gap）
       ================================ */
    .radio-group {
      display: flex;
      flex-wrap: wrap;
      gap: 30px; /* 按鈕之間的間距，可自行調整 */
      margin-bottom: 16px;
    }

    /* radio 按鈕 */
    .radio-group input[type="radio"] {
      display: none;
      
    }

      /* label 文字做點間距 */
    .radio-label {
      margin-right: 1.5em;
      font-size: large;
      cursor: pointer;
      user-select: none;
    }

    /* label 作為可點擊區塊 */
    .radio-group label {
      flex: 1 1 calc(33.333% - 30px);
      text-align: center;
      letter-spacing:5px ;
      padding: 12px 0;
      border: 2px solid #ff86ba;    
      border-radius: 20px;
      background-color: #fff;   
      cursor: pointer;
      user-select: none;
      transition: background-color 0.2s, color 0.2s;
    }

    /* 分別「奉獻」與「金額」的顏色 */
    .radio-group label .label-text {
      color: #333;   /* 常態下「奉獻」為黑色 */
      font-weight: normal;
      font-size:large ;
    }
    .radio-group label .amount-text {
      color: #ff86ba; /* 常態下「$xxx」#dc2784 */
      font-weight: bold;
      font-size: x-large;
      margin-left: 4px;
    }

    /* 滑鼠懸停時 */
    .radio-group label:hover {
      background-color: #fa81bf;
    }
    .radio-group label:hover .label-text,
    .radio-group label:hover .amount-text {
      color: #fff;
    }

    /* 被選取（checked）後*/
    .radio-group input[type="radio"]:checked + label {
      background-color: #dc2784;
      border-color: #dc2784;
    }
    .radio-group input[type="radio"]:checked + label .label-text,
    .radio-group input[type="radio"]:checked + label .amount-text {
      color: #fff;
    }

    /* ================================
       響應式：螢幕寬度 < 480px 時
       ================================ */
    @media (max-width: 480px) {
      .radio-group label {
        flex: 1 1 100%;
        font-size: 0.9rem;
      }
    }
  
   
   /* 1. 先移除瀏覽器預設 radio 樣式 */
    input[type="radio"] {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      /* 設定外框大小、邊框、圓角 */
      width: 16px;
      height: 16px;
      border: 2px solid #999;
      border-radius: 50%;
      position: relative;
      vertical-align: middle;
      cursor: pointer;
      outline: none;
      margin: 0 4px 0 0; /* 右邊留一點空間給文字 */
    }

    /* 2. 當 radio 被勾選後，用 ::before 加入#dc2784實心圓 */
    input[type="radio"]:checked::before {
      content: "";
      display: block;
      width: 8px;   /* 內圈直徑 */
      height: 8px;
      background-color: #dc2784; /* 內圈顏色改成#dc2784*/
      border-radius: 50%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    /* 3. 滑鼠 hover 或 focus 時，外框可以變深一點（非必要） */
    input[type="radio"]:hover {
      border-color: #666;
    }
    input[type="radio"]:focus {
      box-shadow: 0 0 0 2px rgba(200, 0, 0, 0.3);
    }

    /* ================================
    Custom input with prefix
    ================================ */
    .input-group-addon {
        padding: 6px 12px;
        font-size: large;
        font-weight: 400;
        line-height: 1;
        color: #555;
        text-align: center;
        background-color: #eee;
        border: 1px solid #ccc;
        width: 1%;
        white-space: nowrap;
        vertical-align: middle;
        display: table-cell;
    }
    input {
        position: relative;
        z-index: 2;
        float: left;
        width: 100%;
        margin-bottom: 0;
        display: table-cell;
        padding: 6px 12px;
        border: 1px solid #ccc;
        margin: 0;
    }
    .suffix input {
        border-radius: 4px 0px 0px 4px;
    }
    .suffix .input-group-addon {
        border-left: 0;
        border-radius: 0px 4px 4px 0px;
    }
    .prefix input {
        border-radius: 0px 4px 4px 0px;
        padding-left: 3.5rem;   /* adjust so text starts to the right of the red prefix */
        font-size: x-large;
        line-height: 1.4;
        font-weight: bold;
        height: 2.5rem;
        color: #dc2784;
        letter-spacing:5px ;
        text-align: left;
    }
    .prefix input:focus {
        outline: none;
        border-color: gainsboro;
        box-shadow: 0 0 0.2rem rgba(255, 0, 0, 0.25);
      }
    .prefix .input-group-addon {
        border-right: 0;
        border-radius: 4px 0px 0px 4px;
    }
    .presuffix input {
        border-radius: 0px;

    }
    .input-group-addon.prefix {
        border-radius: 4px 0px 0px 4px;
        border-right: 0;
    }
    .input-group-addon.suffix {
        border-radius: 0px 4px 4px 0px;
        border-left: 0;
    }
    .input-group {
        position: relative;
        display: table;
        border-collapse: separate;
    }
    .mt--table {
      margin-top:-750px !important
    }
    .mask-container{
        height: 350px;
    }
     @media (max-width: 480px) {
      .mt--table {
        margin-top:-550px !important
      }
    }
 
     

 /*----------------  by leo #jobvancancy ---------------------------- */
 .container-job {
      display: flex;
      flex-direction: row;
      height: 60vh;
      max-height: 100vh;
      padding: 40px 0vw 40px 0vw;
      box-sizing: border-box;
      gap: 2vw;
    }
    .job-list {
      background: #f3f8f3;
      border-radius: 12px;
      width: 340px;
      min-width: 270px;
      max-width: 380px;
      height: 100%;
      overflow-y: auto;
      box-shadow: 0 2px 12px #0001;
      padding: 12px 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .job-item {
      background: #e4f4e8;
      border-radius: 10px;
      margin: 0 16px;
      padding: 18px 20px 12px 20px;
      box-shadow: 0 1px 6px #0001;
      transition: background 0.2s, box-shadow 0.2s;
      cursor: pointer;
      border-left: 5px solid #3daa6d00;
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .job-item.active, .job-item:hover {
      background: #d4eede;
      border-left: 5px solid #3daa6d;
      box-shadow: 0 4px 16px #0002;
    }
    .job-title {
      font-weight: bold;
      font-size: 1.12em;
      color: #2a6141;
    }
    .job-subtitle {
      font-size: 0.99em;
      color: #666;
      margin-bottom: 8px;
    }
    .job-date {
      font-size: 0.92em;
      color: #888;
      text-align: right;
      margin-top: 10px;
    }
    .job-btn {
      background: #169e54;
      color: #fff;
      border: none;
      padding: 7px 28px;
      font-size: 1em;
      border-radius: 7px;
      cursor: pointer;
      margin-bottom: 8px;
      margin-top: 6px;
      width: fit-content;
      transition: background 0.2s;
    }
    .job-btn:hover {
      background: #107d43;
    }
    .job-detail {
      flex: 1;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 16px #0002;
      padding: 38px 32px 38px 38px;
      overflow-y: auto;
      min-width: 0;
      display: flex;
      flex-direction: column;
      position: relative;
    }
    .job-detail .job-detail-title {
      color: #17964f;
      font-size: 2em;
      font-weight: bold;
      text-align: center;
      margin-bottom: 20px;
      letter-spacing: 2px;
    }
    .job-detail .job-detail-section-title {
      color: #17964f;
      font-size: 1.18em;
      font-weight: bold;
      margin-bottom: 12px;
    }
    .job-detail .job-detail-date {
      position: absolute;
      right: 38px;
      top: 38px;
      color: #888;
      font-size: 0.99em;
    }
    .job-detail-content {
      color: #2a2a2a;
      font-size: 1.05em;
      line-height: 1.7;
      margin-bottom: 8px;
    }

    @media (max-width: 900px) {
      .container-job { flex-direction: column; padding: 10px 2vw; gap: 20px; height:80vh ;}
      .job-list, .job-detail { max-width: none; width: 100%; }
      .job-list { height: 200px; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
      .job-item { min-width: 220px; margin: 0 8px; }
      .job-detail { padding: 20px 6vw 40px 6vw; }
      .job-detail .job-detail-date { position: static; text-align: right; margin-bottom: 16px; }
    }
    @media (max-width: 600px) {
      .container-job { padding: 20;height:90vh }
      .job-list { height: 250px; }
      .job-item { font-size: 0.95em; }
      .job-detail { padding: 16px 6vw 20px 6vw; }
    }

    /*----------------  by leo #History.page ---------------------------- */
    .history-background{
       background-image: url('../img/banners/ktmss-history.webp') ;  
      background-repeat: repeat; 
       background-size:  contain;
    }
     @media (max-width: 1100px) {
         .history-background{
          background-image: url('../img/banners/blank.png') ;  
          background-repeat: repeat; 
          background-size:  contain;
        }
     }

 /*----------------  by leo #post-detail ---------------------------- */
    .post-section {
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 40px;
      gap: 20px;
    }
    .text {
      flex: 1 1 60%;
      min-width: 280px;
    }
    .image {
      flex: 1 1 35%;
      min-width: 50px; 
    }
    .image img {
      width: 100%;
      max-height: 220px;
      border-radius: 0px;
      object-fit: cover;
    }
    .highlight {
      background-color: #78c5c2;
      padding: 5px 10px;
      border-radius: 5px;
      display: inline-block;
      margin: 10px 0;
      color: #fff;
    }
    @media (max-width: 768px) {
      .post-section {
        flex-direction: column;
      }
    }
    table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 10px;
    }
    th, td {
      padding: 10px;
      text-align: center;
      border: 1px solid #ddd;
    }
    th {
      background-color: #f9f9f9;
      font-weight: bold;
    }
    .note {
      font-size: 0.9em;
      color: #666;
    }
    @media (max-width: 600px) {
      table, thead, tbody, th, td, tr {
        display: block;
      }
      thead tr {
        display: none;
      }
      tr {
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        padding: 10px;
      }
      td {
        text-align: left;
        padding-left: 50%;
        position: relative;
      }
      td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
      }
    }

     /*----------------  by leo #board-member
     	/* Zebra striping */
      .board-list {
      width: 90%;
      margin: 0 auto;
      border-collapse: collapse;
      background: #fff;
      font-size: 1.05em;
      box-shadow: 0 0 8px rgba(0,0,0,0.06);
      color: #333;
      }

      .board-list th, .board-list td {
      border: 1px solid #e0e0e0;
      padding: 14px 10px;
      text-align: left;
      }
      .board-list thead th {
      background: #f4f4f4;
      font-size: 1.15em;
      text-align: center;
      letter-spacing: 1px;
      } 


      /*----------------  #scroll to top
        ---------------- */         

      html {
      scroll-behavior: auto; /* we'll use jQuery animate for broad support */
      }
      /* Scroll-to-top button */
      #back-to-top {
      position: fixed;
      right: 24px;
      bottom: 24px;
      width: var(--btn-size);
      height: var(--btn-size);
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: var(--btn-bg);
      color: #fff;
      border: 1px solid var(--btn-border);
      box-shadow: var(--shadow);
      cursor: pointer;
      z-index: 9999;
      /* Hidden by default */
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
      }
      #back-to-top.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      transition: opacity .25s ease, transform .25s ease, visibility 0s;
      }
      #back-to-top:hover { background: var(--btn-bg-hover); }
      #back-to-top:active { transform: translateY(0) scale(0.98); }
      #back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

      @media (prefers-reduced-motion: reduce) {
      #back-to-top { transition: none; }
      }
      /* Optional: keep away from cookie banners / chat widgets on narrow screens */
      @media (max-width: 480px) {
        #back-to-top { right: 16px; bottom: 16px; }
        .scroll-btn{
        visibility: hidden ; opacity: 0.0;
        }
      }
      .scroll-btn {
            width: 65px;
            height: auto;
            padding-left: 0px;
            display: inline-block;
            vertical-align: middle;
            transition: transform 0.4s ease-out;
            /* box-shadow: 0 1px 1px rgba(0,0,0,0.06); */
            border-radius: 999px;
      }
      .scroll-btn:hover  {
          display: inline-block;
          vertical-align: middle;
          transform: rotate(10deg) scale(1.1);
      }

 /*---------------- #corporate-volunteering ---------------------------- */
      .title-left {
          position: relative;
          left: -130px;
      }
      .gap-top-height
      {
          margin-top: 50px;
      }
      @media (max-width: 480px) {
        .title-left {
          position: relative;
          left: 0px;
        }
       .gap-top-height
        {
          margin-top: 0px;
        }
      }