/* Custom styles for friendly.github.io */

/* Card hover effects */
.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid rgba(0,0,0,.125);
  background-color: rgba(13, 110, 253, 0.04);
}

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

/* Card images */
.card-img-top {
  display: block;
  padding: 1rem;
  max-height: 144px;
}

/* Ensure cards have equal height in grid */
.h-100 {
  height: 100%;
}

/* Button spacing */
.btn {
  margin-top: 0.5rem;
}

/* Section spacing */
.column-page {
  margin-top: 1rem;
}

/* Package section headings */
h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bs-primary);
}

/* Improve spacing in grid layouts */
.grid {
  row-gap: 1.5rem;
}

/* Home page highlight boxes */
.g-col-12 h3 {
  margin-top: 0;
  color: var(--bs-primary);
}

/* Footer styling */
.page-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(0,0,0,.1);
  padding-top: 1rem;
}

/* Book card styling */
.book-card {
  margin-bottom: 2rem;
}

.book-card-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.book-cover-large {
  width: 25%;
  min-width: 120px;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.book-text {
  flex: 1;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .book-card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover-large {
    width: 50%;
    max-width: 180px;
    margin-bottom: 1.5rem;
  }
}

/* Course card styling */
.course-card {
  margin-bottom: 2rem;
}

.course-card-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.course-icon {
  width: 20%;
  min-width: 120px;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.course-text {
  flex: 1;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .course-card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .course-icon {
    width: 50%;
    max-width: 180px;
    margin-bottom: 1.5rem;
  }
}

/* Profile photo styling */
.profile-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 216px;
  height: 216px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
  border: 3px solid var(--bs-light);
}

.profile-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Responsive: stack profile on smaller screens */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo {
    margin-bottom: 1.5rem;
  }
}
