/* IEEE Color Palette */
:root {
  --ieee-blue: 0, 98, 155;
  --cyan: 0, 181, 226;
  --teal: 0, 156, 166;
  --dark-teal: 0, 115, 119;
  --dark-green: 0, 99, 65;
  --green: 0, 132, 61;
  --olive-green: 101, 141, 27;
  --bright-green: 120, 190, 32;
  --yellow: 255, 209, 0;
  --dark-yellow: 255, 199, 44;
  --orange: 255, 163, 0;
  --dark-orange: 232, 119, 34;
  --red: 186, 12, 47;
  --dark-red: 134, 32, 65;
  --purple: 152, 29, 151;
  --dark-purple: 119, 37, 131;
  --dark-blue: 0, 40, 85;
  --gray: 117, 120, 123;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open-Sans', sans-serif;
  background-color: #fafafa;
}

.meta-nav {
  min-height: 40px;
  color: #ffffff;
  padding: 10px 40px 10px 40px;
  gap:40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 50px;
  white-space: nowrap;
}

#meta-ieee-logo {
  display: flex;
  align-items: center;
}

#meta-ieee-logo img {
  width: 100px;
  display: block;
}

#meta-ieee-logo .joinIEEE{
  text-align: right;
  color: #fff;
}

#meta-ieee-logo .joinIEEE:link, #meta-ieee-logo .joinIEEE:visited, #meta-ieee-logo .joinIEEE:active {
  color: #fff;
  text-decoration: none;
}

#meta-ieee-logo .joinIEEE:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 800px) {
.meta-nav {
  min-height: 100px;
  background: #000000;
  color: #ffffff;
}
.meta-ieee-logo {
  padding: 20px 0px 0px 0px;
  max-width: 100px;
}
}

.meta-nav p {
  font-family: inherit;
  font-size: 0.9em;
  line-height: 125%;
  border: 0;
  margin: 0;
}

#ieee-meta-a {
  color: rgb(255, 255, 255);
  text-align: left;
}

#ieee-meta-b {
  color: rgb(255, 255, 255);
  text-align: right;
}

#ieee-meta-a a:link, #ieee-meta-a a:visited, #ieee-meta-a a:active,
#ieee-meta-b a:link, #ieee-meta-b a:visited, #ieee-meta-b a:active
 {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

#ieee-meta-a a:hover,
#ieee-meta-b a:hover {
  color: #ffffff;
  text-decoration: underline;
}

#ieee-meta-a sup {
  vertical-align: baseline;  /* don't add extra line-box height */
  position: relative;
  top: -0.5em;               /* manually lift the ® instead */
  font-size: 0.9em;
}

#meta-ieee-logo .donate{
  color: #ffffff;
  text-decoration: none;
}

#meta-ieee-logo .donate:hover {
  color: #fff;
  text-decoration: underline;
}

.donate {
  color: #fff;
  text-align: left;
  text-align: left;
}

#donate {
  color: #fff;
  text-align: right;
  text-align: right;
} 

#meta-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Header */
header {
  background-color: transparent;
  position: absolute;
  width: 100%;
  z-index: 10;
}

header #container-wrap {
  box-shadow: 0 10px 12px rgba(255, 255, 255, 0.01);
}

header .container {
  clip-path: polygon(
    30px 0,      /* start of top edge, after the cut */
    100% 0,      /* top-right corner */
    100% 100%,   /* bottom-right corner */
    0 100%,      /* bottom-left corner */
    0 30px       /* left edge, where the cut ends */
  );
}

header .container {
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px 15px 40px;
  min-width: fit-content;
  gap: 40px;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.08));
}

.ieee-ist-logo {
  height: 60px;
  max-height: 120px;
  filter: brightness(0) invert(1);
  /* Optional: makes dark logo white */
}

#site-purpose{
  display: flex;
  flex-direction: column;
  font-size: 20px;
  color: white;
  width: 370px;
  gap: 5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: normal;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
  font-family: 'Open-Sans', sans-serif;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav ul li a {
  color: white;
  font-weight: bold;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
}

/* underline grows from center on hover */
nav ul li a.underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

nav ul li a.underline:hover::after,
nav ul li a.underline.active::after {
  width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      #001f3f 0%,
      rgba(0, 31, 63, 0.95) 15%,
      rgba(0, 31, 63, 0.75) 35%,
      rgba(0, 31, 63, 0.4) 60%,
      rgba(0, 31, 63, 0) 100%);
  z-index: 1;
}

/* Hero Section */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-half {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
}

/* Very strong top overlay shadow for half-hero images using black */
.hero-half .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* gradient from top: extra strong black shadow and longer fade for maximum contrast */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 10%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0.25) 65%, rgba(0, 0, 0, 0.05) 90%, rgba(0, 0, 0, 0) 100%);
}

/* Hero title/content placed above overlay */
.hero-half .hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.hero-half .hero-inner {
  width: 100%;
  padding: 36px 60px;
  box-sizing: border-box;
}

.hero-half .hero-title {
  color: #fff;
  font-size: 3.6rem;
  margin: 0 0 8px 0;
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.hero-half .hero-subtitle {
  color: rgba(255,255,255,0.9);
  margin: 8px 0 0 0;
  font-size: 1.05rem;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Blue filter layer over hero images (uses pseudo-element so content stays readable) */
.hero .overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* solid dark blue overlay */
  background: rgba(var(--dark-blue), 0.6);
  mix-blend-mode: normal;
}

/* Add the same strong black gradient used for .hero-half, placed under the blue filter */
.hero .overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 10%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0.25) 65%, rgba(0, 0, 0, 0.05) 90%, rgba(0, 0, 0, 0) 100%);
}

/* Hero content centered within the full-screen hero */
.hero .overlay .hero-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hero .overlay .hero-inner {
  padding: 0 24px;
  box-sizing: border-box;
}

/* Reuse existing .main-title and .subtitle classes but ensure high contrast when over the filter */
.hero .main-title {
  color: #fff;
  text-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.hero .subtitle {
  color: rgba(255,255,255,0.95);
}

.hero .overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.hero-half > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Optional titles if you use them later */
.hero .main-title {
  font-size: 2.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: white;
}

.hero .subtitle {
  font-size: 2rem;
  font-style: italic;
  font-weight: 300;
  color: white;
}

.hero-half img,
.hero img {
  filter: drop-shadow(0 20px 40px rgba(0, 31, 63, 0.8)) blur(3px);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* efeito leve ao hover */
.hero-half img:hover,
.hero img:hover {
  transform: translateY(-8px) scale(1.03);
  filter:
    drop-shadow(0 25px 50px rgba(0, 31, 63, 0.8)) brightness(1.05) blur(3px);
}

.about-section {
  padding: 80px 40px;
  text-align: center;
}

.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content:space-between;
  gap: 40px;
}

.about-column {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: justify;
}

.about-section h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: rgb(var(--dark-blue));
}

.about-section a {
  color: rgb(var(--dark-blue));
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.about-section a:hover {
  text-decoration: underline;
}

.about-section p {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
}

/* ===== Footer ===== */
#footer {
  display: flex;
  justify-content: space-between;
  background: rgb(var(--dark-blue));
  padding: 15px 40px 15px 40px;
}

#footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

#official-footer {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 100%;
	color: #666;
	text-align: center;
  min-width: 550px;
}

#official-footer #util, #copyright{
  color: white;
	text-align: center;
	line-height: 250%;
}

#official-footer #util {
  font-size: 16px;
}

#copyright {
  font-size: 12px;
}

#official-footer  #util a:link, #official-footer #util a:visited, #official-footer #util a:active {
	color: white;
	text-decoration: none;
}

#official-footer #util a:hover {
	text-decoration: underline;
}

#footer-logo {
  height: 60px;
}

.icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.joinUs-button {
  background-color: rgb(var(--ieee-blue));
  color: white;
  border-radius: 50px;
  display: inline-block;
  padding: 10px 40px;
  font-weight: bold;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 400ms ease;
  width:max-content;
}

.joinUs-button:hover {
  background-color: white;
  color: rgb(var(--ieee-blue));
  border-radius: 50px;
  display: inline-block;
  padding: 10px 40px;
  font-weight: bold;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 400ms ease;
}

/*scroll button */
.scroll-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: none;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.scroll-button img {
  width: 40px;
  height: 40px;
  /* boost brightness/contrast and ensure full white */
  filter: invert(1) brightness(2) contrast(1.2);
}

.scroll-button:hover {
  opacity: 0.7;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 50px;
  flex-wrap: wrap;
}

.card {
  background-color: #ffffff;
  width: 300px;
  height: 200px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Social Media Cards - Smaller variant */
#social-media-section .stats-container .card {
  width: 250px;
  height: 160px;
  padding: 20px;
}

#social-media-section .stats-container .card h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

#social-media-section .stats-container .card p {
  font-size: 0.9rem;
}

.card h2 {
  font-size: 40px;
  margin: 5px 0;
  color: #001f3f;
}

.card p {
  font-size: 20px;
  margin: 0;
  color: #001f3f;
}

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  filter: invert(10%) sepia(100%) saturate(2000%) hue-rotate(200deg) brightness(90%);
}

.map {
  width: 100%;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.map h1 {
  font-size: 3rem;
  margin-bottom: 60px;
  color: rgb(var(--dark-blue));
}

.map iframe {
  border: 10px solid #001f3f;
  border-radius: 15px;
  width: 90%;
  max-width: 1000px;
  height: 500px;
}

/* Social Media Section */
#social-media-section {
  padding: 80px 40px;
  text-align: center;
}

#social-media-section h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: rgb(var(--dark-blue));
}

.lang-button {
  width: 60px;
  height: 40px;
  background: rgba(120, 95, 35, 0.6);
  /* brown transparent */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  margin-top: -100px;
}

.lang-button:hover {
  transform: scale(1.05);
}

/* Language Toggle Button */
.lang-toggle button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.lang-toggle button:hover {
  opacity: 0.8;
}

.fi {
  font-size: 24px;
  border-radius: 3px;
}

.team-section {
  display: flex;
  min-height: 620px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Open Sans', Calibri, sans-serif;
}

/* ── Sidebar ── */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 2px solid rgb(var(--dark-blue));
  padding: 1.5rem 0;
}

.sidebar-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: rgb(var(--dark-blue));
  padding: 0 1.25rem 0.5rem;
}

.divider-blue {
  height: 3px;
  background: rgb(var(--dark-blue));
  margin: 0 1.25rem 4px;
}

.divider-green {
  height: 1.5px;
  background: rgb(var(--green));
  margin: 0 1.25rem 1.25rem;
}

.section-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgb(var(--green));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.25rem 1.25rem 0.4rem;
}

.section-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  padding: 0.8rem 1.25rem;
  font-family: 'Open Sans', Calibri, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #666;
  transition: all 0.15s;
}

.section-btn:hover {
  color: rgb(var(--dark-blue));
  background: #f0f6fb;
}

.section-btn.active {
  color: rgb(var(--dark-blue));
  border-left: 3px solid rgb(var(--dark-blue));
  background: #f0f6fb;
}

/* ── Panel ── */
.panel {
  flex: 1;
  padding: 2rem 3rem;
  display: none;
}

.panel.active {
  display: block;
}

.panel-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: rgb(var(--dark-blue));
  margin-bottom: 4px;
}

.panel-line-blue {
  height: 3px;
  background: rgb(var(--dark-blue));
  width: 100%;
  max-width: 1200px;
  margin-bottom: 4px;
}

.panel-line-green {
  height: 1.5px;
  background: rgb(var(--green));
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2.5rem;
}

/* ── Pyramid layout ── */
.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.tier {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.connector {
  width: 1.5px;
  height: 22px;
  background: #ccdde8;
  margin: 0 auto;
}

/* ── Member card ── */
.team-member {
  background: #fff;
  border: 1px solid #ccdde8;
  border-radius: 4px;
  width: 220px;
  overflow: hidden;
  transition: transform 0.15s;
}

.team-member:hover {
  transform: translateY(-3px);
}

.team-member.leader {
  border-top: 4px solid rgb(var(--dark-blue));
}

/* Photo + hover overlay */
.member-img {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.member-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: filter 0.25s;
}

.member-overlay {
  position: absolute;
  inset: 0;
  background: rgb(var(--dark-blue));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.25s;
}

.member-img:hover .member-overlay {
  opacity: 1;
}

.member-img:hover img {
  filter: brightness(0.5);
}

.overlay-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid rgb(var(--gray));
  border-radius: 3px;
  width: 82%;
  justify-content: center;
  transition: background 0.15s;
}

.overlay-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.overlay-icon {
  width: 17px;
  height: 17px;
  fill: #fff;
  flex-shrink: 0;
}

/* Name + role */
.member-info {
  padding: 0.9rem 0.9rem 1rem;
}

.member-role {
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--ieee-blue));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  text-align: center;
}

.member-name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  text-align: center;
}

/* * {
    outline: 1px solid red;
} */
/* just for debug purposes, ignore this block */