/*
   Styles for Home page

        Dark: #4f4a21
        Light: #9e9c70
        20% lighter: #d1cfa3
*/




/* Section banner. */

#colour-banner { display: none; }
@media (min-width: 768px) { #colour-banner { display: block; height: 10px; background-color: #f6f6f6; } }





/* Content (just an empty container, to allow for styling of content). */

#content { padding: 0; border: 0; margin: 0; }





#content h3 {
  margin-top: .5em;

}
#content h4 {
  margin-top: 0;
  margin-bottom: 0.25em;
}

#content h2 a, #content h3 a, #content h4 a {
  background-color: unset;
}




/* Section banner. */

/* Hero section */
#content .hero-section {
  background-color: var(--color-usc-gold);
}
#content .hero-header h1 {
    color: var(--color-usc-cardinal);
    margin-bottom: 0;
}


#content .hero-header h2 {
  font-family: "National 2";
  margin: .5em 0 1em 0;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px; /* 100% */
  letter-spacing: -1.6px;
}


/* Hero image */
#content .hero-image {
  background-image: url('/uploads/home/home-hero-image.png');
}
@media (max-width: 767px) {
    #content .hero-image {
        background-image: url('/uploads/home/home-hero-image-mobile.png');
    }
}

/* Hero section action button - page-specific styles */
#content .hero-section .wrapper-action a {
  background: var(--color-usc-cardinal);
  color: var(--color-usc-gold);
}

/* Hero section caption */
#content .hero-section .hero-caption {
  color: var(--color-black);
}




/* Welcome section */

.welcome-section {
  width: 100%;
  background-color: var(--color-usc-cardinal); /* optional */
  padding: 60px 0;
}

.welcome-wrapper {
  max-width: var(--Desktop-Container-Width);
  margin: 0 auto;
  padding: 0 40px;
}

#content .welcome-header h2 {
  font-size: 60px;
  color: var(--color-usc-gold);
}

#content .welcome-text {
  font-family: "National 2";
  font-size: 30px;
  font-weight: 400;
  line-height: 42px;
  color: var(--color-white);
  margin-bottom: 16px;
}

/* Fix for welcome section width and spacing issues */
#content .welcome-wrapper .landing-text-wrapper {
  max-width: 49%;
  flex-basis: 49%;
  flex-grow: 0;
  flex-shrink: 0;
  height: 100%;
}

#content .welcome-wrapper .landing-text-wrapper .landing-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex-grow: 1 !important;
  flex-basis: auto !important;
  height: 100%;
  margin-top: 2em;
}

/* Welcome section action button - page-specific styles */
#content .welcome-section .wrapper-action a {
  background: var(--color-usc-gold);
  color: var(--color-black);
}

@media (max-width: 767px) {
    #content .welcome-wrapper .landing-text-wrapper {
        max-width: none;
    }
    #content .welcome-text {
        margin-bottom: 0;
    }
    #content .welcome-header h2, #content .welcome-wrapper .landing-text-wrapper .landing-cell {
        margin-top: 0;
        margin-bottom: 0;
        gap: 16px;
        font-size: 50px;
    }
    #content .welcome-section .wrapper-action {
        margin-bottom: 1em;
    }
    #content .landing-row .landing-cell p {
        font-size: 75%;
    }
}


/* What Is Section */


#content .what-section {
  width: 100%;
  background: var(--color-white, #fff);
  padding: 40px 0;
}

#content .what-wrapper {
  max-width: var(--Desktop-Container-Width);
  margin: 0 auto;
}

#content .what-links-row {
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  display: flex;
  gap: 40px 60px;
  flex-direction: row;
}

#content .what-links-row .label {
  font-family: "National 2";
  font-size: 85px;
  font-style: normal;
  font-weight: 800;
  line-height: 100%; /* 100% */
  letter-spacing: -2.6px;
  text-align: center;
  color: var(--color-red);
  margin-right: 36px;
}

#content .what-links-row p {
  color: var(--color-red);
  font-family: "National 2";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px; /* 125% */
  letter-spacing: -1.28px;
  text-transform: uppercase;
  margin: 0 0 0 0;
  display: flex;
  align-items: center;
}

#content .what-links-row a {
  color: var(--color-red);
  background-color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.what-divider {
  width: 1px;
  height: 115px;
  background-color: var(--color-usc-cardinal);
  align-self: center;
}
@media (max-width: 767px) {
    .what-divider {
        display: none;
    }
    #content .what-links-row {
        flex-direction: column;
        gap: 20px;
    }
    #content .what-links-row p {
        margin: 0 var(--Mobile-Side-Margin);
    }
}



/* News Section */
#content .news-section {
  width: 100%;
  background-color: var(--color-usc-gold);
  padding: 60px 0;
}

#content .news-wrapper {
  max-width: var(--Desktop-Container-Width);
  margin: 0 auto;
  padding: 0 40px;
}

#content .news-section h2 {
  font-size: 48px;
}

#content h2 a:hover {
  background-color: unset;
}

#content .news-section h4.big {
  margin-top: 0.5em;
}

#content h4 a {
  font-weight: 700;
  color: var(--color-usc-cardinal);
  background-color: unset;
  padding: 0;
  border-radius: 0;
}

#content .landing-row .landing-cell h4 a:hover  {
  background-color: unset;
}

#content .landing-row .landing-cell p span.date {
  font-weight: 700;
  color: var(--color-black);
}

#content .landing-row .landing-cell.container {
    margin-top: 1em;
}
@media (min-width: 768px) {
    #content .landing-row .landing-cell.container {
        margin-top: 0;
    }
}

.news-divider {
  max-width: var(--Desktop-Container-Width);
  height: 1px;
  background-color: var(--color-black);
  align-self: center;
  width: 100%;
  margin: 1em auto;
}

/* News section action button - page-specific styles */
#content .news-section .wrapper-action {
  width: 100%;
}

#content .news-section .wrapper-action a {
  background: var(--color-usc-cardinal);
  color: var(--color-usc-gold);
}

@media (max-width: 767px) {
    .landing-header {
        margin-bottom: 1em;
    }
    .new .landing-text h4.big {
        font-size: 24px; /* TODO verify this */
    }
}
@media (min-width: 768px) {
    .news-divider {
        width: auto;
    }
    #content .news-section .wrapper-action {
        justify-content: right;
    }
}

/* Patient Care Section */

.patient-care-section {
  width: 100%;
  background-color: var(--color-patient-care-bg);
  padding: 60px 0;
}

.patient-care-wrapper {
  max-width: var(--Desktop-Container-Width);
  margin: 0 auto;
  padding: 0 var(--Desktop-Side-Margin);
  text-align: left;
}
#content .patient-care-section h2 {
  font-size: 48px;
}

#content .patient-care-section h3 a {
  color: var(--color-usc-cardinal);
}
#content .patient-care-section h3 a:hover {
  background-color: unset;
}

#content .patient-care-section  .wrapper-action {
  margin-top: 2em;
}

#content .patient-care-section .wrapper-action a {
  background: var(--color-usc-cardinal);
  color: var(--color-usc-gold);
}



/* Research Section */

.research-section {
  width: 100%;
  background-color: var(--color-research-bg);
  padding: 60px 0;
}

.research-wrapper {
  max-width: var(--Desktop-Container-Width);
  margin: 0 auto 32px auto;
  padding: 0 var(--Desktop-Side-Margin) 26px;
  text-align: left;
}

#content .research-section h2 {
  font-size: 48px;
}

#content .research-section h3 a:hover {
  background-color: unset;
}

#content .research-section .wrapper-action {
  margin-top: 2em;
}

#content .research-section .wrapper-action a {
  background: var(--color-black);
  color: var(--color-white);
}



/* Voices Section */

.voices-section {
  width: 100%;
  background-color: var(--color-white);
  padding: 60px 0 0;
  position: relative;
  margin-top: -32px;
  overflow: hidden; /* Ensure the split layout doesn't create horizontal scroll */
}

.voices-wrapper {
  max-width: var(--Desktop-Container-Width);
  margin: 0 auto;
  padding: 0;
}

/* Voices section layout - split color design */
#content .voices-section .voices-split-layout {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0;
  position: relative;
  min-height: 600px; /* Ensure minimum height for content */
  align-items: stretch;
}

/* Left side - Student Voices (white background extending to left edge) */
#content .voices-section .voices-left {
  background-color: var(--color-white);
  padding: 0 0 60px 0; /* Reduced left padding to extend to edge */
  flex-basis: 66.67%;
  flex-grow: 0;
  flex-shrink: 0;
  width: 66.67%;
  position: relative;
}

/* Right side - Events (yellow background extending to right edge) */
#content .voices-section .voices-right {
  background-color: var(--color-usc-gold-40-tint);
  padding: 60px 0 60px 24px; /* Reduced right padding to extend to edge */
  flex-basis: 33.33%;
  flex-grow: 0;
  flex-shrink: 0;
  width: 33.33%;
  position: relative;
  margin-top: -60px; /* Extend up to meet the red section */
}

/* Extend backgrounds to full width */
#content .voices-section .voices-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100vw; /* Extend far to the left */
  width: 100vw;
  height: 100%;
  background-color: var(--color-white);
  z-index: -1;
}

#content .voices-section .voices-right::after {
  content: '';
  position: absolute;
  top: -60px; /* Extend up to meet the red section */
  right: -100vw; /* Extend all the way to the right edge */
  width: 100vw;
  height: calc(100% + 60px); /* Extend height to account for the upward extension */
  background-color: var(--color-usc-gold-40-tint);
}



/* Student Voices content styling */
.voices-section #student-voices-header {
  font-size: 48px;
  font-weight: 800;
  font-family: "National 2";
  color: var(--color-usc-cardinal);
  margin-bottom: 12px;
}

.voices-section h2 a {
  color: inherit;
  text-decoration: none;
}

.voices-section h2 a:hover {
  text-decoration: underline;
}

/* Featured Blogs - Two Column Layout */
.voices-section .featured-blogs {
  display: flex;
  gap: 32px;
  margin-bottom: 0;
  flex-wrap: wrap;
  flex-direction: column;
}
@media (min-width: 768px) {
    .voices-section .featured-blogs {
        flex-direction: row;
        padding-right: 40px;
    }
}

.voices-section .blog-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%; /* Match image width */
}

.voices-section .blog-image {
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: var(--Desktop-Border-Radius);
  flex-basis: auto !important;
  flex-grow: 0 !important;
}

#content .voices-section .blog-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
}

.voices-section .blog-content {
  flex: 1;
}

#content .voices-section .blog-content h4 {
  font-size: 26px;
  font-weight: 700;
  font-family: "National 2";
  color: var(--color-usc-cardinal);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.voices-section .blog-content h4 a {
  color: inherit;
  text-decoration: none;
}

.voices-section .blog-content h4 a:hover {
  text-decoration: underline;
}

.voices-section .blog-meta {
  font-size: 16px;
  font-weight: 500;
  font-family: "National 2";
  color: var(--color-black);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.voices-section .blog-meta .date {
  font-weight: 600;
  color: var(--color-black);
}

.voices-section .blog-meta a {
  color: var(--color-usc-cardinal);
  text-decoration: none;
}

.voices-section .blog-meta a:hover {
  text-decoration: underline;
}

.voices-section .blog-excerpt {
  font-size: 16px;
  font-weight: 400;
  font-family: "National 2";
  color: var(--color-black);
  margin: 0;
  line-height: 1.5;
}

/* Button styling for voices section */
.voices-section .button {
  margin: 0 66px 0 0;
  flex-basis: 100% !important;
  flex-grow: 0 !important;
  width: 100%;
  max-width: 768px;
  text-align: left;
}
@media (min-width: 768px) {
    .voices-section .button {
        text-align: right;
    }
}

.voices-section .button a {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--color-usc-gold);
  color: var(--color-black);
  text-decoration: none;
  border-radius: 8px;
  font-family: "National 2";
  font-size: 22px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.voices-section .button a:hover {
  background: var(--color-usc-gold);
  color: var(--color-usc-cardinal);
  transform: translateY(-2px);
  box-shadow:0 2px 2px 0 rgb(0 0 0 / 0.40);
}

/* Vlog section */
.voices-section .vlog {
  margin-top: 32px;
  padding: 0;
  background: var(--color-usc-gold);
  border-radius: var(--Desktop-Border-Radius);

  text-align: center;
  overflow: hidden;
  max-width: 768px;
}

.voices-section .vlog .video-container {
  margin-bottom: 0;
  max-width: 768px;
}

.voices-section .vlog iframe,
.voices-section .vlog video {
  max-width: 768px;
  width: 100%;
}

.voices-section .vlog-title {
  margin-top: 12px !important;
  margin-bottom: 32px !important;
}



/* Events section styling */
.voices-section .landing-cell.container.one-third h2 {
  color: var(--color-usc-cardinal);
}

.voices-section #events-header {
  font-size: 48px;
  margin-bottom: 12px;
  margin-top: 30px;
  font-family: "National 2";
}
@media (min-width: 768px) {
    .voices-section #events-header {
        margin-top: 6px;
    }
}

.voices-section #events-header a {
  font-weight: 800;
  color: var(--color-usc-cardinal) !important;
  background-color: var(--color-usc-gold-40-tint) !important;
}

#eventscontainer {
  margin: 0;
  display: flex;
  flex-direction: column;
  /* padding-right: 24px */
}

#eventscontainer .newssummary {
  margin-bottom: 0;
}

#eventscontainer .newssummary img {
  width: 100%;
  height: 264px;
  object-fit: cover;
}

#eventscontainer .newstitle {
  font-size: 24px;
  font-weight: 700;
  font-family: "National 2";
  color: var(--color-usc-cardinal);
  margin: 1em 0 8px 0;
}

#eventscontainer .newstitle a {
  color: inherit;
  text-decoration: none;
}

#eventscontainer .newstitle a:hover {
  text-decoration: underline;
}

.voices-section .events-content .button a {
  background: var(--color-usc-cardinal);
  color: var(--color-usc-gold);
  margin-right: 24px;
/*  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: "National 2";
*/
}

.voices-section .events-content .button a:hover {
  color: var(--color-black);
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  #content .voices-section .voices-split-layout {
    flex-direction: column;
    gap: 30px;
  }

  #content .voices-section .voices-left,
  #content .voices-section .voices-right {
    flex-basis: 100%;
    width: auto;
    padding: 0 var(--Mobile-Side-Margin);
  }
@media (max-width: 767px) {
    #content .voices-section .voices-right {
        margin-top: 0;
        padding-bottom: 60px;
    }
}


  /* Remove the extended backgrounds on mobile */
  #content .voices-section .voices-left::before,
  #content .voices-section .voices-right::after {
    display: none;
  }
}

