/* ============================================
   SUPEI - EVA Foam Board | Global Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2740;
  --primary-light: #2a5a8c;
  --accent: #e8751a;
  --accent-hover: #d06510;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --gray: #e0e4e8;
  --text-dark: #1e2a38;
  --text-body: #4a5568;
  --text-light: #8a95a5;
  --footer-bg: #111b27;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --font-primary: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-max: 1200px;
  --nav-height: 72px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-body);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section --- */
.section {
  padding: 80px 0;
}

.section--gray {
  background-color: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 20px auto 0;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--primary);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__logo span {
  color: var(--accent);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.navbar__menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.navbar__menu a:hover,
.navbar__menu a.active {
  color: var(--white);
}

.navbar__menu a:hover::after,
.navbar__menu a.active::after {
  width: 100%;
}

.navbar__quote-btn {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}

.navbar__quote-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.navbar__quote-btn::after {
  display: none !important;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Body offset for fixed nav */
body {
  padding-top: var(--nav-height);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 39, 64, 0.92) 0%, rgba(26, 58, 92, 0.85) 100%),
              url('/images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 117, 26, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
  background: var(--primary);
  padding: 50px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stats__item {
  color: var(--white);
}

.stats__number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1;
}

.stats__label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

/* ============================================
   Product Cards Grid
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--light-gray);
}

.product-card__body {
  padding: 20px;
}

.product-card__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.product-card__spec-tag {
  background: var(--light-gray);
  color: var(--text-body);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.product-card__btn:hover {
  gap: 10px;
}

.product-card__btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Applications Section
   ============================================ */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.application-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid transparent;
}

.application-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}

.application-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
}

.application-card:hover .application-card__icon {
  background: var(--primary);
  color: var(--white);
}

.application-card__icon svg {
  width: 28px;
  height: 28px;
}

.application-card__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.application-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   Why Choose Us / Advantages
   ============================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  text-align: center;
  padding: 36px 20px;
}

.advantage-card__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform var(--transition);
}

.advantage-card:hover .advantage-card__icon {
  transform: scale(1.08);
}

.advantage-card__icon svg {
  width: 32px;
  height: 32px;
}

.advantage-card__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.advantage-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 70px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ============================================
   Page Banner (inner pages)
   ============================================ */
.page-banner {
  background: linear-gradient(135deg, rgba(15, 39, 64, 0.93), rgba(26, 58, 92, 0.88)),
              url('/images/banner-bg.jpg') center/cover no-repeat;
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 10px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.page-banner__breadcrumb {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-banner__breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-banner__breadcrumb a:hover {
  color: var(--accent);
}

/* ============================================
   Product Detail on Products Page
   ============================================ */
.product-detail-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 30px;
  transition: box-shadow var(--transition);
}

.product-detail-card:hover {
  box-shadow: var(--shadow-md);
}

.product-detail-card__image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  background: var(--light-gray);
}

.product-detail-card__body {
  padding: 36px;
}

.product-detail-card__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.product-detail-card__desc {
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-detail-card__specs {
  margin-bottom: 20px;
}

.product-detail-card__specs h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-detail-card__specs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-detail-card__specs li {
  background: var(--light-gray);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-body);
}

.product-detail-card__applications h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-detail-card__applications p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ============================================
   About Page
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-intro__text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-intro__text p {
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-intro__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
  background: var(--light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
  transition: transform var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info {
  padding: 36px;
  background: var(--primary);
  border-radius: var(--radius-md);
  color: var(--white);
}

.contact-info h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__text h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-info__text p,
.contact-info__text a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.contact-info__text a:hover {
  color: var(--accent);
}

/* --- Contact Form --- */
.contact-form-wrapper {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.contact-form-wrapper > p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

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

.form-group label .required {
  color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: none;
}

.form-message--success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
  display: block;
}

.form-message--error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
  display: block;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__about h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer__about h3 span {
  color: var(--accent);
}

.footer__about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: background var(--transition), color var(--transition);
}

.footer__social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul li a {
  font-size: 0.9rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer__col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
  font-size: 0.9rem;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  color: var(--accent);
}

.footer__bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ============================================
   Admin Styles
   ============================================ */

/* --- Admin Login --- */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  padding: 20px;
}

.admin-login__card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.admin-login__logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
/* Login page dropdown (white card background) */
.admin-login__card .lang-select {
  background-color: rgba(0,0,0,0.06);
  color: var(--text-body);
  border-color: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(0,0,0,0.4)' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
}
.admin-login__card .lang-select option {
  background: #fff;
  color: var(--text-body);
}

.admin-login__logo span {
  color: var(--accent);
}

.admin-login__card h2 {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 30px;
}

.admin-login__card .form-group {
  text-align: left;
}

.admin-login__card .form-group input {
  padding: 14px 16px;
}

.admin-login__error {
  color: #e53e3e;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: none;
}

/* --- Admin Layout --- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.admin-sidebar__logo {
  padding: 20px 24px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__logo span {
  color: var(--accent);
}

.admin-sidebar__nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.admin-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.admin-sidebar__nav a:hover,
.admin-sidebar__nav a.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-left-color: var(--accent);
}

.admin-sidebar__nav a svg {
  width: 20px;
  height: 20px;
}

.admin-main {
  flex: 1;
  margin-left: 250px;
  background: var(--light-gray);
  min-height: 100vh;
}

.admin-topbar {
  background: var(--white);
  padding: 0 30px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.admin-topbar__user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-topbar__user span {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* (admin lang-select styles moved to Language Switcher section) */

.admin-topbar__logout {
  background: none;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 6px 14px;
  border: 1px solid var(--gray);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.admin-topbar__logout:hover {
  color: #e53e3e;
  border-color: #e53e3e;
}

.admin-content {
  padding: 30px;
}

/* --- Admin Dashboard Stats --- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-stat-card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.admin-stat-card__icon--blue { background: var(--primary); }
.admin-stat-card__icon--orange { background: var(--accent); }
.admin-stat-card__icon--green { background: #38a169; }
.admin-stat-card__icon--purple { background: #805ad5; }

.admin-stat-card__icon svg {
  width: 24px;
  height: 24px;
}

.admin-stat-card__info h3 {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.admin-stat-card__info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Admin Table --- */
.admin-table-wrapper {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray);
}

.admin-table-header h3 {
  font-size: 1.1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--light-gray);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-body);
}

.admin-table tr:hover td {
  background: rgba(245, 247, 250, 0.5);
}

.admin-table .actions {
  display: flex;
  gap: 8px;
}

.admin-table .actions button {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: opacity var(--transition);
}

.admin-table .actions button:hover {
  opacity: 0.85;
}

.btn-edit {
  background: var(--primary);
  color: var(--white);
}

.btn-delete {
  background: #e53e3e;
  color: var(--white);
}

.btn-view {
  background: #38a169;
  color: var(--white);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge--unread {
  background: #fff5f5;
  color: #e53e3e;
}

.badge--read {
  background: #f0fff4;
  color: #38a169;
}

/* --- Admin Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray);
}

.modal__close {
  background: none;
  color: var(--text-light);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px;
}

.modal__close:hover {
  color: var(--text-dark);
}

.modal__body {
  padding: 16px 20px;
}

/* Compact form styles inside modals */
.modal .form-group {
  margin-bottom: 10px;
}
.modal .form-group label {
  font-size: 0.8rem;
  margin-bottom: 3px;
}
.modal .form-group input,
.modal .form-group textarea,
.modal .form-group select {
  padding: 7px 10px;
  font-size: 0.85rem;
}
.modal .form-group textarea {
  min-height: 70px;
}
.modal .form-row {
  gap: 10px;
}
.modal__header {
  padding: 14px 20px;
}
.modal__header h3 {
  font-size: 1rem;
}

.modal__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gray);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* --- Admin Settings Form --- */
.settings-form {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.settings-form h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero__title {
    font-size: 2.4rem;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    width: 220px;
  }

  .admin-main {
    margin-left: 220px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  /* Nav Mobile */
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .navbar__menu.open {
    transform: translateX(0);
  }

  .navbar__menu a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .navbar__menu a::after {
    display: none;
  }

  .navbar__quote-btn {
    margin-top: 10px;
    text-align: center;
    width: 100%;
    justify-content: center;
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 480px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Stats */
  .stats__number {
    font-size: 2.2rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Applications */
  .applications-grid {
    grid-template-columns: 1fr;
  }

  /* Advantages */
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Page Banner */
  .page-banner h1 {
    font-size: 1.8rem;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* WhatsApp */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  /* Admin */
  .admin-sidebar {
    transform: translateX(-100%);
    width: 250px;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats__number {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .admin-content {
    padding: 16px;
  }

  .modal {
    margin: 10px;
  }
}

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none !important; }

/* --- Language Switcher (Dropdown) --- */
.navbar__lang {
  display: flex;
  align-items: center;
  margin-left: 16px;
  font-size: 0.85rem;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 28px 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(255,255,255,0.7)' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  min-width: 100px;
}
.lang-select:hover {
  background-color: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}
.lang-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,112,243,0.3);
}
.lang-select option {
  background: var(--dark);
  color: #fff;
  padding: 4px 8px;
}
/* Language switcher inside admin topbar */
.admin-topbar .lang-select {
  background-color: rgba(0,0,0,0.06);
  color: var(--text-body);
  border-color: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(0,0,0,0.4)' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
}
.admin-topbar .lang-select:hover {
  background-color: rgba(0,0,0,0.1);
  border-color: var(--primary);
}
.admin-topbar .lang-select option {
  background: #fff;
  color: var(--text-body);
}
/* Hide Google Translate default UI */
#google_translate_element { display: none !important; }
.goog-te-banner-frame { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-spinner-pos { display: none !important; }

/* --- Product Category Sidebar + Layout --- */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.category-sidebar {
  background: var(--light-gray);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.category-sidebar h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.category-tree {
  list-style: none;
}
.category-tree li {
  margin-bottom: 4px;
}
.category-tree > li > a {
  display: block;
  padding: 8px 12px;
  color: var(--text-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}
.category-tree > li > a:hover,
.category-tree > li > a.active {
  background: var(--primary);
  color: var(--white);
}
.category-tree ul {
  list-style: none;
  padding-left: 16px;
}
.category-tree ul a {
  display: block;
  padding: 6px 12px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.category-tree ul a:hover,
.category-tree ul a.active {
  background: var(--accent);
  color: var(--white);
}

.products-main {
  min-height: 400px;
}

/* --- Product Badges --- */
.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge--hot {
  background: #e53e3e;
  color: var(--white);
}
.badge--new {
  background: #38a169;
  color: var(--white);
}

.product-card {
  position: relative;
}

/* --- Product Category Label --- */
.product-card__category {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* --- Specs Table --- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.specs-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--light-gray);
  color: var(--primary);
  font-weight: 600;
  width: 35%;
  border: 1px solid var(--gray);
}
.specs-table td {
  padding: 8px 12px;
  border: 1px solid var(--gray);
  color: var(--text-body);
}

/* --- Product Detail Card Image Wrap --- */
.product-detail-card__image-wrap {
  position: relative;
  flex-shrink: 0;
}

/* --- Product SKU --- */
.product-detail-card__sku {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* --- Product Inquiry Banner (on Contact page) --- */
.product-inquiry-banner {
  background: var(--light-gray);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}
.product-inquiry-banner__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.product-inquiry-banner__inner img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray);
}
.product-inquiry-banner__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-inquiry-banner__info span {
  font-size: 0.85rem;
  color: var(--text-light);
}
.product-inquiry-banner__info strong {
  font-size: 1.1rem;
  color: var(--primary);
}
.product-inquiry-banner__info small {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Responsive: Products Layout --- */
@media (max-width: 768px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .category-sidebar {
    position: static;
  }
  .navbar__lang {
    margin-left: 8px;
  }
  .lang-select {
    min-width: 80px;
    font-size: 0.8rem;
    padding: 3px 24px 3px 8px;
  }
}

/* --- Settings i18n group --- */
.settings-i18n-group {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}
.settings-i18n-label {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1rem;
}
.settings-i18n-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .settings-i18n-fields { grid-template-columns: 1fr; }
}
.lang-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.lang-tag--en {
  color: var(--white);
  background: #2563eb;
}
.lang-tag--zh {
  color: var(--white);
  background: #dc2626;
}

/* --- Sidebar: scrollable + collapsible groups --- */
.admin-sidebar {
  display: flex;
  flex-direction: column;
}
.admin-sidebar__nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.admin-sidebar__nav::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.sidebar-group {
  margin-bottom: 2px;
}

/* Group toggle: same style as normal menu items */
.sidebar-group__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  cursor: pointer;
}
.sidebar-group__toggle:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.sidebar-group__toggle svg:first-child {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Expand/collapse arrow */
.sidebar-group__arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.sidebar-group__toggle--open .sidebar-group__arrow {
  transform: rotate(90deg);
}

/* Child items: indented */
.sidebar-group__children {
  overflow: hidden;
}
.sidebar-child {
  padding-left: 40px !important;
  font-size: 0.85rem !important;
}

/* --- Permission Tree (role menu assignment) --- */
.perm-node {
  display: flex;
  align-items: center;
  padding: 3px 0;
}
.perm-select-all {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.perm-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0.55rem;
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  margin-right: 4px;
  line-height: 1;
}
.perm-toggle:hover {
  color: var(--accent);
}
.perm-toggle-spacer {
  display: inline-block;
  width: 20px;
  flex-shrink: 0;
}
.perm-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-body);
  white-space: nowrap;
}
.perm-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}
.perm-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.perm-tag--dir {
  background: var(--primary);
  color: #fff;
}
.perm-tag--menu {
  background: #2563eb;
  color: #fff;
}
.perm-tag--btn {
  background: #9ca3af;
  color: #fff;
}
.perm-children {
  /* children container */
}
.perm-linkage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
}
.perm-linkage-toggle input {
  accent-color: var(--accent);
}

/* --- Cache key tags --- */
.cache-key-tag {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px;
  background: var(--light-gray);
  border: 1px solid var(--gray);
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--text-body);
  cursor: pointer;
}
.cache-key-tag:hover {
  background: #fee2e2;
  border-color: #e53e3e;
  color: #e53e3e;
}

/* --- Tree Toggle (menu management) --- */
.tree-toggle {
  font-size: 0.7rem;
  color: var(--primary);
  user-select: none;
  transition: transform 0.2s;
}
.tree-toggle:hover {
  color: var(--accent);
}

/* --- Sidebar Badge (unread count) --- */
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e53e3e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: auto;
}

/* --- Admin Toast Notification --- */
.admin-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 400px;
}
.admin-toast--show {
  transform: translateX(0);
}
.admin-toast span {
  flex: 1;
  font-size: 0.95rem;
}
.admin-toast button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}
.admin-toast button:hover {
  color: #fff;
}

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.news-card a {
  text-decoration: none;
  color: inherit;
}
.news-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-card__body {
  padding: 16px;
}
.news-card__date {
  font-size: 0.8rem;
  color: var(--text-light);
}
.news-card__title {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 6px 0;
  line-height: 1.4;
}
.news-card__summary {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News card horizontal (list page) */
.news-card--horizontal a {
  display: flex;
  gap: 20px;
}
.news-card--horizontal .news-card__image {
  width: 240px;
  height: 160px;
  flex-shrink: 0;
  object-fit: cover;
}
.news-card--horizontal .news-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-card--horizontal .news-card__summary {
  -webkit-line-clamp: 3;
}
.news-card__readmore {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
}
.news-grid--list {
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .news-card--horizontal a {
    flex-direction: column;
  }
  .news-card--horizontal .news-card__image {
    width: 100%;
    height: 200px;
  }
}

/* Article detail page */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.article-detail__cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.article-detail__meta {
  display: flex;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.article-detail__content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
}
.article-detail__content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}
.article-detail__content h1,
.article-detail__content h2,
.article-detail__content h3 {
  color: var(--text-dark);
  margin: 24px 0 12px;
}
