/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
  }


  /* Home sections layout */
  .home-sections {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Utility */
  .hidden {
    display: none;
  }
  
  /* Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #BA0C2F;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
  }
  
  .logo img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
  }
  
  .menu {
    list-style: none;
    margin-top: 10px;
    
  }
  
  .menu li {
    position: relative;
    margin-bottom: 8px;      /* separate the items a bit */
  }
  
  .menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;

    font-size: 1.25rem;      /* up from ~1rem */
    line-height: 1.5;
  }
  
  .menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .submenu {
    list-style: none;
    display: none;
    background: #A61723;
  }
  
  .submenu li a {
    padding-left: 30px;
  }
  
  .has-submenu:hover .submenu {
    display: block;
  }
  
  .social {
    text-align: center;
  }
  
  .social a {
    margin: 0 5px;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
  }
  
  /* Main content */
  .main-content {
    margin-left: 260px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }
  
  .bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .bg1,
  .bg2 {
    z-index: 0;
  }
  
  .overlay {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .header h1 {
    color: #BA0C2F;
    margin-bottom: 20px;
    text-align: center;
  }

  .header .subheader {
    font-size: 1.5rem;         /* smaller than the main title */
    font-style: italic;      /* italic */
    font-weight: normal;     /* not bold */
    margin-top: 8px;         /* a bit of breathing room */
    color: #A61723;             /* match your body text color */
    text-align: center;      /* center under your main title */
  }
  
  
/* Search Bar (pinned top-right) */
.search-container {
    position: absolute;
    top: 20px;           /* vertical offset from top */
    right: 20px;         /* horizontal offset from right */
    display: flex;
    align-items: center;
    z-index: 2;          /* sit above the white overlay */
  }
  
  .search-container input {
    width: 250px;        /* fixed width so it doesn’t stretch too far */
    padding: 12px 15px;
    font-size: 1.2em;
    border: 1px solid #bbb;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
  }
  
  .search-container input:focus {
    border-color: #BA0C2F;
  }
  
  .search-container button {
    padding: 12px 18px;
    margin-left: 8px;    /* space between the field and button */
    font-size: 1.2em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #BA0C2F;
    color: #fff;
    transition: background 0.3s;
  }
  
  .search-container button:hover {
    background: #a50b29;
  }
  
/* CONTACT PANEL */
#contact-content {
    text-align: center;
    margin: 20px auto;
  }
  #contact-content p em {
    font-size: 1.1em;
    margin-bottom: 20px;
    display: block;
  }
  #contact-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.2em;
  }
  #contact-icons a {
    color: #BA0C2F;
    text-decoration: none;
  }
  #contact-icons a i {
    margin-right: 8px;
  }
  
  /* ABOUT STYLING */
  #about h2 {
    text-align: center;
  }
  
  #about-link {
    text-align: center;
    margin-bottom: 15px;
  }
  
  #about p em {
    display: block;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
  }

  /* ─── Center & style the About links ─── */
  .about-link {
    display: flex;
    justify-content: center;   /* center them in the container */
    gap: 1rem;                 /* smaller space between buttons */
    margin: 1rem auto 1.5rem;  /* vertical spacing above/below, auto-center horizontally */
    max-width: 600px;          /* optional: cap the width so they don’t stretch too far */
    width: 100%;
  }

  /* ─── About Buttons ─── */
  .about-link a {
    display: inline-block;
    padding: 0.5rem 1rem;
    min-width: 180px;               /* keep them a consistent width */
    background: #BA0C2F;            /* CCAMS red */
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 
      transform 0.2s ease, 
      box-shadow 0.2s ease, 
      background 0.2s ease;
    line-height: 1.2;               /* tighten multi-line labels */
  }

  .about-link a:hover {
    background: #A61723;            /* darker red on hover */
    transform: translateY(-3px);    /* subtle lift effect */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  }

  
  /* HOME PAGE */
  
  #weather,
  #events {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    min-width: 280px;
  }
  
  #weather h2,
  #events h2 {
    text-align: center;
  }
  
  footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
  }


  /* --- Weather Card Enhancements --- */
#weather-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.weather-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.weather-header img {
  width: 60px; height: 60px;
}
.weather-header h3 {
  font-size: 1.5em;
  margin: 0;
}
.weather-details p {
  margin: 4px 0;
  font-size: 1.1em;
}
.weather-details i {
  margin-right: 6px;
  color: #BA0C2F;
}

/* Make the NWS heading link blend in */
#nws-widget h2 a {
  color: inherit;           /* same color as the heading */
  text-decoration: none;    /* remove underline */
}
#nws-widget h2 a:hover {
  text-decoration: underline; /* optional hover cue */
}



/* --- WIDGET DROPDOWN --- */
/* Smooth collapse/expand (optional) */
/* Collapse/expand the NWS content */
.nws-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;          /* hidden by default */
}
.nws-content:not(.hidden) {
  max-height: 600px;      /* or whatever height fits your iframe */
  margin-top: 12px;
}

/* Make the header look clickable */
.card-header {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Style for the little link icon */
.nws-link-icon {
  margin-left: 8px;
  text-decoration: none;
  font-size: 0.9em;
  color: #666;
}
.nws-link-icon:hover {
  color: #BA0C2F;
}




/* --- Events List Enhancements --- */
.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.events-list li {
  margin: 8px 0;
  padding: 10px 12px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.events-list li:hover {
  transform: translateY(-2px);
}
.events-list a {
  text-decoration: none;
  color: #333;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}
.events-list i {
  margin-right: 8px;
  color: #BA0C2F;
}

/* --- Card layout tweak for smaller screens --- */
@media (max-width: 700px) {
  .home-sections {
    flex-direction: column;
  }
}

/* Give the iframe a fixed height and full width */
.iframe-container {
  width: 100%;
  max-width: 1000px;    /* match your overlay max‐width */
  height: 500px;        /* adjust as you like */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ----- NWS header and toggle ----- */
.nws-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.nws-link {
  font-weight: bold;
  color: #333;
  text-decoration: none;
}
.nws-link:hover {
  text-decoration: underline;
}

.nws-toggle {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #333;
}
.nws-toggle:hover {
  color: #BA0C2F;
}



/* transition the icon on rotation */
.nws-toggle i {
  font-size: 1.2em;
  transition: transform 0.3s ease;
  color: #333;
}

/* when expanded, rotate the chevron */
#nws-toggle.expanded i {
  transform: rotate(180deg);
}






/* ----- show/hide behavior ----- */
#nws-content.hidden {
  display: none;
}
/* optional you can animate height if you like:
#nws-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
}
#nws-content:not(.hidden) { max-height: 800px; }
*/

/* ensure your card spans the full width under the two others */
#nws-widget {
  flex: 1 1 100% !important;
  width: 100% !important;
  margin-top: 30px;
}





/* ABOUT CARD*/
/* Bigger text just in the About card */
#about {
  font-size: 1.15rem;    /* ~18px if your root is 16px */
}

#about h2 {
  font-size: 1.5rem;     /* make the heading extra large */
}

#about p {
  font-size: 1.25rem;    /* enlarge the paragraph text */
}






/* OFFICERS PAGE */
/* ===== Officers Section Container ===== */
#officers {
  padding: 40px 20px;
  background: #fff;                  /* pure white behind the cards */
  border-radius: 8px;
  max-width: 1000px;
  margin: 0 auto 40px;               /* center + bottom spacing */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Section Heading */
#officers h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #BA0C2F;
  text-align: center;
}

/* ===== Responsive Grid ===== */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* ===== Individual Officer Card ===== */
.officer-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 240px;
}
.officer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}


/* ===== Officer Photo Styling ===== */
.officer-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Name & title */
.officer-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}
.officer-card .title {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #555;
}

/* hide contact info by default */
.officer-contact {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: 
    max-height 0.3s ease-out,
    opacity     0.3s ease-out;
  margin-top: 0.5rem;
}

/* when the card is “expanded”, grow a bit and show the email */
.officer-card.expanded {
  /* optionally bump the size or add a background highlight */
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.officer-card.expanded .officer-contact {
  max-height: 50px;      /* or large enough to fit your link */
  opacity: 1;
}



/* CONTACTS PAGE */

/* contact panel base */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#contact-content h2 {
  color: #BA0C2F;
  margin-bottom: 0.5em;
}

#contact-content p em {
  display: block;
  font-style: italic;
  margin-bottom: 1.5em;
}

/* the italicized intro line */
#contact-text {
  font-size: 1.5em;
  font-style: italic;
  text-align: center;
  color: #333;
}

/* social links row */
#contact-social {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

#social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #BA0C2F;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

#social-links i {
  font-size: 1.5em;
}


/* each social link */
#contact-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #BA0C2F;
  font-weight: bold;
  transition: color 0.3s;
}

#contact-social a i {
  font-size: 1.5em;
}

#contact-social a:hover {
  color: #A61723;
}


.hidden {
  display: none !important;
}


/* BOTTOM SOCIAL ICONS */
/* if you want to match your contact‐page spacing exactly, you can re-use .social-links */
/* here I assume you gave it its own class .sidebar-social-links */

.sidebar-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;          /* space between icons */
  margin-top: 2rem;   /* adjust vertical spacing */
}

.sidebar-social-links a {
  color: #fff;                  /* ensure they’re white on your red sidebar */
  text-decoration: none;
  transition: opacity .2s;
}

.sidebar-social-links a:hover {
  opacity: 0.7;
}



/* ITHACATION COVERS */

/* Ithacation section spacing & layout */
#ithacation {
  padding: 2rem 1rem;   /* adds space above & below the entire section */
}

#ithacation h2 {
  margin-bottom: 2.5rem;  /* more gap beneath the heading */
}

/* tighten up your grid and center it */
.ithacation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;               /* space between cover cards */
  max-width: 900px;        /* prevents it from stretching too wide */
  margin: 0 auto;          /* center the grid container */
}

.cover-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cover-card img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.cover-card p {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}




/* ─── CORNELL DAILY SUN ─── */
/* Layout + typography */
#sun {
  text-align: center;
}
#sun .sun-content {
  max-width: 720px;
  margin-inline: auto;
}
#sun h2 {
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.4rem);
  margin-bottom: .5rem;
}
#sun .sun-content p {
  font-size: 1.2rem;
  line-height: 1.55;
  color: #2b2b2b;
  margin: 0 auto 1.25rem;
}

/* Buttons (stacked, red) */
#sun .button-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: 1.25rem 0 2rem;
}
#sun a.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(220px, 70%, 360px);
  padding: .6rem 1.2rem;
  border-radius: 8px;
  background: #BA0C2F;              /* Cornell red */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: background .15s, transform .15s, box-shadow .15s;
}
#sun a.button-link:visited { color: #fff; }
#sun a.button-link:hover {
  background: #8e0a24;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
#sun a.button-link:active { transform: translateY(0); }
#sun a.button-link:focus-visible {
  outline: 3px solid #ffd54f;
  outline-offset: 2px;
}

/* Forecast card */
#sun .sun-figure {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  margin: 1rem auto 0;
}
#sun .sun-screenshot {
  display: block;
  margin: 0 auto;
  width: min(90%, 420px);
  height: auto;
}
#sun .sun-caption {
  color: #555;
  font-size: .95rem;
  margin-top: .6rem;
}

/* Divider under subtitle */
#sun .divider {
  width: min(720px, 90%);
  height: 1px;
  margin: .75rem auto 1.25rem;
  background: rgba(0,0,0,.08);
}

/* Frosted overlay */
.overlay {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px) saturate(1.05);
}




/* RESOURCES */
#resources { text-align: left; }
#resources h2 { text-align: center; margin-bottom: .5rem; }
#resources p { text-align: center; margin-bottom: 1.25rem; }

.resource-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.resource-card{
  background:#fff;
  border-radius:8px;
  padding:16px 18px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.resource-card h3{
  margin:0 0 .5rem;
  color:#BA0C2F;
}

.resource-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:.45rem;
}

.resource-list a{
  text-decoration:none;
  color:#334;
}
.resource-list a:hover{
  text-decoration:underline;
  color:#BA0C2F;
}


/* OUTREACH */
#outreach { text-align: center; padding: 2.5rem 1rem; }
#outreach h2 { margin-bottom: .75rem; }
#outreach .coming-soon {
  font-size: 1.6rem;
  font-weight: 700;
  color: #BA0C2F;          /* Cornell red */
  letter-spacing: .02em;
}

/* INTERNSHIPS */
#internships { text-align:center; padding:2.5rem 1rem; }
#internships h2 { margin-bottom:.5rem; }
#internships p { margin-bottom:1.25rem; color:#2b2b2b; }

#internships .button-row{
  display:flex;
  gap:1rem;
  justify-content:center;
  flex-wrap:wrap;           /* stacks on small screens */
  margin-top:.5rem;
}

#internships .button-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.6rem 1.2rem;
  border-radius:8px;
  background:#BA0C2F;       /* Cornell red */
  color:#fff; text-decoration:none; font-weight:600;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 2px 10px rgba(0,0,0,.12);
  transition:background .15s, transform .15s, box-shadow .15s;
  width: clamp(240px, 32vw, 360px);
}
#internships .button-link:hover{
  background:#8e0a24;
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}
#internships .button-link:visited{ color:#fff; }
#internships .button-link i{ margin-right:.5rem; }


/* Responsive Google Sheet embed */
.embed-sheet{
  position: relative;
  width: min(1100px, 92%);
  margin: 1rem auto;
  aspect-ratio: 16 / 10;        /* make taller? try 4/3 */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  overflow: hidden;
}
.embed-sheet iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.embed-actions{ text-align:center; margin-top:.5rem; }
.embed-actions a{ color:#BA0C2F; text-decoration:none; }
.embed-actions a:hover{ text-decoration:underline; }




/* SCHOLARSHIPS */
#scholarships, #scholarship-responses { text-align:center; padding:2.5rem 1rem; }
#scholarships h2, #scholarship-responses h2 { margin-bottom:.5rem; }
#scholarships p { margin-bottom:1.25rem; color:#2b2b2b; }
#scholarship-responses .coming-soon{
  font-size:1.4rem; font-weight:700; color:#BA0C2F; letter-spacing:.02em;
}

#scholarships .button-row{
  display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:.5rem;
}
#scholarships .button-link{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.6rem 1.2rem; border-radius:8px;
  background:#BA0C2F; color:#fff; text-decoration:none; font-weight:600;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 2px 10px rgba(0,0,0,.12);
  transition:background .15s, transform .15s, box-shadow .15s;
  width: clamp(240px, 32vw, 360px);
}
#scholarships .button-link:hover{
  background:#8e0a24; transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,.18);
}
#scholarships .button-link:visited{ color:#fff; }
#scholarships .button-link i{ margin-right:.5rem; }




/* RESEARCH */
#research, #research-responses { text-align:center; padding:2.5rem 1rem; }
#research h2, #research-responses h2 { margin-bottom:.5rem; }
#research p { margin-bottom:1.25rem; color:#2b2b2b; }
#research-responses .coming-soon {
  font-size:1.4rem; font-weight:700; color:#BA0C2F; letter-spacing:.02em;
}

#research .button-row{
  display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:.5rem;
}
#research .button-link{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.6rem 1.2rem; border-radius:8px;
  background:#BA0C2F; color:#fff; text-decoration:none; font-weight:600;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 2px 10px rgba(0,0,0,.12);
  transition:background .15s, transform .15s, box-shadow .15s;
  width: clamp(240px, 32vw, 360px);
}
#research .button-link:hover{
  background:#8e0a24; transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,.18);
}
#research .button-link:visited{ color:#fff; }
#research .button-link i{ margin-right:.5rem; }
