/*
--- 01 TYPOGRAPHY

- Font Size (px)
11.11 / 13.33 / 16 / 19.2 / 23.04 / 27.65 / 33.18 / 39.81 / 47.78

- Font Weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line Heights
paragraph default: 1.5

--- 02 COLORS

- Primary: #467ff7
- Tints: #6b99f9, #90b2fa, #b5ccfc, #dae5fd, #edf2fe
- Shades: #3866c6, #2a4c94, #1c3363, #0e1931, #070d19
- Accents:
- Greys: #343a40
- link: #4f46e5

--- 05 SHADOWS

--- 06 BORDER-RADIUS

--- 07 WHITESPACE

- Spacing System (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

*/

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

html {
  /* 10 px / 16px = 62.5 */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;
  /* overflow-x: hidden; */
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: #343a40;
  line-height: 1.5;
  font-weight: 400;
  font-size: 1.8rem;
  /* overflow-x: hidden; */
}

.post ul, ol {
  padding-left: 20px; /* Adjust value as needed */
}

ion-icon {
  pointer-events: none;
}

li {
  margin-bottom: 0.4rem; /* Add spacing between list items */
}

/* last li in a list should not have margin-bottom */
li:last-child {
  margin-bottom: 2rem;
}

.outer-container {
  padding: 2.4rem;
}

.main-container {
  max-width: 120rem;
  margin: 0 auto;
}

h1 {
  margin: 4.8rem 0 1.8rem 0;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.15;
  /* letter-spacing: -0.022em; */
}

h2 {
  margin: 4.8rem 0 1.8rem 0;
  font-size: 3.3rem;
  font-weight: 700;
  line-height: 1.15;
}

h3 {
  margin: 4.8rem 0 1.8rem 0;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
}

h4 {
  margin: 4.8rem 0 1.8rem 0;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.15;
}

h5 {
  margin: 4.8rem 0 1.8rem 0;
  font-size: 1.92rem;
  font-weight: 600;
  line-height: 1.15;
}

h6 {
  margin: 4.8rem 0 1.8rem 0;
  font-size: 1.92rem;
  font-weight: 600;
  line-height: 1.15;
}

p {
  margin-bottom: 2rem;
}

/* --------- Main Header --------- */

.header-outer-container {
  background-color: #f9f9fe;
  margin-bottom: 4rem;
  padding: 0 2.4rem;
  position: relative;
  /* position: sticky;
  top: 0;
  z-index: 999; */
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 8rem;
}

.logo {
  width: 30rem;
}

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.main-nav-list li:last-child {
  margin-bottom: auto;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: #bebebe;
  font-size: 1.6rem;
  font-weight: 500;
  transition: all 0.1s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #2a4c94;
  border-bottom: 2px solid #4f46e5;
  padding-bottom: 2px;
}

/* MOBILE */

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #467ff7;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 3rem;
  /* z-index: 999; */
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-overlay.active {
  display: block;
}

.mobile-sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 20px;
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 30px;
}

.mobile-nav-link:link,
.mobile-nav-link:visited {
  padding: 16px 0;
  text-decoration: none;
  color: #467ff7;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}

.mobile-nav-link:first-child {
  border-top: 1px solid #e5e7eb;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background-color: #f3f4f6;
}

.mobile-categories {
  display: none;
}

.mobile-categories-title {
  font-size: 16px;
  font-weight: 600;
  background-color: #3866c6;
  color: white;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/**************************/
/* POSTS LIST IN MAIN PAGE*/
/**************************/

.posts-aside-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  column-gap: 6.4rem;
  align-items: start;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.latest-text,
.categories-title {
  margin: 0.8rem 0;
}

.post-card {
  padding: 1.5rem 0;
  border-bottom: 0.1rem solid #e5e7eb;
}

/* .post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
} */

.post-category-text {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #edf2fe;
  color: #2a4c94;
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: 0.4rem;
  margin-bottom: 0.4rem;
}

.post-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

.post-link:link,
.post-link:visited {
  display: inline-block;
  text-decoration: none;
  color: #2a4c94;
  transition: all 0.1s;
}

.post-link:hover,
.post-link:active {
  color: #467ff7;
}

.post-excerpt {
  color: #4b5563;
  font-size: 1.6rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.post-date {
  display: block;
  font-size: 1.4rem;
  color: #9ca3af;
  margin-bottom: 1.2rem;
}

.post-date::before {
  content: "🕒 ";
}

.eop {
  margin-top: 10rem;
}

/* .post-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
} */

/* 
article {
  padding: 0 50px;
}
*/

/**************************/
/* CATEGORY RELATED POSTS */
/**************************/

.category-text {
  margin-top: 1.6rem;
  margin-bottom: 4.8rem;
}

/**************************/
/* CATEGORIES SIDEBAR */
/**************************/

.section-categories {
  padding: 2.4rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #467ff7;
  margin-bottom: 2.4rem;
}

.categories-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid #e5e7eb;
}

.categories-list {
  list-style: none;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item a:link,
.category-item a:visited {
  color: #343a40;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.category-item a:hover,
.category-item a:active {
  color: #467ff7;
}

.category-count {
  color: #9ca3af;
  font-size: 1.4rem;
}

/**************************/
/* ABOUT US */
/**************************/

.about-us {
  background-color: #f3f4f9;
  padding: 2rem 3rem;
  /* color: #467ff7; */
}

.feature-icon {
  fill: #467ff7; /* use stroke for outline svg */
  height: 3.2rem;
  width: 3.2rem;
  margin-bottom: 1rem;
}

/**************************/
/* CONTACT US */
/**************************/

.contactus {
  padding: 2.4rem 0 4.8rem;
}

.cta {
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 1.8rem 3.2rem rgba(0, 0, 0, 0.15);
  border-radius: 11px;

  /* background-image: linear-gradient(to right bottom, #467ff7, #3866c6); */
  overflow: hidden;
  padding: 3.2rem 6.4rem 4.8rem 6.4rem;
  /* color: #fff; */
}

.cta .heading-secondary {
  /* color: #343a40; */
  margin-top: 2.4rem;
  margin-bottom: 1.4rem;
}

.cta-text {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 3.2rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.cta-form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.8rem;
  font-family: inherit;
  /* color: inherit; */
  border: none;
  background-color: #edf2fe;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: #aaa;
}

/* .cta *:focus {
  outline: none;
  box-shadow: 0 0 0 0.8rem rgba(233, 245, 253, 0.6);
} */

.btn,
.btn:link,
.btn:visited {
  display: inline-block;

  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 6px;

  /* Only necessary for .btn */
  border: none;
  cursor: pointer;
  font-family: inherit;

  transition: all 0.3s;
}

.btn--form {
  background-color: #1c3363;
  color: #edf2fe;
  align-self: flex-start;
  padding: 1.2rem;
}

.btn--form:hover {
  background-color: #edf2fe;
  color: #1c3363;
}

/**************************/
/* INSIDE THE POSTS */
/**************************/

.post-container {
  max-width: 90rem;
}

.figure img {
  /* width: 100%; */
  display: block;
  margin: 2rem auto;
  /* margin: auto; */
}

.figure figcaption {
  color: #bebebe;
  text-align: center;
  margin-bottom: 2rem;
}

strong {
  color: #343a40;
  font-weight: 500;
}

/* li {
  padding-left: 0.8rem;
} */

.post-title-in {
  margin-top: 0.8rem;
  margin-bottom: 2.4rem;
}

#markdown-toc::before {
  content: "Table Of Contents";
  font-weight: 700;
  font-size: 2.4rem;
}

#markdown-toc {
  border-left: 4px solid #467ff7;
  padding-left: 2rem;
  margin: 1.5rem 0;
}

#markdown-toc li {
  list-style: none;
  margin: 0.25rem 0;
}

#markdown-toc a {
  text-decoration: none;
  color: #0969da;
}

#markdown-toc ul {
  margin-left: 1rem;
}

pre.highlight {
  font-family: "monospace";
  font-size: 1.6rem;
  background-color: #f7f7f7;
  margin: 2rem 0;
  border: 1px solid #cfcfcf;
  padding: 1rem;
}

table {
  border-collapse: collapse;
  margin: 1.5rem 0;
  /* width: 100%; */
}

table th,
table td {
  padding: 0.8rem 1.2rem;
  border: 1px solid #ddd;
}

table thead th {
  background-color: #f6f8fa;
  font-weight: 600;
}

table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

table tbody tr:hover {
  background-color: #f1f5f9;
}

/* Admonitions */
.admonition {
  border-left: 4px solid;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  background: #f8f9fa;
}

.admonition-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.admonition.note {
  border-color: #0969da;
}

.admonition.warning {
  border-color: #d1242f;
  background: #fff5f5;
}

.admonition.tip {
  border-color: #1a7f37;
  background: #f0fff4;
}

.related {
  list-style: none;
  display: flex;
  gap: 3rem;
  /* border: 2px solid #edf2fe; */
  justify-content: center;
  align-items: stretch;
}

.related-post {
  border: 2px solid #dae5fd;
  padding: 2rem;
  border-radius: 6px;
}

.related-link {
  display: block;
  margin-bottom: 1rem;
}

/**************************/
/* FOOTER */
/**************************/

.footer-outer-container {
  background-color: #1c3363;
  margin-top: 4rem;
  padding: 6rem 2.4rem;
}

.footer {
  color: #fff;
}

.grid-3-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.3fr 0.5fr;
  column-gap: 3.2rem;
  align-content: center;
}

/* .grid-4-cols div,
.grid-4-cols nav {
  border: #fff 1px solid;
} */

.logo-col {
  display: flex;
  flex-direction: column;
  padding-right: 6.4rem;
}

.footer-logo {
  display: block;
  max-width: 30rem;
  margin-bottom: 1.8rem;
}

.copyright {
  font-size: 1.4rem;
  color: #edf2fe;
  line-height: 1.6;
  /* margin-top: auto; */
  padding-top: 1.8rem;
  border-top: #90b2fa 1px solid;
}

.footer-heading {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  /* border-bottom: #fff 1px solid; */
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 1.6rem;
  color: #fff;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: #b5ccfc;
}

.mail-id {
  text-decoration: none;
  color: #fff;
  font-style: normal;
  font-weight: 400;
  font-size: 1.6rem;
}

.follow-us-col {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.footer-social-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
}

.social-icon {
  height: 2.4rem;
  width: 2.4rem;
}

/**************************/
/* IMAGE ZOOM IN */
/**************************/

/* Cursor hint */
.zoomable img {
  cursor: grab;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* Animation */
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.active {
  opacity: 1;
}

/* Zoom animation */
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
}

.lightbox.active img {
  transform: scale(1.3);
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  font-size: 3.2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
