/* SinghaCropTec - Official 12-Page Company Profile Stylesheet
   Brand Name: บริษัท สิงห์คอร์ปเทค จำกัด | English: SinghaCropTec
   Theme: Vibrant Emerald & Agriculture Fresh Green (สีเขียวสดใสเป็นธรรมชาติ)
   Brand Identity: Red & Gold Accents (สีแดง-ทอง) | Slogan: "ของจริง แรงจริง สิงห์ครอป" */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800;900&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  /* Fresh Agricultural Green Color Tokens */
  --bg-green-dark: #0A2318;
  /*--bg-green-surface: #103324;
  --bg-green-card: rgba(16, 51, 36, 0.88);*/
  --bg-green-surface: #5243da;     /* สีพื้นผิวการ์ด */
  --bg-green-card: rgba(64, 187, 148, 0.95);
  --bg-glass-green: rgba(18, 58, 41, 0.92);
  
  /*--green-bright: #4CAF50;*/
  /*--green-bright: #66BB6A; 
  --green-vibrant: #2E7D32;
  --green-light: #81C784;*/
  --green-bright: #66BB6A;       /* เขียวสว่างสดใส */
  --green-vibrant: #388E3C;
  --green-light: #A5D6A7;
  --green-mint: #E8F5E9;

  /* Brand Red & Metallic Gold Tokens */
  --primary-red: #C62828;
  --primary-red-dark: #8E0000;
  --primary-red-light: #E53935;
  --accent-gold: #D4AF37;
  --accent-gold-bright: #FFD700;
  --accent-gold-dark: #997A15;
  --accent-gold-light: #FFF0B3;

  /* Border & Glow Tokens */
  --border-gold: rgba(212, 175, 55, 0.45);
  --border-green: rgba(76, 175, 80, 0.4);
  --border-gold-glow: rgba(255, 215, 0, 0.7);

  --text-main: #FFFFFF;
  --text-muted: #B9D6C4;
  --text-gold: #FFD700;
  --text-dark: #0D261A;

  /* Geometry & Transition Tokens */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);
  --shadow-green: 0 10px 30px rgba(76, 175, 80, 0.3);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.45);
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-green-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  /* Fresh Emerald Green Gradient Background with Subtle Sun Glow */
  /*background: radial-gradient(circle at 50% -10%, #1E563B 0%, #0B291C 60%, #051A10 100%);*/
  background: radial-gradient(circle at 50% 0%, #2E7D32 0%, #1B5E20 50%, #0F3813 100%);
}

/* Background Ambient Glow Effects */
.bg-glow-red {
  position: fixed;
  top: -20vh;
  left: -10vw;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-gold {
  position: fixed;
  bottom: -20vh;
  right: -10vw;
  width: 60vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Top App Control Bar (Fixed Header) */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 65px;
  background: rgba(10, 35, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  gap: 12px;
}

.brand-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-header-logo img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  object-fit: cover;
}

.brand-header-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #eff2f4;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-header-text span {
  font-size: 0.75rem;
  color: var(--text-gold);
  font-weight: 600;
}

/* Header Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-family: 'Prompt', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #997A15 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  filter: brightness(1.1);
}

.btn-red {
  background: linear-gradient(135deg, #E53935 0%, #C62828 50%, #8E0000 100%);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.4);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
  filter: brightness(1.1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold);
  color: var(--text-gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold-bright);
}

.mode-toggle-group {
  display: flex;
  background: rgba(8, 25, 17, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.mode-btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.mode-btn.active {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
  border: 1px solid var(--accent-gold);
}

/* Page Counter Indicator in Header */
.page-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--text-gold);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Flexbox Viewport Architecture for Presentation Mode */
body.mode-presentation {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.mode-presentation .top-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  flex-shrink: 0;
}

body.mode-presentation .main-wrapper {
  margin-top: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  overflow: hidden;
}

body.mode-presentation .page-card {
  display: none;
  width: 100%;
  max-width: 1250px;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-card), 0 0 35px rgba(46, 125, 50, 0.3);
  animation: slideFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.mode-presentation .page-card.active {
  display: flex;
  flex-direction: column;
}

/* Custom Gold/Green Scrollbar inside Page Cards */
.page-card::-webkit-scrollbar {
  width: 6px;
}

.page-card::-webkit-scrollbar-track {
  background: rgba(10, 35, 24, 0.5);
  border-radius: 4px;
}

.page-card::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

/* Document Scroll Mode Container */
body.mode-scroll {
  overflow-y: auto;
}

body.mode-scroll .main-wrapper {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 24px 16px 80px 16px;
}

body.mode-scroll .page-card {
  display: flex;
  flex-direction: column;
  width: 95vw;
  max-width: 1200px;
  min-height: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Core 12-Page Base Structure in Fresh Green Surface */
.page-card {
  background: linear-gradient(160deg, rgba(30, 86, 59, 0.75) 0%, rgba(20, 61, 40, 0.7) 100%);
  border: 1.5px solid var(--border-gold);
  position: relative;
  overflow: hidden;
  padding: 32px;
}

/* Decorative Gold-Red Corner Frames */
.page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-red) 0%, var(--accent-gold) 50%, var(--green-bright) 100%);
}

/* Background Image on Every Page (hero_background.jpg) */
.page-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('hero_background.jpg') center/cover no-repeat;
  opacity: 0.15;
  filter: brightness(1.3) saturate(1.2);
  z-index: 0;
  pointer-events: none;
}

/* Cover page already has its own background image, skip the ::after */
.cover-page-card::after {
  display: none;
}

/* Header inside Page */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 12px;
  margin-bottom: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.page-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-gold);
  margin-bottom: 2px;
}

.page-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
}

.page-title span {
  color: var(--text-gold);
}

.page-number-watermark {
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255, 215, 0, 0.18);
  font-family: 'Prompt', sans-serif;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Page 1: Front Cover Specific Styling */
.cover-page-card {
  background: linear-gradient(145deg, rgba(30, 100, 70, 0.7) 0%, rgba(20, 70, 45, 0.6) 60%, rgba(15, 55, 35, 0.5) 100%) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px !important;
  border: 2px solid var(--accent-gold) !important;
}

.cover-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(1.4) contrast(1.05) brightness(1.25);
  z-index: 1;
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15) 0%, rgba(15, 50, 35, 0.5) 70%);
  z-index: 1;
}

.cover-header, .cover-body, .cover-footer {
  position: relative;
  z-index: 2;
}

.cover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cover-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(198, 40, 40, 0.35);
  border: 1px solid var(--accent-gold-bright);
  border-radius: 30px;
  color: #FFF;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.cover-body {
  text-align: center;
  margin: 12px 0;
}

.cover-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.cover-logo-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--accent-gold-bright);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.6), 0 0 20px rgba(198, 40, 40, 0.6);
  object-fit: cover;
}

.cover-main-title {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFD700 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.cover-company-th {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 4px;
}

.cover-company-en {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-gold);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.cover-slogan-box {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(90deg, rgba(198,40,40,0.7) 0%, rgba(212,175,55,0.7) 50%, rgba(198,40,40,0.7) 100%);
  border: 2px solid var(--accent-gold-bright);
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFF;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-gold);
  padding-top: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Page 2: About Us Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.about-image-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  display: block;
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(10,35,24,0.95) 0%, rgba(10,35,24,0) 100%);
  color: #FFF;
}

.about-image-overlay h4 {
  color: var(--accent-gold-bright);
  font-size: 0.95rem;
}

.timeline-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pill-item {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid var(--border-gold);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  flex: 1;
  min-width: 90px;
}

.pill-item strong {
  display: block;
  font-size: 1.15rem;
  color: var(--accent-gold-bright);
  font-weight: 800;
}

.pill-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #E8F5E9;
  margin-bottom: 10px;
}

/* Page 3: Vision & Mission Layout */
.vm-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vision-card {
  background: linear-gradient(135deg, rgba(46,125,50,0.3) 0%, rgba(16,51,36,0.95) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-icon {
  font-size: 1.8rem;
  color: var(--accent-gold-bright);
  margin-bottom: 8px;
}

.vision-card h3 {
  font-size: 1.3rem;
  color: var(--text-gold);
  margin-bottom: 6px;
}

.vision-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #FFF;
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 58, 41, 0.85);
  border: 1px solid var(--border-gold);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.mission-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-gold-bright);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.mission-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  color: #FFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  border: 1px solid var(--accent-gold);
}

.mission-text {
  font-size: 0.88rem;
  color: #FFF;
  font-weight: 500;
}

/* Page 4: Product Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.category-card {
  background: rgba(16, 51, 36, 0.92);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold-bright);
  box-shadow: var(--shadow-gold);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.3);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  font-size: 1.35rem;
  color: var(--accent-gold-bright);
}

.category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
}

.category-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Pages 5 & 6: Featured Product Showcases */
.product-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.product-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-product-img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, rgba(10,35,24,0.7) 70%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-card);
}

.thumb-strip {
  display: flex;
  gap: 8px;
}

.thumb-strip img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  cursor: pointer;
  transition: var(--transition-fast);
}

.thumb-strip img:hover {
  border-color: var(--accent-gold-bright);
  transform: scale(1.05);
}

.product-info-side h3 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent-gold-bright);
  margin-bottom: 4px;
}

.product-badge-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-red);
  color: #FFF;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-spec-list {
  list-style: none;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: #E8F5E9;
}

.product-spec-list li span.bullet {
  color: var(--accent-gold-bright);
  font-size: 0.95rem;
  font-weight: 900;
}

/* Page 7: Business Model & Distribution Network */
.network-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.region-card {
  background: rgba(16, 51, 36, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.region-card:hover, .region-card.active {
  background: linear-gradient(135deg, rgba(46,125,50,0.4) 0%, rgba(16,51,36,0.95) 100%);
  border-color: var(--accent-gold-bright);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

.region-card h4 {
  color: var(--text-gold);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.region-card p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.network-map-box {
  background: rgba(10, 35, 24, 0.8);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.network-stat-banner {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: space-around;
}

.net-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent-gold-bright);
}

/* Page 8: Corporate Strengths */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(16, 51, 36, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: var(--transition-fast);
}

.strength-item:hover {
  border-color: var(--accent-gold-bright);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.strength-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold-bright) 0%, var(--accent-gold-dark) 100%);
  color: #000;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.strength-text h4 {
  font-size: 0.92rem;
  color: #FFF;
  margin-bottom: 2px;
}

.strength-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Page 9: SINGHA Core Values Layout */
.singha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.singha-card {
  background: linear-gradient(145deg, rgba(16,51,36,0.95) 0%, rgba(8,25,17,0.7) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.singha-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold-bright);
  box-shadow: var(--shadow-gold);
}

.singha-letter {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-red-light);
  line-height: 1;
  margin-bottom: 4px;
}

.singha-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold-bright);
  margin-bottom: 4px;
}

.singha-desc {
  font-size: 0.8rem;
  color: #E8F5E9;
}

/* Page 10: Slogan & Efficacy Page */
.slogan-showcase-box {
  background: linear-gradient(135deg, rgba(46,125,50,0.35) 0%, rgba(10,35,24,0.9) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.slogan-quote-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-gold-bright);
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.slogan-quote-sub {
  font-size: 1.05rem;
  color: #FFF;
  max-width: 720px;
  margin: 0 auto 16px auto;
  line-height: 1.5;
}

.efficacy-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eff-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  padding: 8px 16px;
  border-radius: 50px;
  color: #FFF;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Page 11: Portfolio & Field Success Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.main-gallery-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  height: 290px;
  box-shadow: var(--shadow-card);
}

.main-gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery-thumb-item {
  height: 138px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  position: relative;
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-fast);
}

.gallery-thumb-item:hover img {
  transform: scale(1.08);
}

/* Page 12: Contact Us & Back Cover */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info-card {
  background: rgba(16, 51, 36, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(46,125,50,0.3);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-bright);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text h5 {
  font-size: 0.9rem;
  color: var(--accent-gold-bright);
  margin-bottom: 2px;
}

.contact-detail-text p {
  font-size: 0.82rem;
  color: #E8F5E9;
  line-height: 1.45;
}

.contact-form-box {
  background: rgba(10, 35, 24, 0.9);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-gold);
  margin-bottom: 3px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 7px 10px;
  background: rgba(6, 24, 16, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: #FFF;
  font-family: 'Prompt', sans-serif;
  font-size: 0.82rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold-bright);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Bottom Presentation Navigation Bar (Fixed Footer in Presentation Mode) */
.presentation-nav-bar {
  flex-shrink: 0;
  height: 55px;
  background: rgba(10, 35, 24, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-gold);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

body.mode-scroll .presentation-nav-bar {
  display: none;
}

.page-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  overflow-x: auto;
  padding: 2px 0;
}

.page-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.page-dot.active {
  background: var(--accent-gold-bright);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent-gold-bright);
}

/* Quick Page Thumbnail Drawer / Jumper */
.quick-drawer {
  position: fixed;
  top: 65px;
  right: -320px;
  width: 300px;
  height: calc(100vh - 65px);
  height: calc(100dvh - 65px);
  background: rgba(10, 35, 24, 0.96);
  border-left: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  z-index: 1100;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
  overflow-y: auto;
}

.quick-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-gold);
}

.drawer-header h3 {
  color: var(--text-gold);
  font-size: 0.95rem;
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(16, 51, 36, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: #E8F5E9;
  font-size: 0.8rem;
}

.drawer-item:hover, .drawer-item.active {
  border-color: var(--accent-gold-bright);
  background: rgba(46, 125, 50, 0.4);
  color: #FFF;
}

/* Modal Popup System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-green-surface);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 20px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  animation: modalPop 0.3s ease-out forwards;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Animations */
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   📱 COMPREHENSIVE RESPONSIVE MOBILE & TABLET LAYOUT ENGINE
   ========================================================================== */

/* Mobile & Tablet Screens (max-width: 768px) */
@media (max-width: 768px) {
  /* Header Adjustments on Mobile */
  .top-header {
    padding: 6px 10px;
    min-height: 52px;
    gap: 8px;
  }

  .brand-header-logo img {
    height: 32px;
    width: 32px;
  }

  .brand-header-text h1 {
    font-size: 0.95rem;
  }

  .brand-header-text span {
    font-size: 0.65rem;
  }

  .header-actions {
    gap: 4px;
  }

  .btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .mode-btn {
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  .page-indicator-badge {
    padding: 3px 6px;
    font-size: 0.72rem;
  }

  /* Desktop-only action buttons hidden from main header on tiny mobile screens */
  .mobile-hide {
    display: none !important;
  }

  /* Main Wrapper Padding on Mobile Presentation */
  body.mode-presentation .main-wrapper {
    padding: 8px;
  }

  body.mode-presentation .page-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  /* Page Header Mobile */
  .page-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .page-tag {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .page-number-watermark {
    font-size: 1.6rem;
  }

  /* Cover Page Mobile */
  .cover-page-card {
    padding: 20px 12px !important;
  }

  .cover-logo-img {
    width: 85px;
    height: 85px;
  }

  .cover-main-title {
    font-size: 1.9rem;
  }

  .cover-company-th {
    font-size: 1.2rem;
  }

  .cover-company-en {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .cover-slogan-box {
    font-size: 1.05rem;
    padding: 6px 16px;
    width: 100%;
  }

  .cover-footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 0.72rem;
  }

  /* Single-column stacking for mobile grids */
  .about-grid,
  .vm-wrapper,
  .categories-grid,
  .product-hero-layout,
  .network-layout,
  .region-cards-container,
  .strengths-grid,
  .singha-grid,
  .gallery-grid,
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .region-card[data-region="south"] {
    grid-column: span 1 !important;
  }

  .about-image-card img {
    height: 170px;
  }

  .main-product-img {
    max-height: 180px;
  }

  .main-gallery-img-box {
    height: 180px;
  }

  .gallery-thumbs-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .gallery-thumb-item {
    height: 105px;
  }

  .slogan-showcase-box {
    padding: 16px 12px;
  }

  .slogan-quote-title {
    font-size: 1.6rem;
  }

  .slogan-quote-sub {
    font-size: 0.92rem;
  }

  .eff-badge {
    padding: 6px 12px;
    font-size: 0.78rem;
    width: 100%;
    justify-content: center;
  }

  /* Presentation Bottom Bar Mobile */
  .presentation-nav-bar {
    height: 50px;
    padding: 0 10px;
  }

  .presentation-nav-bar .btn {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .page-dots {
    max-width: 110px;
  }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .cover-main-title {
    font-size: 1.65rem;
  }

  .cover-company-th {
    font-size: 1.1rem;
  }

  .page-title {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   STRICT A4 PRINT & PDF EXPORT STYLES (@media print)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body {
    background: #FFF !important;
    color: #000 !important;
    overflow: visible !important;
    height: auto !important;
  }

  .top-header,
  .presentation-nav-bar,
  .quick-drawer,
  .bg-glow-red,
  .bg-glow-gold,
  .modal-overlay {
    display: none !important;
  }

  .main-wrapper {
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .page-card {
    display: flex !important;
    flex-direction: column !important;
    width: 210mm !important;
    height: 297mm !important;
    max-width: none !important;
    page-break-after: always !important;
    break-after: page !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #FFF !important;
    color: #111 !important;
    padding: 15mm 15mm !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .page-header {
    border-bottom: 2px solid #2E7D32 !important;
  }

  .page-title {
    color: #1B5E20 !important;
  }

  .cover-page-card {
    background: linear-gradient(145deg, #1B5E20 0%, #0A291C 100%) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cover-main-title, .cover-company-th {
    color: #FFF !important;
    -webkit-text-fill-color: #FFF !important;
  }

  .vision-card, .category-card, .region-card, .strength-item, .singha-card, .contact-info-card {
    background: #F4FBF7 !important;
    border: 1px solid #C8E6C9 !important;
    color: #111 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .singha-letter, .category-title, .strength-text h4, .vision-card h3 {
    color: #2E7D32 !important;
  }

  .pill-item strong {
    color: #2E7D32 !important;
  }
}
