/*
Theme Name: Blocksy Child
Template: blocksy
Author: CodeKoom
Description: A child of Blocksy is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
Version: 2.1.27
*/

@font-face {
  font-family: 'NotoSansThai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/NotoSansThai-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'NotoSansThai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/NotoSansThai-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'NotoSansThaiLooped';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/NotoSansThaiLooped-Regular.woff2') format('woff2');
}

body {
  font-family: 'NotoSansThaiLooped', sans-serif;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: 'NotoSansThai', sans-serif;
  font-weight: 700;
}

/* =========================
   Coupon Container
========================= */

.coupon-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* =========================
   Coupon Card – Base
========================= */
.coupon-card {
  display: flex;
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  margin-bottom: 16px;
}

/* =========================
   Desktop Perforated Line
========================= */
.coupon-card::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 70%;
  border-left: 2px dashed #e5e7eb;
}

/* =========================
   Coupon Layout
========================= */
.coupon-left {
  width: 70%;
  padding: 16px;
  position: relative;
}

.coupon-right {
  width: 30%;
  padding: 16px;
  background: #fafafa;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================
   Semi-circle Cut
========================= */
.coupon-left::after,
.coupon-right::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  background: #f5f5f5;
  border-radius: 50%;
  transform: translateY(-50%);
}

.coupon-left::after {
  right: -11px;
}

.coupon-right::before {
  left: -11px;
}

/* =========================
   Content
========================= */
.coupon-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
}

.coupon-content ul {
  padding-left: 18px;
  margin: 0;
}

.coupon-content li {
  font-size: 13px;
  margin-bottom: 4px;
}

/* =========================
   Coupon Code
========================= */
.coupon-code {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  border: 2px dashed #cbd5e1;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 10px;
  text-align: center;
}

/* =========================
   Reveal Button
========================= */
.reveal-btn {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

/* =========================
   Mobile – Stack Layout
========================= */
@media (max-width: 768px) {
	.coupon-container {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	
  .coupon-card {
    flex-direction: column;
		width: 100%;
  }

  .coupon-left,
  .coupon-right {
    width: 100%;
    box-sizing: border-box;
  }

  /* remove vertical tear */
  .coupon-card::after,
  .coupon-left::after,
  .coupon-right::before {
    display: none;
  }

  /* action zone */
  .coupon-right {
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 12px;
    padding: 16px;
  }

  .coupon-code {
    font-size: 16px;
  }

  .reveal-btn {
    padding: 14px;
    font-size: 16px;
  }
}

/* ========================= */

/* FAQ wrapper */
.category-faq details {
  border-bottom: 1px solid #eee;
  padding: 14px 0;
	transition: all 0.3s ease;
}

/* remove default marker */
.category-faq summary::-webkit-details-marker {
  display: none;
}

/* question */
.category-faq summary {
  cursor: pointer;
  font-weight: 700;
  position: relative;
  padding-right: 24px;
}

/* custom icon */
.category-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* when open */
.category-faq details[open] summary::after {
  content: "−";
}

/* answer */
.category-faq p {
  margin-top: 10px;
  color: #555;
  line-height: 1.6;
}

/* =========================
   Breadcrumb
========================= */

.breadcrumb {
  font-size: 14px;
  margin-bottom: 15px;
  color: #666;
}

.breadcrumb a {
  color: #0073aa;
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 5px;
}

/* =========================
   Coupon listing
========================= */

.view-all-coupons {
    margin: 12px 0 28px;
}

.view-all-link {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #111;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    opacity: 0.7;
}

/* =========================
   Home page
========================= */

.home-page {
	padding: 24px 0;
}

.home-section {
	margin-top: 32px;
}