/* NAVIGATION */
nav {
  background: #363636;
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding-top: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.nav-container {
  width: 100%;
  max-width: 1500px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.nav-logo {
  color: #ffc722;
  font-weight: bold;
  font-size: 2em;
  margin-right: 40px;
  letter-spacing: 0.5px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 40px;
}
.nav-link {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.15em;
  transition: color 0.2s;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.nav-link:hover {
  color: #ffc722;
}

/* DESKTOP VS MOBILE NAVIGATION */
.desktop-nav {
  display: flex;
}
.mobile-nav {
  display: none;
}

/* Toggle button */
.nav-toggle {
  font-size: 1.9em;
  background: none;
  border: none;
  color: #ffc722;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* MOBILE NAVIGATION HEADER */
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  background: #363636;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  box-sizing: border-box;
}

/* Mobile logo */
.mobile-logo {
  font-size: 1.6em;
  font-weight: bold;
  color: #ffc722;
  margin: 0;
  padding: 0;
  line-height: 60px;
}

/* MOBILE LAYOUT */
@media (max-width: 900px) {
  .desktop-nav {
    display: none !important;
  }

  .nav-container {
    display: none;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    padding-top: 0px;
  }

  .mobile-nav .mobile-nav-links {
    display: none;
    flex-direction: column;
    background: #363636;
  }

  .mobile-nav .mobile-nav-links.show {
    display: flex;
  }

  .main-layout {
    flex-direction: column;
  }

  .mobile-only {
    display: flex;
  }

  body {
    padding-top: 60px;
  }
}

/* HIDE MOBILE ON DESKTOP */
@media (min-width: 901px) {
  .mobile-nav,
  .mobile-only,
  .mobile-nav .nav-toggle {
    display: none !important;
  }
}

/* SIDEBAR DEFAULT (DESKTOP) */
.sidebar {
  width: 220px;
  background: #2f2f2f;
  color: white;
  min-height: 100vh;
  padding-top: 20px;
  box-sizing: border-box;
  position: relative;
  transition: left 0.3s ease;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Sidebar links */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li {
  padding: 12px 20px;
}
.sidebar-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: block;
}
.sidebar-links li a:hover {
  background: #444;
  border-radius: 4px;
}

/* TOGGLE BUTTON - only visible on mobile */
.sidebar-toggle {
  width: 24px;
  height: 28px;
  line-height: 28px;
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1101;
  background: #2f2f2f;
  color: white;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
}

/* MOBILE: Sidebar hidden by default, slides in */
@media (max-width: 900px) {
  .sidebar {
    position: absolute;
    top: 60px; /* Push below the fixed header */
    left: -220px;
    width: 220px;
    height: calc(100vh - 60px);
    background: #2f2f2f;
    transition: left 0.3s ease;
    z-index: 1000;
    top: 60px; /* below top nav */
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-toggle {
  width: 24px;
  height: 28px;
  line-height: 28px;
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1101;
  display: block;
  background: #2f2f2f;
  color: white;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
}
}

/* LAYOUT */

body > .main-layout > .main-content {
  margin: 0;
  padding: 0;
}

.main-content {
  flex: 1;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}

.main-content, .additional-four-box-column-section, .site-footer {
  margin-bottom: 0;
  padding-bottom: 0;
}

.main-content-area {
  margin: 10px;
}

/* --- FEATURE SECTION LAYOUT --- */
.feature-section {
  display: flex;
  gap: 36px;
  margin: 16px auto;
  background: #fafafa;
  border-radius: 18px;
  padding: 24px 2vw;
  align-items: stretch;
  max-width: 1400px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.feature-left {
  flex: 2.8; 
  min-width: 750px;
  max-width: 1100px;
  padding: 54px 38px;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  text-align: center;
  margin-left: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.feature-left img {
  border-radius: 8px;
  margin-bottom: 22px;
  max-width: 72%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.feature-left h3 {
  color: #333;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  margin: 0;
  margin-top: 14px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 240px);  /* increase this value to make wider */
  gap: 28px;
  justify-content: center;
  flex: 2;
  grid-gap: 24px;
  max-width: 800px;
  width: 100%;
  min-height: 130px;
  padding: 18px 0;
  align-items: stretch;
  justify-items: stretch;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif
}
.feature-grid-item {
  width: 240px;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #55604f;
  border-radius: 0;      /* <-- No rounded edges */
  text-decoration: none;
  color: #fff;
  min-height: 90px;
  font-weight: bold;
  font-size: 1.05em;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: background 0.2s, transform 0.18s;
  padding: 18px 0;
}
.feature-grid-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.feature-grid-item p {
  margin: 0;
  letter-spacing: 1px;
  font-size: 1.16em;
}
.feature-grid-item:hover {
  background: #3e4638;
  transform: translateY(-2px) scale(1.03);
}

/* --- FEATURED CONTESTS HEADER BAR --- */
.featured-contests-header {
  width: 100%;
  background: #586353;   /* green bar */
  text-align: center;
  margin: 0 auto;
  padding: 10px 0 10px 0;
  border-radius: 0;
  box-sizing: border-box;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-contests-header h2 {
  color: #fff;
  font-size: 1.75em;
  font-weight: bold;
  margin: 0;
  letter-spacing: 1.2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif
} */ 

.featured-contests-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
  width: 100%;
}

/* FEATURED FOUR BOX COLUMN SECTION */
.featured-four-box-column-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 45px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;     /* centers under the bar */
  background: none;             /* no green background */
  padding: 16px 0 16px 0;
}

.featured-four-box-column-section .column {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  margin-bottom: 0;
  padding: 28px 12px 40px 12px;
  text-align: center;
  min-height: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.featured-four-box-column-section .contest-button {
  width: 120px;       /* control width */
  max-width: 90%;
  min-width: 0;
  display: block;
  margin: 18px auto 0 auto;
  padding: 12px 0;
  font-size: 1rem;
}

.contest-button {
  background: #495646;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 30px;
  margin-top: 18px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s;
  width: 90%;
  max-width: 220px;
}

.contest-button:hover {
  background: #3b443a;
}

.featured-contests-header {
  width: 100%;
  background: #55604f;
  text-align: center;
  margin: 0;
  padding: 18px 0 12px 0;
  border-radius: 0;
  box-sizing: border-box;
}

.featured-contests-header h2 {
  color: #fff;
  font-size: 2.2em;
  font-weight: bold;
  margin: 0;
  letter-spacing: 1.5px;
}

@media (max-width: 1100px) {
  .featured-four-box-column-section {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .featured-four-box-column-section {
    grid-template-columns: 1fr;
  }
  .featured-four-box-column-section .column {
    min-height: 220px;
    padding: 16px 6px;
  }
}

@media (max-width: 700px) {
  .featured-four-box-column-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
    gap: 0 !important;
  }

  .featured-four-box-column-section .column {
    margin: 12px 0 !important;
    padding: 20px 10px !important;
    width: 90% !important;
    max-width: 280px !important;
    min-height: 240px !important;
  }
}


/* Responsive Tweaks */
@media (max-width: 1300px) {
  .feature-section {
    max-width: 99vw;
    gap: 20px;
    padding: 8px;
  }
  .feature-left {
    min-width: 410px;
    max-width: 700px;
    padding: 24px 8px;
  }
  .feature-grid {
    max-width: 380px;
    gap: 16px;
  }
}

  .feature-left,
  .feature-grid {
    max-width: 96vw;
    min-width: unset;
  }

.green-divider {
  height: 4px;
  background-color: #586353;
  width: 100%;
  max-width: 1200px;
  margin: 15px auto 15px auto;
  border-radius: 2px;
}

/* ADDITIONAL FOUR BOX COLUMN SECTION */
.additional-four-box-column-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 45px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px auto !important; /* remove bottom margin */
  padding: 16px 0 0 0 !important;  /* remove bottom padding */
  background: none;
}

.additional-four-box-column-section .column {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  padding: 28px 12px 40px 12px;
  text-align: center;
  min-height: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.additional-four-box-column-section .contest-button {
  width: 120px;
  max-width: 90%;
  min-width: 0;
  display: block;
  margin: 18px auto 0 auto;
  padding: 12px 0;
  font-size: 1rem;
}

/* Responsive for 2 columns/tablet and 1 column/mobile */
@media (max-width: 1100px) {
  .additional-four-box-column-section {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .additional-four-box-column-section {
    grid-template-columns: 1fr;
  }
  .additional-four-box-column-section .column {
    min-height: 220px;
    padding: 16px 6px;
  }
}

.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.right-column {
  flex: 1.3;
  display: flex;
  flex-direction: column;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
}

.right-column {
  justify-content: stretch;
}

.contest-box {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  padding: 28px 12px 40px 12px;
  text-align: center;
  min-height: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.large-contest-box {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  padding: 40px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.large-contest-box h3 {
  color: #333;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.large-contest-box p {
  font-size: 1em;
  color: #444;
  margin-bottom: 16px;
}

.large-contest-box h2 {
  font-size: 1.8em;
  font-weight: bold;
  color: #222;
  margin-top: 10px;
}

/* SITE FOOTER */
.site-footer {
  background: #1f1f1f;
  color: #fff;
  padding: 40px 20px 20px 20px;
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

footer,
.site-footer {
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer h2 {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-form input {
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 1em;
  min-width: 220px;
}

.footer-form button {
  background-color: #586353;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}

.footer-form button:hover {
  background-color: #495646;
}

.site-footer hr {
  border: 0;
  height: 1px;
  background: #444;
  margin: 0 auto 16px auto;
  width: 100%;
  max-width: 1200px;
}

.footer-bottom p {
  font-size: 0.9em;
  color: #ccc;
  margin: 0;
}


.page-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.main-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  height: 100%;
  min-height: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.page-wrapper > #footer-placeholder {
  margin-top: auto;
  padding: 0;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Push footer to bottom */
#footer-placeholder {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  margin-bottom: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.column.bottom-feature-large-box {
  grid-column: span 2;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  padding: 28px 12px 40px 12px;
  text-align: center;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.bottom-feature-large-box img {
  border-radius: 8px;
  margin-bottom: 22px;
  max-width: 72%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.bottom-feature-large-box h3 {
  color: #333;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  margin: 0;
  margin-top: 14px;
}

/* SIGN UP FORM */
.signup-content {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.signup-content h2{
  font-size: 2.2em;
  font-weight: bold;
}

.header-image-row {
  display: block;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}

.header-image-row img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  object-fit: cover;
  max-height: 500px;
}

.header-image-overlay {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  background: rgba(34, 34, 34, 0.4);
  color: #fff;
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1.4em;
  padding: 12px 16px;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media (max-width: 900px) {
  body {
    padding-top: 60px;
  }

  .header-image-row {
    margin-top: 0;
  }

  .header-image-row img {
    max-height: 300px;
    object-fit: cover;
  }

  .header-image-overlay {
    font-size: 1.1em;
    padding: 10px 10px;
    bottom: 12px;
    width: 95%;
  }
}

/*@media (max-width: 900px) {
  .header-image-row {
    margin-top: 60px; /* Matches mobile nav height */
  }
}
*/

/* FINAL GAP FIX FOR MOBILE */
@media (max-width: 900px) {
  body, .main-layout, .main-content, nav, .mobile-nav-header, .header-image-row {
    margin: 0 !important;
    padding: 0 !important;
  }

  .header-image-row img {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 300px;
    object-fit: cover;
  }

  .header-image-overlay {
    bottom: 12px;
    font-size: 1em;
    padding: 8px 12px;
    width: 95%;
  }
}

@media (max-width: 600px) {
  .header-image-row img {
    height: 220px;
    width: 100%;
    object-fit: cover;
  }
}

@media (max-width: 900px) {
  .feature-section {
    flex-direction: column;
    align-items: center;
  }

  .feature-left, .feature-grid {
    max-width: 95%;
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid-item {
    width: 90%;
    min-height: 180px;
    max-width: 180px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .feature-grid {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;
  }

  .feature-grid-item {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .feature-left {
    padding: 20px 16px;
    min-height: 180px;       /* Adjust height */
    max-width: 80%;          /* Adjust width */
    margin: 0 auto;
  }

  .feature-left h3 {
    font-size: 1.4em;         /* Adjust font size if needed */
  }

  .feature-left img {
    max-width: 80%;          /* Resize image */
    margin-bottom: 16px;
  }
}

@media (max-width: 700px) {
  .featured-four-box-column-section .column,
  .additional-four-box-column-section .column {
    min-height: 220px;
    padding: 16px 6px;
	margin: 12px auto;
  }
}

@media (max-width: 700px) {
  .featured-four-box-column-section,
  .additional-four-box-column-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .featured-four-box-column-section .column,
  .additional-four-box-column-section .column {
    margin: 12px 0 !important;
    padding: 20px 12px !important;
    width: 90% !important;
    max-width: 280px !important;
    min-height: 240px !important;
  }
}


@media (max-width: 700px) {
  .column.bottom-feature-large-box {
    width: 85% !important;
    max-width: 480px !important;
    margin: 12px auto!important;
    padding: 20px 20px !important;
  }
}

@media (max-width: 700px) {
  .column.bottom-feature-large-box {
    margin-bottom: 32px !important; /* Adjust value as needed */
  }
}

@media (max-width: 700px) {
  .site-footer {
    margin-bottom: 0 !important;
    padding-bottom: 16px !important;
  }

  body,
  html,
  #footer-placeholder,
  .page-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (min-width: 901px) {
  .mobile-nav,
  .mobile-only {
    display: none !important;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .nav-toggle {
    display: block !important;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .nav-toggle {
    display: block !important;
  }
  .mobile-nav {
    display: flex !important;
  }
  .mobile-nav-header {
    display: flex !important;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .nav-container {
    display: none !important;
  }

  .mobile-nav-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background: #363636;
    padding: 0 20px;
  }

  .nav-toggle {
    display: block !important;
    font-size: 1.9em;
    background: none;
    border: none;
    color: #ffc722;
    cursor: pointer;
  }

  .mobile-nav-links {
    display: none;
    flex-direction: column;
    background: #363636;
    padding: 12px 0;
  }

  .mobile-nav-links.show {
    display: flex;
  }

  .mobile-logo {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffc722;
    line-height: 60px;
  }
}

#sidebar-placeholder {
  height: 100%;
}