/* General Styling*/
body {
  font-family: "Montserrat", sans-serif;
}

/* Remove padding since first-hightlight-wrapper has its own spacing */
body {
  padding-top: 0;
}

/* Nav height variable (mobile default) */
:root {
  --nav-height: 56px;
}

/* Skip link - visible on focus for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 9999;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}
a {
  color: #06c;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Shift section containers up by 20px (exclude nav/footer containers) */
section .container {
  margin-top: -20px;
}

/* Ensure images in containers always fit and maintain aspect ratio */
.left-side-container img,
.right-side-container img,
.container img,
img.responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.white {
  color: #fff;
}
.black {
  color: #1d1d1f;
}
.grey {
  color: #86868b;
}
.top-50 {
  margin-top: 0px;
}
/* Header Style */
.nav-wrapper {
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.85em;
  font-weight: 200;
}
.nav-wrapper ul li a {
  color: #fff;
}
.navbar-toggler {
  color: #fff;
}
.nav-item {
  text-align: left !important;
  padding: 4px 0;
  border-bottom: 1px solid #4b4b4b;
}

/* Updated Navigation Styles */
@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .nav-item {
    text-align: center !important;
    padding: 0;
    border-bottom: 0;
  }
  .nav-link {
    padding: 0 8px !important;
    font-size: 0.8em;
    white-space: nowrap;
  }
  .nav-link img {
    width: 16px;
    height: 16px;
  }
}

/* Footer Styling */
.footer-wrapper {
  background-color: #f5f5f7;
  color: #86868b;
  font-size: 0.7em;
}
.footer-wrapper ul {
  list-style: none;
  padding-bottom: 10px;
  padding-inline-start: 0px;
}
.footer-wrapper ul a {
  color: #515154;
}
.my-apple-wrapper {
  padding-bottom: 15px;
  margin-top: 10px;
}
.copyright {
  margin-top: 15px;
}
.footer-country {
  margin-top: 8px;
}
.flag-wrapper {
  display: inline-block;
  vertical-align: middle;
  padding-right: 5px;
}
.footer-country-name {
  display: inline-block;
  vertical-align: middle;
}
.footer-links-terms ul {
  display: flex;
}
.footer-links-terms ul li {
  padding: 0 10px;
  border-right: 1px solid #d2d2d7;
}
.footer-links-terms ul li:first-child {
  padding-left: 0;
}
.footer-links-terms ul li:last-child {
  border-right: 0;
}

.footer-links-wrapper h3 {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
}
.footer-wrapper ul li {
  padding: 4px 0;
}
.upper-text-container {
  border-bottom: 1px solid #d2d2d7;
  padding: 17px 0 10px;
  margin-bottom: 20px;
}
.upper-text-container a {
  color: #515154;
}
/*Sixth Section*/
.sixth-highlight-wrapper .left-side-wrapper .left-side-container {
  background-image: url("../imagesnew/tradeinsm.jpg");
  background-color: #000;
  background-position: bottom;
  padding-top: 15px;
  margin: 0 0 10px 0;
  background-size: cover;
}
.sixth-highlight-wrapper .right-side-wrapper .right-side-container {
  background-image: url("../imagesnew/cardbig.jpg");
  background-color: #fbfbfd;
  background-position: bottom;
  padding-top: 15px;
  margin: 0 0 10px 0;
  background-size: auto;
}

.left-side-container {
  min-height: 60vh; /* responsive height */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}

.right-side-container {
  min-height: 60vh; /* responsive height */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}

/* Specific height for sixth section containers */
.sixth-highlight-wrapper .left-side-container,
.sixth-highlight-wrapper .right-side-container {
  min-height: 85vh; /* shorter height for sixth section */
}
.left-side-wrapper {
  padding-right: 0px;
  padding-left: 0px;
}

.right-side-wrapper {
  padding-right: 0px;
  padding-left: 0px;
}
.sixth-highlight-wrapper .links-wrapper {
  max-width: 350px;
  margin: 0 auto;
}
.links-wrapper ul {
  list-style: none;
}
.product-title {
  font-weight: 700;
  font-size: 3.5rem;
}

.links-wrapper {
  padding: 0;
  margin-top: 10px;
}
.links-wrapper ul li {
  display: inline-block;
  padding-right: 20px;
}
.links-wrapper ul li a {
  color: #06c;
  text-decoration: none;
  font-size: 21px;
}
.links-wrapper ul li a:hover {
  color: #000;
}
.links-wrapper ul li a:after {
  font-family: "FontAwesome";
  font-weight: 900;
  content: "\f105";
  padding-left: 10px;
}
.title-wrapper {
  font-weight: 600;
  font-size: 30px;
  line-height: 1.15em;
  letter-spacing: -0.04em;
  margin-top: 20px;
}
.title-wrapper.bold {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15em;
  letter-spacing: -0.04em;
}
.right-side-wrapper .title-wrapper {
  max-width: 280px;
  margin: 0 auto;
}

/*Fifth Section*/
.fifth-highlight-wrapper .left-side-wrapper .left-side-container {
  background-image: url("../imagesnew/macbookairbig.jpg");
  background-color: #000;
  padding-top: 35px;
  margin: 10px;
  background-size: cover;
}
.fifth-highlight-wrapper .right-side-wrapper .right-side-container {
  background-image: url("../imagesnew/ipadairbig.jpg");
  background-color: #fbfbfd;
  background-position: bottom;
  padding-top: 35px;
  margin: 10px;
  background-size: cover;
}

.watch-more-wrapper a {
  text-decoration: none;
  font-size: 0.85em;
  color: #fff;
}
.watch-more-wrapper a:after {
  font-family: "FontAwesome";
  font-weight: 900;
  content: "\f144";
  padding-left: 15px;
}
.tvshow-logo-wrapper {
  padding: 340px 0 0px;
}
.blue {
  color: #0071e3;
  font-style: italic;
}
/* Fourth section */
.fourth-highlight-wrapper .left-side-wrapper .left-side-container {
  background-image: url("../imagesnew/watchSm.jpg");
  padding-top: 35px;
  margin: 10px;
  background-size: cover;
}
.fourth-highlight-wrapper .right-side-wrapper .right-side-container {
  background-image: url("../imagesnew/airpodsm5th.jpg");
  padding-top: 35px;
  margin: 10px;
  background-size: auto;
}
.links-wrapper.white li a {
  color: #fff;
}
.fourth-highlight-wrapper .right-side-wrapper .title-wraper {
  max-width: 380px;
}
/*Third section*/
.third-highlight-wrapper {
  background-image: url("../imagesnew/iphonesm3.jpg");
  height: 580px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: initial;
  background-color: #fbfbfd;
  text-align: center;
  padding: 95px 20px 20px;
  color: #fff;
  margin-bottom: 20px;
}

.third-highlight-wrapper .container {
  margin-bottom: 30px;
}
/*Second section*/
.second-highlight-wrapper {
  background-image: url("../imagesnew/iphonesm2.jpg");
  height: 580px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: initial;
  background-color: #fbfbfd;
  text-align: center;
  padding: 65px 20px;
  color: #fff;
  margin-bottom: 20px;
}
/* Add space below second section */
.second-highlight-wrapper {
  margin-bottom: 20px;
}
/*First Section*/
.first-highlight-wrapper {
  background-image: url("../imagesnew/iphonesm1.jpg");
  height: 580px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: initial;
  background-color: #fbfbfd;
  text-align: center;
  /* Ensure content starts below fixed navbar while background stays flush */
  padding: calc(var(--nav-height) + 20px) 20px 0;
  color: #fff;
  margin-bottom: 20px;
  margin-top: 0 !important;
}

.my-button,
a.my-button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0071e3; /* Apple's signature blue color */
  color: #fff;
  border: none;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease,
    opacity 0.14s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.my-button:hover,
a.my-button:hover {
  background: #0077ed; /* Slightly lighter blue on hover */
}
/*Media Query*/
/* Footer */
@media (max-width: 768px) {
  /* Mobile footer: make each heading a toggle for its list */
  .footer-links-wrapper ul {
    display: none; /* hidden by default on small screens */
  }
  .footer-links-wrapper h3 {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    position: relative;
    cursor: pointer;
    padding-right: 40px; /* space for toggle icon */
  }
  .footer-links-wrapper h3:after {
    font-family: "FontAwesome";
    content: "\f067"; /* plus icon */
    padding-left: 10px;
    position: absolute;
    right: 15px;
    font-size: 12px;
  }
  /* When open, show the list and change icon to minus */
  .footer-links-wrapper h3.open:after {
    content: "\f068"; /* minus icon */
  }
  .footer-links-wrapper h3.open + ul {
    display: block;
  }
}
@media (min-width: 768px) {
  /* Adjust navbar height variable for larger screens */
  :root {
    --nav-height: 44px;
  }
  /*Nav bar*/
  .nav-item {
    text-align: center !important;
    padding: 0;
    border-bottom: 0px;
  }
  /*Footer styling*/
  .my-apple-wrapper {
    border-bottom: 1px solid #d2d2d7;
  }
  /*Sixth section*/
  .sixth-highlight-wrapper .left-side-wrapper .left-side-container {
    margin: 5px 5px 10px 10px;
  }
  .sixth-highlight-wrapper .right-side-wrapper .right-side-container {
    margin: 5px 10px 10px 5px;
  }
  .sixth-highlight-wrapper .links-wrapper {
    max-width: 500px;
  }
  /*Fifth section*/
  .fifth-highlight-wrapper .left-side-wrapper .left-side-container {
    margin: 5px 5px 5px 10px;
  }
  .fifth-highlight-wrapper .right-side-wrapper .right-side-container {
    margin: 5px 10px 5px 5px;
  }
  /*fourth section*/
  .fourth-highlight-wrapper .left-side-wrapper .left-side-container {
    margin: 10px 5px 5px 10px;
  }
  .fourth-highlight-wrapper .right-side-wrapper .right-side-container {
    margin: 10px 10px 5px 5px;
  }
  .title-wraper.bold {
    font-size: 3.5rem;
  }

  .third-highlight-wrapper {
    background-image: url("../imagesnew/iphonebig3.jpg");
    min-height: 90vh;
  }
  /* Second section */
  .second-highlight-wrapper {
    min-height: 692px;
    background-image: url("../imagesnew/iphonebig2.jpg");
  }

  /* First section */
  .first-highlight-wrapper {
    background-image: url("../imagesnew/iphonebig1.jpg");
    min-height: 70vh;
    margin-top: 0 !important;
    padding-top: calc(var(--nav-height) + 20px) !important;
  }
  .ipod-caption {
    padding-top: 45vh;
  }
  /*Alert section*/
  .alert-text {
    max-width: 85%;
    margin: 0 auto;
  }
}
@media (min-width: 992px) {
  /*Footer styling*/
  .copyright {
    margin-top: 10px;
  }
  .footer-country {
    margin-top: 10px;
  }
  .footer-links-terms {
    margin-top: 10px;
  }
}
