/* ================================================================
   SUBPAGE.CSS — Premium subpage styles for project 28
   Adapted from 116/css/premium.css
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900&display=swap');

:root {
  --sp-secondary: var(--secondary, #c5965e);
  --sp-secondary-dark: #a87a2e;
  --sp-secondary-light: #dbb05c;
  --sp-text-light: #6b7280;
  --sp-bg: #ffffff;
  --sp-bg-alt: #f8f9fc;
  --sp-shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --sp-shadow-md: 0 12px 40px rgba(0,0,0,0.08);
  --sp-shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.15);
  --sp-font-heading: 'DM Serif Display', Georgia, serif;
  --sp-font-body: 'DM Sans', -apple-system, sans-serif;
  --sp-transition: all 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  --sp-transition-fast: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  --error: #ef4444;
}

/* PAGE HEADER */
.sp-page-header { padding: 140px 0 60px !important; background: var(--primary,#2c724f); position: relative; overflow: hidden; background-size: cover !important; background-position: center !important; }
.sp-page-header::before { content:''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(44, 114, 79, 0.95) 0%, rgba(20, 60, 40, 0.85) 100%); z-index: 0; }
.sp-page-header .sp-header-inner { position: relative; z-index: 1; max-width: 100% !important; width: 100% !important; padding: 0 30px !important; }
.sp-page-header h1 { font-family: var(--sp-font-heading) !important; font-size: clamp(26px,4vw,46px) !important; font-weight: 400 !important; color: #fff !important; margin-bottom: 10px !important; line-height: 1.2 !important; text-shadow: 0 2px 10px rgba(0,0,0,0.4) !important; }
.sp-page-badge { display: none !important; }
.sp-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.7) !important; margin-top: 12px; }
.sp-breadcrumb a { color: var(--sp-secondary-light); text-decoration: none; }

/* MAIN LAYOUT */
.sp-main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 48px 30px !important; max-width: 100% !important; width: 100% !important; }
@media (max-width:1024px) { .sp-main-layout { grid-template-columns: 1fr; } }
@media (max-width:768px) { .sp-main-layout { padding: 28px 16px !important; } }

/* CONTENT CARD */
.sp-content-card { background: #fff; border-radius: 24px; padding: 36px; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--sp-shadow-sm); margin-bottom: 22px; }
.sp-content-card h1 { font-family: var(--sp-font-heading) !important; font-size: 28px !important; color: var(--primary,#2c724f) !important; margin-bottom: 18px !important; }
.sp-content-card h2 { font-family: var(--sp-font-heading) !important; font-size: 24px !important; color: var(--primary,#2c724f) !important; margin-bottom: 14px !important; }
.sp-content-card h3 { font-family: var(--sp-font-heading) !important; font-size: 20px !important; color: var(--primary,#2c724f) !important; margin-bottom: 12px !important; }
.sp-content-card .sp-txt, .sp-content-card p { font-size: 15px; color: var(--sp-text-light); line-height: 1.9; }

/* ABOUT GRID */
.sp-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width:1024px) { .sp-about-grid { grid-template-columns: 1fr; gap: 36px; } }
.sp-about-img-wrap { position: relative; border-radius: 32px; overflow: hidden; }
.sp-about-img-wrap img { width: 100%; height: 420px; object-fit: cover; border-radius: 32px; display: block; }
.sp-exp-card { position: absolute; bottom: 24px; left: -16px; background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); padding: 18px 22px; border-radius: 16px; box-shadow: var(--sp-shadow-lg); text-align: center; }
.sp-exp-num { font-family: var(--sp-font-heading); font-size: 30px; color: var(--sp-secondary); display: block; line-height: 1; }
.sp-exp-lbl { font-size: 11px; color: var(--sp-text-light); font-weight: 500; margin-top: 3px; }
@media (max-width:480px) { .sp-exp-card { position: relative; left: 0; bottom: 0; margin-top: 14px; width: 100%; box-sizing: border-box; } .sp-about-img-wrap img { height: 260px; } }
.sp-about-content { }
.sp-section-title { font-family: var(--sp-font-heading) !important; font-size: clamp(24px,3.5vw,38px) !important; color: var(--primary,#2c724f) !important; line-height: 1.2 !important; margin-bottom: 14px !important; }
.sp-section-label { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--sp-secondary); display: inline-block; margin-bottom: 10px; }
.sp-gradient-text { background: linear-gradient(135deg,var(--sp-secondary) 0%,var(--sp-secondary-light) 50%,var(--sp-secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sp-about-text { font-size: 15px; color: var(--sp-text-light); line-height: 1.9; margin-bottom: 22px; }
.sp-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.06); }
@media (max-width:640px) { .sp-stats-row { grid-template-columns: repeat(2, 1fr); } }
.sp-stat-item { text-align: center; }
.sp-stat-num { font-family: var(--sp-font-heading); font-size: 24px; color: var(--sp-secondary); display: block; line-height: 1; margin-bottom: 3px; }
.sp-stat-lbl { font-size: 11px; color: var(--sp-text-light); font-weight: 500; }

/* MISSION / VISION */
.sp-mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
@media (max-width:768px) { .sp-mv-grid { grid-template-columns: 1fr; } }
.sp-mv-card { background: #fff; border-radius: 24px; padding: 36px 28px; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--sp-shadow-sm); text-align: center; transition: var(--sp-transition); }
.sp-mv-card:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-md); border-color: rgba(201,149,63,0.15); }
.sp-mv-icon { width: 58px; height: 58px; margin: 0 auto 18px; background: rgba(201,149,63,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--sp-secondary); transition: var(--sp-transition); }
.sp-mv-card:hover .sp-mv-icon { background: var(--sp-secondary); color: #fff; transform: scale(1.08); }
.sp-mv-card h3 { font-family: var(--sp-font-heading) !important; font-size: 22px !important; color: var(--primary,#2c724f) !important; margin-bottom: 12px !important; }
.sp-mv-card p { font-size: 14px; color: var(--sp-text-light); line-height: 1.8; }

/* VALUES */
.sp-values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 36px; }
@media (max-width:1024px) { .sp-values-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:640px) { .sp-values-grid { grid-template-columns: 1fr; } }
.sp-value-card { padding: 28px 18px; border-radius: 22px; background: var(--sp-bg-alt); border: 1px solid rgba(0,0,0,0.04); text-align: center; transition: var(--sp-transition); }
.sp-value-card:hover { transform: translateY(-5px); box-shadow: var(--sp-shadow-md); border-color: rgba(201,149,63,0.15); }
.sp-value-icon { width: 50px; height: 50px; margin: 0 auto 14px; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--sp-secondary); box-shadow: var(--sp-shadow-sm); transition: var(--sp-transition); }
.sp-value-card:hover .sp-value-icon { background: var(--sp-secondary); color: #fff; }
.sp-value-card h3 { font-family: var(--sp-font-heading) !important; font-size: 17px !important; color: var(--primary,#2c724f) !important; margin-bottom: 8px !important; }
.sp-value-card p { font-size: 13px; color: var(--sp-text-light); line-height: 1.7; }

/* SIDEBAR */
.sp-sidebar-card { background: #fff; border-radius: 22px; padding: 22px 18px; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--sp-shadow-sm); margin-bottom: 22px; }
.sp-sidebar-title { font-family: var(--sp-font-heading) !important; font-size: 18px !important; color: var(--primary,#2c724f) !important; margin-bottom: 14px !important; padding-bottom: 10px !important; border-bottom: 2px solid var(--sp-secondary) !important; font-weight: 700 !important; }
.sp-sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sp-sidebar-list a { display: block; font-size: 13px; color: #1a1a2e; padding: 8px 13px; border-radius: 10px; background: var(--sp-bg-alt); transition: var(--sp-transition-fast); line-height: 1.5; text-decoration: none; }
.sp-sidebar-list a:hover { background: rgba(201,149,63,0.09); color: var(--sp-secondary); padding-left: 17px; }
.sp-sidebar-date { font-size: 11px; font-weight: 700; color: var(--sp-secondary); text-transform: uppercase; letter-spacing: 1px; padding: 5px 0 2px; display: block; }

/* CONTACT CARDS */
.sp-contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 24px; }
@media (max-width:768px) { .sp-contact-cards { grid-template-columns: 1fr; } }
.sp-contact-card { background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 16px; padding: 22px 18px; text-align: center; transition: var(--sp-transition); box-shadow: var(--sp-shadow-sm); display: flex; flex-direction: column; align-items: center; }
.sp-contact-card:hover { transform: translateY(-5px); box-shadow: var(--sp-shadow-md); border-color: rgba(201,149,63,0.15); }
.sp-contact-icon { width: 48px; height: 48px; background: rgba(201,149,63,0.08); color: var(--sp-secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; transition: var(--sp-transition-fast); }
.sp-contact-card:hover .sp-contact-icon { background: var(--sp-secondary); color: #fff; }
.sp-contact-card h4 { font-family: var(--sp-font-heading) !important; font-size: 14px !important; color: var(--primary,#2c724f) !important; margin-bottom: 5px !important; }
.sp-contact-card p { font-size: 13px; color: var(--sp-text-light); line-height: 1.5; margin: 0; word-break: break-all; }

/* FORM */
.sp-form { display: flex; flex-direction: column; gap: 16px; }
.sp-form-group { display: flex; flex-direction: column; gap: 5px; }
.sp-form label { font-size: 13px; font-weight: 600; color: var(--primary,#2c724f); }
.sp-input { width: 100%; padding: 11px 15px; border: 1px solid rgba(0,0,0,0.09); border-radius: 10px; font-family: var(--sp-font-body); font-size: 14px; transition: var(--sp-transition-fast); background: #fff; color: #1a1a2e; }
.sp-input:focus { outline: none; border-color: var(--sp-secondary); box-shadow: 0 0 0 3px rgba(197,150,94,0.12); }
textarea.sp-input { min-height: 100px; resize: vertical; }
.sp-btn-submit { display: inline-flex; align-items: center; gap: 7px; padding: 12px 26px; border-radius: 50px; font-family: var(--sp-font-body); font-size: 14px; font-weight: 600; border: none; cursor: pointer; background: linear-gradient(135deg,var(--sp-secondary) 0%,var(--sp-secondary-dark) 100%); color: #fff; box-shadow: 0 6px 20px rgba(197,150,94,0.25); transition: var(--sp-transition); }
.sp-btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(197,150,94,0.35); }

/* TABLE */
.sp-table-wrap { width: 100%; overflow-x: auto; }
.sp-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--sp-shadow-sm); }
.sp-table th { padding: 13px 18px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; background: var(--primary,#2c724f); text-align: left; }
.sp-table td { padding: 11px 18px; font-size: 13px; color: #1a1a2e; border-bottom: 1px solid rgba(0,0,0,0.04); }
.sp-table tr:last-child td { border-bottom: none; }
.sp-table tr:hover td { background: rgba(201,149,63,0.03); }

/* JOB CARD */
.sp-job-card { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid rgba(0,0,0,0.05); margin-bottom: 16px; transition: var(--sp-transition); }
.sp-job-card:hover { box-shadow: var(--sp-shadow-md); border-color: rgba(201,149,63,0.15); }
.sp-job-card h3 { font-family: var(--sp-font-heading) !important; font-size: 18px !important; color: var(--primary,#2c724f) !important; margin-bottom: 3px !important; }
.sp-job-card .sp-job-id { font-size: 12px; color: var(--sp-secondary); font-weight: 500; margin-bottom: 8px; }
.sp-job-card .sp-job-desc { font-size: 14px; color: var(--sp-text-light); line-height: 1.7; margin-bottom: 12px; }
.sp-job-apply { display: inline-flex; align-items: center; gap: 5px; padding: 8px 20px; background: var(--sp-secondary); color: #fff; border-radius: 50px; font-size: 13px; font-weight: 600; transition: var(--sp-transition-fast); text-decoration: none; }
.sp-job-apply:hover { background: var(--sp-secondary-dark); transform: translateY(-2px); }

/* ARTICLE */
.sp-article-item { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid rgba(0,0,0,0.04); margin-bottom: 16px; transition: var(--sp-transition); }
.sp-article-item:hover { box-shadow: var(--sp-shadow-md); border-color: rgba(201,149,63,0.15); }
.sp-article-item h2 { font-family: var(--sp-font-heading) !important; font-size: 19px !important; color: var(--primary,#2c724f) !important; margin-bottom: 7px !important; }
.sp-article-item p { font-size: 14px; color: var(--sp-text-light); line-height: 1.7; margin-bottom: 12px; }

/* SECTION PADDING */
.sp-section { padding: 60px 30px; max-width: 1200px; margin: 0 auto; }
.sp-section-bg { background: var(--sp-bg-alt); padding: 60px 0; }
.sp-section-bg > .sp-section { margin: 0 auto; }

/* REVEAL ANIMATION */
.sp-reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.sp-reveal.visible { opacity: 1; transform: translateY(0); }

/* MOBILE ADJUSTMENTS */
@media (max-width:768px) {
  .sp-page-header { padding: 100px 0 35px !important; }
  .sp-page-header h1 { font-size: 24px !important; }
}
