/* ==========================================================
   Inventor Educator – Site-wide Styles
   File: /css/style.css
   ========================================================== */

/* ---------- Base Reset ---------- */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #ffffff;
}

#site-main{ flex: 1; }

img { max-width: 100%; height: auto; }

a { color: #2f6fa8; text-decoration: underline; }
a:hover { text-decoration: none; }

/* ==========================================================
   LEGACY WRAPPERS (so old pages still behave)
   ========================================================== */

.outer-background { background: #ffffff; }

.pagewrapper { width: 100%; }
.pagebox { max-width: 1100px; margin: 0 auto; background: #ffffff; }

#contentbox { width: 100%; }
.inner-background { background: #ffffff; }
.pageheight { min-height: 400px; }

.divclear { clear: both; }

.td-left { text-align: left; }
.td-center { text-align: center; }
.just { text-align: left; }

.page-splits {
  height: 1px;
  background: #d8dde6;
  margin: 18px 0 22px;
}

/* ==========================================================
   SHARED HEADER (Injected from /includes/header.html)
   DROPDOWN MENU VERSION
   ========================================================== */

.site-header { width: 100%; background: #fff; }

.header-top-space { height: 18px; }
.header-bottom-space { height: 18px; }

.logo-area{
  display: flex;
  justify-content: center;
  padding: 8px 12px 10px;
}

.logo-link{ display: inline-block; }

.site-logo{
  display: block;
  max-width: 640px;
  width: 100%;
  height: auto;
}

/* NAV BAR */
.nav-bar{
  background: #A8D5F5;
  border-top: 1px solid #cfe6f6;
  border-bottom: 1px solid #cfe6f6;
}

.nav{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav > li{
  list-style: none;
  position: relative;
}

.nav > li > a{
  display: block;
  padding: 14px 16px;
  font-weight: 700;
  color: #2f6fa8;
  text-decoration: none;
  white-space: nowrap;
}

.nav > li > a:hover{
  background: #8CBEE3;
  color: #1f4f7a;
}

/* Dropdown */
.nav li ul{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #D4E9F7;
  border-top: 3px solid #8CBEE3;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  padding: 6px 0;
  z-index: 9999;
}

.nav li:hover > ul{ display: block; }

.nav li ul li{ list-style: none; }

.nav li ul a{
  display: block;
  padding: 10px 14px;
  color: #2f6fa8;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #B3D9F2;
  white-space: nowrap;
}

.nav li ul a:hover{
  background: #B3D9F2;
  color: #1f4f7a;
}

/* Mobile: stack menu + make dropdowns visible */
@media (max-width: 860px){
  .nav{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav > li > a{
    border-top: 1px solid #cfe6f6;
  }

  .nav li ul{
    position: static;
    display: block;
    box-shadow: none;
    border-top: none;
    padding: 0;
  }

  .nav li ul a{
    padding-left: 28px;
  }
}

/* ==========================================================
   INTERNAL PAGE LAYOUT (new pages)
   ========================================================== */

.ie-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px 44px;
}

.ie-layout{
  display: grid;
  grid-template-columns: 560px 1fr;
  column-gap: 46px;
  align-items: start;
  position: relative;
}

.ie-layout::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 560px;
  margin-left: 23px;
  width: 1px;
  background: #d8dde6;
  pointer-events: none;
}

.ie-main{
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  color: #24435D;
  font-size: 18px;
  line-height: 1.6;
  padding-top: 6px;
}

.ie-side{
  padding-top: 6px;
}
/* ==========================================================
   BLUE MEGA FOOTER - COMPLETE STYLES
   ========================================================== */

.site-footer {
  width: 100%;
  background: #004a70; 
  color: #ffffff;
  margin-top: 40px;
  padding: 40px 0 0 0; /* Top padding for breathing room */
  font-family: Arial, sans-serif;
  border-top: 3px solid #6699bc;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-columns {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.footer-col {
  flex: 1;
  padding-right: 20px;
  min-height: 100px;
}

/* Vertical Dividers */
.border-right {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 20px;
}

.spacer-col {
  max-width: 100px; 
}

/* Headers with Underline */
.footer-h4 {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 5px 0;
  font-weight: normal;
  border-bottom: 1px solid #7a8a9a; 
  display: inline-block;
  padding-bottom: 3px;
  min-width: 130px; 
}

.footer-ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.footer-ul li {
  margin-bottom: 8px;
}

.footer-ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
}

.footer-ul li a:hover {
  text-decoration: underline;
}

/* CSS-Based Social Icons */
.footer-right {
  text-align: right;
  flex: 1.5;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.icon-circle {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 22px; /* Centers text vertically */
  border: 1px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}

.icon-circle:hover {
  background: rgba(255,255,255,0.2);
}

.footer-badge img {
  width: 80px;
  height: auto;
}

/* Thumbnails */
.footer-thumbnails {
  display: flex;
  gap: 10px;
  margin: 20px 0 30px 0;
}

.footer-thumbnails img {
  width: 85px;
  height: 55px;
  border: 1px solid #6699bc;
  padding: 1px;
}

/* Bottom Bar + Buffer Area */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0 80px 0; /* 80px bottom padding creates the requested buffer */
  text-align: center;
  font-size: 11px;
  color: #ffffff;
}
}
}
}

}

/* ==========================================================
   RESPONSIVE FOR NEW LAYOUT
   ========================================================== */

@media (max-width: 980px){
  .pagebox { max-width: 100%; }

  .ie-layout{
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .ie-layout::after{ display: none; }

  .ie-main{ font-size: 17px; }
}




/* ==========================================================
   MULTI-PAGE DROPDOWN MENU
   ========================================================== */

.main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.main-menu > li {
  position: relative;
  margin-right: 25px;
}

.main-menu > li > a {
  text-decoration: none;
  color: #004a70;
  font-weight: bold;
  padding: 10px 0;
  display: block;
}

/* --- 1. STANDARD DROPDOWNS (Main Navigation) --- */
/* These should stay directly UNDER the main tabs */
/* 1. Main Nav Setup */
.nav > li {
    position: relative;
    display: inline-block;
}

/* 2. Standard Dropdowns (Downwards) */
.nav li ul {
    display: none;
    position: absolute;
    background-color: #d1e5f5;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 220px;
    z-index: 1000;
}

/* Position standard menus directly under the main tab */
.nav > li > ul {
    top: 100%;
    left: 0;
}

.nav li:hover > ul {
    display: block;
}

/* 3. Business Plan Side Flyout (Rightwards) */
.parent-of-flyout {
    position: relative;
}

/* Force ONLY the bp-flyout to the right side */
ul.bp-flyout {
    top: 0 !important;
    left: 100% !important; 
    width: 250px !important;
    border-left: 1px solid #99b1c7;
    z-index: 1001;
}

/* Smaller links for the long list */
ul.bp-flyout li a {
    padding: 4px 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    display: block;
    border-bottom: 1px solid #bbd7ee;
}