/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {margin: 0;             
  padding: 0;
  overflow-x: hidden;
}
/* Top header container */
.logo-container {
  display: flex;
  align-items: center;
  padding: 12px 30px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Logo */
.logo {
  height: 55px;
  margin-right: 15px;
}

/* Company name styling */
.company-name {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a237e; /* professional deep blue */
  letter-spacing: 0.5px;
}
/* Section Titles */
.section-title,
h1,h2 {
  color: #002147;
  font-size: 20px;
  text-transform: uppercase;
}
p {
  color: black;
  font-size: 18px;
}

/* Featurette */


/* Fullscreen modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

/* Show modal */
.modal.show {
  opacity: 1;
  pointer-events: all;
}

/* Image inside modal with animation */
.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  transform: scale(0.7);
  transition: transform 0.4s ease;
}

.modal.show img {
  transform: scale(1);
}

/* Close button */
.modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}
 
 
.blog-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  margin-top: 100px;
}

.blog-section h1 {
  color: #007bff;
  margin-bottom: 10px;
  font-size: 2rem;
}

.blog-section h2 {
  color: #007bff;
  margin-top: 25px;
}

.blog-section p {
  line-height: 1.7;
  margin-bottom: 15px;
}
   
/* Badge Styles */
.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
}

.badge.trending {
  background: #e63946; /* red */
}

.badge.hot {
  background: #ff9800; /* orange */
}

.badge.new {
  background: #4caf50; /* green */
}
/* Title tag styles */
.tag {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: bold;
  color: #fff;
}

.tag.trending {
  background: #e63946; /* red */
}

.tag.hot {
  background: #ff9800; /* orange */
}

.tag.new {
  background: #4caf50; /* green */
}
.book-page {
        background-color: #fffdfa; /* cream paper */
        width: 100%;
        padding: 50px 60px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        line-height: 1.8;
        border-radius: 8px;
    }
    .chapter-title {
        text-align: center;
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 25px;
        color: #333;
    }
    .section-title {
        font-size: 22px;
        font-weight: bold;
        margin-top: 30px;
        margin-bottom: 15px;
        border-bottom: 1px dotted #c2b280;
        padding-bottom: 5px;
    }
    .text {
        font-size: 18px;
        margin-bottom: 15px;
        color: #333;
    }
    ul {
        margin-left: 20px;
        margin-bottom: 15px;
    }
    li {
        font-size: 18px;
        margin-bottom: 10px;
    }
    pre {
        background-color: #f4f1e6;
        padding: 15px;
        border-left: 4px solid #c2b280;
        overflow-x: auto;
        border-radius: 4px;
        font-family: 'Courier New', monospace;
        margin-bottom: 20px;
    }
    


    @media (max-width: 768px) {

  /* ===============================
     GLOBAL OVERFLOW FIX
  =============================== */
  html, body {
    width: 100%;
    overflow-x: hidden;   /* 🔥 main fix */
  }

  * {
    box-sizing: border-box;
  }

  /* ===============================
     HEADER / LOGO SECTION
  =============================== */
  .logo-container {
    flex-direction: row;
    align-items: center;
    padding: 10px 15px;
    width: 80%;
    overflow-x: hidden;
  }

  .logo {
    height: 40px;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .company-name {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* ===============================
     NAVBAR LIST FIX (if exists)
  =============================== */
  header,
  nav,
  .navbar,
  .navbar-collapse,
  .navbar-nav {
    width: 100%;
    overflow-x: hidden;
  }

  .navbar-nav {
    align-items: flex-start;
  }

  .navbar-nav li {
    width: 100%;
  }

  .navbar-nav a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  /* ===============================
     SECTION TITLES & TEXT
  =============================== */
  h1, h2, .section-title {
    font-size: 18px;
    text-align: center;
  }

  p,
  .text,
  li {
    font-size: 15px;
    line-height: 1.6;
  }

  /* ===============================
     BLOG SECTION
  =============================== */
  .blog-section {
    margin: 80px 10px 30px;
    padding: 15px;
    width: calc(100% - 20px);
  }

  .blog-section h1 {
    font-size: 1.5rem;
  }

  .blog-section h2 {
    font-size: 1.2rem;
  }

  /* ===============================
     MODAL FIX (no overflow)
  =============================== */
  .modal img {
    max-width: 95%;
    max-height: 80%;
  }

  .modal .close-btn {
    top: 15px;
    right: 15px;
    font-size: 26px;
  }

  /* ===============================
     BOOK PAGE / CONTENT
  =============================== */
  .book-page {
    padding: 20px 15px;
    width: 100%;
    overflow-x: hidden;
  }

  .chapter-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  /* ===============================
     CODE BLOCK
  =============================== */
  pre {
    font-size: 14px;
    overflow-x: auto; /* only code scroll */
  }

  /* ===============================
     BADGES & TAGS
  =============================== */
  .badge,
  .tag {
    font-size: 0.7rem;
    padding: 4px 7px;
  }
}
