/* =========================================================
   GLOBAL RESET & BASE STYLES
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0b0d14;
  color: #cfd6e6;
  line-height: 1.6;
}

/* Requirement: Center page content using right and left margins */
#page-wrapper {
  max-width: 1080px;
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: auto;  /* Centering */
  margin-right: auto; /* Centering */
  background-color: #131622;
  border: 1px solid #23273c;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

/* =========================================================
   SECTION 1: HEADER (#header-section)
   ========================================================= */
#header-section {
  background: linear-gradient(135deg, #181b2c 0%, #0d0f17 100%);
  padding: 35px 25px;
  text-align: center;
  border-bottom: 2px solid #ff2a85;
}

.logo-box {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 800;
  color: #00f0ff;
  border: 1px solid #00f0ff;
  padding: 4px 14px;
  margin-bottom: 12px;
  border-radius: 3px;
}

#header-section h1 {
  font-size: 34px;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

#header-section .slogan {
  color: #9ba1b9;
  font-size: 15px;
  font-style: italic;
}

/* =========================================================
   SECTION 2: NAVIGATION (#nav-section)
   Requirement: 4+ Styled Hyperlinks
   ========================================================= */
#nav-section {
  background-color: #1b1e2e;
  border-bottom: 1px solid #2b304c;
  padding: 0;
  text-align: center;
}

#nav-section a {
  display: inline-block;
  padding: 14px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-right: 1px solid #282d46;
  transition: all 0.25s ease;
}

#nav-section a:hover {
  background-color: #ff2a85;
  color: #ffffff;
}

/* =========================================================
   FLOAT CONTAINER (Clearfix to contain floated columns)
   ========================================================= */
.row-container::after {
  content: "";
  display: table;
  clear: both;
}

/* =========================================================
   SECTION 3: MAIN CONTENT (#main-content) - Floated Left
   ========================================================= */
#main-content {
  float: left;
  width: 68%;
  padding: 30px;
}

#main-content h2 {
  font-size: 24px;
  color: #00f0ff;
  margin-bottom: 14px;
}

#main-content p {
  color: #a4adc3;
  font-size: 15px;
  margin-bottom: 22px;
}

#main-content h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
  border-bottom: 1px solid #2a2e45;
  padding-bottom: 6px;
}

/* Product Cards */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background-color: #191c2b;
  border: 1px solid #2a2f47;
  border-left: 4px solid #ff2a85;
  padding: 16px 20px;
  border-radius: 4px;
}

.product-card h4 {
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 2px;
}

.product-type {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00f0ff !important;
  margin-bottom: 6px !important;
}

.product-card p {
  margin-bottom: 10px;
  font-size: 14px;
}

.price {
  font-size: 15px;
  font-weight: bold;
  color: #ff2a85;
}

/* =========================================================
   SECTION 4: SIDEBAR (#sidebar-section) - Floated Right
   ========================================================= */
#sidebar-section {
  float: right;
  width: 32%;
  padding: 30px 24px;
  background-color: #161927;
  border-left: 1px solid #23273c;
  min-height: 480px;
}

#sidebar-section h3 {
  font-size: 18px;
  color: #ffffff;
  border-bottom: 2px solid #00f0ff;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.bulletin {
  background-color: #11131e;
  border: 1px solid #272c42;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 16px;
}

.bulletin h4 {
  color: #ff2a85;
  font-size: 14px;
  margin-bottom: 6px;
}

.bulletin p {
  font-size: 13px;
  color: #9ba1b9;
}

/* =========================================================
   SECTION 5: FOOTER (#footer-section)
   ========================================================= */
#footer-section {
  clear: both; /* Clears both floated columns above */
  background-color: #0c0e17;
  border-top: 2px solid #2b304c;
  padding: 30px 25px 15px 25px;
}

.footer-col {
  float: left;
  width: 33.333%;
  padding: 0 12px;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: #00f0ff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.footer-col p {
  font-size: 13px;
  color: #8b93a8;
  margin-bottom: 4px;
}

.copyright {
  clear: both;
  text-align: center;
  font-size: 12px;
  color: #555c70;
  border-top: 1px solid #1a1e2d;
  padding-top: 16px;
  margin-top: 10px;
}

/* =========================================================
   REQUIREMENT: 1 MEDIA QUERY (Adjusts floats, margins & paddings)
   ========================================================= */
@media screen and (max-width: 768px) {
  /* Collapse wrapper margins on smaller viewports */
  #page-wrapper {
    margin-top: 0;
    margin-bottom: 0;
    border: none;
  }

  /* Un-float columns so they stack vertically */
  #main-content,
  #sidebar-section,
  .footer-col {
    float: none;
    width: 100%;
  }

  /* Adjust padding and borders for stacked layout */
  #main-content {
    padding: 20px 16px;
  }

  #sidebar-section {
    padding: 20px 16px;
    border-left: none;
    border-top: 1px solid #23273c;
    min-height: auto;
  }

  /* Make navigation links stack full-width */
  #nav-section a {
    display: block;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #282d46;
    padding: 12px 16px;
  }

  .footer-col {
    padding: 0;
  }
}