/* Use system/local fonts instead of web fonts */
* {
  box-sizing: border-box;
}
body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: #e9f0f6;
  color: #2c3e50;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero */
.hero {
  background: url('https://melbournemitra.com/images/flinders.jpeg') center center/cover no-repeat;
  padding: 80px 20px 60px;
  color: #fff;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.45);
  user-select: none;
}
.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 0.5em;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
}
.hero p {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 1.8em;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
}
.lang-switch {
  font-weight: 600;
  font-size: 1.1rem;
}
.lang-switch a {
  color: #ffd700;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
  user-select: none;
}
.lang-switch a:hover {
  color: #fff;
}

/* Section Titles */
h2 {
  text-align: center;
  font-size: 2.4rem;
  margin: 50px 20px 25px;
  font-weight: 600;
  color: #34495e;
  letter-spacing: 0.03em;
}

/* Grid container */
.container {
  max-width: 1300px;
  margin: 0 auto 60px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

/* Card styles */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgb(0 0 0 / 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.18);
  z-index: 10;
}

/* Image wrapper with overlay */
.image-wrapper {
  position: relative;
  overflow: hidden;
  height: 160px;
  flex-shrink: 0;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.card:hover .image-wrapper img {
  transform: scale(1.1);
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
  color: #fff;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 1.1rem;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover .overlay {
  opacity: 1;
}

/* Content */
.content {
  padding: 20px 18px 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.content h3 {
  margin: 0 0 12px 0;
  font-weight: 700;
  font-size: 1.3rem;
  color: #2c3e50;
}
.content p {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #586069;
  line-height: 1.3;
  margin-bottom: 16px;
}
.learn-more {
  font-weight: 600;
  color: #2980b9;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  align-self: flex-start;
}
.learn-more:hover {
  color: #1c5d8a;
  text-decoration: underline;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 0 0 60px;
  user-select: none;
}
.pagination a {
  display: inline-block;
  margin: 0 8px;
  padding: 11px 18px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.pagination a:hover {
  background-color: #216ab5;
  transform: scale(1.1);
}
.pagination a.active {
  background-color: #1abc9c;
  box-shadow: 0 4px 12px rgba(26, 188, 156, 0.7);
  pointer-events: none;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 20px 12px;
  font-weight: 400;
  font-size: 1rem;
  user-select: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}
@media (max-width: 400px) {
  .container {
    grid-template-columns: 1fr;
  }
}
