/* ChamaSpace Minimal Landing Page Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #5c9aa9 0%, #f8fffe 50%, #5c9aa9 100%);
  color: #272556;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Updated container to use split layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left side styling for videos */
.videos-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Right side styling for content */
.content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(34, 145, 165, 0.1);
  
}

/* Added brand section styling */
.brand-section {
  margin-bottom: 1.5rem;
}

.brand-name {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2291a5;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

/* Updated hero section with new messaging */
.hero-section {
  margin-bottom: 3rem;
}

.hero-section h1 {
  /* Increased font size to be second largest after brand name */
  font-size: 3rem;
  font-weight: 700;
  color: #272556;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #565578;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* New video grid section for multiple videos */
.videos-section {
  margin-bottom: 3rem;
}

.videos-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #272556;
  margin-bottom: 2rem;
}

.video-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(34, 145, 165, 0.1);
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(34, 145, 165, 0.2);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* Restored original video frame size by removing max-height restriction */
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-item:hover .play-overlay {
  opacity: 1;
}

.play-button {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2291a5;
  transition: all 0.3s ease;
}

.video-item:hover .play-button {
  background: white;
  transform: scale(1.1);
}

.video-item p {
  padding: 0.75rem;
  font-weight: 500;
  color: #272556;
  font-size: 1.0rem;
  text-align: center;
}

/* Updated trust indicators for horizontal layout */
.trust-indicators {
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(34, 145, 165, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(34, 145, 165, 0.1);
}

.metric {
  text-align: center;
}

.metric-number {
  display: block;
  /* Reduced font size for trust indicators */
  font-size: 1.5rem;
  font-weight: 700;
  color: #2291a5;
  margin-bottom: 0.25rem;
}

.metric-label {
  /* Reduced font size for trust indicator labels */
  font-size: 0.75rem;
  color: #565578;
  font-weight: 500;
}

/* Sign Up Section */
.signup-section {
  max-width: 400px;
  margin: 0 auto;
}

.signup-buttons {
  margin-bottom: 2rem;
}

.btn-primary {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: #2291a5;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: #1a7a8a;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(34, 145, 165, 0.3);
}

.btn-secondary {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: transparent;
  color: #272556;
  border: 2px solid #272556;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #272556;
  color: white;
}

.divider {
  text-align: center;
  margin: 1rem 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e1e8ed;
}

.divider span {
  background-color: #f8fffe;
  padding: 0 1rem;
  color: #565578;
  font-size: 0.875rem;
}

.terms {
  font-size: 0.875rem;
  color: #565578;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.terms a {
  color: #2291a5;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

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

.existing-user p {
  font-size: 1.125rem;
  color: #272556;
  margin-bottom: 1rem;
  font-weight: 500;
}

.existing-user-inline {
  text-align: center;
  margin-top: 1rem;
}

.existing-user-inline p {
  font-size: 1rem;
  color: #272556;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.btn-outline {
  padding: 0.75rem 2rem;
  background-color: transparent;
  color: #2291a5;
  border: 2px solid #2291a5;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #2291a5;
  color: white;
}

.footer-links {
  margin-top: 3rem;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: #565578;
  text-decoration: none;
  font-size: 1.0rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #2291a5;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: #565578;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close:hover {
  background-color: #f5f5f5;
  color: #272556;
}

.video-wrapper {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    grid-template-areas:
      "content"
      "videos";
  }

  .content-side {
    grid-area: content;
    text-align: center;
  }

  .videos-side {
    grid-area: videos;
  }

  .brand-name {
    font-size: 3.25rem;
  }

  .hero-section h1 {
    font-size: 2.25rem;
  }

  .signup-section {
    margin: 0 auto;
  }

  .footer-links {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
    min-height: auto;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .brand-name {
    font-size: 2.75rem;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 10% auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(34, 145, 165, 0.1);
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .brand-name {
    font-size: 2.25rem;
  }

  .video-thumbnail {
    aspect-ratio: 16 / 9;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .modal-content {
    margin: 5% auto;
    padding: 1rem;
  }

  .close {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .main-content {
    gap: 1.5rem;
  }

  .hero-section {
    margin-bottom: 2rem;
  }

  .brand-section {
    margin-bottom: 1rem;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 2rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
  }
}



.nav {
    padding: 0px !important;
}
.logo {
    margin-left: 30%;
}

.prime-color {
    color: #2291A5 !important;
}
.second-color {
    background-color: #222E48 !important;
}
.font {
    font-family: 'Poppins';
}

.svg-container {
    position: relative;
    height: 325px;
    background-color: #007BFF; 
    overflow: hidden; 
    height: 165%;
}
.svg-cutout {
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%; 
    height: auto; 
}
.svg-background {
    background-color: #2291A5;
    height: 100%; 
}

.text-container-hero {
    margin: 10% 15% 0px 8%;
}
.main-text {
    color: white;
    line-height: 200%;
}
.sub-text {
    color: white; 
    font-size: 140%; 
    margin-top: 4%; 
    line-height: 140%;
}
.info-text {
    color: white; 
    font-size: 110%; 
    margin-top: 4%; 
    line-height: 140%; 
    font-style: italic;
}
.hero-sign-up-button {
    width: 45%; 
    height: 52px; 
    font-size: larger;
    font-weight: 600px; 
    background-color: transparent; 
    border-color: #222E48; 
    border: 2px; 
    border-style: solid; 
    border-radius: 15px 0px 15px 0px; 
    margin-top: 15%;
}

.mobile-image-div {
    margin: 3% 11% 0px 0px;
}
.mobile-image {
    height: 50rem; 
    width: 25rem;
}

.metrics-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.metric-item {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}
.metric-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background-color: #e5e7eb;
}
.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
}
.metric-label {
    color: #4b5563;
    font-size: 1.125rem;
}
@media (max-width: 768px) {
    .metrics-row {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .metric-item {
        flex: 1 1 40%;
        padding: 1rem 1.5rem;
    }
    .metric-item:not(:last-child)::after {
        right: -0.75rem;
    }
    .metric-item:nth-child(2n)::after {
        display: none;
    }
    .metric-item:nth-child(-n+2)::before {
        content: "";
        position: absolute;
        bottom: -0.75rem;
        left: 10%;
        width: 80%;
        height: 1px;
        background-color: #e5e7eb;
    }
}
@media (max-width: 480px) {
    .metric-item {
        flex: 1 1 100%;
    }
    .metric-item:not(:last-child)::after {
        display: none;
    }
    .metric-item:not(:last-child)::before {
        content: "";
        position: absolute;
        bottom: -0.75rem;
        left: 10%;
        width: 80%;
        height: 1px;
        background-color: #e5e7eb;
    }
}

.wekeza-container {
    background-color: #DEE2E6;
}
.wekeza-heading {
    color: black;
    font-size: 3rem !important;
}
.wekeza-list-container {
    margin-top: 5%;
}
.wekeza-list-item-svg {
    background-color: white;
    font-size: 400%;
    width: 4rem !important;
    height: 4rem !important;
}
.wekeza-list-and-image-container{
    margin-top: 2%;
}
.wekeza-1 {
    width: 50%;
}
.wekeza-2 {
    width: 40%;
}
.wekeza-start-saving-now-button {
    width: 30%; 
    height: 52px; 
    font-size: larger;
    font-weight: 600px; 
    background-color: #2291A5; 
    border-radius: 15px 0px 15px 0px; 
    margin-top: 5%;
    color: white;
}
.wekeza-goals {
    padding-top: 3%;
}
.wekeza-list-item-margin {
    margin-top: 3%;
}

.chamaz-container {
    background-color: white;
}
.chamaz-2 {
    width: 40%;
}
.chamaz-start-chama-now-button {
    width: 30%; 
    height: 52px; 
    font-size: larger;
    font-weight: 600px; 
    background-color: #2291A5; 
    border-radius: 15px 0px 15px 0px; 
    margin-top: 5%;
    color: white;
}

.how-it-works {
    background-color: #2291A5;
    padding: 60px 0;
}

.step-icon {
    width: 60px;
    height: 60px;
    fill: white;
}
.arrow {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text-white svg {
    fill: white;
}
.steps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
@media (max-width: 768px) {
    .arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
}

.faq-header h1 {
    color: #024731;
}
.faq-section {
    background-color: #F3EBEB;
}
.accordion-button {
    color: #024731;
    font-weight: 500;
    background-color: #f4f4f4;
}
.accordion-button:not(.collapsed) {
    color: #024731;
    background-color: white;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}
.accordion-button::after {
    content: '+';
    background-image: none !important;
    font-size: 24px;
    font-weight: 300;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}
.accordion-button:not(.collapsed)::after {
    transform: rotate(45deg);
}
.accordion-item {
    border-radius: 8px;
    overflow: hidden;
    border: none;
}
.accordion-button {
    border-radius: 8px;
}

@media only screen and (max-width: 450px) {
    .svg-container {
        position: relative;
        height: 325px; 
        background-color: #007BFF; 
        overflow: hidden;
        height: 170%;
    }

    .mobile-image-div{
        margin: 10% 0px 0px 0px;
        justify-content: center;
    }
    .mobile-image {
        height: 40rem;
        width: 20rem;
    }

    .text-container-div {
        justify-content: center !important;
    }
    .text-container-hero {
        margin: 0px;
        width: 78%;
    }
    .main-text {
        color: white;
        line-height: 150%;
        font-size: 120%;
    }
    .sub-text {
        color: white; 
        font-size: 80%; 
        margin-top: 4%; 
        line-height: 140%;
    }
    .info-text {
        color: white; 
        font-size: 80%; 
        margin-top: 4%; 
        line-height: 140%; 
        font-style: italic;
    }
    .hero-sign-up-button {
        width: 47%; 
        height: 30px; 
        font-size: small;
        font-weight: 600px; 
        background-color: transparent; 
        border-color: #222E48; 
        border: 2px; 
        border-style: solid; 
        border-radius: 15px 0px 15px 0px; 
        margin-top: 5%;
    }

    .wekeza-goals {
        padding-top: 10%;
    }
    .wekeza-heading{
        font-size: 200% !important;
    }
    .wekeza-1 {
        width: 100%;
    }
    .wekeza-2 {
        width: 100%;
    }
    .wekeza-list-and-image-container{
        margin-top: 12%;
    }
    .wekeza-list-container {
        margin-top: 12%;
    }
    .wekeza-list-item-svg {
        background-color: white;
        font-size: 350%;
        width: 3.5rem !important;
        height: 3.5rem !important;
    }
    .wekeza-list-item-heading-description {
        font-size: 90%;
        margin: 0;
    }
    .wekeza-list-item-margin {
        margin-top: 7%;
    }
    .wekeza-start-saving-now-button {
        width: 50%; 
        height: 40px; 
        font-size: large;
        font-weight: 600px; 
        background-color: #2291A5; 
        border-radius: 15px 0px 15px 0px; 
        margin-top: 5%;
        color: white;
    }

    .chamaz-2 {
        width: 100%;
    }
    .chamaz-start-chama-now-button {
        width: 70%; 
        height: 52px; 
        font-size: large;
        font-weight: 600px; 
        background-color: #2291A5; 
        border-radius: 15px 0px 15px 0px; 
        margin-top: 5%;
        color: white;
    }

    .app-download-title {
        font-size: 24px !important;
    }
    
    .app-download-text {
        font-size: 14px !important;
    }
}

.store-button {
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.store-button:hover {
    transform: translateY(-5px);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.store-badge {
    gap: 8px;
}

.store-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: -4px;
}

.store-name {
    font-size: 1.1rem;
}

.font-italic {
    font-style: italic;
    opacity: 0.8;
}

.contact-icon-box {
    background-color: #2291A5;
    padding: 12px;
    border-radius: 4px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-section {
    margin-top: 2rem;
}

.contact-form-button {
    margin-top: 2.5rem;
}

.footer-list{
    margin-left: 60%;
}