/* ==========================================================================
   কামলা ওয়ার্কস্পেস - Main Stylesheet
   SiyamRupali Font + Bangla Typography
   ========================================================================== */

/* Font Face */
@font-face {
  font-family: "SiyamRupali";
  src: url('../SiyamRupali.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ==========================================================================
   Reset
   ========================================================================== */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================================
   Base Typography
   ========================================================================== */

body {
  font-family: "SiyamRupali", Georgia, Times, "Times New Roman", serif;
  color: #313130;
  font-size: 16px;
  line-height: 24px;
  background-color: #ebebeb;
}

p {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 1em;
}

li {
  font-size: 16px;
  line-height: 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  color: #313130;
}
h1 { font-size: 36px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

/* Links */

a {
  color: #222;
  text-decoration: none;
  border-bottom: 1px dotted #999;
}
a:hover {
  color: #000;
  border-bottom-style: solid;
}
a:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Code */

tt, code, kbd, samp, pre {
  font-family: monospace;
}
pre {
  overflow-x: auto;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 3px;
}
p code, li code {
  font-size: 16px;
  color: #313130;
  white-space: nowrap;
  margin: 0 2px;
  padding: 0 5px;
  border: 1px solid #ddd;
  background-color: #fafafa;
  border-radius: 3px;
}

/* Blockquote */

blockquote {
  padding-left: 20px;
  padding-right: 20px;
  border-left: 6px solid #3498db;
  margin: 1.5em 0;
}
blockquote p {
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 24px;
}

/* Tables */

table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
}
thead tr:first-child td {
  border-bottom: 2px solid #ddd;
}
th {
  padding: 12px;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-weight: bold;
  text-align: left;
  background-color: #f5f5f5;
  border-bottom: 1px solid #bbb;
}
td {
  border-bottom: 1px solid #ddd;
  padding: 12px;
}
tr, td, th {
  vertical-align: middle;
}
tbody tr:hover > td, tbody tr:hover > th {
  background-color: #e8e8e8;
}

/* Horizontal rules */

hr {
  display: block;
  position: relative;
  margin: 2em 0;
  padding: 0;
  height: 5px;
  border: 0;
}
hr:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 1px;
  background: #ddd;
}

/* Images */

img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

/* ==========================================================================
   Badges (Pill-shaped, matching template)
   ========================================================================== */

.badge {
  display: inline-block;
  background: #000;
  border-radius: 2em;
  color: #fff;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: .25em 1em;
  text-align: center;
}

.badge.inverse {
  background: #fff;
  color: #313130;
}

.badge.info {
  background: #3498db;
  color: #fff;
}

.badge.danger {
  background: #e74c3c;
  color: #fff;
}

.badge.warning {
  background: #f1c40f;
  color: #000;
}

.badge.success {
  background: #2ecc71;
  color: #000;
}

/* Badges Container */
.badges {
  margin: 1em 0;
  line-height: 2.5;
}

/* ==========================================================================
   Notices (Solid colored boxes, matching template)
   ========================================================================== */

.notice {
  position: relative;
  padding: 1.5em;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7142857143;
  margin-bottom: 2.4375rem;
  color: #fff;
  background-color: #000;
  border-radius: 3px;
}
.notice a {
  color: #fff;
  border-bottom: 1px dotted #fff;
}

.notice-inverse {
  position: relative;
  padding: 1.5em;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7142857143;
  margin-bottom: 2.4375rem;
  color: #313130;
  background-color: #fff;
  border-radius: 3px;
}
.notice-inverse a {
  color: #313130;
}

.notice-info {
  position: relative;
  padding: 1.5em;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7142857143;
  margin-bottom: 2.4375rem;
  color: #fff;
  background-color: #3498db;
  border-radius: 3px;
}
.notice-info a {
  color: #fff;
  border-bottom: 1px dotted #fff;
}

.notice-warning {
  position: relative;
  padding: 1.5em;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7142857143;
  color: #fff;
  background-color: #f1c40f;
  border-radius: 3px;
}
.notice-warning a {
  color: #fff;
  border-bottom: 1px dotted #fff;
}

.notice-success {
  position: relative;
  padding: 1.5em;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7142857143;
  margin-bottom: 2.4375rem;
  color: #fff;
  background-color: #2ecc71;
  border-radius: 3px;
}
.notice-success a {
  color: #fff;
  border-bottom: 1px dotted #fff;
}

.notice-danger {
  position: relative;
  padding: 1.5em;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7142857143;
  margin-bottom: 2.4375rem;
  color: #fff;
  background-color: #e74c3c;
  border-radius: 3px;
}
.notice-danger a {
  color: #fff;
  border-bottom: 1px dotted #fff;
}

/* ==========================================================================
   Layout - Masthead
   ========================================================================== */

#masthead {
  background-color: #fff;
  padding: 0 20px;
  z-index: 5;
  border-bottom: 1px solid #ddd;
}
#masthead .inner-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  padding: 12px 0;
  height: 60px;
  text-decoration: none;
  color: #000;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  border-bottom: none;
}
.site-title:hover {
  color: #000;
  border-bottom: none;
}

/* ==========================================================================
   Layout - Menus
   ========================================================================== */

.menu li {
  float: left;
}
.menu li a {
  position: relative;
  display: block;
  margin-right: 20px;
  padding: 18px 0;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #000;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: none;
}
.menu li a:before,
.menu li a:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  transition: width 0.3s;
}
.menu li a:before {
  width: 100%;
  background: transparent;
}
.menu li a:after {
  width: 0;
  background: #000;
}
.menu li a:hover:after,
.menu li a:active:after {
  width: 100%;
}

.menu-gap {
  margin-left: 2em;
}

/* ==========================================================================
   Layout - Page Wrapper
   ========================================================================== */

#page-wrapper {
  padding: 0 20px;
  background: #fff;
}

#main {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 0 60px 0;
}

.page-title {
  margin-bottom: 30px;
}
.page-title h1 {
  margin: 0;
}

.page-content h2 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}
.page-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.page-content img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}
.page-content ul,
.page-content ol {
  padding-left: 25px;
  margin-bottom: 1em;
  list-style: disc;
}
.page-content li {
  margin-bottom: 0.3em;
}

/* ==========================================================================
   Layout - Footer
   ========================================================================== */

#site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}
#site-footer .copyright {
  font-size: 12px;
  color: #999;
}
#site-footer .copyright a {
  color: #999;
  text-decoration: none;
}
#site-footer .bottom-menu {
  margin-bottom: 10px;
}
#site-footer .bottom-menu ul {
  display: flex;
  gap: 15px;
}
#site-footer .bottom-menu a {
  color: #999;
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
}
#site-footer .bottom-menu a:hover {
  color: #000;
}

/* ==========================================================================
   Download Button
   ========================================================================== */

.btn-download {
  display: inline-block;
  padding: 10px 24px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  margin: 10px 0;
  border-bottom: none;
}
.btn-download:hover {
  background-color: #2980b9;
  color: #fff;
}

/* ==========================================================================
   TOC (Table of Contents)
   ========================================================================== */

.toc {
  margin-left: -1.618em;
  margin-right: -1.618em;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

.toc ul {
  margin-top: 1.618em;
  margin-bottom: 1.618em;
  border: 1px solid #ddd;
  border-radius: 3px;
  list-style: none;
  padding: 0;
}

.toc li {
  font-size: 14px;
  line-height: 1.1428571429;
  margin-bottom: 0;
  border-bottom: 1px solid #ddd;
}

.toc li > a {
  display: block;
  padding: 7px 1.618rem;
  color: #313130;
  border-left: 2px solid transparent;
  text-decoration: none;
}

.toc li > a:hover,
.toc li > a:focus {
  background: #dfdfdf;
}

.toc h6 {
  margin: 0;
  padding: 7px 1.618rem;
  background: #e1e1e1;
}

.toc h6 a {
  color: #313130;
}

/* ==========================================================================
   Sliding Menu (Hamburger Button)
   ========================================================================== */

.sliding-menu-button {
  position: fixed;
  top: 1.618em;
  right: 1.618em;
  display: none;
  width: 60px;
  height: 60px;
  background: #000;
  outline: 0;
  padding: 0;
  border: 2.5px solid transparent;
  cursor: pointer;
  z-index: 20;
  box-sizing: border-box;
  transition: all 500ms cubic-bezier(0.86, 0.01, 0.77, 0.78);
}
.sliding-menu-button:hover {
  background: #000;
}
.sliding-menu-button.slide {
  background: #e74c3c;
  transform: translateX(0);
}

.sliding-menu-content {
  position: fixed;
  top: 0;
  right: 0;
  padding: 1.375em 0;
  display: none;
  height: 100%;
  width: 100%;
  transform: translateX(100%);
  transition: all 500ms cubic-bezier(0.86, 0.01, 0.77, 0.78);
  background: #000;
  z-index: 20;
  overflow-y: auto;
  overflow-x: hidden;
}
.sliding-menu-content.is-visible {
  display: block;
  transform: translateX(0);
}
.sliding-menu-content h5 {
  margin: 0 20% 0 10%;
  color: #fff;
  font-size: 14px;
  line-height: 1.7142857143;
  margin-bottom: 24px;
}
.sliding-menu-content h5 span {
  display: block;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 0;
  font-family: "SiyamRupali", Georgia, Times, "Times New Roman", serif;
  text-transform: uppercase;
  font-weight: 400;
}
.sliding-menu-content ul {
  margin: 0 10%;
  list-style: none;
}
.sliding-menu-content li {
  display: block;
  position: relative;
  padding-bottom: 1em;
  min-height: 70px;
}
.sliding-menu-content .menu-item a {
  display: block;
  color: #fff;
  text-decoration: none;
  border-bottom: none;
}
.sliding-menu-content .menu-item .title {
  display: block;
  margin-left: 0;
  font-family: "SiyamRupali", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 0;
  font-weight: 700;
}
.sliding-menu-content .menu-item .excerpt {
  margin-top: 0;
  margin-left: 0;
  font-size: 14px;
  line-height: 1.7142857143;
  margin-bottom: 0;
}

.menu-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  background: rgba(0,0,0,0.5);
  z-index: 4;
}
.menu-screen.is-visible {
  display: block;
}
.menu-screen.is-visible:hover {
  cursor: pointer;
}

/* Nav Lines (Hamburger Icon) */
.nav-lines {
  display: inline-block;
  width: 30px;
  height: 4.2857142857px;
  background: #fff;
  transition: .3s;
  position: relative;
}
.nav-lines:before,
.nav-lines:after {
  display: inline-block;
  width: 30px;
  height: 4.2857142857px;
  background: #fff;
  transition: .3s;
  position: absolute;
  left: 0;
  content: '';
  transform-origin: 2.1428571429px center;
}
.nav-lines:before {
  top: 7.5px;
}
.nav-lines:after {
  top: -7.5px;
}

/* Lines Button Hover */
.lines-button:hover .nav-lines:before {
  top: 8.5714285714px;
}
.lines-button:hover .nav-lines:after {
  top: -8.5714285714px;
}

/* Lines Button X2 Animation */
.lines-button.x2 .nav-lines {
  transition: background .3s .5s ease;
}
.lines-button.x2 .nav-lines:before,
.lines-button.x2 .nav-lines:after {
  transform-origin: 50% 50%;
  transition: top .3s .6s ease, transform .3s ease;
}
.lines-button.x2.close .nav-lines {
  transition: background .3s 0s ease;
  background: transparent;
}
.lines-button.x2.close .nav-lines:before,
.lines-button.x2.close .nav-lines:after {
  transition: top .3s ease, transform .3s .5s ease;
  top: 0;
  width: 30px;
}
.lines-button.x2.close .nav-lines:before {
  transform: rotate3d(0, 0, 1, 45deg);
}
.lines-button.x2.close .nav-lines:after {
  transform: rotate3d(0, 0, 1, -45deg);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  #masthead .inner-wrap {
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
  }
  .menu li a {
    font-size: 14px;
    padding: 10px 0;
    margin-right: 12px;
  }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}

@media (max-width: 900px) {
  .top-menu {
    display: none !important;
  }
  .sliding-menu-button {
    display: block !important;
  }
}

@media (min-width: 901px) {
  .sliding-menu-button {
    display: none !important;
  }
  .top-menu {
    display: block !important;
  }
}

/* ==========================================================================
   Transitions
   ========================================================================== */

b, i, strong, em, blockquote, p, q, span, img, h1, h2, header, input, a, tr, td {
  transition: color 0.2s ease-out, opacity 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out;
}
