/* Styles.css */

/* Legacy Styles from W3Schools.com */

html, body, h1, h2, h3, h4, h5, h6 {
  font-family: Arial, Helvetica, sans-serif;
}
h1 {
  text-align: center;
  font-weight: bolder;
}
h2 {
  font-weight: bold;
  font-size: 20px;
}
/*a:hover {
  color: red;
}*/
a {
  text-decoration: underline;
  text-decoration-color: #008cc8;
  color: inherit; /* or your default text color */
}
a:hover {
  color: #008cc8;
}
p.strikeout {
  text-decoration: line-through;
}
body, html {
  height: 100%;
  margin: 0;
}
.bg {
  /* The image used */
  background-image: url("Arch.jpg");

  /* Full height */
  height: 100%; 

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ==========================================================================
   ðŸ“Œ Global Layout & Fixed Top Navigation Styles
   ========================================================================== */

/* âš ï¸ Body Offset Spacing Prevention */
body {
  padding-top: 70px !important; 
}

/* Fixed Top Navigation Bar Container */
.navbar {
  display: flex;
  flex-wrap: wrap;
  background-color: #f1f1f1;
  padding: 10px;
  justify-content: center;
  gap: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Keeps navbar sitting safely above content layers */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Individual Navigation Menu Links */
.menu-item {
  color: black;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
}

/* Style automatically applied via /Scripts.js to current page link */
.menu-item.active {
  color: blue;
  font-weight: bold;
  border-bottom: 2px solid blue;
}

/* Interactive Link Clean Layout Buttons */
.btn {
  background-color: transparent;
  border: none;
  color: Teal;
  padding: 0px;
  font-size: 16px;
  cursor: pointer;
}

/* Universally Safe Responsive Media Assets */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

.element {
  display: inline-block;
  font-weight: bold;
  font-size: 2em;
}

.milestone {
  color: black;
  font-weight: bold;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Rounded Colorful Section Borders */
.rounded-B {
  border: 2px solid blue;
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
  color: blue;
  display: flex;
  justify-content: center;
}

.rounded-G {
  border: 2px solid green;
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
  color: green;
}

.rounded-O {
  border: 2px solid orange;
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
  color: orange;
}

.rounded-R {
  border: 2px solid red;
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
  color: red;
}

/* Challenge Section Flex Content Block Grid */
.challenge-block {
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
  margin-top: 20px;
}

.challenge-img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ==========================================================================
   ðŸ“Ÿ Multi-Device Layout Breakpoints (Tablet & PC)
   ========================================================================== */
@media (min-width: 768px) {
  body {
    padding-top: 60px !important;
  }
  .navbar {
    justify-content: center; /* Keeps menu system balanced and proportional on large screens */
  }
  .challenge-block {
    flex-direction: row;
    align-items: flex-start;
  }
  .challenge-img {
    float: right;
    margin-left: 20px;
  }
}

/* ==========================================================================
   ðŸ“± Smartphone Menu Viewport Layout Configurations
   ========================================================================== */

/* Toggle Button properties (Hidden on default wide layout/desktops) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
}

/* Mobile-first alignment framework overrides */
@media (max-width: 767px) {
  body {
    padding-top: 60px !important; /* Space adjustment for mobile menu top slice */
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .nav-toggle {
    display: block; /* Shows toggle trigger exclusively on mobile screen borders */
    align-self: flex-end;
  }

  .nav-links {
    display: none; /* Keeps menu contents tucked away by default on small viewports */
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid #ddd;
  }

  /* class state applied seamlessly by the JS handler on user input touch events */
  .nav-links.open {
    display: flex; 
  }

  .menu-item {
    width: 100%;
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
  }

  .menu-item.active {
    border-bottom: none;
    border-left: 4px solid blue;
    padding-left: 11px; /* Visual matching adjustment offset for border removal */
  }
}

/* ðŸ’» Wide Desktop Visibility Rules reset layer overrides */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
    gap: 10px;
  }
}

/* ==========================================================================
   ðŸ›ï¸ Main Content Grid & Column Utilities
       Handle device breakpoints smoothly
   ========================================================================== */

/* Main document wrapper for responsive alignment constraints */
.main-wrapper {
  margin-top: 20px;
  line-height: 1.6;
}

/* Feature Grid Container Layout */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

/* Feature column content cards */
.feature-card {
  background-color: #fafafa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.feature-card h3 {
  margin-top: 0;
  color: #333;
}

/* Stylized itemized lists */
.content-list {
  padding-left: 20px;
  margin: 15px 0;
}

.content-list li {
  margin-bottom: 8px;
}

/* Multi-Device Screen Breakpoint Rules */
@media (min-width: 768px) {
  .features-grid {
    flex-direction: row; /* Transforms nested blocks side-by-side cleanly on PCs */
  }
  .feature-card {
    flex: 1; /* Splits spacing equally across columns */
  }
}

/* Added for interactive accordion toggle */
/* ==========================================================================
   ðŸ“‚ Responsive Accordion Interactive UI Component Modules
   ========================================================================== */

.feature-card {
  background-color: #fafafa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 10px;
}

/* Base style for accordion header buttons */
.accordion-header {
  width: 100%;
  background: #fdfdfd;
  border: none;
  padding: 15px 20px;
  text-align: left;
  font-size: 1.15em;
  font-weight: bold;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background-color: #f5f5f5;
}

/* Chevron configuration module mapping indicator */
.accordion-icon {
  transition: transform 0.3s ease;
}

/* Expanded/Open accordion presentation metrics */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 20px;
}

/* Desktop Presentation Layout Overrides */
@media (min-width: 768px) {
  .features-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 30px;
  }

  .feature-card {
    flex: 1;
    margin-bottom: 0;
  }

  /* Disable accordion button interactive traits on wide desktop PC displays */
  .accordion-header {
    cursor: default;
    background: transparent !important;
    padding: 20px 20px 10px 20px;
  }

  .accordion-icon {
    display: none; /* Strip chevron marker from viewports */
  }

  .accordion-content {
    max-height: none !important;
    padding: 0 20px 20px 20px;
    overflow: visible;
  }
}

/* Mobile-only toggle activation settings state classes managed via JS engine */
@media (max-width: 767px) {
  .feature-card.is-open .accordion-icon {
    transform: rotate(180deg);
  }
  .feature-card.is-open .accordion-content {
    padding: 10px 20px 20px 20px;
  }
}
