@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* Fix for horizontal scrolling/moveable content */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: #eaeaea;
  overflow-x: hidden;
  width: 100%;
}

.primary-color {
  color: #0b4870;
}

.highlight-primary-color {
  color: #457b9d;
}

.secondary-color {
  color: #457b9d;
}

.highlight-secondary-color {
  color: #63a5e2;
}

.snow-color {
  color: #f1faee;
}

#hero-section {
  background-image: linear-gradient(to right, #a5d6d8, #81a7a9);
}

.inter-Black {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

/* Page wrapper */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  background: #f4faff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  width: 100%;
}

@media (max-width: 1280px) {
  .page-container {
    box-shadow: none;
  }
}

/* Floating top bar */
.top-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.top-bar .logo {
  width: 120px;
  margin: 5px 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.top-bar .links-logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  display: block;
}

.logo img {
  width: 100%;
  object-fit: contain;
  cursor: pointer;
  display: block;
}

.actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.links-logos {
  height: 25px;
  width: auto;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-block;
}

.links-logos img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

#hero-section .links-logos {
  height: 30px;
  width: auto;
}

#hero-section p {
  width: 75%;
}

.Magshimim-Cv-Logo {
  border-radius: 12px;
  padding: 2px 6px;
  transition: background-color 0.3s ease;
  background-color: #457b9d;
}

.Magshimim-Cv-Logo:hover {
  background-color: #63a5e2;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.image-box {
  width: 45%;
  max-height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-box img {
  width: 100%;
  height: auto;
}

.top-bar button {
  width: 130px;
  height: 35px;
  padding: 6px 14px;
  border-radius: 12px;
  border-width: 3px;
  border-color: #0b4870;
  background: #8098c6;
  color: #f2f2f2;
  font-family: "inter", sans-serif;
  font-weight: 700;
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
}

/* Sections */
section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 5%;
  min-height: 80vh;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.text-block {
  max-width: 45%;
  box-sizing: border-box;
}

.text-block h2 {
  font-size: 64px;
  margin-top: 0;
  margin-bottom: 0px;
  word-wrap: break-word;
}

.text-block p {
  margin-top: 5px;
  font-size: 24px;
  line-height: 34px;
  width: 90%;
  word-wrap: break-word;
}

section:nth-child(odd) {
  background: #d8f0f4;
}

/* Specific placeholder sizes */
.hero-img {
  width: 45%;
  margin-top: 0px;
}

#hero-section .text-block h2 {
  font-weight: 800;
}

#hero-section .text-block p {
  font-weight: 500;
  line-height: auto;
}

.black-box {
  background: black;
  border-radius: 10px;
  width: 300px;
  height: 300px;
}

.magshimim-img {
  filter: drop-shadow(5px 5px 0.15rem #0101014f);
}

.join-img {
  width: 90%;
}

/* Donation Box styling */
.donation-box {
  background: linear-gradient(135deg, #f4f4f4 0%, #e8f4f8 100%);
  width: 45%;
  max-width: 500px;
  padding: 40px 35px;
  border: 3px solid #457b9d;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

.support-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.support-text h2 {
  text-align: center;
}

.support-text p {
  text-align: center;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.donation-box h1 {
  font-size: 36px;
  margin: 0;
}

.donation-text {
  font-size: 16px;
  line-height: 26px;
  color: #457b9d;
  margin: 0;
  max-width: 95%;
}

.donation-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(135deg, #8098c6 0%, #457b9d 100%);
  border: 3px solid #0b4870;
  border-radius: 12px;
  color: #f4f4f4;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 5px;
}

.donation-button:hover {
  background: linear-gradient(135deg, #457b9d 0%, #0b4870 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.donation-button:active {
  transform: translateY(0);
}

.heart-icon {
  width: 22px;
  height: 22px;
  color: #ff6b9d;
}

.donation-footer {
  font-size: 13px;
  color: #457b9d;
  font-style: italic;
  margin: 0;
  opacity: 0.8;
}

.join-img {
  margin-top: 25px;
}

/* Spacing for fixed header */
.spacer {
  height: 10px;
}

/* Positioning in divs*/
.center {
  margin: auto;
}

.center-text {
  text-align: center;
}

.community-graphs {
  width: 45%;
  max-width: 100%;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.community-graphs canvas {
  max-width: 100%;
  display: block;
  min-height: 320px;
}

/* Statistics Cards */
.Statistics-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.card-background {
  border-radius: 12px;
  border: #828d8f52 1px solid;
  background-color: white;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

.card-background:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.card-img {
  display: flex;
  justify-content: center;
  font-size: x-large;
  margin: 10px;
}

.card-img-insider {
  padding: 12px;
  border-radius: 12px;
}

.bg-green-500 {
  background-color: #d3f3df;
  color: #10b981;
}

.bg-purple-500 {
  background-color: #eeddfd;
  color: #eeddfd;
}

.bg-blue-500 {
  background-color: #d8e6fd;
  color: #63a5e2;
}

.cards-number {
  margin-top: 0px;
  font-size: x-large;
  font-weight: bold;
  color: #4e4e4e;
  margin-bottom: 5px;
}

.card-title {
  font-size: small;
  color: #4e4e4e;
  margin-top: 0px;
}

/* ===================================
   MEMBERS SECTION STYLES
   =================================== */

#members-container {
  width: 45%;
  max-width: 45%;
  box-sizing: border-box;
}

/* Member Card */
.member-card {
  min-width: 100%;
  padding: 30px;
  position: relative;
  background: white;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-card-content {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Member Avatar */
.member-avatar-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px;
  overflow: hidden;
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}

/* Member Info */
.member-info {
  margin-bottom: 20px;
  width: 100%;
}

.member-name {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 700;
  color: #0b4870;
}

.member-role-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.briefcase-icon {
  width: 18px;
  height: 18px;
  stroke: #457b9d;
  flex-shrink: 0;
}

.member-role {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #457b9d;
}

.member-company {
  margin: 0;
  font-size: 14px;
  color: #457b9d;
  opacity: 0.8;
}

/* Member Achievement */
.member-achievement {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f0fdf4;
  border-radius: 20px;
  border: 1px solid #86efac;
}

.member-achievement .achievement-badge {
  width: 18px;
  height: 18px;
  stroke: #10b981;
  flex-shrink: 0;
}

.member-achievement span {
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.carousel-container {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #828d8f52;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid #0b4870;
  color: #0b4870;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #0b4870;
  border-color: #0b4870;
  transform: scale(1.1);
}

.carousel-btn:hover svg {
  stroke: white;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(11, 72, 112, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.dot.active {
  background: #0b4870;
  width: 25px;
  border-radius: 5px;
}

.dot:hover {
  background: #457b9d;
}

/* ===================================
   MOBILE RESPONSIVE STYLES
   =================================== */

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .text-block h2 {
    font-size: 48px;
  }

  .text-block p {
    font-size: 20px;
    line-height: 30px;
  }

  #testimonials-container {
    width: 50%;
    max-width: 50%;
  }

  section {
    padding: 40px 4%;
    min-height: 50vh;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  /* Top bar mobile adjustments */
  .top-bar {
    padding: 10px 15px;
    min-height: auto;
  }

  .top-bar .logo {
    width: 90px;
  }

  .links-logos {
    height: 22px;
  }

  #hero-section .links-logos {
    height: 26px;
  }

  .actions {
    gap: 12px;
  }

  /* All sections stack vertically on mobile */
  section {
    flex-direction: column;
    padding: 30px 5%;
    min-height: auto;
  }

  /* Text blocks take full width */
  .text-block {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin-bottom: 25px;
    order: 1;
  }

  .text-block h2 {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .text-block p {
    font-size: 18px;
    line-height: 28px;
    width: 100%;
  }

  /* Images take full width and appear below text */
  .image-box {
    width: 90%;
    max-width: 400px;
    max-height: none;
    order: 2;
    margin: 0 auto 15px;
  }

  .hero-img {
    width: 90%;
    max-width: 350px;
  }

  /* Hero section specific */
  #hero-section .text-block p {
    width: 100%;
  }

  #hero-section .actions {
    justify-content: flex-start;
    margin-top: 20px;
  }

  /* Community graphs */
  .community-graphs {
    width: 100%;
    order: 2;
    margin-top: 20px;
    padding: 15px;
  }

  /* Statistics cards */
  .Statistics-cards-container {
    width: 100%;
    order: 2;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
  }

  .card-background {
    padding: 18px;
  }

  .cards-number {
    font-size: 28px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-img {
    font-size: 28px;
    margin: 10px;
  }

  /* Members */
  #members-container {
    width: 100%;
    max-width: 100%;
    order: 2;
    margin-top: 20px;
  }

  .member-card {
    padding: 25px;
  }

  .member-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
  }

  .member-name {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .member-role {
    font-size: 15px;
  }

  .member-company {
    font-size: 13px;
  }

  .briefcase-icon {
    width: 16px;
    height: 16px;
  }

  .member-achievement {
    padding: 8px 16px;
  }

  .member-achievement span {
    font-size: 12px;
  }

  /* Donation box adjustments */
  .donation-box {
    width: 100%;
    max-width: 450px;
    padding: 30px 25px;
    order: 2;
    margin: 20px auto 0;
    gap: 18px;
  }

  .donation-box h1 {
    font-size: 32px;
  }

  .donation-text {
    font-size: 17px;
    line-height: 26px;
    max-width: 100%;
  }

  .donation-button {
    font-size: 20px;
    padding: 14px 35px;
  }

  .heart-icon {
    width: 22px;
    height: 22px;
  }

  .donation-footer {
    font-size: 13px;
  }

  .join-img {
    width: 100%;
    max-width: 350px;
    order: 1;
    margin-bottom: 25px;
  }

  /* Make sure target and magshimim images aren't too large */
  .target-img,
  .magshimim-img {
    max-width: 300px;
  }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
  .top-bar {
    padding: 8px 12px;
  }

  .top-bar .logo {
    width: 75px;
  }

  .links-logos {
    height: 20px;
  }

  #hero-section .links-logos {
    height: 24px;
  }

  .actions {
    gap: 10px;
  }

  .text-block h2 {
    font-size: 32px;
  }

  .text-block p {
    font-size: 16px;
    line-height: 26px;
  }

  section {
    padding: 30px 5%;
  }

  /* Statistics cards - single column on very small screens */
  .Statistics-cards-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-background {
    padding: 15px;
  }

  .cards-number {
    font-size: 24px;
  }

  .card-title {
    font-size: 12px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
  }

  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }

  .member-card {
    padding: 20px;
  }

  .member-avatar-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .member-name {
    font-size: 20px;
  }

  .member-role {
    font-size: 14px;
  }

  .member-company {
    font-size: 12px;
  }

  .briefcase-icon {
    width: 14px;
    height: 14px;
  }

  .member-achievement {
    padding: 8px 14px;
  }

  .member-achievement span {
    font-size: 11px;
  }

  .member-achievement .achievement-badge {
    width: 16px;
    height: 16px;
  }

  .donation-box {
    padding: 25px 20px;
    gap: 15px;
  }

  .donation-box h1 {
    font-size: 26px;
  }

  .donation-text {
    font-size: 15px;
    line-height: 24px;
  }

  .donation-button {
    font-size: 18px;
    padding: 12px 30px;
  }

  .heart-icon {
    width: 20px;
    height: 20px;
  }

  .donation-footer {
    font-size: 12px;
  }

  /* Ensure chart labels are always visible on mobile */
  .community-graphs {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 450px;
    padding: 16px;
  }

  .community-graphs canvas {
    min-height: 400px !important;
  }
}
