/* ==========================================================
   NeMaTeL inner pages (About, Gallery, Blogs, Contact)
   Flat modern style: navy / warm-white / orange. No shadows.
   ========================================================== */
.pg { font-family: var(--font); color: var(--navy); background: var(--warm-white); }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg a { text-decoration: none; }
.pg h1, .pg h2, .pg h3, .pg h4, .pg h5 { font-family: var(--font-display); color: var(--navy); letter-spacing: -0.02em; margin: 0; }
.pg p { margin: 0; }
.pg-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero (replaces breadcrumb) ---------- */
.pg-hero { background: var(--navy); color: var(--white); padding: 150px 0 72px; position: relative; overflow: hidden; }
.pg-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 70px solid rgba(242, 90, 36, 0.14); border-radius: 50%; }
.pg-hero .pg-wrap { position: relative; z-index: 1; }
.pg-kicker { color: var(--orange); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.pg-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.1; max-width: 820px; }
.pg-hero p { color: rgba(255, 255, 255, 0.72); font-size: 18px; max-width: 640px; margin-top: 18px; line-height: 1.7; }

/* ---------- Sections ---------- */
.pg-section { padding: 80px 0; }
.pg-section.alt { background: var(--warm-white-alt); }
.pg-section.white { background: var(--white); }
.pg-head { margin-bottom: 44px; max-width: 720px; }
.pg-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.15; }
.pg-head p { color: var(--muted); margin-top: 14px; font-size: 17px; line-height: 1.7; }

/* ---------- Buttons ---------- */
.pg-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: var(--white) !important; border: 0; border-radius: var(--radius-sm); padding: 14px 26px; font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s ease; }
.pg-btn:hover { background: var(--orange); }
.pg-btn.accent { background: var(--orange); }
.pg-btn.accent:hover { background: var(--orange-hover); }
.pg-btn svg { width: 16px; height: 16px; }

/* ---------- About: rich content ---------- */
.pg-prose { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); overflow: hidden; }
.pg-prose, .pg-prose * { max-width: 100% !important; word-wrap: break-word; overflow-wrap: break-word; }
.pg-prose h1, .pg-prose h2, .pg-prose h3, .pg-prose h4 { margin: 28px 0 14px; font-weight: 800; line-height: 1.25; color: var(--navy) !important; }
.pg-prose p, .pg-prose li, .pg-prose span, .pg-prose td { font-size: 17px; line-height: 1.85; color: #3b4859; }
.pg-prose img { height: auto !important; border-radius: var(--radius); margin: 18px 0; }
.pg-prose ul, .pg-prose ol { padding-left: 22px; margin: 0 0 20px; }
.pg-prose ul { list-style: disc; }
.pg-prose ol { list-style: decimal; }

/* ---------- About: mission/vision ---------- */
.pg-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pg-mv { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s ease, transform 0.2s ease; }
.pg-mv:hover { border-color: var(--orange); transform: translateY(-4px); }
.pg-mv .ico { width: 58px; height: 58px; border-radius: var(--radius-sm); background: var(--navy); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.pg-mv h3 { font-size: 26px; font-weight: 800; }
.pg-mv h4 { font-size: 16px; font-weight: 700; color: var(--orange); }
.pg-mv p { color: var(--muted); line-height: 1.8; font-size: 16px; }

/* ---------- Gallery ---------- */
.pg-gallery { column-count: 3; column-gap: 20px; }
.pg-gitem { break-inside: avoid; margin-bottom: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pg-gthumb { position: relative; display: block; overflow: hidden; background: var(--warm-white-alt); }
.pg-gthumb img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.pg-gitem:hover .pg-gthumb img { transform: scale(1.05); }
.pg-gthumb .ov { position: absolute; inset: 0; background: rgba(11, 23, 40, 0.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s ease; color: var(--white); font-size: 26px; }
.pg-gitem:hover .ov { opacity: 1; }
.pg-gcap { padding: 18px 20px 20px; }
.pg-gcap h5 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.pg-gcap p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 6px; }

/* ---------- Blogs ---------- */
.pg-blogs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pg-post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s ease, transform 0.2s ease; }
.pg-post:hover { border-color: var(--navy); transform: translateY(-4px); }
.pg-post .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--warm-white-alt); display: block; }
.pg-post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pg-post:hover .thumb img { transform: scale(1.05); }
.pg-post .cat { position: absolute; left: 16px; top: 16px; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; }
.pg-post .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.pg-post .meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.pg-post h3 { font-size: 20px; font-weight: 800; line-height: 1.35; margin-bottom: 12px; }
.pg-post h3 a { color: var(--navy); }
.pg-post h3 a:hover { color: var(--orange); }
.pg-post .ex { color: var(--muted); font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pg-post .more { margin-top: auto; padding-top: 20px; font-weight: 800; font-size: 14px; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.pg-post .more svg { width: 14px; height: 14px; flex-shrink: 0; }
.pg-head a svg { width: 14px; height: 14px; flex-shrink: 0; }
.pg-post .more:hover { color: var(--orange); }
.pg-empty { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 60px 24px; text-align: center; color: var(--muted); font-size: 17px; }
.pg-pager { margin-top: 48px; display: flex; justify-content: center; }
.pg-pager .pagination { gap: 6px; flex-wrap: wrap; margin: 0; }
.pg-pager .page-link { border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: var(--radius-sm) !important; font-weight: 700; padding: 10px 16px; }
.pg-pager .page-item.active .page-link, .pg-pager .page-link:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Contact ---------- */
.pg-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.pg-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.pg-form h3 { font-size: 26px; font-weight: 800; }
.pg-form .sub { color: var(--muted); margin: 8px 0 28px; }
.pg-field { margin-bottom: 20px; }
.pg-field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.pg-field label .req { color: var(--orange); }
.pg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg-input { width: 100%; background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--font); font-size: 15px; color: var(--navy); outline: none; transition: border-color 0.2s ease, background 0.2s ease; }
.pg-input:focus { border-color: var(--navy); background: var(--white); }
textarea.pg-input { resize: vertical; min-height: 130px; }
.pg-err { color: #c0392b; font-size: 13px; margin-top: 6px; display: block; }
.pg-alert { background: #eaf7ee; border: 1px solid #b7e4c4; color: #1e6b39; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; font-weight: 600; }
.pg-info { display: flex; flex-direction: column; gap: 16px; }
.pg-info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; align-items: center; transition: border-color 0.2s ease; }
.pg-info-card:hover { border-color: var(--orange); }
.pg-info-card .ico { flex: 0 0 52px; height: 52px; border-radius: var(--radius-sm); background: var(--navy); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.pg-info-card h5 { font-size: 16px; font-weight: 800; }
.pg-info-card p { color: var(--muted); font-size: 15px; margin-top: 2px; word-break: break-word; }

@media (max-width: 991px) {
  .pg-blogs { grid-template-columns: repeat(2, 1fr); }
  .pg-gallery { column-count: 2; }
  .pg-contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pg-hero { padding: 120px 0 52px; }
  .pg-section { padding: 56px 0; }
  .pg-blogs, .pg-grid-2, .pg-row { grid-template-columns: 1fr; }
  .pg-gallery { column-count: 1; }
  .pg-mv { padding: 28px; }
}
