/*
   Styles for Education section

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


/* Section banner. */

@media (min-width: 768px) { #colour-banner { background-color: var(--color-education-bg)} }


/* Navigation breadcrumbs and related links. */

#content .relatedlinks a { background-color: rgb(158 156 112 / 0.1); }
#content .relatedlinks a:hover { background-color: rgb(158 156 112 / 0.2); }


/* Side menu. */

.side-menu a.current,
.side-menu .side-submenu.expanded a.current,
.side-menu .side-submenu.expanded .side-submenu.expanded a.current {
    background-color: #4f4a21;
    color: white;
    border-right: 5px solid var(--color-education-bg);
}

.side-menu a.current:hover,
.side-menu .side-submenu.expanded a.current:hover,
.side-menu .side-submenu.expanded .side-submenu.expanded a.current:hover
   { background-color: #4f4a21; }



/* Paragraphs, list items, hyperlinks. */

#content a { color: #4f4a21; }
#content a:hover { background-color: #d1cfa3; }


/* Strategic Plan summary boxes. */

#content a.dropdown.goals
   { border: 1px solid rgb(153 0 0 / 1); background-color: rgb(153 0 0 / 0.1); }
#content a.dropdown.goals:hover
   { background-color: rgb(153 0 0 / 0.2); }

#content div.progress
   { border: 1px solid rgb(255 204 0 / 1); background-color: rgb(255 204 0 / 0.1);
     padding: 0.25em 0.5em; }
#content div.progress p
   { font-size: 110%; line-height: 125%; padding: 0.25em 0 0.25em 1em;
     text-indent: -0.5em; margin: 0; }
#content div.progress p.progresstitle
   { font-size: 125%; font-weight: bold; text-indent: 0; padding-left: 0.5em; }
#content div.progress a { background-color: rgb(255 204 0 / 0.25); }
#content div.progress a:hover { background-color: rgb(255 204 0 / 0.5); }


/* Timeline. */

#content div.timeline { align-items: center; }
#content div.timeline h3 { text-align: center; }
#content div.timeline h3 span
   { display: inline-block; font-weight: 400; font-size: 150%;
     color: white; background-color: rgb(76,76,76);
     padding: 6px 12px 8px 12px; border: 5px solid white;
     box-shadow: 0 3px 6px #999999; }


/* Some general styles useful for the new Strategic Plan. */

#content .big-down-arrow
   { font-family: 'Source Sans'; text-align: center; transform: rotate(90deg);
     font-size: 750%; font-weight: 800; line-height: 20%; padding: 0; margin: 0.3em 0;
     color: rgb(0 0 0 / 0.1); }

#content .pointed
{ clip-path: polygon(
   0% 10%, 90% 10%, 90% 0%, 100% 50%, 90% 100%, 90% 90%, 0% 90% ) }


/* TODO Move to general */

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

/* Landing page rows. */

#content .landing-row
   { display: flex; flex-direction: column; justify-content: space-between;
     align-items: stretch; flex-wrap: wrap; margin: 0; }
#content .landing-row div { flex-basis: 48%; }
@media (min-width: 768px)
   { #content .landing-row { flex-direction: row; margin: 20px 0; }
     #content .landing-row div,
     #content .landing-row.one div { flex-basis: 100%; }
     #content .landing-row.two div { flex-basis: 49%; }
     #content .landing-row.three div { flex-basis: 32%; }
     #content .landing-row.three div.two-thirds { flex-basis: 66%; }
     #content .landing-row.three div:not(.two-thirds) { flex-basis: 30%; }
     #content .landing-row.four div { flex-basis: 24%; }
     #content .landing-row.four div.half { flex-basis: 49.33%; }
     #content .landing-row.four div.three-quarters { flex-basis: 74.66%; } }


/* Section banner. */

/* Hero section */
#content .hero-section {
  background-color: var(--color-education-bg);
}
#content .hero-header h1 {
    color: var(--color-education-fg);
    /* Gold on photo: dark glow instead of white halo from general-css */
    /* text-shadow:
      0 1px 2px rgb(0 0 0 / 0.55),
      0 0 14px rgb(0 0 0 / 0.4),
      0 0 28px rgb(0 0 0 / 0.25); */
}

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

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

/* Hero section caption */
#content .hero-section .hero-caption {
  color: var(--color-white);
}
@media (max-width: 767px) {
    #content .hero-section .hero-caption {
        color: var(--color-black);
      }
}




/* About section */

.about-section {
  width: 100%;
  background-color: var(--color-white); /* optional */
  padding: 60px 0;
}
@media (min-width: 768px) {
    .about-section {
      padding: 60px 0;
    }
  }

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

#content .about-wrapper .landing-cell.container.two-thirds {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
  align-self: flex-start;
  height: auto;
}


#content .about-section .h2 {
    color: var(--color-black);
    margin-block-start: 0;
}

#content .landing-text h3 {
  color: var(--color-black);
}

#content .about-section .landing-cell {
    font-size: 20px;
  }
  @media (min-width: 768px) {
    #content .about-section .landing-cell {
      font-size: 30px;
    }
  }

#content .landing-row .landing-cell .landing-image {
    background-color: unset;
    border: 0;
}

.landing-image {
    border-radius: var(--Desktop-Border-Radius);
    overflow: hidden;
}

.landing-text-wrapper {
    border-radius: var(--Desktop-Border-Radius);
    border: 1px solid var(--color-usc-cardinal);
    overflow: hidden;
    align-self: auto;
    /* Prevents stretching to match other column heights */
}
@media (min-width: 768px) {
    .landing-text-wrapper {
        align-self: flex-start;
    }
}
.landing-text {
  background-color: var(--color-white);
  padding: 24px 32px;
  border-radius: 12px;
}

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

@media (max-width: 767px) {
    .about-wrapper .landing-row {
        gap: 24px;
    }
}

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

/* Container for multiple buttons */
#content .about-section .landing-cell .wrapper-action {
    display: block;
    margin-right: var(--Desktop-Side-Margin);
    float: left;
}
@media (max-width: 767px) {
    #content .about-section .landing-cell .wrapper-action {
        margin-right: 16px;
    }
}

#content .about-section .landing-cell .wrapper-action:first-child {
    margin-left: 0;
}



/* Unique Value items */

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

.unique-value-wrapper {
    max-width: var(--Desktop-Container-Width);
    margin: 0 auto;
    padding: 0 var(--Desktop-Side-Margin);
}

#content .unique-value-section .h2 {
    color: var(--color-white);
    margin-bottom: .7em;
}
@media (min-width: 768px) {
    #content .unique-value-section .h2 {
        margin-bottom: 0;
    }
}

.framework-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    /* Makes all rows the same height based on tallest content */
    gap: 0;
    /* margin-right: 30px; */
}

.framework-pill {
    padding: 24px;
    border-radius: 0;
    color: #000;
    font-family: "National 2";
    font-weight: 700;
    font-size: 21px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
}

.framework-pill h5 {
    font-family: "National 2";
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    margin: 0 0 12px 0;
    color: #000;
    min-height: 56px;
    /* Minimum height for h5, but can grow if needed */
    display: flex;
    align-items: flex-start;
    /* Align to top instead of center */
}

.framework-pill p {
    font-family: "National 2";
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
    color: #000;
}

.framework-pill.wide {
    grid-column: span 2;
}

#content .unique-value-section .landing-row {
    gap: 30px;
}

/* Add rounded corners to Tommy Trojan image */
.unique-value-section .landing-cell img {
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .framework-grid {
        grid-template-columns: 1fr;
    }

    .framework-pill.wide {
        grid-column: span 1;
    }

    .framework-pill {
        padding: 20px;
        min-height: 100px;
    }

    .framework-pill h5 {
        font-size: 20px;
        line-height: 24px;
        min-height: 48px;
        /* Smaller minimum height for mobile */
    }

    .framework-pill p {
        font-size: 14px;
        line-height: 18px;
    }
}








/* Our Programs Section */

#content .quad-heading {
    color: var(--color-black);
  }

  #content .quad-subhead {
    color: var(--color-black);
  }

  #content .quad-card h3 {
    color: var(--color-usc-cardinal);
  }

  #content .quad-card p {
    color: var(--color-black);
  }

.quad-card ul.links li {
    font-family: "National 2";
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.8px;
  }








/* World Class Facilities section */

#content .world-class-facilities-section {
    width: 100%;
    background-color: var(--color-usc-cardinal);
    padding: 60px 0;
  }

  #content .world-class-facilities-wrapper {
    max-width: var(--Desktop-Container-Width);
    margin: 0 auto;
    padding: 0 var(--Desktop-Side-Margin);
  }

  #content .world-class-facilities-section .feature-heading {
    color: var(--color-white);
  }


  /* World Class Facilities section layout */
#content .world-class-facilities-section .world-class-facilities-split-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    position: relative;
    min-height: 600px; /* Ensure minimum height for content */
    align-items: stretch;
  }
  @media (min-width: 768px) {
    #content .world-class-facilities-section .world-class-facilities-split-layout {
        flex-direction: row;
    }
  }

  /* Left side - Vlog (white background extending to left edge) */
  #content .world-class-facilities-section .world-class-facilities-left {
    margin-top: 32px;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 100%;
    width: 100%;
    position: relative;
  }
  @media (min-width: 768px) {
    #content .world-class-facilities-section .world-class-facilities-left {
        flex-basis: 66.67%;
        width: 66.67%;
    }
  }

 /* Hear From Our Students VLOG */
 .world-class-facilities-section .vlog {
    padding: 0;
    border-radius: var(--Desktop-Border-Radius);
    text-align: center;
    overflow: hidden;
    /* max-width: 768px; */
}

  .world-class-facilities-section .vlog .video-container {
    margin-bottom: 0;
    /* max-width: 768px; */
  }
  /* Right side - Student Blog (yellow background extending to right edge) */
#content .world-class-facilities-section .world-class-facilities-right {
    /* padding: 60px 0 60px 24px; Reduced right padding to extend to edge */
    margin-top: 32px;
    flex-basis: 100%;
    width: 100%;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
  }
  @media (min-width: 768px) {
    #content .world-class-facilities-section .world-class-facilities-right {
        flex-basis: 33.33%;
        width: 33.33%;
    }
  }

  #content .world-class-facilities-section .landing-text {
    padding: 0 0 0 10px;
  }

  #content .world-class-facilities-section .landing-text p {
    margin: 0;
    color: var(--color-white);
  }

  #content .world-class-facilities-section .wrapper-action a {
    background: var(--color-usc-gold);
    color: var(--color-black);
    margin-left: 40px;
  }

  #content .world-class-facilities-section ul {
    margin-top: -8px;
    margin-bottom: 0;
    padding-inline-start: 0;
  }
  @media (min-width: 768px) {
    #content .world-class-facilities-section ul {
      padding-inline-start: 40px;
    }
  }
  #content .world-class-facilities-section ul li {
    color: var(--color-white);
    list-style: none;
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
  }

  #content .world-class-facilities-section ul li::before {
    content: '•';
    color: var(--color-white);
    position: absolute;
    left: 0;
  }








/* Hear From Our Students section */

#content .hear-section {
    width: 100%;
    background-color: var(--color-white);
    padding: 60px 0;
  }

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

  #content .hear-section .feature-heading {
    color: var(--color-black);
  }

  #content .hear-section .landing-text {
    padding: 0 0 0 10px;
  }

  #content .hear-section .landing-text p {
    margin: 0;
  }

  /* Hear From Our Students section layout */
#content .hear-section .hear-split-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 0;
    position: relative;
    min-height: 600px; /* Ensure minimum height for content */
    align-items: stretch;
  }
  @media (min-width: 768px) {
    #content .hear-section .hear-split-layout {
        flex-direction: row;
    }
  }

  /* Left side - Vlog (white background extending to left edge) */
  #content .hear-section .hear-left {
    margin-top: 32px;
    flex-basis: 100%;
    width: 100%;
    flex-grow: 0;
    flex-shrink: 1;
    position: relative;
  }
  @media (min-width: 768px) {
    #content .hear-section .hear-left {
        flex-basis: 66.67%;
        width: 66.67%;
    }
  }

 /* Hear From Our Students VLOG */
 .hear-section .vlog {
    padding: 0;
    border-radius: var(--Desktop-Border-Radius);
    text-align: center;
    overflow: hidden;
    max-width: 768px;
}

  .hear-section .vlog .video-container {
    margin-bottom: 0;
    max-width: 768px;
  }
  /* Right side - Student Blog (yellow background extending to right edge) */
#content .hear-section .hear-right {
    /* padding: 60px 0 60px 24px; Reduced right padding to extend to edge */
    margin-top: 32px;
    flex-basis: 100%;
    width: 100%;
    flex-grow: 0;
    flex-shrink: 1;
    position: relative;
  }
  @media (min-width: 768px) {
    #content .hear-section .hear-right {
        flex-basis: 33.33%;
        width: 33.33%;
    }
  }



/* Hear From Our Students BLOG */
/* TODO - refactor this with PEOPLE and HOMEPAGE */

#content .hear-section .blog-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Match image width */
    /* max-width: 360px; */
    gap: 10px !important;
  }

#content .hear-section .blog-image {
    /* width: 360px; */
    height: auto;
    margin-bottom: 0;
    border-radius: var(--Desktop-Border-Radius);
    flex-basis: auto !important;
    flex-grow: 0 !important;
  }

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

  #content .hear-section .blog-content {
    flex: 1;
  }

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

  #content .hear-section .blog-content h4 a {
    text-decoration: none;
    font-size: 36px;
    background-color: inherit;
    font-weight: 700;
    font-family: "National 2";
    color: var(--color-usc-cardinal);
  }

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

  #content .hear-section .blog-meta {
    font-size: 90% !important;
    line-height: 120% !important;
    font-weight: 500;
    font-family: "National 2";
    color: var(--color-black);
    margin: 0 0 12px 0;
    line-height: 1.4;
  }

  #content .hear-section .blog-meta .date {
    font-weight: 600 !important;
    color: var(--color-black) !important;
  }

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

  #content .hear-section .blog-meta a:hover {
    text-decoration: underline;
  }

#content .hear-section .blog-excerpt {
    font-size: 20px !important;
    font-weight: 400;
    font-family: "National 2";
    color: var(--color-black);
    margin: 0;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Future standard */
    }


  #content .hear-section .wrapper-action {
      justify-content: right;
      margin-top: 24px;
      margin-left: 16px;
      margin-right: 0;
    }

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







/* Inside Admissions section */

#content .inside-admissions-section {
    width: 100%;
    background-color: var(--color-usc-cardinal);
    padding: 60px 0;
  }

  #content .inside-admissions-wrapper {
    max-width: var(--Desktop-Container-Width);
    margin: 0 auto;
    padding: 0 var(--Desktop-Side-Margin);
  }

  #content .inside-admissions-section .feature-heading {
    color: var(--color-white);
  }

  #content .inside-admissions-section .video-container {
    margin-top: 24px;
    border-radius: var(--Desktop-Border-Radius);
    overflow: hidden;
    margin-bottom: 1em;
}

#content .inside-admissions-section .blog-content a {
    color: var(--color-white);
    text-decoration: underline;
}



#content .inside-admissions-section .blog-excerpt {
        font-size: 20px !important;
    font-weight: 400;
    font-family: "National 2";
    color: var(--color-white);
    margin: 0;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Future standard */
    }

  #content .inside-admissions-section .wrapper-action {
      justify-content: right;
      margin-top: 24px;
      margin-right: 0;
    }

  #content .inside-admissions-section .wrapper-action a {
    background: var(--color-usc-gold);
    color: var(--color-black);
  }

