/* ==============================
   Family Activities Page CSS
============================== */

/* Grid for activity cards */
.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Individual card styling */
.study-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for cards */
.study-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

/* Images should stay square */
.study-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Card content */
.study-content {
  padding: 15px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.study-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #222;
}

.study-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Footer link inside card */
.study-footer {
  margin-top: auto;
  text-align: right;
}

.study-footer a {
  text-decoration: none;
  font-weight: 600;
  color: #1e73be;
  transition: color 0.2s;
}

.study-footer a:hover {
  color: #145a8a;
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
  .study-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .study-content h3 {
    font-size: 1.1rem;
  }

  .study-content p {
    font-size: 0.9rem;
  }
}

/* Apply only inside family-activities page */
.family-activities-page .study-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.family-activities-page .study-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Footer logo edge-to-edge */
footer .footer-logo img {
    width: 100%;      /* full width of the container */
    height: auto;     /* keep aspect ratio */
    object-fit: contain;  /* prevent distortion */
    padding: 0;       /* no extra padding */
    margin: 0;        /* flush to container edges */
    border-radius: 0; /* remove rounding */
    background: none; /* no background color */
    display: block;
}
