/*=================================================
Destination World Thailand DMC - Website CSS
Author : SIDDHARTHA PINNAMANENI
=================================================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
HEADER
========================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  z-index: 9999;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

/* Logo */
.logo img {
  height: 100px;
  display: block;
}

/* Center Navigation */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #df0e0e;
}

/* Social Icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-social a {
  color: #222;
  font-size: 20px;
  transition: 0.3s;
}

.header-social a:hover {
  color: #d2300f;
}

/* =========================
HERO
========================= */

.hero {
  height: 100vh;

  background: url("../images/hero.jpg") center/cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);
}

.overlay {
  position: relative;
  color: white;
  text-align: center;

  animation: fadeUp 1.2s ease;
}

.overlay h1 {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 20px;
}

.overlay p {
  font-size: 22px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;

  background: #d71920;
  color: white;

  padding: 15px 45px;

  border-radius: 50px;

  text-decoration: none;
  font-weight: 600;

  transition: 0.3s;
}

.btn:hover {
  background: #003d91;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
SECTION
========================= */

section {
  padding: 100px 8%;
}

section h2 {
  text-align: center;

  color: #003d91;

  font-size: 42px;

  margin-bottom: 60px;
}

/* =========================
ABOUT
========================= */

#about {
  background: #f7fbff;
}

.about-content {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.about-content p {
  font-size: 18px;
  line-height: 2;

  margin-bottom: 25px;
}

.about-content h3 {
  color: #d71920;
  font-size: 28px;
}

/* =========================
CARDS
========================= */

.cards {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;
}

.card {
  background: white;

  border-radius: 20px;

  padding: 35px 25px;

  text-align: center;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

  transition: 0.35s;
}

.card:hover {
  transform: translateY(-10px);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.card i {
  font-size: 50px;

  color: #003d91;

  margin-bottom: 20px;
}

.card h3 {
  font-size: 25px;

  margin-bottom: 15px;
}

.card p {
  color: #666;

  line-height: 1.7;
}

/* =========================
DESTINATIONS
========================= */

.destination-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;
}

.destination-grid .card {
  padding: 20px;

  overflow: hidden;
}

.destination-grid img {
  width: 100%;

  height: 220px;

  object-fit: cover;

  border-radius: 15px;

  transition: 0.4s;
}

.destination-grid .card:hover img {
  transform: scale(1.08);
}

/* =========================
TABLE
========================= */

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;

  border-collapse: collapse;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

th {
  background: #003d91;

  color: white;

  padding: 18px;
}

td {
  padding: 18px;

  text-align: center;

  border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
  background: #f5f8ff;
}

tr:hover {
  background: #eaf3ff;
}

/* =========================
CONTACT
========================= */

.contact-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.contact-card {
  background: white;

  padding: 40px;

  border-radius: 20px;

  text-align: center;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

  transition: 0.3s;
}

.contact-card:hover {
  transform: translateY(-8px);
}

.contact-card i {
  font-size: 50px;

  color: #003d91;

  margin-bottom: 20px;
}

.contact-card h3 {
  color: #003d91;

  margin-bottom: 15px;
}

.map iframe {
  width: 100%;

  height: 450px;

  border: 0;

  border-radius: 20px;

  margin-top: 50px;
}

/* =========================
FOOTER
========================= */

footer {
  background:
    linear-gradient(rgba(0, 61, 145, 0.95), rgba(0, 61, 145, 0.95)),
    url("../images/footer.jpg");

  background-size: cover;

  color: white;

  padding: 70px 8%;
}

.footer-container {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 50px;
}

.footer-logo {
  height: 120px;

  margin-bottom: 20px;
}

.footer-col h3 {
  font-size: 25px;

  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin: 12px 0;
}

.footer-col a {
  color: white;

  text-decoration: none;
}

.footer-social a {
  color: white;

  font-size: 25px;

  margin-right: 15px;
}

.footer-social a:hover {
  color: #d71920;
}

footer hr {
  margin: 40px 0;

  border: 0.5px solid rgba(255, 255, 255, 0.3);
}

.copyright {
  text-align: center;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overlay h1 {
    font-size: 45px;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;

    padding: 10px 0;
  }

  .logo img {
    height: 70px;
  }

  nav ul {
    flex-wrap: wrap;

    justify-content: center;

    gap: 15px;
  }

  .overlay h1 {
    font-size: 34px;
  }

  .overlay p {
    font-size: 17px;
  }

  .cards,
  .destination-grid,
  .contact-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  section {
    padding: 70px 5%;
  }

  .map iframe {
    height: 350px;
  }
}

/* =========================
PRIVACY / TERMS
========================= */

/* Legal Accordion */

.legal-page {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.legal-title {
  text-align: center;
  margin-bottom: 40px;
}

.legal-title h1 {
  font-size: 40px;
  color: #0b3d91;
  margin-bottom: 10px;
}

.legal-title p {
  color: #666;
}

.legal-item {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.legal-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #0b3d91;
  position: relative;
}

.legal-item summary::-webkit-details-marker {
  display: none;
}

.legal-item summary::after {
  content: "+";
  position: absolute;
  right: 25px;
  top: 18px;
  font-size: 24px;
  font-weight: bold;
  transition: 0.3s;
}

.legal-item[open] summary::after {
  content: "−";
}

.legal-item p,
.legal-item ul {
  padding: 0 25px 25px;
  color: #555;
  line-height: 1.8;
}

.legal-item ul {
  margin-left: 20px;
}

/* Package Cards */
.destination-grid .card {
  overflow: hidden;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

/* Image */
.destination-grid .card img {
  width: 100%;
  height: 250px; /* Adjust as needed */
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Zoom Image on Hover */
.destination-grid .card:hover img {
  transform: scale(1.15);
}

/* Lift Card */
.destination-grid .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Package Title */
.destination-grid .card h3 {
  text-align: center;
  padding: 15px;
  transition: color 0.3s ease;
}

.destination-grid .card:hover h3 {
  color: #0d6efd;
}
