/* Base styles */
:root {
  --www-udemy-com-semantic-link-font-family: "Roboto", Helvetica;
  --www-udemy-com-semantic-link-font-weight: 700;
  --www-udemy-com-semantic-link-font-size: 14px;
  --www-udemy-com-semantic-link-letter-spacing: 0px;
  --www-udemy-com-semantic-link-line-height: 16.799999237060547px;
  --www-udemy-com-semantic-link-font-style: normal;
  --body-medium-medium-font-family: "Roboto-Bold";
  --body-medium-medium-font-weight: 500;
  --body-medium-medium-font-size: 14px;
  --body-medium-medium-letter-spacing: 0px;
  --body-medium-medium-line-height: 160.0000023841858%;
  --body-medium-medium-font-style: normal;
  --www-udemy-com-width-80: 80px;
  --www-udemy-com-color-white-solid: rgba(255, 255, 255, 1);
}


* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--body-medium-medium-font-family);
}

body {
  background-color: #f5f5f5;
  margin-top: -1.00px;
  font-weight: var(--body-medium-medium-font-weight);
  font-size: var(--body-medium-medium-font-size);
  letter-spacing: var(--body-medium-medium-letter-spacing);
  line-height: var(--body-medium-medium-line-height);
  white-space: nowrap;
  font-style: var(--body-medium-medium-font-style);
}

a {
    text-decoration: none;
    color: inherit;
    font-family: "Roboto-Bold", Helvetica;
}
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}

.swayam-logo img {
  position: relative;
  width: 100px;
  height: 41.6px;
  object-fit: cover;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-button {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #FFFFFF;
  font-weight: 700;
  color: #234193;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 16.8px;
  white-space: nowrap;
  border: 1px solid;
  border-color: #234193;
}
.nav-button.signup {
  background-color: #234193;
  color: #ffffff;
  border-style: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 50px 5%; /* 50px top and bottom, 5% left and right margin */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-box {
  position: absolute;
  left: 10%; /* Align box to the left with margin */
  background-color: white;
  color: black;
  padding: 50px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 440px; /* Allow box to expand based on content */
  text-align: left;
  word-wrap: break-word; /* Ensures text doesn't overflow */
  overflow-wrap: break-word; /* Ensures long words wrap inside */
  box-sizing: border-box; /* Includes padding in box size */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 150px; /* Ensures a minimum height for the box */
  max-height: 70%; /* Prevents box from growing too large */
}

/* Apply box-sizing to ensure no overflow */
.hero-box, .card {
  box-sizing: border-box;
  white-space: normal;
  width: fit-content;
}

.hero-title {
  font-size: 1.6rem;
  margin-top: -1.00px;
  font-weight: 700;
  color: #2d2f31;
  letter-spacing: -0.16px;
  line-height: 40px;
}

.hero-text {
  font-size: 1rem;
  margin: 0;
}

.hero-box button {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 16.8px;
  white-space: nowrap;
  border: 1px solid;
  border-color: #234193;
  background-color: #234193;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 10px;
  align-self: flex-start; /* Align button to the left */
}

/* Flexbox container */
.cards {
  display: flex;
  flex-wrap: wrap; /* Wrap cards into rows */
  gap: 20px; /* Space between cards */
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px; /* Max container width */
  padding: 20px;
}

/* Default: 3 cards per row */
.card {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  min-width: 200px;
  background-color: white;
  border-radius: 8px;
  border: 1px solid #d1d7dc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  height: auto; /* Let the card height adjust according to content */
  min-height: 150px; /* Ensure minimum card height */
  white-space: normal;
  width: fit-content;
}

/* Medium screens: 2 cards per row */
@media screen and (max-width: 1024px) {
  .card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50%);
  }
}

/* Small screens: 1 card per row */
@media screen and (max-width: 600px) {
  .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Headline */
.head-cards {
  font-size: 2rem;
  margin-bottom: 10px;
  margin-top: 60px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.60px;
  line-height: normal;
}

/* Card Content */
.card-heading {
  font-weight: 700;
  font-size: 14px;
  color: #000;
  margin-bottom: 8px;
}

.card-para {
  font-weight: 400;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}


/* General styling for the logos container */
.logos {
    text-align: center;
    margin: 80px 80px;
}

.logos h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

/* Styling for the table */
.logos table {
    width: 100%;
    border-collapse: collapse;
}

.logos td {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Space between logos */
}

/* Styling for each logo */
.logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* Responsive Design */

/* Large screens: Show all 12 logos in a single row */
@media screen and (min-width: 1024px) {
    .logos td {
        flex-wrap: nowrap; /* Disable wrapping */
        justify-content: space-between; /* Distribute evenly across the row */
    }
}

/* Medium screens: Show 6 logos in 2 rows */
@media screen and (max-width: 1023px) {
    .logos td {
        flex-wrap: wrap; /* Enable wrapping */
        justify-content: center; /* Center the logos */
    }
    .logo {
        width: calc(100% / 6 - 10px); /* Fit 6 logos per row */
    }
}

/* Small screens: Show 4 logos in 3 rows */
@media screen and (max-width: 768px) {
    .logos td {
        flex-wrap: wrap; /* Enable wrapping */
        justify-content: center; /* Center the logos */
    }
    .logo {
        width: calc(100% / 4 - 10px); /* Fit 4 logos per row */
    }
    .hero-box {
        margin: 10%;
        padding: 30px;
        max-height: fit-content;
    }
}

/* Extra-small screens: Show all logos in a single column */
@media screen and (max-width: 480px) {
    .logos td {
        flex-direction: column; /* Stack logos vertically */
        justify-content: center; /* Center align the logos */
    }
    .logo {
        width: calc(100% / 2 - 10px);
        align-self: center;
    }
    .hero-box {
        margin: inherit;
    }
}

