@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

body {
  font-family: "Inter", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f6f7f9;
  color: #3a4452;
}

ul li a,
h1,
h2 {
  font-family: "Rubik", sans-serif;
}

h1 {
  font-size: 70px;
}

.plain {
  font-family: inherit;
}

h1 {
  margin-top: 76px;
  margin-left: 10px;
  color: #1b2a41;
}

h2 {
  font-size: 40px;
  color: #324a5f;
}

h2,
p {
  margin: 10px;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: rgb(0, 149, 255);
  position: fixed;
  top: 0;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: stretch;
}

ul li {
  display: flex;
}

ul li a {
  display: flex;
  align-items: center;
  color: white;
  padding: 0 16px;
  text-decoration: none;
}

ul li a.brand {
  padding: 0 20px 0 14px;
}

ul li a.brand img {
  height: 48px;
  width: auto;
  display: block;
}

ul li a.dropdown_link:hover:not(.active):not(.brand) {
  background-color: rgba(255, 255, 255, 0.1);
}

ul li div.dropdown:hover:not(.active):not(.brand) {
  background-color: rgba(255, 255, 255, 0.1);
}

ul li a.active {
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -3px 0 #e0a458;
}

ul li div.active {
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -3px 0 #e0a458;
}

ul li.active {
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -3px 0 #e0a458;
}

ul .dropdown {
  position: relative;
  display: inline-block;
  display: flex;
  align-items: center;
  color: white;
  padding: 0 16px;
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 56px;
  left: 0px;
  background-color: #007a9f;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.main_image {
  width: 100vw;
  height: auto;
}

.header_fake {
  background-image: url(/assets/anavraband.jpg);
  background-position-y: center;
}

.anavra {
  color: #ffffff;
  padding-bottom: 5em;
  text-align: center;
}

.manual {
  padding-left: 10px;
  font-size: 50px;
  font-family: figtree;
}

.icon_flag {
  height: 45px;
  width: auto;
  padding-left: 20px;
}

h3 {
  padding-left: 10px;
  font-size: 25px;
}

.study_guide_card {
  background-image: linear-gradient(
    to bottom right,
    rgb(219, 232, 251),
    rgb(149, 223, 255)
  );
  max-width: max-content;
  border-radius: 10px;
  margin: 10px;
  border-style: solid;
}

.study_guide_card_2 {
  background-image: linear-gradient(
    to bottom right,
    rgb(219, 232, 251),
    rgb(149, 223, 255)
  );
  max-width: max-content;
  border-radius: 10px;
  margin: 10px;
  border-style: solid;
}

.study_guide_header {
  padding-right: 15px;
  font-size: 32px;
}

.study_guide_card_header {
  text-align: left;
}

.doc_image {
  height: 30px;
  width: auto;
  margin-top: 400%;
}

.email {
  font-size: 30px;
  font-weight: 900;
}

.content {
  padding: 110px 24px 40px;
}

.content h1 {
  margin-top: 0;      /* .content padding already clears the navbar */
  margin-left: 0;
  margin-bottom: 32px;
}

.about {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
}

.about-text {
  flex: 1 1 700px;
  max-width: 1200px;
}

.about-text h1 {
  margin-top: 0;
}

.about-img {
  width: 380px;
  max-width: 100%;
  border-radius: 8px;
  margin-left: auto;
}

.about-text p:first-child {
     margin-top: 0;
}

@media (max-width: 800px) {
  .about {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-img {
    width: 100%;
  }
}

.content p {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;     /* i forgot to mention content is for the what is amec */
  line-height: 1.7;
  color: #222;
  margin-bottom: 1.5rem;
}

.content p.lead {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5;
}

.about + .about {
  margin-top: 60px;
}

.about-greek {
  justify-content: flex-end;
  text-align: right;
}

.about-greek .about-img {
  margin-left: 0;
  order: -1;
}

.about-greek .about-text {
  margin-left: auto;  /* DONT CHANGE THIS PUTS THE GREEK IMAGE IN A GREAT POSITION PLS PLS PLS PLS */
}

@media (max-width: 1300px) {
  .about-greek {
    margin-left: 0;
  }
}

/* meet the team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* all 5 in one row; cards share the row height */
  gap: 24px;
}

@media (max-width: 1400px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 950px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  background: #ffffff;
  border-radius: 14px;
  border-top: 6px solid #007a9f;
  box-shadow: 0 5px 22px rgba(27, 42, 65, 0.09);
  padding: 26px 22px;
}

.team-card-header {
  display: flex;
  flex-direction: column;   /* photo above the name, fits narrow cards */
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 20px;
}

.team-avatar {
  overflow: hidden;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #007a9f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 600;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fill the circle and crop instead of squashing */
}

.team-name {
  margin: 0;
  font-size: 1.4rem;
  color: #184589;
}

.team-card .team-role {
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e0a458;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* shared message style; each number only changes the line color */
.team-message1,
.team-message2,
.team-message3,
.team-message4,
.team-message5 {
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid;
  font-size: 1rem;
  line-height: 1.6;
  color: #3a4452;
  font-style: italic;
}

.team-message1 { border-left-color: #e0a458; }
.team-message2 { border-left-color: #b12468; }
.team-message3 { border-left-color: #2e9d6a; }
.team-message4 { border-left-color: #6b4fbb; }
.team-message5 { border-left-color: #e05a47; }

/* co-chairs */
.content h2.team-section-title {
  margin: 70px 0 28px;
  font-size: 2.4rem;
  color: #1b2a41;
}

.cochair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.cochair-en {
  --cochair-accent: #007a9f;
}

.cochair-gr {
  --cochair-accent: #e0a458;
}

.cochair-card {
  background: #ffffff;
  border-radius: 12px;
  border-bottom: 4px solid var(--cochair-accent);
  box-shadow: 0 3px 14px rgba(27, 42, 65, 0.07);
  padding: 24px 18px;
  text-align: center;
}

.cochair-photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cochair-accent);
  border: 3px solid var(--cochair-accent);
}

.cochair-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cochair-card h3.cochair-name {
  margin: 0 0 6px;
  padding: 0;
  font-family: "Rubik", sans-serif;
  font-size: 1.2rem;
  color: #184589;
}

.cochair-card p.cochair-role {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #5a6472;
}

/* study guides */
.sg-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 48px;
}

.sg-english {
  --sg-accent: #007a9f;
  --sg-tint: #e3f3f8;
}

.sg-greek {
  --sg-accent: #e0a458;
  --sg-tint: #fbf0e2;
}

.sg-column h2.sg-column-title {
  margin: 0 0 20px;
  padding-bottom: 10px;
  font-size: 2rem;
  color: #1b2a41;
  border-bottom: 3px solid var(--sg-accent);
}

.sg-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border-left: 6px solid var(--sg-accent);
  border-radius: 6px 14px 14px 6px;
  box-shadow: 0 3px 14px rgba(27, 42, 65, 0.07);
  padding: 22px 24px;
  margin-bottom: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sg-card:hover {
  background:#e1dada
}

.sg-card-text {
  flex: 1;
}

.sg-card h3.sg-committee {
  margin: 0 0 6px;
  padding: 0;
  font-family: "Rubik", sans-serif;
  font-size: 1.3rem;
  color: #1b2a41;
}

.sg-card p.sg-topic {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5a6472;
}

.sg-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--sg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-icon img {
  height: 36px;
  width: auto;
}

/* manual */
.pdf-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 40px;
}

.pdf-english {
  --pdf-accent: #007a9f;
}

.pdf-greek {
  --pdf-accent: #e0a458;
}

.pdf-panel {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 5px 22px rgba(27, 42, 65, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 4px solid var(--pdf-accent);
}

.pdf-flag {
  height: 32px;
  width: auto;
  border-radius: 4px;
}

.pdf-panel h2.pdf-title {
  margin: 0;
  font-size: 1.6rem;
  color: #1b2a41;
}

.pdf-open {
  margin-left: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pdf-accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.pdf-open:hover {
  filter: brightness(1.1);
}

.pdf-frame {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  border: none;
  background: #eef0f3;
}

/* nav buttons with no link (e.g. Registration) just open their dropdown */
.dropdown_btn:not([href]) {
  cursor: default;
}

/* index: important dates */
.dates {
  padding: 20px 24px 60px;
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}

.date-box {
  background: #ffffff;
  border-radius: 12px;
  border-left: 5px solid #007a9f;
  box-shadow: 0 3px 14px rgba(27, 42, 65, 0.07);
  padding: 22px 24px;
}

.date-box p.date-when {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #007a9f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-box h3.date-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: 1.35rem;
  color: #1b2a41;
}

.date-box p.date-text {
  margin: 0;
  line-height: 1.6;
  color: #3a4452;
}

/* =====================================================================
   PHONES (6.1"–6.7" phones are about 390–430px wide in CSS pixels)
   everything below only applies to screens 900px wide or smaller
   ===================================================================== */

.nav-toggle-item {
  display: none !important;   /* hidden on desktop */
}

.nav-toggle {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  padding: 0 18px;
  cursor: pointer;
}

@media (max-width: 900px) {
  /* ---- navbar: logo + ☰ button, links fold out underneath ---- */
  ul.navbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 100;
  }

  ul.navbar > li {
    display: none;          /* hide links until the menu is opened */
    width: 100%;
  }

  ul.navbar > li:first-child {
    display: flex;          /* logo */
    width: auto;
    height: 56px;
  }

  ul.navbar > li.nav-toggle-item {
    display: flex !important;
    width: auto;
    height: 56px;
    margin-left: auto;      /* push ☰ to the right */
  }

  ul.navbar.open > li {
    display: block;
  }

  ul.navbar.open > li:first-child,
  ul.navbar.open > li.nav-toggle-item {
    display: flex;
  }

  /* dropdowns are always expanded inside the phone menu (no hovering on phones) */
  ul.navbar .dropdown {
    display: block;
    padding: 0;
  }

  ul.navbar .dropdown_btn {
    padding: 14px 20px 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
  }

  ul.navbar .dropdown-content {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    min-width: 0;
  }

  ul.navbar li a.dropdown_link,
  ul.navbar > li > a:not(.brand) {
    padding: 12px 20px 12px 32px;
    font-size: 1.1rem;
  }

  ul.navbar > li > a:not(.brand) {
    padding-left: 20px;     /* top-level links like "Previous Conferences" */
  }

  ul li div.dropdown:hover:not(.active):not(.brand) {
    background: none;
  }

  /* ---- general text sizes ---- */
  h1 {
    font-size: 2.4rem;
    margin-top: 76px;
  }

  h2 {
    font-size: 1.8rem;
  }

  .content {
    padding: 80px 16px 32px;
  }

  .content p {
    font-size: 1.05rem;
  }

  .content p.lead {
    font-size: 1.2rem;
  }

  /* ---- index ---- */
  .header_fake {
    background-size: cover;
  }

  .anavra {
    font-size: 2rem;
    padding: 0 16px 2.5em;
  }

  .tickcounter {
    max-width: 100%;
  }

  .dates {
    padding: 16px 16px 40px;
  }

  /* ---- what is AMEC / what is the EC ---- */
  .about-text {
    flex: none;             /* in the stacked layout this would otherwise become a height */
    max-width: 100%;
  }

  .about {
    gap: 24px;
  }

  .about + .about {
    margin-top: 40px;
  }

  /* ---- meet the team ---- */
  .team-card {
    padding: 22px 18px;
  }

  .cochair-grid {
    grid-template-columns: repeat(2, 1fr);   /* 2 small cards per row on phones */
    gap: 14px;
  }

  .cochair-card {
    padding: 18px 10px;
  }

  .cochair-photo {
    width: 72px;
    height: 72px;
  }

  .cochair-card h3.cochair-name {
    font-size: 1.05rem;
  }

  .cochair-card p.cochair-role {
    font-size: 0.85rem;
  }

  .content h2.team-section-title {
    margin: 48px 0 20px;
    font-size: 1.8rem;
  }

  /* ---- study guides ---- */
  .sg-columns {
    gap: 32px;
  }

  .sg-card {
    padding: 16px 16px;
    gap: 14px;
  }

  .sg-card h3.sg-committee {
    font-size: 1.1rem;
  }

  .sg-card p.sg-topic {
    font-size: 0.95rem;
  }

  .sg-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .sg-icon img {
    height: 28px;
  }

  /* greek section: text then photo, left-aligned (right-aligned reads badly on a phone) */
  .about-greek {
    text-align: left;
  }

  .about-greek .about-img {
    order: 0;
  }

  .about-greek .about-text {
    margin-left: 0;
  }

  /* ---- manual: phones can't show PDFs inside a page, so just show the buttons ---- */
  .pdf-frame {
    display: none;
  }

  .pdf-panel-header {
    flex-wrap: wrap;
    padding: 16px 18px;
    border-bottom: none;
    border-left: 5px solid var(--pdf-accent);
  }

  .pdf-open {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}
