/* ==================================================
   Reset / Base
================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
code,
del,
dfn,
em,
img,
q,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html,
body {
  margin: 0;
  padding: 0;
  text-align: center;
}

body {
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.5;
  background: #fff;
  color: #000;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #526f80;
  text-decoration: none;
}

a:hover {
  color: #806252;
}

/* ==================================================
   Typography
================================================== */

h1,
h2,
h3,
h4,
h5 {
  font-weight: bold;
}

h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0.5em 0;
}

h2 {
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.25;
  margin-bottom: 1em;
}

h3 {
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h4,
h5 {
  font-size: 1em;
}

p {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
  text-align: left;
  margin: 10px 10px 1.5em;
}

ul,
ol {
  margin: 0 1.5em 1.5em;
}

li ul,
li ol {
  margin: 0 1.5em;
}

/* ==================================================
   Layout
================================================== */

header,
footer {
  text-align: center;
}

#container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: left;
}

#header {
  position: relative;
  width: 100%;
  min-height: 120px;
  background-color: #fefefe;
  text-align: center;
}

#header img {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
}

#content {
  position: relative;
  width: 100%;
  background-color: #fff;
}

/* ==================================================
   Navigation
================================================== */

.main-nav {
  width: 100%;
  background-color: #2c3e50;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.25s ease;
}

.main-nav a:hover {
  background-color: #e67e22;
}

.main-nav a.active {
  background-color: #d35400;
}

/* ==================================================
   Carousel
================================================== */

.image-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 675px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  padding: 10px 14px;
  border: none;
  font-size: 28px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  padding: 10px 0;
  text-align: center;
  background: #f5f5f5;
}

.carousel-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 5px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}

.carousel-dot.active {
  background: #333;
}

/* ==================================================
   Buttons
================================================== */

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #2c3e50;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cta-button:hover {
  color: #fff;
  background-color: #e67e22;
  transform: translateY(-2px);
}

.cta-button:active {
  background-color: #d35400;
  transform: translateY(1px);
}

/* ==================================================
   Product Boxes
================================================== */

.productBox {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 900px;
  gap: 25px;
  margin: 30px auto;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.product-image {
  flex: 0 0 300px;
}

.product-image img {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  margin-top: 0;
  font-size: clamp(18px, 3vw, 22px);
}

.product-info p {
  margin: 6px 0;
}

/* ==================================================
   Specifications Table
================================================== */

.spec-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table th,
.spec-table td {
  padding: 12px;
  border: 1px solid #ddd;
  vertical-align: top;
}

.spec-table th {
  width: 35%;
  font-weight: bold;
  background-color: #f2f2f2;
}

.spec-table tr:nth-child(even) td {
  background-color: #fafafa;
}

/* ==================================================
   Footer
================================================== */

#footerSection {
  min-height: 275px;
  padding: 30px 16px;
  clear: both;
  text-align: center;
  background-color: #000;
}

#footerSection p {
  color: #fff;
  text-align: center;
}

#footerSection a img {
  border: none;
}

.mediatunesLogo {
  padding: 0.5em;
  text-align: center;
}

/* ==================================================
   Utility
================================================== */

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 768px) {
  #container {
    padding: 0 12px;
  }

  #header {
    min-height: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .carousel-slide img {
    height: 360px;
  }

  .carousel-btn {
    padding: 8px 10px;
    font-size: 22px;
  }

  .productBox {
    flex-direction: column;
    text-align: center;
  }

  .product-image {
    flex: none;
  }

  .product-info p {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    background-color: #eaeaea;
  }
}

@media (max-width: 480px) {
  .carousel-slide img {
    height: 260px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  p {
    margin-right: 0;
    margin-left: 0;
  }
}

/* ==================================================
   Print
================================================== */

@media print {
  #leftcol {
    display: none;
  }

  #twocols,
  #maincol {
    width: 100%;
    float: none;
  }
}

.about-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.about-section ul {
  margin: 15px 0 20px 20px;
}

.about-cta {
  margin-top: 30px;
}