/* Google Fonts Request */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0163ac;
  --primary-dark: #004a80;
  --text-color: #333333;
  --bg-color: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: left;
}

.header-logo {
    height: 80px;
    width: auto;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.student-name {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

header p {
  color: #666;
  font-size: 1rem;
  font-weight: 400;
}

/* Navigation */
nav {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto; /* For small screens */
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  background-color: var(--primary-dark);
}

/* Main Content */
main {
  flex: 1;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem;
  width: 100%;
}

.content-wrapper {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

h3 {
  color: #1a1a1a;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: #4b5563;
  text-align: justify;
}

ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

li {
  margin-bottom: 0.5rem;
}

/* Images */
.figure-container {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background-color: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
}

/* Footer */
footer {
  background-color: #1f2937;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
}

footer p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Utilities */
.highlight-box {
  background-color: #ebf5ff;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.btn-back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.btn-back:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 1.5rem;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav a {
    padding: 0.75rem;
    width: 100%;
    text-align: center;
  }
}

/* Print Styles for PDF Generation */
@media print {
    nav, footer, .btn-back {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }

    .content-wrapper {
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    h1, h2, h3 {
        color: #000 !important;
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .figure-container {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
