@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Bricolage Grotesque", sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  background-color: #f9fafc;
  color: #333;
  position: relative;
}

.header {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header h1 {
  font-size: 2rem;
  color: #1a1a1a;
}

.containers {
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.blog-section {
  padding: 3rem 5%;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 350px));
  gap: 2rem;
  justify-content: center;
  width: 100%;
}

.blog-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.blog-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 1.2rem;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
  word-wrap: break-word;
}

.blog-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.8rem;
}

.blog-link {
  text-decoration: none;
  color: #0077ff;
  font-weight: 500;
  margin-top: auto;
  transition: color 0.2s;
}

.blog-link:hover {
  color: #0056cc;
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: transparent;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  font-size: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.page-number,
.page-arrow,
.dots {
  cursor: pointer;
  color: #444;
  padding: 6px 10px;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  border-radius: 6px;
}

.page-number:hover,
.page-arrow:hover {
  color: #009688;
}

.page-number.active {
  color: #009688;
  font-weight: 600;
}

.page-number.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background-color: #009688;
  border-radius: 3px;
}

.page-arrow {
  font-size: 1.2rem;
  opacity: 0.6;
}

.page-arrow:hover {
  opacity: 1;
}

.dots {
  cursor: default;
  color: #aaa;
}

/* Blog Detail Page */
.blog-content-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  width: 100%;
}

.blog-detail-img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
  display: block;
}

.blog-body {
  padding: 2rem;
  overflow-x: hidden;
  word-wrap: break-word;
}

.blog-body h1 {
  font-size: 32px;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: #222;
  word-wrap: break-word;
}

.blog-body h2 {
  font-size: 26px;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: #222;
  word-wrap: break-word;
}

.blog-body h3 {
  font-size: 20px;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: #222;
  word-wrap: break-word;
}

.blog-body p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #444;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-body ul,
.blog-body ol {
  margin-left: 1.5rem;
  list-style: disc;
  word-wrap: break-word;
}

.blog-body li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-body strong {
  color: #000;
  word-wrap: break-word;
}

/* Blog Container with TOC */
.blog-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  width: 100%;
}

/* Table of Contents */
.toc {
  flex: 0 0 250px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin: 0.3rem 0;
}

.toc li.h1 a { 
  font-weight: bold; 
  color: #0077ff; 
}

.toc li.h2 a { 
  padding-left: 10px; 
  font-size: 0.95rem; 
  color: #333; 
}

.toc li.h3 a { 
  padding-left: 20px; 
  font-size: 0.9rem; 
  color: #555; 
}

.toc a {
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
  color: #0077ff;
  word-wrap: break-word;
}

.toc a:hover {
  color: #0056cc;
  text-decoration: underline;
}

/* Table Styling */
.blog-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  /* border: 1px solid #ddd; */
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-body th {
  background-color: #f4f6f8;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #ddd;
  color: #222;
}

.blog-body td {
  padding: 12px 14px;
  border: 1px solid #eee;
  color: #444;
  vertical-align: top;
  word-wrap: break-word;
}

.blog-body tr:nth-child(even) {
  background-color: #fafafa;
}

.blog-body tr:hover {
  background-color: #f1f7ff;
  transition: background-color 0.2s ease-in-out;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .blog-body {
    padding: 1.5rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .header {
    padding: 1.5rem 0.5rem;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .blog-section {
    padding: 2rem 3%;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  
  .blog-img {
    height: 200px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .blog-title {
    font-size: 1rem;
  }
  
  .blog-meta {
    font-size: 0.85rem;
  }
  
  .blog-link {
    font-size: 0.9rem;
  }
  
  .blog-container {
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 3%;
  }
  
  .blog-content-section {
    padding: 0;
    box-shadow: none;
    margin: 2rem 0;
  }
  
  .blog-body {
    padding: 1rem;
  }
  
  .blog-body h1 {
    font-size: 24px;
  }
  
  .blog-body h2 {
    font-size: 20px;
  }
  
  .blog-body h3 {
    font-size: 18px;
  }
  
  .blog-body p {
    font-size: 15px;
  }
  
  .blog-body ul,
  .blog-body ol {
    margin-left: 1rem;
  }
  
  .blog-body table {
    font-size: 0.85rem;
  }
  
  .blog-body th,
  .blog-body td {
    padding: 8px 10px;
  }
  
  .footer {
    font-size: 0.8rem;
    padding: 1.5rem 1rem;
  }
  
  .pagination {
    gap: 0.5rem;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .blog-section {
    padding: 3.5rem 2%;
            width: 75%;
        margin: 0 auto;
  }
  
  .blog-img {
    height: 160px;
  }
  
  .header h1 {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .blog-body {
    padding: 0.8rem;
  }
  
  .blog-body p {
    font-size: 14px;
  }
  
  .blog-body h1 {
    font-size: 20px;
  }
  
  .blog-body h2 {
    font-size: 18px;
  }
  
  .blog-body h3 {
    font-size: 16px;
  }
  
  .blog-body ul,
  .blog-body ol {
    margin-left: 0.8rem;
  }
  
  .blog-body table {
    font-size: 0.8rem;
  }
  
  .blog-body th,
  .blog-body td {
    padding: 6px 8px;
    white-space: nowrap;
  }
  
  .pagination {
    gap: 0.4rem;
  }
  
  .page-number,
  .page-arrow {
    padding: 5px 8px;
    font-size: 0.9rem;
  }
  
  .footer {
    font-size: 0.75rem;
  }
}

/* TOC Mobile Hide */
@media (max-width: 900px) {
  .blog-container {
    flex-direction: column;
  }

  .toc {
    display: none;
    position: relative;
    top: 0;
    width: 100%;
    margin-bottom: 1.5rem;
  }
} 