/* ==========================================================================
   CHS HOMEPAGE
   ========================================================================== */
/* Full-width hero */
.plugin-video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plugin-hero {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.plugin-hero--floating-caption .plugin-hero__caption {
  background-color: transparent;
  align-items: center;
  width: 100%;
}
/* CTA buttons */
.homeButtons {
  background: #000;
  padding: 2rem;
}
.homeButtons .plugin-card {
  border-radius: 9999px;
}
.homeButton .plugin-card:hover {
  background-color: #ffb300; 
}
.homeButtons .plugin-card__body {
  padding: 0.3rem;
}
.homeButtons .plugin-card__body h3 {
  font-size: 1rem;
}
@media (min-width: 1024px) {
  .homeButtons {
    margin: 0 -999rem 0 -999rem;
    padding: 0 999rem;
  }
}
.cwf-grid--page-layout {
  --cwf-grid--padding: 0;
}
@media (min-width: 1024px) {
  .cwf-grid--page-layout {
    --cwf-grid--padding: 0;
  }
}
.cwf-grid__column--page-layout {
  --cwf-grid__column--padding: 0;
}
.cwf-grid.homeButtons__container {
  --cwf-grid--margin-bottom: 0;
}
@media (min-width: 768px) {
  /* Deploy grid display at 768px instead of 1024px */
  .cwf-grid.homeButtons__container {
    --cwf-grid--grid-template-columns: repeat(
      auto-fit,
      minmax(var(--cwf-grid__column--min-width), 1fr)
    );
  }
}
@media (min-width: 1024px) {
  .homeButtons__container {
    max-width: 1200px;
    margin: auto;
    grid-gap: 2rem;
  }
}
@media (min-width: 1200px) {
  .homeButtons__container {
    padding: 1rem 2rem;
  }
}
.homeButtons__item {
  transition: all 0.2s ease-in-out;
}
.homeButtons__item:hover {
  background-color: #ffb300;
  text-decoration: underline;
  box-shadow: none;
}
.homeButtons__item a {
  color: #000;
  text-decoration: none;
}
/* Ampersand - Tablet and Mobile View */
@media (max-width: 1024px) {
    /* Target the parent container of the grid */
    .ampersand .cwf-grid.cwf-grid--5-columns { 
        display: flex !important;
        flex-direction: column-reverse; /* This flips the visual order */
        align-items: center;
        text-align: left;
    }
    /* Control the ampersand size */
  .ampersand .cwf-grid__column--span-2 {
        width: 100% !important; /* Allow the column to be full width so image can center */
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 2rem;
        margin-top: 2rem;
    }  
  .ampersand .cwf-grid__column--span-2 img {
        width: 80% !important; 
        max-width: 250px !important;
        min-width: 180px !important;
        height: auto !important;
        display: block !important;
    }
    /* Adjust the text column spacing now that it's on the bottom */
    .ampersand .cwf-grid__column--span-3 {
        margin-top: 0; 
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
/* Ampersand Desktop */
@media (min-width: 1025px) {
 .cwf-grid__column--span-1 {
    margin-top: 4rem;
    padding-left: 3rem;
}
.ampersand .cwf-grid__column--span-2 {
   margin-top: 4rem;
   padding-right: 3rem;
}
.ampersand .cwf-grid__column--span-3 {
   margin-top: 3rem;
   padding-left: 3rem; 
   padding-right: 1rem;
  }
}  
/* Stat Cards mobile and tablet */
.statCards h3 {
    font-size: 5rem; /* Scaled down for mobile */
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1px;
    margin-bottom: 0.5rem;
}
.statCards p {
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}
.plugin-hero plugin-hero--floating-caption {
    display: flex;
    flex-direction: column; /* Stacked for mobile */
    align-items: center;
    gap: 30px;
}
@media (min-width: 768px) {
   .plugin-hero plugin-hero--floating-caption {
        flex-direction: row; /* Side-by-side for desktop */
        justify-content: space-around;
    }
}
/* Stat Cards - Remove background images on mobile */
@media (max-width: 1024px) {
    /* 1. Kill any background image on the container or its children */
    .statCards, 
    .statCards *, 
    [class*="paint-roll"] { 
        background-image: none !important;
    }

    /* 2. Style the actual card container */
    .statCards {
        background-color: #ffb300 !important; /* VCU Gold */
        padding: 40px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        display: block; /* Ensures they stack correctly */
    }

    /* 3. If the "paint roll" is an <img> tag rather than a CSS background */
    .statCards img {
        display: none !important;
    }

    .statCards:last-child {
        border-bottom: none;
    }
}
/* Stat Cards desktop */
@media (min-width: 768px) {
    .statCards h3 {
        font-size: 8rem;
    }
}

@media (min-width: 1200px) {
    .statCards h3 {
        font-size: 10rem;
    }
    .statCards p {
        font-size: 1.5rem;
    }
}

/* Why Liberal Arts mobile and tablet */
@media (max-width: 1024px) {
    .whyLib a {
        color: #000;
    }
    /* 1. Center the column and image */
    .whyLib .cwf-grid__column--span-2 {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    /* 2. Ensure the image itself behaves */
    .whyLib .cwf-grid__column--span-2 img {
        max-width: 90% !important; /* Prevents edge-to-edge touching */
        height: auto;
        display: block;
        border-radius: 2%;
    }
    /* 3. Center the text column and adjust padding */
    .whyLib .cwf-grid__column--span-3 {
        margin-top: 0;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}
/* Why Liberal Arts desktop */
@media (min-width: 1025px) {
  .whyLib a {
   color: #000;
  }
  .whyLib .cwf-grid__column--span-2 {
   margin-top: 4rem;
   padding-left: 3rem;
}
.whyLib .cwf-grid__column--span-3 {
   margin-top: 3rem;
   padding-right: 3rem;
  }
.whyLib .cwf-grid__column--span-2 img {
   border-radius: 2%;
  }
}  
/* Page grids */
.cwf-grid__column--span-3 h2 {
   font-weight: 200;
}
.cwf-grid__column--span-4 {
   margin-top: 3rem;
   padding-left: 1rem;
   padding-right: 3rem;
}
.cwf-grid__column--span-4 h2 {
   font-weight: 200;
}
.cwf-grid--3-columns {
   gap: 0;
  }
/* News and events header desktop */
.newsEvents h2 {
  font-size: 2rem;
  font-weight: 200;
  border: none;
  margin-top: 4rem;
  margin-bottom; 1rem;
}
/* Hide the mobile news/events headers by default (Desktop view) */
.mobile-only-events-header {
  display: none;
}
.mobile-only-news-header {
  display: none;
}
/* Split news/event headers on tablet and mobile view (1024px and below) */
@media (max-width: 1024px) {
  
  /* Hide the combined main header */
  .newsEvents h2 {
    display: none;
  }
  
  /* Show the individual headers */
  .mobile-only-events-header {
    display: block;
    font-size: 1.8rem;
    font-weight: 200;
    margin-bottom: 1rem;
    padding-left: 2rem;
  }
  .mobile-only-news-header {
    display: block;
    font-size: 1.8rem;
    font-weight: 200;
    margin-bottom: 1rem;
    padding-left: 2rem;
  }
}

/* Instagram feed */
.instagram h3 {
  background-color: #000;
  color: #fff;
  font-weight: 300;
  padding-bottom: 1rem;
  margin-top: 3rem;
  margin-left: 3rem;
  margin-right: 3rem;
}
.instagram a:link {
  color: #fff;
  font-weight: 300;
  text-decoration: none;
}
.instagram a:hover {
  text-decoration: underline; 
}
.eapps-instagram-feed-posts-view {
  margin-left: 3rem;
  margin-right: 3rem;
}




































































