/* ========================================
   FunHub360.com - Enhanced Stylesheet
   Responsive H5 Design for AdSense Approval
   ======================================== */

/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.6; color: #1a1a2e; background: #f8f9fa;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

a { color: #4361ee; text-decoration: none; overflow-wrap: anywhere; word-break: break-word; }
a:hover { text-decoration: underline; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; }
h1, h2, h3, h4 { line-height: 1.3; color: #16213e; }

/* --- Layout --- */
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; min-width: 0; }

/* --- Header / Navigation --- */
.site-header {
  background: linear-gradient(135deg, #16213e, #0f3460);
  color: #fff; padding: 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
}
.site-logo { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.site-logo span { color: #f72585; }
.site-logo:hover { text-decoration: none; color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-links li { padding: 0; }
.nav-links a {
  color: #e0e0e0; font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s; padding: 8px 0; display: block;
}
.nav-links a:hover { color: #f72585; text-decoration: none; }

.mobile-menu-btn {
  display: none; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  padding: 8px 16px; border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.2); }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #0f3460, #533483, #3a0ca3);
  color: #fff; text-align: center;
  padding: 70px 20px 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(247,37,133,0.08) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}
.hero h1 { font-size: 2.4rem; color: #fff; margin-bottom: 15px; position: relative; }
.hero p { font-size: 1.1rem; color: #c4c4e0; max-width: 600px; margin: 0 auto 25px; position: relative; }
.hero-stats { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; position: relative; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: #f72585; display: block; }
.hero-stat-label { font-size: 0.85rem; color: #a8a8cc; }

/* --- Category Tabs --- */
.category-tabs {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin: -25px auto 35px; max-width: 1200px; padding: 0 20px;
  position: relative; z-index: 10;
}
.category-tab {
  padding: 10px 24px; border-radius: 25px; border: 2px solid transparent; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; transition: all 0.3s;
  background: #fff; color: #16213e; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.category-tab:hover { background: #f0f4ff; border-color: #4361ee; }
.category-tab.active { background: #f72585; color: #fff; border-color: #f72585; }

/* --- Section Titles --- */
.section-title {
  text-align: center; font-size: 1.6rem; margin: 45px 0 10px; color: #16213e;
  position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, #4361ee, #f72585);
  margin: 10px auto 0; border-radius: 2px;
}
.section-subtitle { text-align: center; color: #6c757d; margin-bottom: 30px; font-size: 1rem; }

/* --- Tool Grid --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-bottom: 50px;
}
.tool-card {
  background: #fff; border-radius: 14px; padding: 28px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s;
  text-align: center; cursor: pointer; border: 1px solid #eee;
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #4361ee, #f72585);
  transform: scaleX(0); transition: transform 0.3s;
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover {
  transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: transparent;
}
.tool-card .icon { font-size: 2.8rem; margin-bottom: 12px; display: block; }
.tool-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #16213e; }
.tool-card p { font-size: 0.88rem; color: #6c757d; line-height: 1.5; }
.tool-card a { color: inherit; text-decoration: none; display: block; }
.tool-card a:hover { text-decoration: none; }
.tool-card .tool-badge {
  display: inline-block; background: #4361ee; color: #fff;
  padding: 2px 10px; border-radius: 4px; font-size: 0.7rem; margin-bottom: 8px;
}

/* --- Features / How It Works Section --- */
.features-section { background: #fff; padding: 50px 0; margin: 30px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.feature-item { text-align: center; padding: 20px; }
.feature-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.feature-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.88rem; color: #6c757d; }

/* --- FAQ Section --- */
.faq-section { padding: 40px 0; }
.faq-item {
  background: #fff; border-radius: 10px; margin-bottom: 12px;
  border: 1px solid #eee; overflow: hidden;
}
.faq-question {
  padding: 16px 20px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: #f8f9fa; }
.faq-question .faq-toggle { font-size: 1.2rem; color: #4361ee; transition: transform 0.3s; }
.faq-answer {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: all 0.3s; color: #555;
}
.faq-answer.open { padding: 0 20px 16px; max-height: 500px; }

/* --- Newsletter Section --- */
.newsletter {
  background: linear-gradient(135deg, #16213e, #0f3460);
  color: #fff; padding: 50px 20px; text-align: center; margin: 40px 0;
}
.newsletter h2 { color: #fff; margin-bottom: 10px; }
.newsletter p { color: #c4c4e0; margin-bottom: 20px; }
.newsletter-form { display: flex; max-width: 450px; margin: 0 auto; gap: 10px; }
.newsletter-form input {
  flex: 1; padding: 12px 18px; border: none; border-radius: 8px;
  font-size: 1rem;
}
.newsletter-form button {
  padding: 12px 25px; border: none; border-radius: 8px;
  background: #f72585; color: #fff; font-weight: 600; cursor: pointer;
}

/* --- Tool Page Layout --- */
.tool-page-header {
  background: linear-gradient(135deg, #0f3460, #533483);
  color: #fff; padding: 40px 0; position: relative;
}
.tool-page-header h1 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.tool-page-header .breadcrumb { color: #a8a8cc; font-size: 0.85rem; }
.tool-page-header .breadcrumb a { color: #a8a8cc; }
.tool-page-header .breadcrumb a:hover { color: #fff; }
.tool-page-header .page-cover { text-align: center; font-size: 4rem; margin-bottom: 10px; }

.tool-main { display: flex; gap: 30px; margin-top: 30px; min-width: 0; max-width: 100%; }
.tool-content { flex: 1; min-width: 0; max-width: 100%; }
.tool-sidebar { width: 300px; max-width: 100%; flex-shrink: 0; }

/* --- Tool Box (Calculator) --- */
.tool-box {
  background: #fff; border-radius: 14px; padding: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06); border: 1px solid #eee;
  margin-bottom: 25px;
}
.tool-box label {
  display: block; font-weight: 600; margin-bottom: 6px; color: #16213e; font-size: 0.95rem;
}
.tool-box input, .tool-box select {
  width: 100%; padding: 12px 15px; border: 2px solid #e8e8e8;
  border-radius: 8px; font-size: 1rem; transition: border-color 0.2s;
  margin-bottom: 15px; background: #fafafa;
}
.tool-box input:focus, .tool-box select:focus {
  outline: none; border-color: #4361ee; background: #fff; box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
}
.tool-box .btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-box .btn {
  display: inline-block; padding: 12px 30px; border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
  background: #4361ee; color: #fff;
}
.tool-box .btn:hover { background: #3a56d4; transform: translateY(-1px); }
.tool-box .btn-secondary { background: #f72585; }
.tool-box .btn-secondary:hover { background: #d91e72; }

.result-box {
  background: linear-gradient(135deg, #f0f4ff, #e8eeff);
  border: 2px solid #4361ee; border-radius: 12px;
  padding: 25px; margin-top: 20px; text-align: center; display: none;
}
.result-box .result-value {
  font-size: 2.2rem; font-weight: 800; color: #16213e; display: block; margin: 5px 0;
}
.result-box .result-label { font-size: 0.9rem; color: #6c757d; }

/* --- Steps / How-to-Use --- */
.steps-list { counter-reset: step; list-style: none; padding: 0; }
.steps-list li {
  counter-increment: step; padding: 12px 0 12px 45px; position: relative;
  border-bottom: 1px solid #f0f0f0; margin-bottom: 0;
}
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: 10px;
  width: 30px; height: 30px; background: #4361ee; color: #fff;
  border-radius: 50%; text-align: center; line-height: 30px;
  font-weight: 700; font-size: 0.85rem;
}
.steps-list li:last-child { border-bottom: none; }

/* --- Quick Reference Table --- */
.ref-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ref-table th, .ref-table td {
  padding: 10px 15px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem;
  overflow-wrap: break-word;
  word-break: normal;
}
.ref-table th { background: #f8f9fa; font-weight: 600; color: #16213e; }
.ref-table tr:hover td { background: #f8f9fa; }

/* --- Article Content --- */
.article-content {
  background: #fff; border-radius: 14px; padding: 35px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06); border: 1px solid #eee;
  margin-bottom: 25px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}
.article-content h2 {
  font-size: 1.35rem; margin: 30px 0 15px; padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0; color: #16213e;
}
.article-content h3 { font-size: 1.1rem; margin: 22px 0 10px; color: #16213e; }
.article-content p { margin-bottom: 15px; color: #333; }
.article-content ul, .article-content ol { margin-bottom: 15px; }
.article-content li { margin-bottom: 8px; }

/* --- Comments Section --- */
.comments-section {
  background: #fff; border-radius: 14px; padding: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06); border: 1px solid #eee;
  margin-bottom: 25px;
}
.comments-section h2 {
  font-size: 1.3rem; margin-bottom: 20px; color: #16213e;
  display: flex; align-items: center; gap: 8px;
}
.comment-item {
  padding: 18px 0; border-bottom: 1px solid #f0f0f0;
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex-shrink: 0;
  font-size: 0.9rem;
}
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-author { font-weight: 600; color: #16213e; font-size: 0.95rem; }
.comment-date { font-size: 0.8rem; color: #999; }
.comment-text { font-size: 0.92rem; color: #444; line-height: 1.6; padding-left: 54px; }
.comment-form { margin-top: 20px; }
.comment-form textarea {
  width: 100%; padding: 12px 15px; border: 2px solid #e8e8e8; border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; min-height: 80px; resize: vertical;
  margin-bottom: 10px;
}
.comment-form textarea:focus { outline: none; border-color: #4361ee; }
.comment-form input {
  padding: 10px 15px; border: 2px solid #e8e8e8; border-radius: 8px;
  font-size: 0.95rem; margin-bottom: 10px; width: 100%;
}

/* --- Sidebar Widgets --- */
.tool-sidebar .sidebar-widget {
  background: #fff; border-radius: 12px; padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #eee;
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-size: 1rem; margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid #f72585; color: #16213e;
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget li { margin-bottom: 8px; }
.sidebar-widget li a {
  font-size: 0.88rem; color: #4361ee; display: block; padding: 4px 0;
  transition: color 0.2s;
}
.sidebar-widget li a:hover { color: #f72585; text-decoration: none; }
.sidebar-widget .sidebar-stats { font-size: 0.85rem; color: #666; }
.sidebar-widget .sidebar-stats span { display: block; margin-bottom: 5px; }

/* --- Language Switcher --- */
.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-btn {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #e0e0e0; padding: 3px 8px; border-radius: 4px; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; transition: all 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.lang-btn.active { background: #f72585; border-color: #f72585; color: #fff; }

/* --- Blog Pagination --- */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 12px; margin: 30px 0 10px; padding: 15px 0;
}
.page-btn {
  padding: 8px 18px; border: 2px solid #4361ee; border-radius: 8px;
  background: #fff; color: #4361ee; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.page-btn:hover:not([disabled]) { background: #4361ee; color: #fff; }
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; border-color: #ccc; color: #ccc; }
.page-info { font-size: 0.9rem; color: #666; }
.page-current, .page-total { font-weight: 700; color: #16213e; font-size: 1rem; }

/* --- Blog Cover Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  min-width: 0;
}
.blog-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #eee; transition: all 0.3s;
  min-width: 0;
}
.blog-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateY(-3px); }
.blog-card-cover {
  height: 200px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f4f8;
  border-radius: 12px 12px 0 0;
}
.blog-card-body { padding: 22px; }
.blog-card .tag {
  display: inline-block; background: #4361ee; color: #fff;
  padding: 3px 12px; border-radius: 4px; font-size: 0.75rem; margin-bottom: 10px;
  font-weight: 600;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a { color: #16213e; }
.blog-card h3 a:hover { color: #4361ee; }
.blog-card p { font-size: 0.88rem; color: #6c757d; line-height: 1.6; }
.blog-card .meta { font-size: 0.8rem; color: #999; margin-top: 12px; display: flex; gap: 15px; flex-wrap: wrap; }

/* --- Legal Pages --- */
.legal-page { background: #fff; border-radius: 12px; padding: 40px; margin: 30px 0; }
.legal-page h1 { font-size: 1.8rem; margin-bottom: 20px; }
.legal-page h2 { font-size: 1.3rem; margin: 25px 0 12px; }
.legal-page p { margin-bottom: 15px; color: #333; }
.legal-page ul { margin-bottom: 15px; }

/* --- Contact Form --- */
.contact-form { max-width: 600px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px; border: 2px solid #e8e8e8;
  border-radius: 8px; font-size: 1rem; font-family: inherit;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: #4361ee;
}

/* --- Footer --- */
.site-footer {
  background: #16213e; color: #a8a8cc; padding: 50px 0 25px; margin-top: 50px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; margin-bottom: 30px;
}
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 15px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #a8a8cc; font-size: 0.88rem; transition: color 0.2s; }
.footer-grid a:hover { color: #f72585; }
.footer-bottom {
  text-align: center; padding-top: 20px; border-top: 1px solid #2a2a4a;
  font-size: 0.85rem;
}

/* --- Blog Post Header with Cover --- */
.blog-post-cover {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 10px;
  background-color: #f0f4f8;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 16 / 7;
}

/* --- Share Buttons --- */
.share-buttons { display: flex; gap: 8px; margin: 15px 0; flex-wrap: wrap; align-items: center; max-width: 100%; }
.share-label { flex-shrink: 0; }
.share-btn {
  display: inline-block; padding: 8px 16px; border: none; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; color: #fff;
  transition: all 0.2s;
}
.share-btn:hover { transform: translateY(-1px); }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #4267B2; }
.share-btn.copy { background: #6c757d; }

/* --- Tool Page Extra Components --- */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px; margin-bottom: 25px;
}
.stat-card {
  background: #fff; border-radius: 10px; padding: 18px; text-align: center;
  border: 1px solid #eee;
}
.stat-card .stat-num { font-size: 1.4rem; font-weight: 800; color: #4361ee; display: block; }
.stat-card .stat-label { font-size: 0.8rem; color: #999; }

/* --- Banner/Ad Placeholder --- */
.banner-placeholder {
  background: linear-gradient(135deg, #f0f4ff, #e8eeff);
  border: 2px dashed #bbb; border-radius: 10px; padding: 30px;
  text-align: center; margin: 20px 0; color: #999; font-size: 0.9rem;
}

/* --- Tool Rating --- */
.tool-rating { display: inline-flex; align-items: center; gap: 5px; }
.tool-rating .stars { color: #ffc107; font-size: 1.1rem; }
.tool-rating .rating-text { font-size: 0.85rem; color: #666; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; max-width: 100vw; background: #16213e; padding: 18px 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); border-radius: 0 0 12px 12px; overflow-x: hidden; }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 55px 16px 45px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .category-tabs { padding: 0 16px; margin-bottom: 28px; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
  .tool-main { flex-direction: column; gap: 20px; width: 100%; }
  .tool-sidebar { width: 100%; min-width: 0; }
  .tool-box, .article-content, .comments-section { padding: 20px; width: 100%; max-width: 100%; }
  .legal-page { padding: 24px; width: 100%; max-width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-cover { height: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input, .newsletter-form button { width: 100%; min-width: 0; }
  .header-inner { padding: 12px 16px; min-width: 0; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-post-cover { aspect-ratio: 16 / 9; max-height: 260px; border-radius: 10px; }
  .ref-table { font-size: 0.82rem; }
  .ref-table th, .ref-table td { padding: 8px 10px; min-width: 120px; }
  .pagination { flex-wrap: wrap; gap: 8px; }
  .page-btn { padding: 8px 14px; }
  .comment-header { flex-wrap: wrap; }
  .comment-text { padding-left: 0; }
  .tool-box .btn { margin: 0 8px 10px 0 !important; }
  .container[style*="max-width:700px"] { padding: 28px 16px 45px !important; }
  .container[style*="max-width:700px"] > div { padding: 28px 18px !important; }
  .container[style*="max-width:700px"] a[href^="mailto:"] { font-size: 1rem !important; overflow-wrap: anywhere; }
  .container[style*="padding: 20px 20px"] { padding: 20px 16px !important; }
}

@media (max-width: 480px) {
  .tool-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px; }
  .hero-stat-num { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.3rem; }
  .hero h1 { font-size: 1.45rem; }
  .hero p { font-size: 0.95rem; }
  .tool-page-header { padding: 30px 0; }
  .tool-page-header h1 { font-size: 1.45rem; }
  .tool-page-header .breadcrumb { overflow-wrap: anywhere; }
  .category-tabs { gap: 8px; padding: 0 12px; }
  .category-tab { padding: 8px 14px; font-size: 0.82rem; }
  .tool-card { padding: 22px 16px; }
  .tool-box, .article-content, .comments-section, .legal-page { padding: 16px; border-radius: 10px; }
  .tool-box .btn { width: 100%; margin-right: 0 !important; }
  .blog-card-body { padding: 18px; }
  .blog-card-cover { height: 150px; }
  .blog-post-cover { width: calc(100% - 24px); margin: 0 auto 10px; }
  .share-buttons { gap: 6px; }
  .share-btn { padding: 7px 12px; font-size: 0.8rem; }
  .container[style*="max-width:700px"] > div { padding: 24px 14px !important; }
  .container[style*="max-width:700px"] [style*="display:inline-block"] { display: block !important; padding: 16px 12px !important; }
}