/* ============================= */
/* SHARED STYLES (Global/Base) */
/* ============================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: var(--deca-blue);
  color: #fff;
  border-radius: 6px;
  z-index: 9999;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: #111;
  padding-top: 70px; /* Adjust based on navbar height */
}

/* Color Variables */
:root {
  --deca-blue: #00558c;
  --hover-blue: #004f87;
  --light-blue: #e6f0fa;
  --text-color: #003a60;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  background: #fff;
  color: #000;
  padding: 0.5rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

a:focus,
button:focus {
  outline: 2px dashed var(--deca-blue);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Section Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
  color: var(--deca-blue);
  margin-bottom: 1rem;
}

/* Responsive Globals */
@media (max-width: 900px) {
  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .gallery figure,
  .chapter-card {
    width: 45vw;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .content-block,
  .resource-section {
    flex-direction: column !important;
    max-width: 90%;
  }

  .text-content,
  .resource-text,
  .resource-image {
    max-width: 100% !important;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    max-width: 250px;
    text-align: center;
    padding: 0.75rem 1rem;
  }
  
  .gallery figure,
  .chapter-card {
    width: 80vw;
  }
}
/* ============================= */
/* NAVIGATION (Shared Component) */
/* ============================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--deca-blue);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  flex-wrap: wrap;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Top navbar: logo left, links centered */
#navbar-top .navbar {
  justify-content: flex-start; /* logo on the left */
  position: fixed;             /* keep fixed */
  width: 100%;
  gap: 2rem;                   /* spacing between logo and links container */
}

/* Center the links container */
#navbar-top .nav-links {
  margin-left: auto;   /* push nav-links to center by using auto margin */
  margin-right: auto;  /* necessary to truly center */
  display: flex;
  gap: 1rem;
}

.logo {
  height: 40px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background-color: var(--hover-blue);
  outline: none;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
}

/* ============================= */
/* INDEX PAGE */
/* ============================= */
.hero {
  background-image: url('images/gotheextra.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  animation: fadeInHero 1.8s ease-in-out forwards;
  will-change: opacity, transform;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 60% center;
  }
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  max-width: 95%;
  animation: slideDown 1s ease-out forwards;
  font-size: 1.25rem;
}

.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0;
}

@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Gallery Section */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gallery figure {
  width: 250px;
  text-align: center;
}

.gallery img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
}
/* slideshow*/
.slideshow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  margin: 2rem 0;
  flex-wrap: wrap; /* allows stacking */
}

.slideshow-left {
  position: relative;
  width: 100%;
  max-width: 600px; /* shrinks on smaller screens */
  aspect-ratio: 600 / 350; /* maintains proportions without fixed height */
  overflow: hidden;
  border-radius: 12px;
}

.slideshow-right {
  position: relative;
  width: 100%;
  max-width: 300px;
  min-height: 80px; /* ensures text has room */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stack vertically on mobile */
@media (max-width: 768px) {
  .slideshow-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .slideshow-right {
    max-width: 90%;
  }
}

.text-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  opacity: 0;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  background: linear-gradient(90deg, #004A90 0%, #0085E0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: 'Montserrat', sans-serif;
  animation: fade-cycle 5s infinite ease-in-out;
}

/* Shared fade animation */
.fade-slide {
  opacity: 0;
  position: absolute;
  inset: 0;
  animation: fade-cycle 15s infinite ease-in-out;
}

/* Three-step syncing */
.fade-slide:nth-child(1) { animation-delay: 0s; }
.fade-slide:nth-child(2) { animation-delay: 5s; }
.fade-slide:nth-child(3) { animation-delay: 10s; }

/* Fade keyframes */

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(10px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}
@keyframes fade-cycle {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; } 
  100% { opacity: 0; }  
}

/* Team Section */
.team-section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.team-member {
  width: 280px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1rem;
  background: #f9f9f9;
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-member h3 {
  margin-bottom: 0.5rem;
  color: var(--deca-blue);
}

.team-member p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* About Content Block */
.content-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 900px;
  margin: 2rem auto;
  gap: 2rem;
  padding: 0 1rem;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-block img {
  width: 100%;
  max-width: 350px;
  min-width: 350px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.text-content {
  flex: 1;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.text-content ul {
  list-style: disc inside;
}

/* ============================= */
/* RESOURCES PAGE */
/* ============================= */

.resource-section {
  display: flex;
  align-items: center;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  gap: 2rem;
}

.resource-section.reverse {
  flex-direction: row-reverse;
}

.resource-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.resource-text ul {
  list-style: disc inside;
  margin-top: 0.5rem;
}

.resource-text a {
  color: var(--deca-blue);
  text-decoration: underline;
}

.resource-text a:hover,
.resource-text a:focus {
  color: var(--hover-blue);
  outline: none;
}

/* ============================= */
/* Dropdown for Practice Tests */
/* ============================= */

.dropdown {
  position: relative;
  display: inline-block;
  width: 100%; /* full width of flex container */
}

.dropbtn {
  background-color: #0055A4; /* DECA blue */
  color: white;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  border-radius: 4px;
  width: 100%; /* fill flex width */
  text-align: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 100%; /* match parent width */
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 1;
  padding: 8px 0;
}

.dropdown-content a {
  color: #333;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f0f4ff;
  color: #005DE8;
}

.dropdown:hover .dropdown-content,
.dropbtn:focus + .dropdown-content {
  display: block;
}

/* ============================= */
/* Case Studies Accordion */
/* ============================= */

.case-studies-container {
  width: 100%;
  max-width: 300px;
  font-family: Arial, sans-serif;
}

.main-button,
.cluster-button {
  background-color: #0055A4; /* DECA Blue */
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-bottom: 5px;
  border-radius: 6px;
}

.main-button:focus,
.cluster-button:focus {
  outline: 3px solid #FFD700; /* Gold focus ring for accessibility */
}

.cluster-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.cluster-list.open {
  max-height: none; /* allow full height */
}

.event-list {
  list-style: none;
  padding-left: 20px;
  margin: 5px 0 15px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.event-list.open {
  max-height: 500px;
}

.event-list li a {
  display: block;
  padding: 8px 12px;
  color: #0055A4;
  text-decoration: none;
  border-radius: 4px;
}

.event-list li a:hover,
.event-list li a:focus {
  background-color: #e0f0ff;
}

/* ============================= */
/* Practice Section Flex Layout */
/* ============================= */

.practice-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: flex-start;
  align-items: flex-start; /* top-align buttons */
}

.practice-section > .dropdown,
.practice-section > .case-studies-container {
  flex: 1 1 250px; /* grow/shrink with a base width */
  min-width: 220px;
}

/* Match heights of buttons for cleaner alignment */
.practice-section > .dropdown .dropbtn,
.practice-section > .case-studies-container .main-button {
  height: 50px; /* adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stack vertically on smaller screens */
@media (max-width: 700px) {
  .practice-section {
    flex-direction: row; /*CHANGE*/
    align-items: stretch;
  }

  .practice-section > .dropdown,
  .practice-section > .case-studies-container {
    flex: 1 1 100%;
  }

  .practice-section > .dropdown .dropbtn,
  .practice-section > .case-studies-container .main-button {
    height: auto;
  }
}

/* ============================= */
/* CHAPTERS PAGE */
/* ============================= */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  justify-items: center;
  align-items: start;
}

.chapter-card {
  background-color: var(--light-blue);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 180px;
}

.chapter-card:hover,
.chapter-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.chapter-card .school-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
}

/* Intro Text */
.intro {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  padding: 0 1rem;
  color: var(--text-color);
}

/* ============================= */
/* ABOUT PAGE */
/* ============================= */
.intro-block {
  background-color: #ffffff;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid #0077c8;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #222;
}

.about-hero {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  border-bottom: 4px solid #0077c8;
}

.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pacman-img {
  width: 60% !important;
  height: 300px !important;
}

/* lightening uw madison picture*/
.brighten {
  filter: brightness(2);
}
/* ============================= */
/* START A CHAPTER PAGE */
/* ============================= */
.missing-chapter {
  background-color: #f2f2f2;
  padding: 2rem 1rem;
  margin: 3rem auto;
}

.missing-chapter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.missing-chapter-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translate(0, 0);
  margin-left: 1rem;
}

.missing-chapter-text h2,
.missing-chapter-text p {
  margin: 0 0 0.5rem 0;
  color: #222;
  text-align: left;
}

.start-chapter-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--deca-blue);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  white-space: normal;
}

.start-chapter-btn:hover,
.start-chapter-btn:focus {
  background-color: var(--hover-blue);
  outline: 3px solid #a8d0ff;
}

/* ============================= */
/* VIDEO PAGE / MEDIA SECTION */
/* ============================= */
.video-section {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 800px;
}

.video-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.transcript {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.transcript summary {
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  border-radius: 4px;
}

.transcript summary:focus {
  outline: 3px solid #005fcc;
}

.transcript-body {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #fff;
}

.transcript-body p span.on-screen-text {
  display: block;
  font-style: italic;
  color: #0055A4;
  margin-left: 1em;
}
/* ============================= */
/* MEMBER SPOTLIGHT PAGE */
/* ============================= */
.member-spotlight {
  background-color: #f4f9ff;
  padding: 3rem 2rem;
  margin-top: 3rem;
  text-align: center;
}

.member-spotlight h2 {
  font-size: 2rem;
  color: #003865;
  margin-bottom: 0.5rem;
}

.member-spotlight p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #333;
}

.spotlight-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.spotlight-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  width: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.spotlight-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.spotlight-info {
  padding: 1rem;
}

.spotlight-info h3 {
  font-size: 1.1rem;
  color: #222;
  margin: 0;
}

.spotlight-info .school {
  font-weight: normal;
  font-size: 0.95rem;
  color: #666;
}

.spotlight-info p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
}

/* Bottom navbar: logo left, links centered */
#navbar-bottom .navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px; /* match top navbar height */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-color: var(--deca-blue);
  z-index: 999;
  padding: 0 1.5rem;
}

/* Center the nav-links container horizontally */
#navbar-bottom .nav-links {
  margin-left: auto;  /* push to center */
  margin-right: auto; /* center truly */
    display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #navbar-bottom .navbar {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  #navbar-bottom .logo-link {
    margin-bottom: 0.5rem;
  }

  #navbar-bottom .nav-links {
    margin-left: 0;
    margin-right: 0;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* ============================= */
/* Sponsors Page Styles (Compact Inline Layout) */
/* ============================= */

/* Headings */
.sponsor-text h1,
.sponsor-form-section h2 {
  color: var(--deca-blue);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Main Layout (Text Left, Images Right) */
.sponsor-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Text Column */
.sponsor-text {
  flex: 1 1 55%;
  min-width: 300px;
  line-height: 1.6;
}

.sponsor-text h1 {
  font-size: 2rem;
  border-bottom: 3px solid var(--hover-blue);
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sponsor-text p {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  text-indent: 2em;
}

/* Stacked Images on Right */
.sponsor-gallery {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.sponsor-gallery img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 85, 140, 0.1);
  border: 2px solid #e0e0e0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sponsor-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--deca-blue);
  box-shadow: 0 6px 18px rgba(0, 85, 140, 0.25);
}

/* Inline Become a Sponsor Section (nested under text) */
.sponsor-form-inline {
  margin-top: 2rem;
  background-color: var(--light-blue);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sponsor-form-inline h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 3px solid var(--hover-blue);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.sponsor-form-inline p {
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.sponsor-form-button {
  background-color: var(--deca-blue);
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1.05rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.sponsor-form-button:hover {
  background-color: var(--hover-blue);
}

/* Responsive */
@media (max-width: 800px) {
  .sponsor-layout {
    flex-direction: column;
    align-items: center;
  }

  .sponsor-gallery {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sponsor-form-inline {
    text-align: center;
  }
}


/* ============================= */
/* Events Section */
/* ============================= */
#events {
  padding: 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

#events h1 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Event Cards Grid */
.event-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.event-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-card:hover,
.event-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}


.event-info {
  padding: 1rem;
}

.event-info h2 {
  color: #003366;
  margin-bottom: 0.5rem;
}

.event-info p {
  color: #333;
  font-size: 0.95rem;
}

/* ============================= */
/* Calendar Section */
/* ============================= */
#calendar {
  padding: 2rem;
  background-color: #ffffff;
  text-align: center;
}

#calendar h2 {
  color: #003366;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.calendar-container {
  overflow-x: auto;
}

.calendar-container iframe {
  width: 100%;
  height: 600px;
  border: 0;
}

/* ============================= */
/* MOBILE / ADDITIONAL TWEAKS */
/* ============================= */

/* Adjust hero text on smaller screens */
@media (max-width: 768px) {
  .hero-overlay {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .hero-overlay h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .content-block,
  .resource-section {
    flex-direction: column !important;
    max-width: 95%;
  }

  .text-content,
  .resource-text,
  .resource-image {
    max-width: 100% !important;
  }
}

/* Navbar collapse on small screens */
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-links {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
  }

  .nav-links a {
    padding: 0.5rem 0.75rem;
  }
}

.site-footer {
  width: 100%;
  background: var(--deca-blue);
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

/* Footer adjustments for small screens */
@media (max-width: 480px) {
  .site-footer {
    font-size: 0.85rem;
    padding: 1rem 0.5rem;
  }
}

/* Footer Text Rules */
.site-footer p,
.site-footer li {
  line-height: 1.5;
  font-size: 1rem;
  color: #ffffff;
}

/* Focus-visible outline for accessibility */
:focus-visible {
  outline: 3px dashed var(--deca-blue);
  outline-offset: 2px;
}

/* Miscellaneous utility classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.w-100 {
  width: 100%;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

/* Leadership */
/* Passport Awards Section Layout */
.passport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 2rem; 
  margin-top: 1.5rem;
  align-items: start;
}

.passport-card {
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 8px;
}

/* Mobile-friendly stacking */
@media (max-width: 768px) {
  .passport-grid {
    grid-template-columns: 1fr; 
  }
}
/* Buttons below paragraphs */
.passport-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #0055a4; /* DECA blue */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
}

.passport-btn:hover,
.passport-btn:focus {
  background-color: #003f7d; /* darker DECA blue */
}

.btn-wrapper {
  text-align: center;
  margin-top: 1rem;
}
