/* ======= GENERAL ======= */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* elimină scroll-ul orizontal */
  width: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: rgb(213, 234, 255); /* corectare de la 263 */
}

/* ======= NAVBAR ======= */
.navbar {
  background-color: rgb(20, 35, 87);
  display: flex;
  justify-content: center;
  padding: 15px 0;
  border-bottom: 5px solid rgb(243, 187, 84);
}

.navbar a {
  color: rgb(243, 187, 84);
  text-decoration: none;
  margin: 0 20px;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: white;
}

/* ======= TITLURI ======= */
h1 {
  text-align: center;
  color: rgb(20, 35, 87);
  margin-top: 40px;
  font-size: 36px;
}

/* ======= SECTIUNE GRID 2x2 (INDEX & PEOPLE) ======= */

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 40px;
  padding: 40px 10%;
}

.grid-2x2 .cell {
  font-size: 16px;
  line-height: 1.6;
  color: rgb(20, 35, 87);
}

.grid-2x2 .cell.image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.grid-2x2 .cell.text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
  }
/* ======= RESPONSIVITATE GENERALĂ ======= */

@media (max-width: 768px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
  }

  .grid-2x2 .cell {
    text-align: center;
  }
}


/* ======= MODIFICĂRI DOAR PENTRU PAGE: people.html ======= */

.people-page .grid-2x2 .cell.text p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 15px;
  white-space: pre-line;
}

.people-page .grid-2x2 .cell.image img {
  width: 80%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.people-page .person-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 10%;
}

.course-card {
  background-color: #ffffff;
  border: 2px solid #cccccc;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.course-card h2 {
  margin-top: 0;
  color: rgb(20, 35, 87);
}

.course-card h4 {
  color: #444;
  margin-bottom: 10px;
}

.course-card p {
  color: #222;
  line-height: 1.6;
  font-size: 16px;
}
.alineat {
  text-indent: 40px;
  margin: 30px 10%;
}
.title-with-image {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* spațiu între titlu și imagine */
}

.title-with-image h1 {
  margin: 0;
}

.title-image {
  height: 100px; 
  width: auto;
}

.contact-card {
  background-color: rgb(230, 243, 255);
  border: 2px solid #cccccc;
  border-radius: 15px;
  padding: 25px;
  margin: 40px 10%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}