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

/* Hide scrollbar for all browsers */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #3c4043;
  background: #f5f5f5;
  padding-bottom: 100px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-navigation a {
  color: #3c4043;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s;
}

.main-navigation a:hover {
  color: #1e73be;
}

/* Layout with Sidebars */
.main-wrapper {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 30px;
}

/* Left Sidebar - Ads */
.left-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Right Sidebar - Ads */
.right-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Main Content Area */
.main-content {
  background: #fff;
  padding: 40px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Ad Blocks */
.ad-block {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 5px;
}

.ad-block.large {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
}

.ad-block.medium {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
}

.ad-block.small {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
}

/* In-Content Ad */
.in-content-ad {
  background: #f9f9f9;
  border: 2px dashed #ddd;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  border-radius: 5px;
}

.in-content-ad.video-ad {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  position: relative;
}

.video-placeholder {
  width: 100%;
  max-width: 640px;
  height: 360px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 18px;
}

/* Sticky Footer */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid #e0e0e0;
  padding: 15px 20px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-footer-ad {
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  border-radius: 3px;
}

.close-sticky {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #e74c3c;
  color: #fff;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* Page Toggle */
.page-toggle {
  text-align: center;
  margin-bottom: 30px;
}

.page-toggle button {
  background: #1e73be;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  margin: 3px;
  border-radius: 3px;
  transition: background 0.3s;
}

.page-toggle button:hover {
  background: #0d4d7d;
}

.page-toggle button.active {
  background: #0d4d7d;
}

/* Blog Listing */
.blog-item {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-meta {
  font-size: 14px;
  color: #767676;
  margin-bottom: 15px;
}

.blog-meta span {
  margin-right: 15px;
}

.blog-item h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.blog-item h2 a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-item h2 a:hover {
  color: #1e73be;
}

.blog-excerpt {
  font-size: 17px;
  color: #3c4043;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  color: #1e73be;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s;
}

.read-more:hover {
  color: #0d4d7d;
}

/* Blog Detail */
.blog-detail-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.blog-detail-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000;
}

.blog-detail-meta {
  font-size: 14px;
  color: #767676;
}

/* Similar News Section */
.similar-news-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.similar-news-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #000;
}

.similar-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.similar-news-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.similar-news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.similar-news-content {
  padding: 30px;
}

.similar-news-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 15px 0;
  line-height: 1.3;
}

.similar-news-content h3 a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.similar-news-content h3 a:hover {
  color: #1e73be;
}

.similar-news-content p {
  font-size: 15px;
  color: #3c4043;
  line-height: 1.6;
  margin-bottom: 15px;
}

.blog-detail-content {
  font-size: 17px;
  line-height: 1.7;
  color: #3c4043;
}

.blog-detail-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #000;
}

.blog-detail-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 15px;
  color: #000;
}

.blog-detail-content p {
  margin-bottom: 25px;
}

.blog-detail-content ul,
.blog-detail-content ol {
  margin: 25px 0;
  padding-left: 30px;
}

.blog-detail-content li {
  margin-bottom: 10px;
}

/* Static Pages */
.static-page h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #000;
}

.static-page h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #000;
}

.static-page h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 15px;
  color: #000;
}

.static-page p {
  margin-bottom: 20px;
}

.static-page ul {
  margin: 20px 0;
  padding-left: 30px;
}

.static-page li {
  margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
  margin-top: 40px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #000;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e73be;
}

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

.submit-btn {
  background: #1e73be;
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #0d4d7d;
}

.contact-info {
  margin-top: 50px;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 3px;
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info p {
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
  .main-wrapper {
    grid-template-columns: 250px 1fr 250px;
    gap: 20px;
  }

  .ad-block.large {
    min-height: 400px;
  }
}

@media (max-width: 992px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }

  .left-sidebar,
  .right-sidebar {
    display: none;
  }

  .main-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    margin: 20px auto;
  }

  .site-header {
    padding: 15px 0;
  }

  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  .main-navigation {
    display: none;
  }

  .blog-detail-title {
    font-size: 28px;
  }

  .page-toggle button {
    font-size: 12px;
    padding: 8px 12px;
  }

  .sticky-footer-ad {
    height: 50px;
    font-size: 14px;
  }

  .similar-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .similar-news-title {
    font-size: 24px;
  }

  .similar-news-content {
    padding: 20px;
  }

  .similar-news-content h3 {
    font-size: 18px;
  }
}
