/* ============================
   Global Styles
============================ */

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #ffffff;
  background-image: url('iStock-1246619056.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.6;
}

a {
  color: #cce6ff;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  margin-top: 0;
}

p {
  color: #ffffff;
}

/* ============================
   Header & Navigation
============================ */

header {
  background: transparent !important;
  padding: 28px 20px 14px;
  color: #ffffff;
}

/* Three-column table: logo | title | flag */
.header-table {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 10px auto;
}

.header-table table {
  width: 100%;
  border-collapse: collapse;
}

.header-cell {
  vertical-align: middle;
  padding: 4px 0;
}

.left-cell {
  width: 20%;
  text-align: left;
  position: relative;
}

.center-cell {
  width: 60%;
  text-align: center;
}

.right-cell {
  width: 20%;
  text-align: right;
  position: relative;
}

.left-cell .logo {
  position: relative;
  left: 70px;
}

.right-cell .flag-icon-right {
  position: relative;
  right: 70px;
}
/* Logo and Flag */

.logo {

  height: 100px;       /* was 60px */

  max-height: none;

  width: auto;

  filter: brightness(0) invert(1);

}

.flag-icon-right {

  height: 55px;        /* was 32px */

  max-height: none;

  width: auto;

  border-radius: 2px;

}

/* Modern premium title */
.header-table .site-title {
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
}

.header-table .site-title .brand-main {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: 0.5px;
}

.header-table .site-title .brand-sub {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 3px;
  opacity: 0.9;
}

.header-table p {
  margin: 8px 0 0 0;
  font-size: 0.92rem;
  color: #e5f1ff;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Navigation */
nav {
  text-align: center;
  margin-top: 10px;
}

nav a {
  display: inline-block;
  margin: 0 12px;
  font-weight: 500;
}

/* Dropdown Menu */

.dropdown {
  display: inline-block;
  position: relative;
  margin: 0 12px;
  vertical-align: middle;
}
.dropdown::after {

  content: "";

  position: absolute;

  left: 0;

  top: 100%;

  width: 100%;

  height: 8px;

}

.dropdown > a {
  display: inline-block;
  margin: 0;
  font-weight: 500;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 6px);

min-width: 230px;

background: rgba(24,52,128,0.96);

border: 1px solid rgba(255,255,255,0.12);

border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
  padding: 4px 0;
}

.dropdown-content a {
  display: block;
  margin: 0;
  padding: 8px 18px;
  color: #ffffff;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.2;
}

.dropdown-content a:hover {
  background: rgba(27,63,102,0.95);
  text-decoration: none;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ============================
   Main Content
============================ */

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 40px;
  background: transparent !important;
}

h2 {
  border-bottom: 2px solid #cce6ff;
  padding-bottom: 4px;
  margin-bottom: 16px;
  display: inline-block;
}



/* ============================
   Footer
============================ */

footer {
  text-align: center;
  padding: 18px 10px 22px;
  color: #ffffff;
  background: transparent !important;
}

footer a {
  color: #cce6ff;
}

/* ============================
   Summary Logos
============================ */

.summary-logos {
  display: flex;
  gap: 3px;
  margin: 15px 0 25px 0;
  align-items: center;
  flex-wrap: wrap;
}

.summary-logos img {
  height: 80px;
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.summary-logos img:hover {
  transform: scale(1.15);
  opacity: 1;
}

/* ============================
   Responsive Design
============================ */

@media (max-width: 768px) {
  .header-table table,
  .header-table tr,
  .header-table td {
    display: block;
    width: 100%;
  }

  .header-cell,
  .left-cell,
  .center-cell,
  .right-cell {
    text-align: center;
    padding: 8px 0;
  }

  .logo {
    height: 55px;
  }

  .flag-icon-right {
    height: 28px;
  }

  .header-table .site-title {
  line-height: 1.02;
}

.header-table .site-title .brand-main {
  font-size: 1.95rem;
  letter-spacing: 0.5px;
}

.header-table .site-title .brand-sub {
  font-size: 0.9rem;
  letter-spacing: 2px;
}

  .header-table p {
    font-size: 0.88rem;
  }

  .slide img {
    width: 90%;
  }

  .left-cell .logo {
    left: 0;
  }

  .right-cell .flag-icon-right {
    right: 0;
  }

  nav {
    line-height: 2.1;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-content {
    left: 50%;
    min-width: 240px;
  }

  .dropdown-content a {
    padding: 10px 14px;
    text-align: center;
  }

}
/* ============================
   Porsche Tour Page
============================ */

/* Smooth scrolling when clicking menu links */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}


/* ============================
   Introduction
============================ */

.intro-section {
  margin-bottom: 50px;
}

.intro-section h1 {
  margin-bottom: 8px;
}

.lead {
  margin-top: 0;
  margin-bottom: 25px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #cce6ff;
}


/* ============================
   About Me
============================ */

.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
  margin: 30px 0 60px;
}

.profile-text {
  min-width: 0;
}

.profile-image {
  text-align: center;
}

.profile-image img {
  display: block;

  /* Change this value to make the image larger or smaller */
  width: 100%;
  max-width: 500px;

  height: auto;
  margin: 0 auto;

  border-radius: 10px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.4);
}


/* ============================
   Porsche
============================ */

.car-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
  margin: 30px 0 60px;
}

.car-image {
  text-align: center;
}

.car-image img {
  display: block;

  width: 100%;
  max-width: 500px;

  height: auto;
  margin: 0 auto;

  border-radius: 10px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.4);
}

.car-details {
  padding-left: 22px;
}

.car-details li {
  margin-bottom: 6px;
}


/* ============================
   Day Navigation
============================ */

.day-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin: 15px 0 45px;
}

.day-navigation a {
  display: inline-block;

  padding: 8px 15px;

  color: #ffffff;

  background:
    rgba(0, 85, 165, 0.75);

  border:
    1px solid rgba(255, 255, 255, 0.25);

  border-radius: 6px;

  font-weight: 600;
}

.day-navigation a:hover {
  background:
    rgba(0, 119, 204, 0.95);

  text-decoration: none;
}


/* ============================
   Daily Sections
============================ */

.day-section {
  margin: 30px 0 80px;
  padding-top: 20px;
}

.day-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  gap: 25px;

  margin-bottom: 18px;

  border-bottom:
    2px solid #cce6ff;
}

.day-header h2 {
  display: block;

  margin: 3px 0 8px;

  border-bottom: none;
}

.day-number {
  display: block;

  font-family:
    "Montserrat",
    Arial,
    sans-serif;

  font-size: 0.95rem;

  font-weight: 700;

  color: #cce6ff;

  text-transform: uppercase;

  letter-spacing: 1.5px;
}

.day-distance {
  margin-bottom: 10px;

  color: #e5f1ff;

  font-weight: 600;

  white-space: nowrap;
}

.day-summary {
  max-width: 850px;

  margin-bottom: 25px;
}


/* ============================
   Map and Hotel
============================ */

.day-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 25px;

  align-items: stretch;
}

.travel-card {
  overflow: hidden;

  background:
    rgba(0, 0, 0, 0.42);

  border:
    1px solid
    rgba(255, 255, 255, 0.16);

  border-radius: 10px;

  box-shadow:
    0 8px 22px
    rgba(0, 0, 0, 0.3);
}

.travel-card > a {
  display: block;
}

.travel-card img {
  display: block;

  width: 100%;

  height: 280px;

  object-fit: cover;
}

.travel-card img:hover {
  opacity: 0.9;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;

  font-family:
    "Montserrat",
    Arial,
    sans-serif;
}

.route-details,
.hotel-details {
  padding-left: 22px;
}

.route-details li,
.hotel-details li {
  margin-bottom: 6px;
}


/* ============================
   Links
============================ */

.card-links {
  display: flex;

  flex-wrap: wrap;

  gap: 10px 20px;

  margin-top: 20px;
}

.card-links a {
  font-weight: 600;

  text-decoration: underline;

  text-underline-offset: 3px;
}


/* ============================
   Practical Information
============================ */

.day-notes,
.planned-stops,
.mountain-passes {
  margin-top: 35px;
}

.travel-notes {
  padding-left: 22px;
}

.travel-notes li {
  margin-bottom: 7px;
}


/* ============================
   Mountain Pass
============================ */

.pass-card {
  max-width: 700px;

  padding: 20px;

  background:
    rgba(0, 0, 0, 0.35);

  border:
    1px solid
    rgba(255, 255, 255, 0.14);

  border-radius: 9px;
}

.pass-card h4 {
  margin-bottom: 12px;
}

.pass-card ul {
  padding-left: 22px;
}


/* ============================
   Back to Top
============================ */

.back-to-top {
  margin-top: 30px;

  text-align: right;
}

.back-to-top a {
  font-weight: 600;
}


/* ============================
   Mobile
============================ */

@media (max-width: 768px) {

  .profile-section,
  .car-section,
  .day-grid {
    grid-template-columns: 1fr;
  }

  .profile-section,
  .car-section {
    gap: 22px;

    margin-bottom: 45px;
  }

  .profile-image img,
  .car-image img {
    width: 100%;

    max-width: 550px;
  }

  .car-image {
    order: 2;
  }

  .car-text {
    order: 1;
  }

  .day-header {
    display: block;
  }

  .day-distance {
    margin:
      0 0 10px;

    white-space: normal;
  }

  .travel-card img {
    height: auto;

    max-height: 350px;
  }

}
.country-flags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  font-size: 60px;
  line-height: 1;
}

.country-flags span {
  display: inline-block;

}
