/* Appalachian A.I. Corps Color Palette */
:root {
  /* Primary Colors */
  --tennessee-orange: #FF8200;
  --smokey: #58595B;
  --white: #FFFFFF;
  
  /* Accent Colors */
  --valley: #00746F;
  --torch: #E05933;
  --globe: #006C93;
  --limestone: #F0EDE3;
  --sunsphere: #FED535;
  --river: #517C96;
  --leconte: #8D2048;
  --rock: #A7A9AC;
  
  --summit: #B9E1E2;
  --legacy: #579594;
  --buckskin: #705550;
  --switchgrass: #ABC178;
  --regalia: #754A7E;
  --fountain: #2197A9;
  --eureka: #EBE6A4;
  --energy: #EE3E80;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--smokey);
  background-color: var(--white);
}

/* Custom Navbar */
.custom-navbar {
  background-color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  height: 20px;
  width: auto;
  margin-right: 0.75rem;
}

.navbar-brand {
  color: var(--valley);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-brand h1 {
  color: var(--valley);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.navbar-brand a {
  color: var(--valley);
  text-decoration: none;
}

.navbar-brand a:hover {
  color: var(--globe);
}

.navbar-brand span {
  color: var(--valley);
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-links a {
  color: var(--globe);
  text-decoration: none;
  margin: 0 1.5rem;
  font-weight: 600;
}

.navbar-links a:hover {
  color: var(--torch);
}

/* Navbar toggle button - hidden by default */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--torch);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
    z-index: 10;
    flex-shrink: 0;
  }
  
  .navbar-brand {
    flex: 1;
    max-width: calc(100% - 60px);
    overflow: hidden;
  }
  
  .navbar-logo {
    height: 16px;
  }
  
  .navbar-brand h1 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem;
    text-align: center;
    z-index: 9;
  }
  
  .navbar-links.show {
    display: flex;
  }
  
  .navbar-links a {
    display: block;
    margin: 1rem 0;
  }
  
  .custom-navbar {
    position: relative;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--valley) 0%, var(--globe) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-small {
  min-height: auto;
  padding: 7rem 2rem 3rem 2rem;
}

.hero-xsmall {
  min-height: auto;
  padding: 4rem 2rem 0rem 2rem;
}

.hero-orange {
  background: linear-gradient(135deg, var(--torch) 0%, var(--tennessee-orange) 100%);
  color: var(--white);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  color: var(--limestone);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--white);
  color: var(--globe);
  text-decoration: none;
  border-radius: 50px;
  border: 3px solid var(--tennessee-orange);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 108, 147, 0.3);
}

.btn:hover {
  background-color: var(--tennessee-orange);
  border: 3px solid var(--tennessee-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  color: var(--white);
}

/* Logo Section */
.logo-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--white);
}

.logo-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.partner-logo-tpte {
  max-width: 250px;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  margin: 0 2.5rem;
  align-self: flex-start;
}

.partner-logo-aitn {
  max-width: 100px;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  margin: 0 2.5rem;
}

.partner-logo-eecs {
  max-width: 250px;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  margin: 0 2.5rem;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .logo-grid {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .partner-logo-tpte,
  .partner-logo-aitn,
  .partner-logo-eecs {
    margin: 2rem 0;
    width: 100%;  /* Force full width */
    max-width: 300px;  /* Reasonable size on mobile */
  }
}

/* Footer */
.footer {
  background-color: var(--smokey);
  color: var(--limestone);
  padding: 3rem 2rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  text-align: left;
  line-height: 1.5;
}

.footer-right {
  text-align: right;
  line-height: 1.5;
}

.footer-logo {
  max-width: 80px;
  height: auto;
  margin-bottom: 0.2rem;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-right {
    text-align: left;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-image {
    max-width: 300px;
  }
  
  .modules-section h2 {
    font-size: 2rem;
  }
  
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* Modules Page Styles */
.modules-intro {
  font-size: 1.25rem;
  text-align: center;
  color: var(--limestone);
  margin: 2rem auto 3rem;
  max-width: 800px;
}

.modules-section {
  padding: 2rem 0 4rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.module-card {
  background: var(--white);
  border: 3px solid var(--torch);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 116, 111, 0.2);
  border-color: var(--tennessee-orange);
}

.module-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 1rem 0;
  border-radius: 8px;
}

.image-credit {
  font-size: 0.85rem;
  color: var(--rock);
  margin: 0.5rem 0 1rem 0;
  font-style: italic;
}

.image-credit a {
  color: var(--valley);
  text-decoration: none;
}

.image-credit a:hover {
  text-decoration: underline;
}

.module-card h3 {
  color: var(--globe);
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  padding: 0;
}

.module-card h3 a {
  color: var(--globe);
  text-decoration: none;
  transition: color 0.3s ease;
}

.module-card h3 a:hover {
  color: var(--valley);
}

.module-card p {
  color: var(--smokey);
  margin-bottom: 1.5rem;
  padding: 0;
}

.module-link {
  display: inline-block;
  color: var(--valley);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.module-link:hover {
  color: var(--globe);
}

.facilitator {
    color: #006C93;
  
  &:hover {
    color: #E65933;
  }
}

.coming-soon {
  background: linear-gradient(135deg, var(--limestone) 0%, var(--summit) 100%);
  border-color: var(--rock);
  padding: 2rem;
}

.coming-soon h3 {
  color: var(--smokey);
  padding: 0;
}

.coming-soon p {
  padding: 0;
}

/* Contact Page Styles */
.contact-section {
  padding: 4rem 2rem;
  background-color: var(--white);
}

.contact-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--torch);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
}

.contact-box h3 {
  color: var(--globe);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-box p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--smokey);
}

.email-address {
  color: var(--valley);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Lesson Outline Styles */
.lesson-outline-section {
  padding: 4rem 2rem;
  background-color: var(--white);
}

.lesson-outline {
  max-width: 800px;
  margin: 0 auto;
}

.lesson-item {
  background: var(--white);
  border-left: 5px solid var(--valley);
  padding: 1rem 2rem;
  margin-bottom: 1.5rem; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.lesson-item:hover {
  border-left-color: var(--tennessee-orange);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateX(5px);
}

.lesson-item h3 {
  color: var(--globe);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.lesson-item h3 a {
  color: var(--globe);
  text-decoration: none;
  transition: color 0.3s ease;
}

.lesson-item h3 a:hover {
  color: var(--valley);
}

.lesson-item p {
  color: var(--smokey);
  margin-bottom: 0.5rem;
  line-height: 1.0;
}

.lesson-item.coming-soon {
  background: linear-gradient(135deg, var(--limestone) 0%, var(--summit) 100%);
  border-left-color: var(--rock);
}

.lesson-item.coming-soon h3 {
  color: var(--smokey);
}

.contributors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.contributor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
}

.contributor-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.contributor-image {
  width: clamp(110px, 18vw, 220px);
  aspect-ratio: 1 / 1;      
  object-fit: cover;       
  border-radius: 10px;  
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: block;
}

.contributor-name {
  margin-top: 0.6rem;
  font-weight: 600;
  color: #000;  
  text-align: center;
  display: block;
}

.contributor-affiliation {
  margin-top: 1.0rem;
  font-weight: 400;
  color: #000;  
  text-align: center;
  display: block;
}

.contributor-link:hover .contributor-image {
  transform: translateY(-4px) scale(1.02);
  transition: transform 180ms ease;
}

