/******************************************************************************
START default styles
******************************************************************************/

/* Our default values set as CSS variables */
:root {
  --color-bg: #87CEEB;
  --color-text-main: #2D2D2D;
  --color-text-header: #1B3A4B;
  --color-accent: #C1A265;
  --wrapper-height: 87vh;
  --image-max-width: 250px;
  --image-margin: 3rem;
  --font-family: "Hanken Grotesk", sans-serif;
  --font-family-header: "Hanken Grotesk", sans-serif;
}

/* Basic page style resets */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

body {
  background: var(--color-bg);
  font-family: var(--font-family);
  color: var(--color-text-main);
}

/* Navigation grid */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  width: 100%;
}

/******************************************************************************
END default styles
******************************************************************************/

/* Page structure */
.wrapper {
  min-height: var(--wrapper-height);
  display: grid;
  place-items: center;
  margin: 0 1rem;
}
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  width: 100%;
}

/* Add this new rule to override center alignment for h2 */
.content h2 {
  align-self: flex-start;
}

/* Very light scaling for our illustration */
.title {
  color: var(--color-text-header);
  font-family: var(--font-family);
  font-style: normal;
  font-weight: 700;
  font-size: 60px;
  line-height: 105%;
  margin: 2rem 0 0 0;
  text-align: center;
  width: 100%;
}

.subtitle {
  font-family: var(--font-family);
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 105%;
  text-align: center;
  color: var(--color-text-main);
}

/* Subheading */
h2 {
  color: var(--color-text-header);
}

/* Add responsive font size for mobile devices */
@media screen and (max-width: 768px) {
  .title {
    font-size: 42px;
  }
  .subtitle {
    font-size: 16px;
  }
}

/* Very light scaling for our illustration */
.profile-pic {
  width: min(100%, var(--image-max-width));
  aspect-ratio: 1 / 1;
  margin-top: var(--image-margin);
  object-fit: cover;
  border-radius: 50%;
}

/* Interactive image */
.profile-pic:active {
  transform: translateY(5px);
}

/* About Section */
.about-section {
  margin: 2rem 0;
  width: 100%;
  max-width: 800px;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-main);
}

/* Classes Section */
.classes-section {
  margin: 1rem 0;
  width: 100%;
  max-width: 800px;
}

.classes-section ul {
  list-style: none;
  padding: 0;
}

.classes-section li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.9);
}

.classes-section .course-code {
  font-weight: 600;
  color: var(--color-text-header);
}

.classes-section .course-name {
  color: var(--color-text-main);
}

/* Consulting Section */
.consulting-section {
  margin: 1rem 0;
  width: 100%;
  max-width: 800px;
}

.consulting-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.consulting-section-header h2 {
  margin: 0;
}

.consulting-section-range {
  margin: 0;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.consulting-section ul {
  list-style: none;
  padding: 0;
}

.consulting-section li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.consulting-section .report-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.consulting-section .report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.consulting-section .report-title {
  font-weight: 600;
  color: var(--color-text-header);
}

.consulting-section .report-client {
  color: var(--color-text-main);
}

.consulting-section .report-status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.consulting-section .status-done {
  background-color: var(--color-accent);
  color: #fff;
}

.consulting-section .status-in-progress {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-text-main);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Presentations Section */
.presentations-section {
  margin: 1rem 0;
  width: 100%;
  max-width: 800px;
}

.presentations-section ul {
  list-style: none;
  padding: 0;
}

.presentations-section li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.presentations-section .presentation-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.presentations-section .presentation-title {
  font-weight: 600;
  color: var(--color-text-header);
}

.presentations-section .presentation-audience {
  color: var(--color-text-main);
}

.presentations-section .presentation-date {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

/* Books Section */
.books-section {
  margin: 1rem 0 2rem 0;
  width: 100%;
  max-width: 800px;
}

.books-section ul {
  list-style: none;
  padding: 0;
}

.books-section li {
  margin-bottom: 0.75rem;
}

.books-section .book-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: inherit;
}

.books-section .book-cover {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.books-section .book-info {
  display: flex;
  flex-direction: column;
}

.books-section .book-title {
  font-weight: 600;
  color: var(--color-text-header);
}

.books-section .book-detail {
  color: var(--color-text-main);
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  width: 100%;
  text-align: center;
}

.contact-section h2 {
  align-self: center;
}

/* Links that open files in the editor */
.fileopener {
  cursor: pointer;
  font-weight: bold;
  border-bottom: 3px solid var(--color-accent);
  color: var(--color-text-header);
  text-decoration: none;
}

.fileopener:hover {
  border-bottom: 3px solid var(--color-text-header);
}

.hosted-on {
  text-align: center;
  font-size: 0.9rem;
}

.hosted-on p {
  margin: 0;
}

.hosted-on a {
  font-weight: bold;
  text-underline-offset: 0.3rem;
  color: var(--color-text-header);
}

/* Ensure proper bold rendering for strong elements */
strong {
  font-weight: 600;
}
