/* CALENDAR */
.calendar-card {
  background: linear-gradient(to right, #CE1126, #14213D); 
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 100%; 
}

.calendar-card h2 {
  font-size: 2em;
  color: white;
  text-shadow: 3px 5px 3px black;
  background: inherit;
  margin: 0;
  padding: 1rem;
  border-radius: 8px;
}

.responsive-calendar {
  max-width: 80%;
  width: 80%;
  min-width: 200px;
  position: relative;
  padding-bottom: 50%; 
  height: 0;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 8px;
}

.responsive-calendar iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* OXFORD */
#oxford_image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);

}

/* HEADER SECTION */
.Oxford-header-text{
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 25;
  width: 100%;
  top: 21%;
  color: White;
  font-family: "Antic Didone";
  font-size: 3rem;
  font-weight: 500;
  text-shadow: 3px 5px 3px black;
  gap: 40px;
  margin-top: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  letter-spacing:  0.2rem;
}
.intro-section {
  margin-top: 20px;
  text-align: center;
}

#welcome-to-oxford-container h2 {
  color: #014235;
  font-family: "Antic Didone", serif;
  font-weight: 500;
  letter-spacing: .5rem;
  font-size: 2.5rem;
  margin: 0;
}

#welcome-to-oxford-container p {
  font-size: 1.3rem;
  color: #1b5e20;
  font-family: "Albert Sans", sans-serif;
  margin-bottom: 20px;
}


/* TOP CARDS */
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-card-link{
  text-decoration: none;
}

.about_card {
  display: flex;
  flex-direction: column;
  margin: 0.5rem auto;
  transition: transform 0.3s, box-shadow 0.3s ease;
  width: 90%;
}

.feature{
  display: flex;
  flex-direction: column;
  max-width: 300px;
  margin: 0.5rem auto;
  padding: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s ease;
  width: 90%;
}

.about_card:hover, .feature:hover {
  position: relative;
}

.about_card::after {
  content: '';
  bottom: 0;
  left: 0;
  width: 0;
  height: 6px;
  background: #0b3a2d1e;
  transition: width 0.3s ease;
}

.about_card:hover::after{
  width: 100%;
}

.about_card img, .feature img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 5px rgba(0, 0, 0, 0.2);
}

.about_card h3, .feature h3 {
  text-align: center;
  font-size: 1.5rem;
  font-family: "Antic Didone";
  color: #014235;
  font-weight: 600;
  margin: 0;
  padding-top: 20px;
}

.about-card-description-container p {
  font-size: 1rem;
  color: #1b5e20;
  font-family: "Albert Sans", sans-serif;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto;
  max-width: 1200px;
}

/* WHY OXFORD */
.why-oxford {
  padding: 0 5% 5%;
  text-align: center;
}

.why-oxford h2 {
  font-size: 2.2em;
  color: #014235;
  font-family: "Antic Didone", serif;
  letter-spacing: .5rem;
  font-weight: 500;
}

.why-oxford p {
  font-size: 1.3rem;
  color: #1b5e20;
  font-family: "Albert Sans", sans-serif;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.feature {
  background: #f9f9f951;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.182);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1rem;
  transition: background-color 0.3s ease;
  font-family: "Albert Sans", sans-serif;
  font-size: 1rem;
  color: #1b5e20;
  font-weight: 600;
}

.feature a:hover {
  background-color: rgba(30, 141, 30, 0.462);
}

/* EXPLORE OXFORD */
.explore-oxford h2 {
  font-size: 3em;
  color: #EAEEFB;
  text-align: center;
}

.explore-oxford iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .three-columns, .features-grid {
    display: flex;
    flex-direction: column;
  }
  .about_card, .feature {
    max-width: none;
  }
  .features-grid{
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 590px) {
  .responsive-calendar {
    max-width: 100%;
    width: 100%;
    padding-bottom: 90%;
  }
  .calendar-card h2 {
    font-size: 1.3rem;
  }
  .Oxford-header-text {
    font-size: 1.6rem;
    top: 25%;
  }
  #oxford_image {
    height: 500px;
  }
  .about_card{
    width: 100%;
  }
  .about-card-image-container img{
    border-radius: 0;
  }
}

@media (max-width: 400px) {
  .responsive-calendar {
    max-width: 100%;
    width: 100%;
    padding-bottom: 80%;
  }
  .calendar-card h2 {
    font-size: 1.3rem;
  }
}
