* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;

}


header{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(osaka.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}


header h1 {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(36px, 8vw, 96px);
  line-height: 1.5;
  color: #ffffff;
  background-color: rgba(0, 102, 255, 0.4);
  display: inline-block;
  padding: 0 15px;
}

header h2 {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(18px, 4vw, 30px);
  line-height: 1;
  margin: 0;
  color: #ffffff;
  background-color: rgba(0, 102, 255, 0.4);
  display: inline-block;
  padding: 0 15px;
}


header h3 {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(24px, 5vw, 48px);
  line-height: 1.5;
}

.TRAVEL {
  color: #ffffff;
  margin: 0;
}

header a {
    font-family: "Poppins", sans-serif;
    font-style: normal;
    margin-top: 30px;
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.learn-more {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 30px;
    color: #ffffff;
    background-color: rgba(0, 102, 255, 0.4);
    text-decoration: none;
    border-radius: 5px;
}

.learn-more:hover {
    background-color: rgba(0, 102, 255, 0.7);
}

main {
    font-family: "Poppins", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.grid h2 {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 36px;
}

.castle-img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.osaka-summary {
    grid-column: span 2;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    align-self: center;
}

.cards-section {
    margin-top: 60px;
}

.cards-section h2 {
    text-align: center;
    font-size: 36px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0066ff;
}

.card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

.card iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 5px;
    margin-top: 15px;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #0066ff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-link:hover {
    background-color: #0052cc;
}

footer {
    font-family: "Poppins", sans-serif;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
    text-align: center;
    background-color: #0066ff;
}

footer .footer-div {
    margin: 10px;
}

footer h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

footer h4 a {
    color: #ffffff;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    width: 100%;
    margin-top: 30px;
    color: #ffffff;
}


/* Tablets (iPad landscape and smaller laptops) */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .osaka-summary {
    grid-column: auto;
  }
}

/* Small tablets and large phones (iPad portrait, iPhone landscape) */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .castle-img,
  .osaka-summary {
    grid-column: 1 / -1;
  }
  footer {
    flex-direction: column;
    align-items: center;
  }
}

/* Phones (iPhone portrait) */
@media (max-width: 480px) {
  main {
    padding: 20px 15px;
  }
  .grid h2,
  .cards-section h2 {
    font-size: 28px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .learn-more {
    padding: 10px 20px;
    font-size: 12px;
  }
}