@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Sans+TC:wght@300;400;500;700;900&family=Playfair+Display:wght@400;600;700&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:'Noto Sans SC','Noto Sans TC','Montserrat',system-ui,sans-serif;
  background:#fff;
  color:#2d2418;
  overflow-x:hidden;
  line-height:1.6;
  font-size:16px;
}
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
ul { list-style:none; }
button { border:none; cursor:pointer; font-family:inherit; background:transparent; }
input, select, textarea { font-family:inherit; }
.container { max-width:1200px; margin:0 auto; padding:0 24px; }
.text-white { color:#fff; }
.text-gold { color:#e7a72c; }
.text-teal { color:#00695c; }

/* ===== Color Tokens ===== */
:root {
  --teal:#008C7A;
  --teal-dark:#006B5C;
  --teal-light:#e0f2f1;
  --gold:#e7a72c;
  --gold-light:#fdf3e0;
  --dark:#0a1628;
  --dark-card:#111d33;
  --dark-card2:#162035;
  --gray-50:#FAFAF7;
  --gray-100:#f1f3f5;
  --gray-200:#e9ecef;
  --gray-600:#868e96;
  --gray-800:#343a40;
}

/* ===== Scroll Reveal ===== */
.section-reveal { opacity:0; transform:translateY(30px); transition:opacity 0.7s ease, transform 0.7s ease; }
.section-reveal.visible { opacity:1; transform:translateY(0); }
.section-reveal.delay-100 { transition-delay:100ms; }
.section-reveal.delay-150 { transition-delay:150ms; }
.section-reveal.delay-200 { transition-delay:200ms; }
.section-reveal.delay-250 { transition-delay:250ms; }
.section-reveal.delay-300 { transition-delay:300ms; }
.section-reveal.delay-350 { transition-delay:350ms; }
.section-reveal.delay-400 { transition-delay:400ms; }

/* ===== Section Utilities ===== */
.section-white { padding:80px 0; background:#fff; }
@media(min-width:1024px) { .section-white { padding:96px 0; } }
.section-light { padding:80px 0; background:#FAFAF7; }
@media(min-width:1024px) { .section-light { padding:96px 0; } }
.section-title-green { font-size:30px; font-weight:700; color:#00695C; margin-bottom:12px; }
@media(min-width:1024px) { .section-title-green { font-size:36px; } }
.section-subtitle { color:#6b7280; font-size:14px; }
@media(min-width:1024px) { .section-subtitle { font-size:16px; } }
.mt-20 { margin-top:20px; }

/* Section Divider (gold line + diamond) */
.section-divider { display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:16px; }
.section-divider .divider-line { width:48px; height:1px; background:#e7a72c; }
.section-divider .divider-diamond { width:8px; height:8px; background:#e7a72c; transform:rotate(45deg); }
/*.section-divider.light .divider-line { background:rgba(231,167,44,0.5); }*/
/*.section-divider.light .divider-diamond { background:rgba(231,167,44,0.5); }*/

/* ===== SITE HEADER ===== */
.site-header {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:#E7A72C;
  backdrop-filter:none;
  border-bottom:none;
  transition:all 0.3s;
}
.header-container { max-width:1200px; margin:0 auto; padding:0 24px; }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:80px; }
.header-logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.header-logo img { width:40px; height:40px; border-radius:8px; }
.header-logo-text { display:flex; flex-direction:column; line-height:1.3; }
.header-logo-title { color:#fff; font-size:13px; font-weight:700; }
.header-logo-sub { color:rgba(255,255,255,0.7); font-size:9px; font-weight:400; letter-spacing:0.5px; }
.header-nav { display:flex; align-items:center; gap:32px; }
.nav-link { color:rgba(255,255,255,0.9); font-size:14px; font-weight:500; transition:color 0.3s; position:relative; padding:4px 0; }
.nav-link:hover, .nav-link.active { color:#fff; }
.nav-link.active::after { content:''; position:absolute; bottom:-2px; left:0; right:0; height:2px; background:#fff; border-radius:1px; }

/* Language Dropdown */
.lang-menu { position:relative; }
.lang-menu > button { display:flex; align-items:center; gap:6px; color:rgba(255,255,255,0.9); font-size:13px; font-weight:500; padding:6px 12px; border-radius:8px; border:1px solid rgba(255,255,255,0.4); transition:all 0.3s; }
.lang-menu > button:hover { border-color:rgba(255,255,255,0.3); color:#fff; }
.lang-chevron { font-size:10px; transition:transform 0.3s; }
.lang-dropdown { display:none; position:absolute; top:calc(100% + 8px); right:0; background:#fff; backdrop-filter:none; border:1px solid #e5e5e0; border-radius:10px; padding:6px; min-width:140px; box-shadow:0 8px 32px rgba(0,0,0,0.15); }
.lang-menu:hover .lang-dropdown, .lang-menu.open .lang-dropdown { display:block; }
.lang-dropdown a { display:block; padding:8px 14px; color:#4a5568; font-size:13px; border-radius:6px; transition:all 0.2s; }
.lang-dropdown a:hover { background:#FAFAF7; color:#008C7A; }
.lang-dropdown a.active { color:#008C7A; background:rgba(0,140,122,0.08); }

/* Mobile Menu */
.mobile-menu-btn { display:none; color:#fff; font-size:24px; padding:4px; }
.mobile-menu-inner { display:none; position:fixed; top:80px; left:0; right:0; bottom:0; background:rgba(10,22,40,0.98); backdrop-filter:blur(12px); padding:24px; z-index:999; flex-direction:column; gap:8px; }
.mobile-menu-inner.active { display:flex; }
.mobile-nav-link { display:block; padding:14px 16px; color:rgba(255,255,255,0.8); font-size:16px; font-weight:500; border-radius:10px; transition:all 0.2s; }
.mobile-nav-link:hover, .mobile-nav-link.active { background:rgba(231,167,44,0.1); color:#e7a72c; }
.mobile-lang-bar { display:flex; gap:8px; margin-top:16px; padding-top:16px; border-top:1px solid rgba(255,255,255,0.1); }
.mobile-lang-btn { padding:8px 16px; border-radius:8px; color:rgba(255,255,255,0.7); font-size:13px; border:1px solid rgba(255,255,255,0.15); transition:all 0.2s; display:inline-block; }
.mobile-lang-btn:hover, .mobile-lang-btn.active { border-color:#e7a72c; color:#e7a72c; background:rgba(231,167,44,0.1); }
@media(max-width:768px) { .header-nav { display:none; } .lang-menu { display:none; } .mobile-menu-btn { display:block; } }

/* ===== HERO BANNER ===== */
.hero-banner { position:relative; width:100%; height:85vh; min-height:600px; max-height:900px; overflow:hidden; background:#0a1628; }
.banner-slides { position:absolute; inset:0; }
.banner-slide { position:absolute; inset:0; opacity:0; transition:opacity 1s ease, transform 1s ease; transform:scale(1.05); }
.banner-slide.active { opacity:1; transform:scale(1); }
.banner-slide picture, .banner-slide img { width:100%; height:100%; object-fit:cover; }
.banner-overlay { position:absolute; inset:0; background:linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.2)); }
.banner-content { position:absolute; inset:0; display:flex; align-items:center; z-index:10; }
.banner-text { max-width:640px; }
.banner-tag { display:inline-block; background:rgba(231,167,44,0.2); backdrop-filter:blur(8px); border:1px solid rgba(231,167,44,0.4); border-radius:999px; padding:6px 16px; margin-bottom:24px; }
.banner-tag span { color:#e7a72c; font-size:12px; font-weight:500; letter-spacing:2px; text-transform:uppercase; font-family:'Montserrat',sans-serif; }
.banner-text h1 { color:#fff; font-size:60px; font-weight:700; line-height:1.25; margin-bottom:16px; }
.banner-text p { color:rgba(255,255,255,0.8); font-size:18px; line-height:1.8; max-width:500px; }
.banner-indicators { position:absolute; bottom:32px; left:50%; transform:translateX(-50%); display:flex; gap:12px; z-index:20; }
.indicator { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.4); border:none; cursor:pointer; transition:all 0.3s; }
.indicator.active { background:#e7a72c; width:32px; border-radius:5px; }
.banner-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:20; width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,0.1); backdrop-filter:blur(8px); border:none; color:#fff; font-size:20px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.3s; }
.banner-arrow:hover { background:rgba(255,255,255,0.2); }
.banner-arrow-left { left:16px; }
.banner-arrow-right { right:16px; }
@media(max-width:768px) { .hero-banner { height:75vh; min-height:500px; max-height:700px; } .banner-text h1 { font-size:32px; } .banner-text p { font-size:15px; } .banner-arrow { display:none; } }

/* ===== PAGE HERO (Sub pages) ===== */
.page-hero { position:relative; height:50vh; min-height:380px; max-height:500px; overflow:hidden; }
.page-hero img, .page-hero-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.page-hero-overlay { position:absolute; inset:0; background:linear-gradient(to right, rgba(0,105,92,0.85), rgba(0,105,92,0.7), transparent); }
.page-hero-content { position:absolute; inset:0; display:flex; align-items:center; }
.page-hero-content .container { width:100%; }
.page-hero-inner, .page-hero-text { max-width:512px; }
.page-hero-tag { display:inline-block; background:rgba(231,167,44,0.2); backdrop-filter:blur(4px); border:1px solid rgba(231,167,44,0.3); border-radius:9999px; padding:6px 16px; margin-bottom:16px; }
.page-hero-tag span { color:#e7a72c; font-size:12px; font-weight:500; letter-spacing:0.05em; text-transform:uppercase; font-family:'Montserrat',sans-serif; }
.page-hero-inner h1, .page-hero-text h1 { color:#fff; font-size:36px; font-weight:700; margin-bottom:12px; }
@media(min-width:1024px) { .page-hero-inner h1, .page-hero-text h1 { font-size:48px; } }
.page-hero-line, .page-hero-bar { width:64px; height:4px; background:#e7a72c; border-radius:9999px; }

/* ===== SECTION COMMON ===== */
.section { padding:96px 0; }
.section.light { background:var(--gray-50); }
.section-header { text-align:center; margin-bottom:56px; }
.section-badge { display:inline-block; background:rgba(231,167,44,0.1); border:1px solid rgba(231,167,44,0.3); border-radius:9999px; padding:8px 20px; }
.section-badge span { color:#e7a72c; font-size:14px; font-weight:500; }
.section-header h2 { font-size:36px; font-weight:700; color:#00695C; margin-bottom:12px; }
.section-header p { color:var(--gray-600); font-size:15px; max-width:600px; margin:0 auto; }

/* ===== ORG INTRO ===== */
.org-intro { padding:80px 0; background:#008C7A; color:#fff; position:relative; overflow:hidden; }
@media(min-width:1024px) { .org-intro { padding:96px 0; } }
.org-watermark { position:absolute; object-fit:contain; opacity:0.12; pointer-events:none; z-index:0; }
.org-watermark-left { top:50%; left:-10px; transform:translateY(-50%); width:320px; height:320px; opacity:0.07; }
.org-watermark-right { top:50%; right:-10px; transform:translateY(-50%); width:420px; height:420px; opacity:0.12; }
.org-intro-inner { max-width:768px; margin:0 auto; text-align:center; }
.org-intro-inner h2 { font-size:36px; font-weight:700; color:#fff; margin-bottom:12px; }
.org-en { color:#e7a72c; font-size:14px; font-weight:500; letter-spacing:0.05em; margin-bottom:32px; font-family:'Montserrat',sans-serif; }
.org-desc { color:rgba(255,255,255,0.8); font-size:18px; line-height:1.625; }
@media(min-width:1024px) { .org-desc { font-size:18px; } }
@media(max-width:768px) { .org-intro-inner { padding:0 16px; } }

/* ===== PSS DESC BOX ===== */
.pss-desc-box { max-width:900px; margin:0 auto; }
.pss-desc-box p { color:#4a5568; font-size:18px; line-height:1.9; text-align:center; }

/* ===== LOGIC GRID ===== */

.logic-card { background:#fff; border:1px solid #f3f4f6; border-radius:12px; padding:32px; transition:all 0.3s; height:100%; }
.logic-card:hover { box-shadow:0 20px 60px rgba(0,0,0,0.08); border-color:rgba(0,105,92,0.2); }
.logic-icon { width:56px; height:56px; border-radius:12px; background:#E8F5E9; display:flex; align-items:center; justify-content:center; margin-bottom:24px; transition:background 0.3s; }
.logic-card:hover .logic-icon { background:#00695C; }
.logic-card:hover .logic-icon svg { stroke:#fff; }
.logic-card h3 { font-size:18px; font-weight:700; color:#1a2332; margin-bottom:12px; }
.logic-card p { color:#6b7280; font-size:14px; line-height:1.6; }
.logic-grid { display:grid; grid-template-columns:1fr; gap:32px; }
@media(min-width:768px) { .logic-grid { grid-template-columns:repeat(3, 1fr); } }

/* ===== MODEL SECTIONS ===== */
.model-block { margin:80px 0; }
.model-label { display:flex; align-items:center; gap:12px; margin-bottom:32px; }
.model-label span { color:#e7a72c; font-size:12px; font-weight:700; letter-spacing:0.05em; font-family:'Montserrat',sans-serif; white-space:nowrap; }
.model-label-dark { display:flex; align-items:center; gap:12px; margin-bottom:32px; }
.model-label-dark span { color:#e7a72c; font-size:12px; font-weight:700; letter-spacing:0.05em; font-family:'Montserrat',sans-serif; white-space:nowrap; }
.model-label-line { flex:1; height:1px; background:rgba(231,167,44,0.2); }
.model-grid { display:grid; grid-template-columns:1fr; gap:40px; align-items:start; }
@media(min-width:1024px) { .model-grid { grid-template-columns:1fr 1fr; gap:64px; } }
/*.model-grid-reverse { direction:rtl; }*/
.model-grid-reverse > * { direction:ltr; }
.model-text { }
.model-block h3, .model-text h3 { font-size:24px; font-weight:700; color:#fff; margin-bottom:8px; }
@media(min-width:1024px) { .model-block h3, .model-text h3 { font-size:30px; } }
.model-en { color:#e7a72c; font-size:14px; font-family:'Montserrat',sans-serif; margin-bottom:20px; }
.model-desc { color:#4b5563; font-size:14px; line-height:1.6; margin-bottom:24px; }
.model-image { display:flex; justify-content:center; }
.model-image img { max-height:500px; width:auto; border-radius:12px; 
/*box-shadow:0 10px 40px rgba(0,0,0,0.1); */
    
}
.model-stages { display:flex; flex-direction:column; gap:16px; margin-bottom:24px; }
.stage-item { display:flex; align-items:flex-start; gap:16px; }
.stage-bar { width:4px; min-height:40px; border-radius:9999px; flex-shrink:0; }
.stage-item h4 { font-size:14px; font-weight:700; color:#1a2332; margin-bottom:4px; }
.stage-item p { font-size:12px; color:#6b7280; line-height:1.6; }
.model-dark { background:#1a2332; border-radius:16px; padding:32px; position:relative; overflow:hidden; }
@media(min-width:1024px) { .model-dark { padding:56px; } }
.model-dark-glow { position:absolute; top:0; right:0; width:256px; height:256px; background:rgba(231,167,44,0.05); border-radius:9999px; filter:blur(48px); pointer-events:none; }
.model-apps { display:flex; flex-direction:column; gap:12px; }
.model-apps-dark { display:flex; flex-direction:column; gap:12px; }
.app-box, .app-box-dark { border-radius:8px; padding:16px; }
.app-box { }
.app-box-dark { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); }
.app-label, .app-label-gold, .app-label-teal { display:inline-block; font-size:14px; font-weight:700; letter-spacing:1px; padding:3px 10px; border-radius:4px; margin-bottom:8px; margin-right:8px; font-family:'Montserrat',sans-serif; }
.app-label { font-weight:700; background:none; padding:0; margin:0; }
.app-label-gold { font-weight:700; color:#e7a72c; background:none; padding:0; margin:0; }
.app-label-teal { font-weight:700; color:#4DB6AC; background:none; padding:0; margin:0; }
.app-gold { background:rgba(231,167,44,0.1); }
.app-green { background:#E8F5E9; }
.app-box p, .app-box-dark p { font-size:13px; line-height:1.7; }
.app-green p { color:#00695C; font-size:14px; line-height:1.6; }
.app-gold p { color:#8D6E2F; font-size:14px; line-height:1.6; }
.app-box-dark p { color:rgba(255,255,255,0.7); }


/* ===== FORMULA ===== */
.formula-display { text-align:center; margin-bottom:16px; }
.formula-box { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:24px; margin-bottom:24px; }
.formula-box .formula-display { font-size:36px; font-weight:700; color:#e7a72c; font-family:'Montserrat',sans-serif; }
@media(min-width:1024px) { .formula-box .formula-display { font-size:48px; } }
.formula-items { display:flex; flex-direction:column; gap:8px; }
.formula-items p { color:rgba(255,255,255,0.7); font-size:13px; }
.formula-letter { color:#e7a72c; font-size:18px; font-weight:700; font-family:'Montserrat',sans-serif; margin-right:4px; }

/* ===== ARCHETYPE GRID ===== */
.archetype-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:24px; }
.arch-item { display:flex; align-items:start; gap:12px; padding:14px; background:#fff; border:1px solid #f3f4f6; border-radius:12px; transition:all 0.2s; }
.arch-item:hover { box-shadow:0 4px 20px rgba(0,0,0,0.08); border-color:rgba(0,105,92,0.2); }
.arch-icon { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.arch-name { font-size:14px; font-weight:700; color:#1a2332; margin-bottom:2px; }
.arch-role { font-size:11px; color:#9ca3af; line-height:1.4; }
.chart-container { background:#fff; border:1px solid #f3f4f6; border-radius:16px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,0.05); }
@media(min-width:1024px) { .chart-container { padding:32px; } }
.archetype-chart-svg { width:100%; height:auto; }

/* ===== SCRIPT CARDS ===== */
.script-cards { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin-bottom:24px; }
.script-card { background:#fff; border:1px solid #f3f4f6; border-radius:8px; padding:16px; text-align:center; }
.script-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,0.08); }
.script-dot { width:12px; height:12px; border-radius:9999px; margin:0 auto 12px; }
.script-card h4 { font-size:14px; font-weight:700; color:#1a2332; margin-bottom:4px; }
.script-card p { font-size:12px; color:#6b7280; line-height:1.6; }
@media(max-width:768px) { .script-cards { grid-template-columns:1fr; } }

/* ===== TECH GRID ===== */

.tech-card { background:#fff; border:1px solid #f3f4f6; border-radius:12px; overflow:hidden; transition:all 0.3s; height:100%; }
.tech-card:hover { box-shadow:0 20px 60px rgba(0,0,0,0.08); }
.tech-img { aspect-ratio:4/3; overflow:hidden; }
.tech-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.tech-card:hover .tech-img img { transform:scale(1.05); }
.tech-info { padding:24px; }
.tech-info h3 { font-size:18px; font-weight:700; color:#1a2332; margin-bottom:12px; }
.tech-info p { font-size:14px; color:#6b7280; line-height:1.6; }
.tech-grid { display:grid; grid-template-columns:1fr; gap:32px; }
@media(min-width:768px) { .tech-grid { grid-template-columns:repeat(3, 1fr); } }

/* ===== STEPS ===== */
.steps-grid { display:grid; grid-template-columns:1fr; gap:32px; position:relative; }
@media(min-width:768px) { .steps-grid { grid-template-columns:repeat(3, 1fr); } }
.steps-connect-line { display:none; }
@media(min-width:768px) { .steps-connect-line { display:block; position:absolute; top:80px; left:20%; right:20%; height:1px; background:rgba(0,105,92,0.2); z-index:0; } }
.step-card { position:relative; z-index:1; text-align:center; background:#FAFAF7; border:1px solid #f3f4f6; border-radius:16px; padding:32px; transition:all 0.3s; height:100%; }
.step-card:hover { box-shadow:0 10px 40px rgba(0,0,0,0.06); border-color:rgba(0,105,92,0.2); }
.step-icon-circle { width:64px; height:64px; border-radius:9999px; background:#E8F5E9; border:1px solid rgba(0,105,92,0.2); display:flex; align-items:center; justify-content:center; margin:0 auto 24px; position:relative; z-index:10; }
.step-num { color:#e7a72c; font-size:12px; font-weight:700; font-family:'Montserrat',sans-serif; letter-spacing:0.05em; }
.step-line { width:40px; height:1px; background:rgba(231,167,44,0.4); margin:0 auto 16px; }
.step-card h3 { font-size:20px; font-weight:700; color:#1a2332; margin-top:8px; margin-bottom:8px; }
.step-sub { font-size:12px; color:#9ca3af; margin-bottom:16px; }
.step-desc { font-size:14px; color:#6b7280; line-height:1.6; }

/* ===== CTA SECTION ===== */
.cta-section { position:relative; padding:96px 0; text-align:left; overflow:hidden; }
@media(min-width:1024px) { .cta-section { padding:128px 0; } }
.cta-bg { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.cta-overlay { position:absolute; inset:0; background:linear-gradient(to right, rgba(0,105,92,0.9), rgba(0,105,92,0.8), rgba(0,105,92,0.6)); z-index:2; }
.cta-content { max-width:576px; }
.cta-section h2 { color:#fff; font-size:30px; font-weight:700; margin-bottom:16px; }
@media(min-width:1024px) { .cta-section h2 { font-size:36px; } }
.cta-section p { color:rgba(255,255,255,0.7); font-size:16px; line-height:1.6; margin-bottom:32px; }
.cta-btn { display:inline-flex; align-items:center; gap:8px; padding:16px 32px; background:#e7a72c; color:#fff; font-size:14px; font-weight:700; border-radius:8px; transition:all 0.2s; box-shadow:0 10px 30px rgba(0,0,0,0.15); }
.cta-btn:hover { background:#d4961f; transform:translateY(-2px); }

/* ===== SITE FOOTER ===== */
.site-footer { background:#faf1da; color:#5a4a2a; }
.footer-accent-line { height:4px; background:linear-gradient(to right, #e7a72c, #00695C, #e7a72c); }
.footer-main { padding:56px 0; }
@media(min-width:1024px) { .footer-main { padding:72px 0; } }
.footer-grid { display:grid; grid-template-columns:1fr; gap:40px; }
@media(min-width:768px) { .footer-grid { grid-template-columns:1fr 1fr; } }
@media(min-width:1024px) { .footer-grid { grid-template-columns:1fr 1fr 1fr 1fr; gap:48px; } }
.footer-brand-logo { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand-logo img { height:48px; width:auto; }
.footer-brand-logo span { font-size:18px; font-weight:600; color:#5a4a2a; font-family:'Montserrat',sans-serif; }
.footer-brand-desc { color:rgba(90,74,42,0.8); font-size:14px; line-height:1.6; margin-bottom:16px; }
.footer-brand-line { display:flex; align-items:center; gap:8px; }
.fbl-bar { width:32px; height:2px; background:rgba(231,167,44,0.6); }
.fbl-diamond { width:6px; height:6px; background:rgba(231,167,44,0.6); transform:rotate(45deg); }
.footer-col h4 { color:#5a4a2a; font-weight:600; margin-bottom:20px; font-size:12px; text-transform:uppercase; letter-spacing:0.2em; font-family:'Montserrat',sans-serif; }
.footer-col a, .footer-col li a { display:flex; align-items:center; gap:8px; color:rgba(90,74,42,0.7); font-size:14px; transition:color 0.15s; }
.footer-col a:hover { color:#E7A72C; }
.footer-contact-list { display:flex; flex-direction:column; gap:8px; }
.footer-contact-list li { display:flex; align-items:center; gap:12px; color:rgba(90,74,42,0.8); font-size:14px; }
.footer-icon-box { width:32px; height:32px; border-radius:8px; background:rgba(231,167,44,0.15); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.footer-bottom { border-top:1px solid rgba(90,74,42,0.15); }
.footer-bottom-inner { display:flex; align-items:center; justify-content:space-between; padding:20px 0; }
.footer-bottom-logo { display:flex; align-items:center; gap:8px; }
.footer-bottom-logo img { width:24px; height:24px; border-radius:4px; opacity:0.6; }
.footer-bottom-logo span { font-size:12px; color:rgba(90,74,42,0.6); font-family:'Montserrat',sans-serif; }
.footer-bottom-inner p { color:rgba(90,74,42,0.6); font-size:12px; font-family:'Montserrat',sans-serif; }
.footer-about-text { color:rgba(90,74,42,0.6); font-size:12px; line-height:1.6; }
.dot { width:4px; height:4px; border-radius:9999px; background:rgba(231,167,44,0.4); display:inline-block; transition:background 0.15s; }
.footer-col li a:hover .dot { background:#e7a72c; }


/* ===== ABOUT PAGE ===== */
.about-who { padding:96px 0; position:relative; }
.about-who-inner { max-width:800px; margin:0 auto; text-align:center; }
.about-who-desc { color:#4a5568; font-size:15px; line-height:1.9; text-align:left; margin-top:24px; }
.about-deco-bg { position:absolute; width:200px; height:200px; border-radius:50%; background:rgba(0,105,92,0.05); filter:blur(60px); pointer-events:none; top:20%; right:10%; }

/* Mission Section */
.mission-section { padding:96px 0; background:#008C7A; color:#fff; }
.mission-section .section-header h2 { color:#fff; }
.mv-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; max-width:900px; margin:0 auto; }
.mv-card { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:16px; padding:32px; height: 100%;}
.mv-label { display:inline-block; background:rgba(0,105,92,0.15); color:#e7a72c; font-size:11px; font-weight:700; letter-spacing:1.5px; padding:4px 12px; border-radius:4px; margin-bottom:12px; font-family:'Montserrat',sans-serif; }
.mv-card h3 { color:#fff; font-size:18px; font-weight:700; margin-bottom:12px; }
.mv-card p { color:rgba(255,255,255,0.7); font-size:14px; line-height:1.8; }
@media(max-width:768px) { .mv-grid { grid-template-columns:1fr; } }

/* Values Grid */
.values-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; }
.value-card { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:32px; text-align:center; transition:all 0.3s; height: 100%;}
.value-card:hover { transform:translateY(-4px); box-shadow:0 12px 40px rgba(0,0,0,0.08); border-color:var(--teal); }
.value-card h3 { font-size:18px; font-weight:700; color:#008C7A; margin-bottom:4px; }
.value-en { color:#e7a72c; font-size:12px; font-family:'Montserrat',sans-serif; margin-bottom:8px; }
.value-card p { font-size:13px; color:#4a5568; line-height:1.8; }
@media(max-width:768px) { .values-grid { grid-template-columns:repeat(2, 1fr); } }

/* Advantages Grid */
.adv-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:24px; }
.adv-card { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:32px; transition:all 0.3s; height:100%;}
.adv-card:hover { transform:translateY(-4px); box-shadow:0 12px 40px rgba(0,0,0,0.08); }
.adv-inner { display:flex; gap:16px; align-items:flex-start; }
.adv-num { font-size:32px; font-weight:800; color:rgba(0,105,92,0.15); font-family:'Montserrat',sans-serif; flex-shrink:0; line-height:1; }
.adv-card h3 { font-size:16px; font-weight:700; color:#1a2332; margin-bottom:8px; }
.adv-card p { font-size:13px; color:#4a5568; line-height:1.8; margin-bottom:12px; }
.adv-tags { display:flex; flex-wrap:wrap; gap:6px; }
.adv-tags span { display:inline-block; background:rgba(0,105,92,0.06); color:var(--teal); font-size:11px; font-weight:500; padding:4px 10px; border-radius:6px; }
@media(max-width:768px) { .adv-grid { grid-template-columns:1fr; } }

/* ===== FUNC GRID (About page core functions) ===== */
.func-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.func-card { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:32px; text-align:center; transition:all 0.3s; }
.func-card:hover { transform:translateY(-4px); box-shadow:0 12px 40px rgba(0,0,0,0.08); }
.func-icon { width:56px; height:56px; border-radius:50%; background:rgba(0,105,92,0.08); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-size:24px; }
.func-card h3 { font-size:16px; font-weight:700; color:#1a2332; margin-bottom:8px; }
.func-card p { font-size:13px; color:#4a5568; line-height:1.8; }
@media(max-width:768px) { .func-grid { grid-template-columns:1fr; } }

/* ===== CERTIFICATION PAGE ===== */
/* Stage Blocks - gradient bg matching React */
.stage-block { border-radius:16px; padding:24px 32px; margin-bottom:40px; transition:all 0.3s; border:1px solid rgba(0,0,0,0.05); box-shadow:0 1px 3px rgba(0,0,0,0.04); }
.stage-block.stage-green { background:linear-gradient(to bottom right, #E0F2F1, #E8F5E9, #B2DFDB); }
.stage-block.stage-gold { background:linear-gradient(to bottom right, #FFF8E1, #FFFDE7, #FFECB3); }
.stage-block.stage-purple { background:linear-gradient(to bottom right, #EDE7F6, #F3E5F5, #D1C4E9); }
.stage-block .stage-header { display:flex; align-items:flex-start; gap:16px; margin-bottom:24px; }
.stage-icon-wrap { width:56px; height:56px; border-radius:16px; display:flex; align-items:center; justify-content:center; position:relative; flex-shrink:0; box-shadow:0 4px 6px rgba(0,0,0,0.1); }
.stage-icon-wrap.bg-teal { background:#00695C; }
.stage-icon-wrap.bg-gold { background:#e7a72c; }
.stage-icon-wrap.bg-purple { background:#5C6BC0; }
.stage-num { position:absolute; top:-4px; right:-4px; width:24px; height:24px; background:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; font-family:'Montserrat',sans-serif; box-shadow:0 1px 3px rgba(0,0,0,0.15); }
.stage-block .stage-header h3 { font-size:20px; font-weight:700; color:#1a2332; margin-bottom:4px; }
.stage-duration { display:inline-flex; align-items:center; gap:6px; color:#6b7280; font-size:14px; }
.stage-cols { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.stage-col { background:rgba(255,255,255,0.7); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border-radius:12px; padding:20px; border:1px solid rgba(255,255,255,0.5); }
.stage-col h4 { font-size:14px; font-weight:600; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.col-bar { display:inline-block; width:4px; height:16px; border-radius:9999px; }
.stage-col ul { list-style:none; padding:0; display:flex; flex-direction:column; gap:10px; list-style: disc;}
.stage-col ul li { font-size:14px; color:#4b5563; 
/*display:flex; */
margin-left: 20px;
align-items:flex-start; gap:10px; padding:0; position:relative; }
.stage-col ul li .dot { width:6px; height:6px; border-radius:50%; margin-top:6px; flex-shrink:0; display:inline-block; }
.stage-col ul li .cert-check { flex-shrink:0; margin-top:2px; }
@media(max-width:768px) { .stage-cols { grid-template-columns:1fr; } }

/* Partner Box */
.cert-partner-box { 
    /*background:rgba(0,105,92,0.04);*/
    /*border:1px solid rgba(0,105,92,0.15);*/
    /*border-radius:12px; padding:20px 24px; */
    margin-bottom:32px; text-align:center; }
.cert-partner-badge { 
    display:inline-block; 
    background-color: #E8F5E9;
    color:#00695c; 
    font-size:12px; 
    font-weight:600; 
    padding:8px 14px; 
    border-radius:6px; 
    margin-bottom:8px; }
.cert-partner-desc { color:#4a5568; font-size:14px; }

/* Certificate Showcase */
.cert-showcase { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.cert-img-wrap { position:relative; }
.cert-img-wrap img { max-width:448px; width:100%; border-radius:12px; box-shadow:0 25px 50px rgba(0,0,0,0.15); border:1px solid rgba(231,167,44,0.2); }
.cert-deco-bl { position:absolute; bottom:-12px; left:-12px; width:96px; height:96px; background:rgba(0,105,92,0.1); border-radius:16px; z-index:-1; }
.cert-deco-tr { position:absolute; top:-12px; right:-12px; width:64px; height:64px; background:rgba(231,167,44,0.1); border-radius:16px; z-index:-1; }
.cert-validity h3 { font-size:24px; font-weight:700; color:#1a2332; margin-bottom:12px; }
.cert-bar { width:48px; height:4px; background:var(--gold); border-radius:9999px; margin-bottom:24px; }
.validity-items { display:flex; flex-direction:column; gap:20px; }
.validity-item { display:flex; gap:12px; align-items:flex-start; }
.validity-icon { width:40px; height:40px; border-radius:8px; background:#E8F5E9; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.validity-item h4 { font-size:14px; font-weight:700; color:#1a2332; margin-bottom:4px; }
.validity-item p { font-size:12px; color:#6b7280; line-height:1.625; }
@media(max-width:768px) { .cert-showcase { grid-template-columns:1fr; } }

/* Exam Banner */
.exam-section { padding:96px 0; }
.exam-banner { position:relative; border-radius:16px; overflow:hidden; min-height:280px; display:flex; align-items:center; }
.exam-banner-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.exam-banner-overlay { position:absolute; inset:0; background:linear-gradient(to right, rgba(26,35,50,0.9), rgba(26,35,50,0.8), rgba(26,35,50,0.6)); }
.exam-banner-content { position:relative; z-index:10; padding:48px; max-width:560px; }
.exam-banner-content h2 { color:#fff; font-size:32px; font-weight:700; margin-bottom:16px; }
.exam-bar { width:48px; height:4px; background:var(--gold); border-radius:9999px; margin-bottom:24px; }
.exam-banner-content p { color:rgba(255,255,255,0.8); font-size:14px; line-height:1.8; margin-bottom:24px; }
.exam-btn { display:inline-flex; align-items:center; gap:8px; padding:12px 28px; background:var(--gold); color:#fff; font-size:14px; font-weight:600; border-radius:10px; transition:all 0.3s; border:none; cursor:pointer; }
.exam-btn:hover { background:#d4961f; }

/* Cert Verify */
.cert-verify-wrap { max-width:672px; margin:0 auto; text-align:center; }
.cert-verify-form { background:#FAFAF7; border-radius:16px; padding:32px; border:1px solid #f3f4f6; margin-top:24px; text-align:left; display:flex; flex-direction:column; gap:16px; }
.cert-verify-form .form-group { margin-bottom:0; }
.cert-verify-form .form-group label { display:block; font-size:14px; font-weight:500; color:#1a2332; margin-bottom:6px; }
.cert-verify-form .form-group input { width:100%; padding:12px 16px; border:1px solid var(--gray-200); border-radius:8px; font-size:14px; outline:none; transition:all 0.3s; background:#fff; }
.cert-verify-form .form-group input:focus { border-color:var(--teal); box-shadow:0 0 0 2px rgba(0,105,92,0.1); }
.verify-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:14px; background:#00695C; color:#fff; font-size:14px; font-weight:700; border:none; border-radius:8px; cursor:pointer; transition:all 0.3s; }
.verify-btn:hover { background:#005A4F; }

/* ===== CONTACT PAGE ===== */
.contact-cards { display:flex; grid-template-columns:repeat(3, 1fr); gap:48px;justify-content: center; flex-wrap: wrap;}
.contact-card { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:28px; display:flex; align-items:center; gap:16px; transition:all 0.3s; }
.contact-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,0.06); }
.contact-card-icon { width:48px; height:48px; border-radius:12px; background:var(--teal); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-card-label { font-size:12px; color:var(--gray-600); margin-bottom:2px; }
.contact-card-value { font-size:14px; font-weight:600; color:#1a2332; }
@media(max-width:768px) { .contact-cards { grid-template-columns:1fr; } }

/* Contact Form */
.form-wrap { max-width:700px; margin:0 auto; }
.consult-subtitle { color:var(--teal); font-size:14px; font-weight:600; margin-bottom:4px; }
.consult-form { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:40px; margin-top:32px; }
.form-section { margin-bottom:28px; }
.form-section-title { font-size:15px; font-weight:700; color:#1a2332; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.form-bar { display:inline-block; width:3px; height:16px; background:var(--teal); border-radius:2px; }
.form-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:#1a2332; margin-bottom:6px; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:12px 16px; border:1px solid var(--gray-200); border-radius:10px; font-size:14px; outline:none; transition:border-color 0.3s; background:#fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(0,105,92,0.1); }
.form-group textarea { min-height:120px; resize:vertical; }
.form-section textarea { width:100%; padding:12px 16px; border:1px solid var(--gray-200); border-radius:10px; font-size:14px; outline:none; transition:border-color 0.3s; min-height:100px; resize:vertical; }
.form-section textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(0,105,92,0.1); }
.required { color:#ef5350; }
.radio-grid { display:flex; flex-wrap:wrap; gap:8px; }
.radio-grid .radio-option{padding: 14px;
border-radius: 10px;width: 100%;
    border: 1px solid #ebe6e7;}

 .radio-grid .radio-option input[type="radio"]:checked{
     accent-color: #00695C; 
 }
 
 .radio-option:has(input:checked){ 
  color: #00695C !important;
  border:1px solid #00695C;
  background: #E8F5E9;
}
.radio-grid .radio-item { position:relative; }
.radio-grid .radio-item input[type="radio"] { position:absolute; opacity:0; width:0; height:0; }
.radio-grid .radio-item label { display:inline-block; padding:8px 16px; border:1px solid var(--gray-200); border-radius:8px; font-size:13px; cursor:pointer; transition:all 0.2s; font-weight:400; }
.radio-grid .radio-item input[type="radio"]:checked + label { border-color:var(--teal);color:var(--teal); font-weight:600; border: 1px solid #00695C; background:#E8F5E9 ;color:#E8F5E9}
.submit-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:14px; background:var(--teal); color:#fff; font-size:15px; font-weight:600; border:none; border-radius:10px; cursor:pointer; transition:all 0.3s; }
.submit-btn:hover { background:var(--teal-dark); }
.submit-btn:disabled { opacity:0.6; cursor:not-allowed; }
@media(max-width:768px) { .form-row-2 { grid-template-columns:1fr; } }

/* Success Modal */
.modal { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; }
.modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.5); }
.modal-content { position:relative; background:#fff; border-radius:16px; padding:0; max-width:480px; width:90%; box-shadow:0 20px 60px rgba(0,0,0,0.2); z-index:1; }
.modal-close { position:absolute; top:16px; right:16px; font-size:24px; color:#999; background:none; border:none; cursor:pointer; width:32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:all 0.2s; }
.modal-close:hover { background:#f5f5f5; color:#333; }
.modal-body { padding:48px 40px; text-align:center; }
.modal-body .success-icon { width:64px; height:64px; border-radius:50%; background:rgba(0,105,92,0.1); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.modal-body h3 { font-size:20px; font-weight:700; color:#1a2332; margin-bottom:8px; }
.modal-body p { font-size:14px; color:#4a5568; margin-bottom:16px; }
.qr-box { background:var(--gray-50); border:1px solid var(--gray-200); border-radius:12px; padding:20px; margin:16px 0; }
.qr-placeholder { width:120px; height:120px; background:#e9ecef; border-radius:8px; display:flex; align-items:center; justify-content:center; margin:12px auto; color:#999; font-size:12px; }
.qr-hint { font-size:12px; color:#999; }
.modal-ok-btn { display:inline-block; padding:10px 32px; background:var(--teal); color:#fff; font-size:14px; font-weight:600; border:none; border-radius:8px; cursor:pointer; transition:all 0.3s; margin-top:8px; }
.modal-ok-btn:hover { background:var(--teal-dark); }

/* ===== MISC ===== */
.page-content { padding-top:80px; }

/* ===== ADMIN STYLES ===== */
.admin-layout { display:flex; min-height:100vh; background:#f0f2f5; }
.admin-sidebar { width:240px; background:linear-gradient(180deg, #0a1628 0%, #162035 100%); color:#fff; padding:24px 16px; flex-shrink:0; position:fixed; top:0; left:0; bottom:0; overflow-y:auto; display:flex; flex-direction:column; }
.admin-sidebar h2 { font-size:15px; font-weight:700; padding:0 12px 16px; margin-bottom:16px; border-bottom:1px solid rgba(255,255,255,0.1); }
.admin-sidebar a { display:flex; align-items:center; gap:8px; padding:10px 12px; color:rgba(255,255,255,0.65); font-size:13px; border-radius:8px; transition:all 0.2s; margin-bottom:2px; text-decoration:none; }
.admin-sidebar a:hover { background:rgba(255,255,255,0.08); color:#fff; }
.admin-sidebar a.active { background:rgba(231,167,44,0.15); color:#e7a72c; }
.admin-sidebar .sidebar-label { font-size:10px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.4); padding:16px 12px 8px; margin-top:8px; }
.admin-sidebar .logout-link { color:rgba(255,255,255,0.4); margin-top:auto; border-top:1px solid rgba(255,255,255,0.1); padding-top:16px; }
.admin-main { flex:1; margin-left:240px; padding:32px; }
.admin-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.admin-header h1 { font-size:22px; font-weight:700; color:#1a2332; }
.stats-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-bottom:32px; }
.stat-card { background:#fff; border-radius:12px; padding:24px; box-shadow:0 1px 3px rgba(0,0,0,0.06); }
.stat-card h3 { font-size:12px; color:#868e96; font-weight:500; margin-bottom:8px; }
.stat-card .stat-num { font-size:28px; font-weight:700; color:#1a2332; }
.stat-label { font-size:12px; color:#868e96; font-weight:500; margin-top:4px; }
.admin-card { background:#fff; border-radius:12px; padding:24px; box-shadow:0 1px 3px rgba(0,0,0,0.06); }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { background:#f8f9fa; padding:12px 16px; text-align:left; font-size:12px; font-weight:600; color:#868e96; text-transform:uppercase; letter-spacing:0.5px; }
.admin-table td { padding:14px 16px; border-top:1px solid #f1f3f5; font-size:13px; color:#4a5568; }
.admin-table tr:hover td { background:#f8f9fa; }
.badge { display:inline-block; padding:3px 10px; border-radius:6px; font-size:11px; font-weight:600; }
.badge-unread { background:#fff3e0; color:#e65100; }
.badge-read { background:#e8f5e9; color:#2e7d32; }
.btn-sm { display:inline-block; padding:6px 14px; font-size:12px; font-weight:600; border-radius:6px; transition:all 0.2s; text-decoration:none; }
.btn-primary { background:var(--teal); color:#fff; }
.btn-primary:hover { background:var(--teal-dark); }
.btn-danger { background:#ef5350; color:#fff; }
.btn-danger:hover { background:#d32f2f; }
.content-modules { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; }
.content-modules .module-card { text-decoration:none; color:inherit; cursor:pointer; background:#fff; border:1px solid var(--gray-200); border-radius:12px; padding:24px; transition:all 0.3s; }
.content-modules .module-card:hover { box-shadow:0 4px 16px rgba(0,0,0,0.06); }
.content-modules .module-card h3 { font-size:16px; font-weight:700; color:#1a2332; margin-bottom:8px; }
.content-modules .field-count { font-size:12px; color:#868e96; }

/* Admin Login */
.admin-login { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg, #0a1628 0%, #162035 100%); }
.login-box { background:#fff; border-radius:16px; padding:48px; width:100%; max-width:400px; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.login-box h1 { font-size:24px; font-weight:700; color:#1a2332; margin-bottom:8px; text-align:center; }
.login-box .login-subtitle { text-align:center; color:#868e96; font-size:14px; margin-bottom:32px; }
.login-box .form-group { margin-bottom:20px; }
.login-box .form-group label { display:block; font-size:13px; font-weight:600; color:#1a2332; margin-bottom:6px; }
.login-box .form-group input { width:100%; padding:12px 16px; border:1px solid var(--gray-200); border-radius:10px; font-size:14px; outline:none; }
.login-box .form-group input:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(0,105,92,0.1); }
.login-btn { width:100%; padding:14px; background:var(--teal); color:#fff; font-size:15px; font-weight:600; border:none; border-radius:10px; cursor:pointer; transition:all 0.3s; }
.login-btn:hover { background:var(--teal-dark); }
.login-error { background:#fef2f2; color:#dc2626; padding:10px 16px; border-radius:8px; font-size:13px; margin-bottom:16px; text-align:center; }

/* Admin Content Edit */
.content-edit-form { background:#fff; border-radius:12px; padding:32px; box-shadow:0 1px 3px rgba(0,0,0,0.06); }
.field-row { display:grid; grid-template-columns:180px 1fr; gap:16px; align-items:start; padding:12px 0; border-bottom:1px solid #f1f3f5; }
.field-row:last-child { border-bottom:none; }
.field-label { font-size:13px; font-weight:600; color:#1a2332; padding-top:8px; }
.field-row input, .field-row textarea { width:100%; padding:10px 14px; border:1px solid var(--gray-200); border-radius:8px; font-size:13px; outline:none; transition:border-color 0.3s; }
.field-row input:focus, .field-row textarea:focus { border-color:var(--teal); }
.field-row textarea { min-height:80px; resize:vertical; }
.save-btn { display:inline-flex; align-items:center; gap:8px; padding:12px 32px; background:var(--teal); color:#fff; font-size:14px; font-weight:600; border:none; border-radius:10px; cursor:pointer; transition:all 0.3s; margin-top:24px; }
.save-btn:hover { background:var(--teal-dark); }
.lang-tabs { display:flex; gap:8px; margin-bottom:24px; }
.lang-tab { padding:8px 20px; border-radius:8px; font-size:13px; font-weight:600; text-decoration:none; transition:all 0.2s; border:1px solid var(--gray-200); color:#4a5568; }
.lang-tab:hover { border-color:var(--teal); color:var(--teal); }
.lang-tab.active { background:var(--teal); color:#fff; border-color:var(--teal); }
.admin-filter { display:flex; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.admin-filter select, .admin-filter input { padding:8px 14px; border:1px solid var(--gray-200); border-radius:8px; font-size:13px; outline:none; }
.admin-filter button { padding:8px 20px; background:var(--teal); color:#fff; font-size:13px; font-weight:600; border:none; border-radius:8px; cursor:pointer; }
.pagination { display:flex; justify-content:center; gap:4px; margin-top:20px; }
.pagination a, .pagination span { display:inline-block; padding:6px 12px; border-radius:6px; font-size:13px; color:#4a5568; border:1px solid var(--gray-200); transition:all 0.2s; }
.pagination a:hover { border-color:var(--teal); color:var(--teal); }
.pagination .current { background:var(--teal); color:#fff; border-color:var(--teal); }
.detail-card { background:#fff; border-radius:12px; padding:32px; box-shadow:0 1px 3px rgba(0,0,0,0.06); }
.detail-row { display:grid; grid-template-columns:120px 1fr; gap:16px; padding:12px 0; border-bottom:1px solid #f1f3f5; }
.detail-row:last-child { border-bottom:none; }
.detail-label { font-size:13px; font-weight:600; color:#868e96; }
.detail-value { font-size:14px; color:#4a5568; }


/* =============================================
   Certificate Query Modal
   ============================================= */
.cert-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cert-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cert-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.cert-modal-overlay.active .cert-modal {
    transform: translateY(0) scale(1);
}
.cert-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.2s;
    z-index: 10;
    line-height: 1;
}
.cert-modal-close:hover {
    background: rgba(0,0,0,0.15);
    color: #333;
}

/* Loading state */
.cert-modal-loading {
    padding: 60px 40px;
    text-align: center;
}
.cert-modal-loading .loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e8f5e9;
    border-top-color: #008C7A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cert-modal-loading p {
    color: #666;
    font-size: 15px;
}

/* Not found state */
.cert-modal-notfound {
    padding: 60px 40px;
    text-align: center;
}
.cert-modal-notfound .notfound-icon {
    width: 72px;
    height: 72px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.cert-modal-notfound h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 12px;
}
.cert-modal-notfound p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto 28px;
}
.cert-modal-notfound .try-again-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #008C7A;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.cert-modal-notfound .try-again-btn:hover { background: #00695C; }

/* Success state */
.cert-modal-success {
    padding: 0;
}
.cert-modal-success-header {
    background: linear-gradient(135deg, #008C7A 0%, #00695C 100%);
    padding: 28px 40px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cert-modal-success-header .success-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cert-modal-success-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.cert-modal-success-header p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* Certificate image area */
.cert-image-area {
    padding: 32px 40px 0;
    background: #FAFAF7;
}
.cert-image-area img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: block;
}

/* Certificate info grid */
.cert-info-grid {
    padding: 28px 40px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cert-info-item {
    background: #FAFAF7;
    border-radius: 12px;
    padding: 16px 20px;
}
.cert-info-item .info-label {
    font-size: 11px;
    font-weight: 600;
    color: #008C7A;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.cert-info-item .info-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
}
.cert-info-item.full-width {
    grid-column: 1 / -1;
}
.cert-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #008C7A;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.cert-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #008C7A;
    border-radius: 50%;
    display: inline-block;
}

/* =============================================
   Certificate Query Modal - Correct Class Names
   ============================================= */
.cert-modal-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.cert-modal-overlay.active .cert-modal-box {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.cert-modal-header {
    background: linear-gradient(135deg, #008C7A 0%, #00695C 100%);
    padding: 28px 36px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cert-modal-badge {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cert-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}
.cert-modal-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin: 0;
}

/* Certificate Image + Info Layout */
.cert-modal-cert-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.cert-modal-cert-img {
    background: #f5f5f0;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 20px;
}
.cert-modal-cert-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: block;
    position: relative;
    z-index: 2;
}
.cert-modal-cert-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 30%, rgba(231,167,44,0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Certificate Info Panel */
.cert-modal-info {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom-right-radius: 20px;
}
.cert-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0ec;
}
.cert-info-row:last-of-type {
    border-bottom: none;
}
.cert-info-label {
    font-size: 11px;
    font-weight: 600;
    color: #008C7A;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cert-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
}
.cert-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #00695C;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(0,105,92,0.2);
}
.cert-status-valid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #008C7A;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0,140,122,0.2);
}
.cert-modal-issuer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0ec;
    color: #666;
    font-size: 12px;
}

/* Loading State */
.cert-modal-loading {
    padding: 60px 40px;
    text-align: center;
}
.cert-loading-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #e8f5e9;
    border-top-color: #008C7A;
    border-radius: 50%;
    animation: certSpin 0.8s linear infinite;
    margin: 0 auto 20px;
}
@keyframes certSpin { to { transform: rotate(360deg); } }
.cert-modal-loading p {
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

/* Not Found State */
.cert-modal-notfound {
    padding: 56px 40px;
    text-align: center;
}
.cert-modal-notfound-icon {
    width: 80px;
    height: 80px;
    background: #fff8e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(231,167,44,0.2);
}
.cert-modal-notfound h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 12px;
}
.cert-modal-notfound p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto 28px;
}

/* Responsive */
@media (max-width: 640px) {
    .cert-modal-cert-wrap {
        grid-template-columns: 1fr;
    }
    .cert-modal-cert-img {
        border-radius: 0;
        padding: 20px;
    }
    .cert-modal-info {
        padding: 20px 24px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .cert-modal-header {
        padding: 20px 24px;
    }
    .cert-modal-title {
        font-size: 18px;
    }
}
