@import "root.css"; /* All Resets and global variables */
@import "globals.css";

/* HERO SECTION */
.hero {
  background-image: url("/assets/speaker-bg.jpg");
  background-position: -60em -195em;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--primary-clr);
  background-blend-mode: overlay;
  opacity: 95%;
  padding: 1em;
}

.header-info {
  padding: 0.5em;
  margin-bottom: 2em;
  color: var(--light-clr);
  
}

.company-name {
  font-size: clamp(1.5rem, 3vw, 4rem);
  color: var(--white-clr);
}

.alt-clr {
  color: var(--alt-txt-clr);
}

.company-email {
  font-size: clamp(0.6rem, 1.5vw, 1rem);
}

.logo {
  width: clamp(8em, 40vw, 15em);
  max-width: 600px;
}

/* MAIN SECTION */
.main-section {
  background-color: var(--white-clr);
}

.engagment-title {
  font-size: clamp(1.5rem, 4vw, 1.6rem);
  font-weight: 700;
}

.dates {
  font-size: clamp(0.6rem, 1.5vw, .8rem);
  font-weight: 600;
  color: var(--dark-clr);
  margin-left: 1em;
}

/* Ensure the summary looks nice */
summary {
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  color: var(--primary-clr); /* Color of the text */
  display: flex;
  align-items: center;
  list-style: none; /* Removes default arrow */
}

summary:hover {
  color: var(--alt-txt-clr); /* Text color on hover */
}

summary:focus {
  color: var(--alt-txt-clr); /* Text color when focused */
}

/* Add custom arrow before the summary text */
summary::before {
  content: "\203A"; /* Closed arrow */
  margin-right: 10px; /* Space between the arrow and the text */
  transition: transform 0.3s ease-in-out; /* Smooth rotation */
  font-size: 2em;
}

/* Remove default arrow from all browsers */
summary::-webkit-details-marker {
  display: none;
}

summary::-moz-details-marker {
  display: none;
}

/* When details are open, rotate the arrow */
details[open] summary::before {
  transform: rotate(90deg); /* Open arrow */
  content: "\2039";
}

/* Optional: Additional style for open state */
details[open] summary {
  color: var(--alt-txt-clr); /* Change color when expanded */
  margin-bottom: 10px; /* Space below the summary */
}

.publication-1,
.publication-2 {
  display: flow-root;
}

.publication-1,
.publication-2,
.publication-3,
.reviews,
.quotes-list {
  margin-bottom: 2em;
}

.publication-img {
  float: left;
  shape-outside:image(50%);
  margin: 0 25px 10px 0;
}

.quotes-list {
  clear: both;
}

/* MEDIA QUERIES */
@media (min-width: 700px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    margin: 0 auto;
  }

  .main-nav-ul {
    all: unset;
    
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.2em;
    justify-content: space-evenly;
    align-items: center;
  }

  .logo {
    margin-left: auto;
  }
}