:root {
  --bg: #0b1220;
  --panel: #0f1b33;
  --text: #e8eefc;
  --muted: #a9b6dd;
  --brand: #5aa9ff;
  --border: rgba(255, 255, 255, .10);
  --shadow: 0 12px 30px rgba(0, 0, 0, .35);
  --radius: 16px;
  --primary-blue: #174EA6;
  --accent-blue: #4285F4;
  --text-dark: #202124;
  --text-secondary: #5f6368;
  --background-light: #f8f9fa;
  --border-light: #e8eaed;
  --highlight-yellow: #fbbc04;
  --white: #ffffff;
  --success: #27ae60;
  --danger: #e74c3c;
  --primary-blue: #174EA6;
  --reading-width: 85ch;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  background-color: #fff;
}

/* Left Sidebar */
.sidebar {
  width: 250px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  padding: 20px 0;
  height: 100vh;
  overflow-y: auto;
  position: fixed;
  left: 0;
  top: 120;
}

.sidebar-section {
  margin-bottom: 10px;
  padding: 8px 20px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 6px;
}

.sidebar a {
  font-size: 1.05rem;
  color: #222;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: all 0.2s;
}

.sidebar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight-yellow);
  transition: width 0.3s ease;
}

.sidebar:hover::after {
  width: 100%;
}

.sidebar a:hover {
  color: var(--accent-blue);
}

/* HEADER */

.header-container {
  background: #f5f5f5e9;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

header {
  height: 100%;
  margin: 0 auto;
  padding: 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  width: 140px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.engraved1,
.engraved2 {
  font-weight: bold;
  padding: 3px 8px;
  border: none;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: -2px;
  text-shadow: 1px 1px 0 #fff, -1px -1px 0 #c3c2c2;
}

.engraved1 {
  color: #f9f4f4;
  background-color: var(--danger);
  font-size: 25px;
}

.engraved2 {
  color: var(--text-dark);
  background-color: var(--highlight-yellow);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 23px;
}


nav ul:not(.submenu) {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  justify-content: center;
  margin-right: 25px;
}

nav>ul>li {
  position: relative;
}

.top-nav {
  text-decoration: none;
  color: rgba(6, 14, 46, 0.97);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  font-size: 1.15rem;
  transition: color 0.3s ease;
}

.top-nav:hover {
  color: var(--primary-blue);
}

.top-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight-yellow);
  transition: width 0.3s ease;
}

.top-nav:hover::after {
  width: 100%;
}

.mobile-menu-icon {
  display: none;
  font-size: 1.8rem;
  margin-right: 15px;
  cursor: pointer;
  color: var(--white);
}

/*Submenu*/

.submenu {
  width: 180px;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: absolute;
  list-style: none;
  top: 52px;
  left: -5px;
  padding: 18px 0;
  visibility: hidden;
  opacity: 0;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  z-index: 800;
  transition: all 0.3s ease;
}

nav ul li:hover .submenu {
  visibility: visible;
  opacity: 1;
  top: 52px;
  gap: 0.8rem;
}

.submenu::before {
  content: '';
  height: 0;
  width: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #fff;
  position: absolute;
  top: -12px;
  left: 20px;
}

.submenu>li>a {
  display: block;
  color: #1d2655;
  padding: 4px 6px 6px 14px;
  font-size: 1.1rem;
  margin-top: 4px;
  transition: all 0.3s ease;
  list-style: none;
  text-decoration: none;
}

.submenu>li>a:hover {
  background: #0074c7;
  color: #fff;
  transform: scale(1.1);
  padding-left: 30px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

/* Main Content */
main {
  margin-left: 270px;
  margin-top: 20px;
  flex: 1;
  padding: 20px 40px;
  max-width: 1000px;

}

.insideLink {
  color: #4b4390;
  font-weight: 700;
  text-decoration: none;
}

.insideLink:hover {
  text-decoration: underline;
}

/* Article Header */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.article-header h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  gap: 25px;
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-meta a {
  color: #0066cc;
  text-decoration: none;
}

#readingTime {
  color: var(--danger);
  font-weight: 500;
}

.article-actions {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.article-actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}

.article-actions button:hover {
  transform: scale(1.1);
}

.like {
  background-color: var(--highlight-yellow);
}

.share {
  background-color: var(--danger);
  color: white;
}

.bookmark {
  background-color: var(--accent-blue);
  color: white;
}

/* Content Section */
.art-content {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}

.art-content p {
  margin-bottom: 12px;
}

/* Section Styling */
section {
  margin-bottom: 35px;
}

section p {
  font-size: 1.2rem;
  margin-bottom: 18px;
  margin-top: 8px;
}

h2 {
  margin: 28px 10px;
  font-size: 1.7rem;
  letter-spacing: -.01em;
  color: #174EA6;
  position: relative;
}

h2::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--highlight-yellow);
  border-radius: 2px;
}

h3 {
  display: inline-block;
  font-size: 1.2rem;
  margin: 28px 10px;
  border-bottom: 2px solid #afbed4;
  padding-bottom: 2px;
}

.subheading {
  display: inline-block;
  border-bottom: 2px solid #afbed4;
  padding-bottom: 2px;
  margin-bottom: 20px;
  margin-top: 15px;
  
}

section ul {
  list-style: none;
  margin-left: 0;
}

.list {
  margin: 20px 0;
}

.list li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
}

.list li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent-blue);
  font-weight: bold;
}

.elemA{
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(59,130,246,.06));
  border: 1px solid rgba(59,130,246,.22);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .06);
}

.elemB{
  margin: 14px 0;
  padding: 18px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(114, 193, 167, 0.08), rgba(124, 191, 169, 0.03));
  border: 1px solid rgba(16,185,129,.22);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .06);
}

.elemA:hover, .elemB:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(2, 6, 23, .10);
}

.notice {
  color: var(--success);
}

/* Steps */
.step, .item {
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
}

.step-number, .item-number {
  position: absolute;
  left: 0;
  top: 5px;
  width: 28px;
  height: 28px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 17px;
}

.step strong, .item strong {
  display: block;
  color: #222;
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.step p, .item p {
  color: #555;
  line-height: 1.6;
  font-size: 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* CARD */
.recom-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.recom-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 100, 0, 0.6);
  box-shadow: 0 15px 40px rgba(255, 100, 0, 0.2);
}

.recom-card-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #ff6600, #ff0066);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}


.recom-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.recom-card:hover .recom-card-image::after {
  left: 100%;
}

.recom-card-content {
  padding: 1.2rem;
}

.recom-card-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--background-light);
}

.recom-card-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.recom-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.recom-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.icon-btn:hover {
  background: #ff0066;
}

.icon-btn a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
}

figure {
  margin: 16px 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}

.image-cont {
  margin: 10px 10px 10px 0px;
  width: 75%;
  height: 400px;
}

.image-cont1 {
  margin: 10px 10px 10px 0px;
  width: 65%;
  height: 510px;
}

.article-image {
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

figcaption {
  color: #000;
  font-size: 13px;
  margin-top: 8px;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: white;
}

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

th:first-child,
td:first-child {
  border-left: 1px solid #ddd;
}

th {
  background: #2c3e50;
  color: white;
}

tr:hover {
  background: #f5f5f5;
}

/* Term Explanations */
.term-explanations {
  margin: 45px 0;
  background-color: rgba(255, 255, 255, 0.376);

}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.215);
}

.accordion-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.accordion-title {
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  font-size: 1.2rem;
  transition: background-color 0.3s;
}

.accordion-title:hover, .accordion-title.active {
  background-color: #f5f2ef;
}

.accordion-title::after {
  content: '+';
  position: absolute;
  right: 20px;
  transition: transform 0.3s;
  font-size: 1.4rem;
}

.accordion-item.active .accordion-title::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0 2rem;
  font-size: 1.2rem;
}

.accordion-item.active .accordion-content {
  max-height: 1700px;
  padding: 2rem;
}

/* Feedback Section */
.feedback-cta {
  background: linear-gradient(135deg, #174EA6 0%, #3e6ab2 100%);
  padding: 0.3rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  width: 94%;
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
  
  .feedback-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    width: 100%;
  }
  
  .feedback-subtext {
    color: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    margin-bottom: 1.25rem;
    text-align: center;
  }

  .feedback-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
  }
  
  .feedback-button {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
  }
  
  .feedback-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
  }
  
  .button-text {
    font-weight: 600;
    font-size: 0.7rem;
  }
  
  .feedback-icon {
    width: 30px;
    height: 30px;
    opacity: 0.9;
    transition: transform 0.3s ease;
  }
  
  .feedback-button:hover .feedback-icon {
    transform: translateX(3px);
  }

  .pull-quote {
    font-size: 1.25rem;
    color: #1f2f40;
    margin: 2rem 0;
    padding: 1.3rem;
    border-left: 5px solid var(--success);
    background: white;
    font-style: italic;
    box-shadow: 0 4px 12px rgba(17, 16, 16, 0.2);
  }

  .hashtags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    color: #2f5072;
    font-size: 1.3rem;
    margin-top: 15px;
    font-weight: 500;
    width: 90%;
  }

@media (max-width: 1000px) {
  .image-cont {
    width: 65%;
    height: 250px;
  }

  .image-cont1 {
    width: 70%;
    height: 400px;
  }

  .sidebar {
    width: 210px;
  }

  table {
    font-size: 1.1rem;
  }

  main {
    margin-left: 210px;
    margin-top: 20px;
    padding: 20px;
    max-width: 1000px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }

  .accordion-content {
    font-size: 1.1rem;
  }

  .feedback-cta {
    padding: 0.5rem 0.7rem;
    width: 97%;
    margin: 20px auto;
  }
    
    .feedback-title {
      font-size: 0.7rem;
      text-align: center;
    }
    
    .feedback-subtext {
      font-size: 0.5rem;
    }

    .feedback-action {
      padding: 0.4rem 0.7rem;
    }
    
}

@media (max-width: 700px) {
  .header-container {
    padding: 0;
    margin: 0;
  }

  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 0;
  }

  .logo {
    width: 120px;
    flex-shrink: 0;
  }

  .engraved1 {
    font-size: 18px;
  }

  .engraved2 {
    font-size: 16px;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
  }

  nav ul:not(.submenu) {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.nav-active {
    display: flex;
  }


  .top-nav {
    padding: 12px 15px;
    font-size: 1rem;
    width: 100%;
    margin-left: 25px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    display: block;
  }

  .last {
    border-bottom: none;
  }

  .top-nav::after {
    display: none;
  }

  .mobile-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 10px 0 0;
    cursor: pointer;
    color: #000;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 5px;
  }

  .submenu {
    width: 100%;
    display: none;
    flex-direction: column;
    position: static;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    top: auto;
    left: auto;
  }

  .submenu::before {
    display: none;
  }

  .submenu.show {
    display: flex;
  }

  .submenu>li>a {
    padding: 8px 10px;
    margin-left: 20px;
    font-size: 0.95rem;
    text-align: left;
    border-bottom: none;
  }


  .submenu>li>a:hover {
    background: #0074c7;
    color: #fff;
    transform: none;
    padding-left: 30px;
    box-shadow: none;
  }

  .unfold {
    cursor: pointer;
    position: relative;
  }

  .unfold::after {
    content: ' ▼';
    font-size: 0.8rem;
    margin-left: 5px;
  }

  .main-container {
    margin-left: 15px;
    margin-top: 25px;
    padding: 5px;
    border-radius: 5px;
  }

  .image-cont {
    width: 98%;
    height: 200px;
  }

  .image-cont1 {
    width: 94%;
    height: 250px;
  }

  h1 {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }

  html {
    overflow-x: hidden;
  }

  table {
    min-width: 800px;
    width: 100%;
    margin: 15px 0;
    font-size: 0.9rem;
  }

  th, td {
    padding: 8px;

  }

  .sidebar {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .recom-card {
    width: 92%;
    margin: 10px auto;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  section p, .art-content p {
    font-size: 1rem;
  }
  
  h2 {
    margin: 25px 10px;
    font-size: 1.2rem;
  }

  .list li {
    padding-left: 20px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .step strong, .item strong {
    font-size: 1.1rem;
  }
  
  .step p, .item p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
  }

  .subheading {
    font-size: 1.05rem;
  }

  .term-explanations {
    padding: 20px 8px;
  }

  .accordion-title {
    font-size: 1.02rem;
    padding: 20px;
  }

  .accordion-content {
    padding: 0 1rem;
    font-size: 0.9rem;
  }

  .accordion-item.active .accordion-content {
    padding: 1.5rem 1rem;
  }

  .pull-quote {
    font-size: 1rem;
    margin: 1.7rem 0;
    padding: 1rem;
  }

  .hashtags {
    font-size: 1rem;
  }

  
}