/* 
 * 次元链接 (CiyuanLianjie Airport) - Hand-drawn & Cartoon Style Visual Design System
 * Domain: ciyuanlianjie.my
 * Font: 正楷体 (KaiTi)
 */

@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
  /* Dynamic Background requested by user */
  --bg-gradient: linear-gradient(135deg, rgb(127, 127, 213), rgb(134, 168, 231), rgb(145, 234, 228));
  
  /* Palette & Hand-drawn accents */
  --primary-color: #ff5e7e;
  --primary-hover: #ff3b61;
  --secondary-color: #ffcf40;
  --accent-blue: #4d96ff;
  --accent-purple: #9b51e0;
  --accent-green: #6bcb77;
  --dark-text: #2c3e50;
  --light-text: #ffffff;
  
  /* Cartoon Hand-drawn Card & Border styles */
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-bg-hover: #ffffff;
  --hand-border-width: 3px;
  --hand-border-color: #2b2d42;
  --hand-shadow: 5px 5px 0px #2b2d42;
  --hand-shadow-hover: 8px 8px 0px #2b2d42;
  --hand-radius: 20px;
  
  /* KaiTi Main Font */
  --main-font: 'STKaiti', 'KaiTi', '楷体', 'KaiTi_GB2312', 'Noto Serif SC', cursive, serif;
  --heading-font: 'ZCOOL KuaiLe', 'STKaiti', 'KaiTi', '楷体', cursive, sans-serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

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

body {
  font-family: var(--main-font);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--dark-text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Floating Doodle Decorative Background Elements */
.doodle-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-doodle {
  position: absolute;
  opacity: 0.25;
  animation: doodleFloat 6s ease-in-out infinite alternate;
}

.doodle-1 { top: 10%; left: 4%; width: 60px; animation-duration: 5s; }
.doodle-2 { top: 25%; right: 5%; width: 75px; animation-duration: 7s; }
.doodle-3 { top: 60%; left: 2%; width: 70px; animation-duration: 6.5s; }
.doodle-4 { bottom: 15%; right: 4%; width: 80px; animation-duration: 8s; }
.doodle-5 { top: 80%; left: 8%; width: 50px; animation-duration: 5.5s; }

@keyframes doodleFloat {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-15px) rotate(5deg) scale(1.05); }
  100% { transform: translateY(10px) rotate(-3deg) scale(0.98); }
}

/* Header & Hand-drawn Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--hand-border-width) solid var(--hand-border-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Custom Red-Yellow AA Logo SVG / Graphic */
.logo-icon-box {
  width: 46px;
  height: 46px;
  background: #ffffff;
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0px var(--hand-border-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 2px;
}

.logo-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-brand:hover .logo-icon-box {
  transform: rotate(-5deg) scale(1.08);
}

.logo-text {
  font-family: var(--heading-font);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--hand-border-color);
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-family: var(--main-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-text);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  background: var(--secondary-color);
  color: var(--hand-border-color);
  border: 2px solid var(--hand-border-color);
  box-shadow: 2px 2px 0px var(--hand-border-color);
  transform: translateY(-2px);
}

.nav-cta-btn {
  background: var(--primary-color);
  color: var(--light-text) !important;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  padding: 8px 22px;
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 25px;
  box-shadow: var(--hand-shadow);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-cta-btn:hover {
  background: var(--primary-hover);
  transform: translate(-2px, -2px);
  box-shadow: var(--hand-shadow-hover);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 4px;
  background: var(--hand-border-color);
  border-radius: 4px;
}

/* Main Container Layout */
main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hand-drawn Sections */
.cartoon-section {
  margin-bottom: 4.5rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--hand-border-color);
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 4px 16px;
  border: 2px solid var(--hand-border-color);
  border-radius: 20px;
  box-shadow: 3px 3px 0px var(--hand-border-color);
  margin-bottom: 12px;
  transform: rotate(-1.5deg);
}

.section-title {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  color: var(--hand-border-color);
  margin-bottom: 10px;
  text-shadow: 2px 2px 0px rgba(255,255,255,0.8);
}

.section-desc {
  font-size: 1.2rem;
  color: #34495e;
  max-width: 750px;
  margin: 0 auto;
  font-weight: 600;
}

/* Hero Section Styles */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 2.5rem;
  background: var(--card-bg);
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 30px;
  box-shadow: var(--hand-shadow);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-family: var(--heading-font);
  font-size: 3.2rem;
  line-height: 1.2;
  color: var(--hand-border-color);
  margin-bottom: 1.2rem;
}

.hero-content h1 .highlight {
  color: var(--primary-color);
  background: #ffe3e8;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-1deg);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #4a5568;
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.2rem;
  list-style: none;
}

.hero-tag {
  background: #eef2ff;
  border: 2px solid var(--hand-border-color);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
  box-shadow: 2px 2px 0px var(--hand-border-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-primary-hand {
  background: var(--primary-color);
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 1.35rem;
  padding: 14px 36px;
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 30px;
  box-shadow: var(--hand-shadow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary-hand:hover {
  background: var(--primary-hover);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--hand-border-color);
}

.btn-secondary-hand {
  background: var(--secondary-color);
  color: var(--hand-border-color);
  font-family: var(--heading-font);
  font-size: 1.2rem;
  padding: 14px 28px;
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 30px;
  box-shadow: var(--hand-shadow);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-secondary-hand:hover {
  background: #ffc107;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px var(--hand-border-color);
}

/* Hero Visual / Cartoon Display */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-card {
  width: 100%;
  background: #ffffff;
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 6px 6px 0px var(--hand-border-color);
  position: relative;
  animation: heroCardFloat 4s ease-in-out infinite alternate;
}

@keyframes heroCardFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.speed-meter-box {
  background: #f8fafc;
  border: 2px dashed var(--hand-border-color);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

.speed-number {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  color: var(--accent-green);
  line-height: 1;
}

.speed-unit {
  font-size: 1.1rem;
  color: #718096;
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item {
  background: #edf2f7;
  border: 2px solid var(--hand-border-color);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.stat-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-purple);
}

.stat-label {
  font-size: 0.9rem;
  color: #4a5568;
}

/* Core Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  background: var(--card-bg);
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: var(--hand-shadow);
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  background: var(--card-bg-hover);
  transform: translateY(-6px);
  box-shadow: var(--hand-shadow-hover);
}

.feature-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 2px solid var(--hand-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: 3px 3px 0px var(--hand-border-color);
}

.icon-iplc { background: #ffe3e8; }
.icon-speed { background: #e0f2fe; }
.icon-secure { background: #dcfce7; }
.icon-price { background: #fef9c3; }
.icon-nodes { background: #f3e8ff; }
.icon-support { background: #ffedd5; }

.feature-card h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--hand-border-color);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.6;
}

/* Node List Interactive Component */
.nodes-container {
  background: var(--card-bg);
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--hand-shadow);
}

.node-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.node-tab {
  background: #ffffff;
  border: 2px solid var(--hand-border-color);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--main-font);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--hand-border-color);
  transition: all 0.2s ease;
}

.node-tab.active, .node-tab:hover {
  background: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.node-card {
  background: #ffffff;
  border: 2px solid var(--hand-border-color);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 3px 3px 0px var(--hand-border-color);
  transition: transform 0.2s ease;
}

.node-card:hover {
  transform: translateY(-3px);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flag-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.node-name {
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-text);
}

.node-type {
  font-size: 0.85rem;
  color: #718096;
  background: #edf2f7;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
}

.node-ping {
  text-align: right;
}

.ping-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #86efac;
}

/* Pricing Section (Matching Figure 2 specifications) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: #181528; /* Dark elegant theme matching original card background in image 2 */
  color: #ffffff;
  border: 3px solid #ff4d6d;
  border-radius: 24px;
  padding: 2.2rem 1.8rem;
  box-shadow: 6px 6px 0px var(--hand-border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.pricing-card.popular {
  border: 3px solid #ff3b61;
  box-shadow: 8px 8px 0px #ff3b61;
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-badge-hot {
  position: absolute;
  top: -14px;
  right: 20px;
  background: linear-gradient(135deg, #ff3b61, #ff6b8b);
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  box-shadow: 2px 2px 0px var(--hand-border-color);
}

.plan-name {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
  border-bottom: 2px dashed rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.price-currency {
  font-size: 1.8rem;
  color: #ff4d6d;
  font-weight: 700;
  margin-right: 4px;
}

.price-amount {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  color: #ffffff;
  line-height: 1;
  font-weight: 700;
}

.price-period {
  font-size: 1rem;
  color: #a0aec0;
  margin-left: 6px;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: #4ade80;
  font-weight: 900;
  font-size: 1.2rem;
}

.btn-buy-plan {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #ff4d6d, #ff758f);
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 1.3rem;
  padding: 12px 0;
  border: 2px solid #ffffff;
  border-radius: 18px;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.5);
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 700;
}

.btn-buy-plan:hover {
  background: linear-gradient(135deg, #ff2a55, #ff4d6d);
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px rgba(0,0,0,0.6);
}

/* Tutorials & Downloads Section */
.tab-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.tab-btn {
  background: #ffffff;
  border: var(--hand-border-width) solid var(--hand-border-color);
  padding: 10px 24px;
  border-radius: 25px;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--hand-border-color);
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.download-card {
  background: var(--card-bg);
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 20px;
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--hand-shadow);
  transition: all 0.25s ease;
}

.download-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: var(--hand-shadow-hover);
}

.platform-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.download-card h4 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  color: var(--hand-border-color);
  margin-bottom: 6px;
}

.download-card p {
  font-size: 0.95rem;
  color: #718096;
  margin-bottom: 1.2rem;
}

.btn-dl {
  background: var(--secondary-color);
  color: var(--hand-border-color);
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  border: 2px solid var(--hand-border-color);
  border-radius: 16px;
  box-shadow: 2px 2px 0px var(--hand-border-color);
  text-decoration: none;
  display: inline-block;
}

.btn-dl:hover {
  background: #ffc107;
}

/* SEO Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
}

.article-card {
  background: var(--card-bg);
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--hand-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.article-card:hover {
  background: #ffffff;
  transform: translateY(-5px);
  box-shadow: var(--hand-shadow-hover);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 10px;
}

.article-tag {
  background: #e2e8f0;
  color: #2d3748;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.article-title {
  font-family: var(--main-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hand-border-color);
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.article-link {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.article-link:hover {
  text-decoration: underline;
}

/* User Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--card-bg);
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--hand-shadow);
  position: relative;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--hand-border-color);
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.review-user-info h5 {
  font-family: var(--main-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-text);
}

.review-user-info span {
  font-size: 0.85rem;
  color: #718096;
}

.review-stars {
  color: #f59e0b;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.review-text {
  font-size: 1rem;
  color: #2d3748;
  line-height: 1.6;
}

/* FAQ Accordion Section */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card-bg);
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 3px 3px 0px var(--hand-border-color);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-family: var(--main-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hand-border-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  user-select: none;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-answer {
  padding: 0 1.5rem 1.2rem 1.5rem;
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
  display: none;
  background: #ffffff;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-toggle-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

/* 80 Keywords Tag Cloud Section */
.tags-cloud-container {
  background: var(--card-bg);
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--hand-shadow);
}

.tags-search-input {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
  display: block;
  padding: 10px 18px;
  font-family: var(--main-font);
  font-size: 1.1rem;
  border: 2px solid var(--hand-border-color);
  border-radius: 20px;
  box-shadow: 2px 2px 0px var(--hand-border-color);
  outline: none;
}

.tags-flex-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.kw-tag {
  background: #ffffff;
  border: 2px solid var(--hand-border-color);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-text);
  box-shadow: 2px 2px 0px var(--hand-border-color);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.kw-tag:hover {
  background: var(--secondary-color);
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 4px 4px 0px var(--hand-border-color);
}

/* Footer Section */
footer {
  background: #1e293b;
  color: #cbd5e1;
  border-top: var(--hand-border-width) solid var(--hand-border-color);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 1rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px dashed #334155;
  padding-top: 1.5rem;
  font-size: 0.95rem;
}

/* Article Page Specific Styling */
.article-container {
  background: #ffffff;
  border: var(--hand-border-width) solid var(--hand-border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--hand-shadow);
  margin-bottom: 3rem;
}

.article-header {
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.article-header h1 {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  color: var(--hand-border-color);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-body h2 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  color: var(--hand-border-color);
  margin: 1.8rem 0 1rem 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--secondary-color);
}

.article-body h3 {
  font-family: var(--main-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: #2b2d42;
  margin: 1.4rem 0 0.8rem 0;
}

.article-body p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #2d3748;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.2rem 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-cta-box {
  background: linear-gradient(135deg, #fff3f5, #ffe4e8);
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 1.8rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 4px 4px 0px var(--primary-color);
}

.article-cta-box h3 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: var(--hand-border-width) solid var(--hand-border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .nav-menu.active {
    display: flex;
  }
  .section-title {
    font-size: 2rem;
  }
  .article-container {
    padding: 1.8rem 1.2rem;
  }
}
