/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #03045e;
  background: linear-gradient(135deg, #caf0f8 0%, #90e0ef 100%);
  min-height: 100vh;
}

/* Split Screen Container */
.split-container {
  display: flex;
  min-height: 100vh;
}

/* Left Panel - Fixed Sidebar */
.left-panel {
  width: 35%;
  min-width: 320px;
  max-width: 480px;
  background: linear-gradient(180deg, #00b4d8 0%, #0077b6 100%);
  color: #caf0f8;
  padding: 40px 30px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
}

.left-panel header {
  margin-bottom: 40px;
}

.left-panel h1 {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 16px;
}

/* Table of Contents */
.table-of-contents {
  margin-top: 32px;
}

.table-of-contents h2 {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-of-contents ul {
  list-style: none;
}

.table-of-contents li {
  margin-bottom: 12px;
}

.table-of-contents a {
  color: #caf0f8;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 4px 0;
}

.table-of-contents a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Right Panel - Scrollable Content */
.right-panel {
  flex: 1;
  background: radial-gradient(circle at top right, #ffffff 0%, #f8f9fa 100%);
  padding: 60px 80px;
  overflow-y: auto;
}

/* Article Styles */
article {
  max-width: 800px;
  margin: 0 auto;
}

.intro {
  margin-bottom: 48px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(202, 240, 248, 0.3) 0%, rgba(144, 224, 239, 0.2) 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(3, 4, 94, 0.08);
}

.intro p {
  font-size: 16px;
  line-height: 1.6;
  color: #03045e;
}

section {
  margin-bottom: 48px;
}

h2 {
  font-size: 24px;
  font-weight: bold;
  color: #00b4d8;
  margin-bottom: 20px;
  margin-top: 12px;
  line-height: 1.3;
}

h3 {
  font-size: 18px;
  font-weight: bold;
  color: #0077b6;
  margin-bottom: 16px;
  margin-top: 8px;
  line-height: 1.3;
}

p {
  margin-bottom: 16px;
  color: #03045e;
}

a {
  color: #00b4d8;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #0077b6;
}

/* Resource Section Styling */
#resources {
  padding: 32px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(144, 224, 239, 0.15) 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(3, 4, 94, 0.08);
  margin-top: 60px;
}

#resources h2 {
  color: #0077b6;
  margin-bottom: 20px;
}

#resources p {
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .right-panel {
    padding: 40px 60px;
  }

  .left-panel {
    width: 30%;
    min-width: 280px;
    padding: 30px 24px;
  }

  .left-panel h1 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    max-width: 100%;
    height: auto;
    position: static;
    padding: 30px 20px;
  }

  .right-panel {
    padding: 40px 20px;
  }

  .left-panel h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .intro p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .right-panel {
    padding: 30px 16px;
  }

  .left-panel {
    padding: 24px 16px;
  }

  .left-panel h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  #resources {
    padding: 24px 20px;
  }
}

/* Scrollbar Styling for Left Panel */
.left-panel::-webkit-scrollbar {
  width: 8px;
}

.left-panel::-webkit-scrollbar-track {
  background: rgba(0, 119, 182, 0.3);
}

.left-panel::-webkit-scrollbar-thumb {
  background: rgba(202, 240, 248, 0.5);
  border-radius: 4px;
}

.left-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(202, 240, 248, 0.8);
}
