/*
 Theme Name:     Divi Child Theme
 Theme URI:      http://www.elegantthemes.com/gallery/foxy/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     http://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/

/*@import url("../Divi/style.css");*/

/* =Theme customization starts here
------------------------------------------------------- */
:root {
  /* == Color Hexes == */
  --black: #000;
  --white: #fff;
  --lightGrey: #f5f5f5;

  --primary-color: #005daa; /* Change this to the Primary color */
  --default-color: #121212; /* Change this to the Default color */

  --Primary-Blue: #005daa;
  --Primart-Blue-Hover: #004a88;

  /* Module Colors & Core Design */

  /* == Font Sizes == */
  --tinyText: 1.4rem; /* 14px */

  --jumboFontMax: 12rem; /* 120px */
  --jumboFontMin: 7.5rem; /* 75px */

  --biggestFontMax: 10rem; /* 100px */
  --biggestFontMin: 4.5rem; /* 45px */

  --bigFontMax: 6rem; /* 60px */
  --bigFontMin: 3.5rem; /* 35px */

  --mediumFontMax: 4rem; /* 40px */
  --mediumFontMin: 2.8rem; /* 28px */

  --smallFontMax: 3rem; /* 30px */
  --smallFontMin: 2.4rem; /* 24px */

  --smallestFontMax: 1.6rem; /* 16px */
  --smallestFontMin: 1.4rem; /* 14px */

  --standardFontMax: 1.2rem; /* 12px */
  --standardFontMin: 1.2rem; /* 12px */

  --postContentFontMax: 2rem; /* 20px */
  --postContentFontMin: 1.6rem; /* 16px */

  /* == Content Sizes == */
  --rowWidth: 90%;
  --rowMaxWidth: 1200px;

  --minion: minion-pro, serif;
  --fira: fira-sans, sans-serif;
}
html.pum-open.pum-open-overlay.pum-open-scrollable #page-container {
  padding-right: 0;
}
html.pum-open-fixed {
  position: fixed;
}
.vert-details article {
  display: flex;
  align-items: center;
}

.vert-details article a {
  width: 30%;
}

.vert-details article .wrap {
  width: 70%;
}

.vert-details .entry-title,
.vert-details .post-meta,
.vert-details .post-content {
  width: 100%;
}

/* ===== POST BODY CONTENT: SPACING BELOW IMAGES & MEDIA ===== */
/* Prevents migrated content images/galleries from sitting too close to text below */
[class*='et_pb_post_content'] figure.wp-block-image,
[class*='et_pb_post_content'] figure.wp-block-gallery,
[class*='et_pb_post_content'] figure.wp-block-embed,
.entry-content figure.wp-block-image,
.entry-content figure.wp-block-gallery,
.entry-content figure.wp-block-embed,
.post-content figure.wp-block-image,
.post-content figure.wp-block-gallery,
.post-content figure.wp-block-embed {
  margin-bottom: 1.75em;
}

/* Only when the last paragraph is followed by images (Divi strips its padding); don’t add space for earlier p+figure */
[class*='et_pb_post_content'] p:last-of-type:has(+ figure.wp-block-image),
[class*='et_pb_post_content'] p:last-of-type:has(+ figure.wp-block-gallery),
[class*='et_pb_post_content'] p:last-of-type:has(+ figure.wp-block-embed),
.entry-content p:last-of-type:has(+ figure.wp-block-image),
.entry-content p:last-of-type:has(+ figure.wp-block-gallery),
.entry-content p:last-of-type:has(+ figure.wp-block-embed),
.post-content p:last-of-type:has(+ figure.wp-block-image),
.post-content p:last-of-type:has(+ figure.wp-block-gallery),
.post-content p:last-of-type:has(+ figure.wp-block-embed) {
  padding-bottom: 1.75em;
}

/* Utility classes moved to css/utilities.css */
.et-db #et-boc .et-l .flex-row .et_pb_column {
  width: auto;
  margin: 0;
}
/* .hero .et_pb_row:first-of-type {
  margin-top: auto;
  margin-bottom: 0;
} */

/* ===== HERO BLUE OVERLAY ===== */
.hero.blue-overlay {
  position: relative;
}

.hero.blue-overlay:before {
  content: '';
  background: rgb(0 93 170 / 75%);
  width: 100%;
  height: 80%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 1;
}
.hero.full-blue-overlay:before {
  content: '';
  background: rgb(0 93 170 / 75%);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 1;
}
.hero.white-underlay:after {
  content: '';
  background: var(--white);
  width: 100%;
  height: 20%;
  bottom: 0;
  left: 0;
  position: absolute;
  z-index: 1;
}

/* Home page hero dark overlay */
#home-page-hero-section {
  position: relative;
}
#home-page-hero-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 45%);
  z-index: 1;
}

/* ===== HISTORY TWO-COLUMN LAYOUT ===== */
.history-two-column {
  max-width: 100%;
}

/* ===== STATISTICS TWO-COLUMN TWO-ROW LAYOUT ===== */

.stats-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 30px;
}

.stat-item {
  text-align: left;
}

.stat-number {
  color: var(--Primary-Blue);
  font-family: var(--minion);
  font-size: clamp(var(--bigFontMin), 4vw, var(--bigFontMax));
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  color: var(--black);
  font-family: var(--fira);
  font-size: var(--postContentFontMax);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.stats-image {
  text-align: right;
}

.stats-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Mobile responsive for stats layout */
@media (max-width: 768px) {
  .stats-two-column {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stats-content {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-item {
    text-align: center;
  }

  /* .stat-number {
    font-size: 2rem;
  } */
}

/* ===== LEADERSHIP TWO-COLUMN LAYOUT ===== */
.leadership-two-column {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 100%;
}

.leadership-avatar {
  flex: 0 0 200px;
  text-align: center;
}

.leadership-avatar img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.leadership-content {
  flex: 1;
}

.leadership-content h2 {
  color: var(--Primary-Blue);
  font-family: var(--minion);
  font-size: var(--bigFontMax);
  margin-bottom: 20px;
}

.leadership-content p {
  color: var(--black);
  font-family: var(--fira);
  font-size: var(--postContentFontMax);
  line-height: 1.6;
  margin-bottom: 15px;
}

.leadership-content p:last-child {
  margin-bottom: 0;
}

/* Mobile responsive for leadership layout */
@media (max-width: 768px) {
  .leadership-two-column {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    align-items: center;
  }

  .leadership-avatar {
    flex: none;
  }

  .leadership-avatar img {
    width: 150px;
    height: 150px;
  }

  .leadership-content h2 {
    font-size: var(--mediumFontMax);
  }
}

/* Tabs container with max-height and scrolling */
.custom-tabs.history-tabs .et_pb_all_tabs {
  max-height: 850px;
  overflow-y: auto;
  border-bottom: 1px solid rgba(0, 93, 170, 0.2);
  padding-bottom: 20px;
}
.custom-tabs.history-tabs.no-bottom-border .et_pb_all_tabs {
  border-bottom: none;
  padding-bottom: 0;
}

/* Remove border on mobile devices */
@media (max-width: 768px) {
  .custom-tabs.history-tabs .et_pb_all_tabs {
    border-bottom: none;
  }
}

/* Row has .custom-tabs-row.single-tab: only one tab panel — hide the tab bar */
.custom-tabs-row.single-tab .et_pb_tabs_controls,
.et-db #et-boc .et-l .custom-tabs-row.single-tab .et_pb_tabs_controls {
  display: none !important;
}

/* Remove tab bar background color */
.et_pb_tabs_controls {
  background-color: transparent !important;
}

/* Style tab bar to match design */
ul.et_pb_tabs_controls {
  padding-bottom: 20px;
  margin-bottom: 20px;
  position: relative;
  /* border-bottom: 1px solid rgba(0, 93, 170, 0.2); */
}

ul.et_pb_tabs_controls:before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 93, 170, 0.2);
  border-top: none;
}
ul.et_pb_tabs_controls:after {
  border-top: 0px solid #d9d9d9;
}

.et_pb_tabs_controls li {
  display: inline-block;
  margin: 0;
  padding: 0 20px 0 0;
  border: none;
  background: transparent;
  position: relative;
}

.et_pb_tabs_controls li:not(:last-child):after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 3px;
  height: 70%;
  background: var(--black);
  transform: translateY(-50%);
}
.et_pb_tabs_controls li:after:not(:last-child) {
  padding-left: 0;
}
.et_pb_tabs_controls li:not(:first-child) {
  padding-left: 20px;
}

.et_pb_tabs_controls li a {
  color: #333;
  text-decoration: none;
  font-weight: normal;
  font-size: 16px;
  padding: 0;
  border: none;
  background: transparent;
  display: block;
}

.et_pb_tabs_controls li.et_pb_tab_active a {
  font-weight: bold;
}

/* .et_pb_tabs_controls li.et_pb_tab_active:before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
} */

/* Mobile: Convert tabs to pills with horizontal scroll */
@media (max-width: 768px) {
  /* Make tabs container horizontally scrollable */
  body ul.et_pb_tabs_controls {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 93, 170, 0.3) transparent;
    padding: 0 16px 0px 16px !important;
    margin-bottom: 0px;
    gap: 12px;
    /* Hide scrollbar on some browsers */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  ul.et_pb_tabs_controls::-webkit-scrollbar {
    display: none;
  }

  /* Remove the horizontal line on mobile */
  ul.et_pb_tabs_controls:before {
    display: none;
  }

  /* Style tabs as pills */
  .et_pb_tabs_controls li {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    white-space: nowrap;
  }

  /* Hide vertical separators on mobile */
  .et_pb_tabs_controls li:not(:last-child):after {
    display: none;
  }

  /* Remove left padding from non-first items */
  .et_pb_tabs_controls li:not(:first-child) {
    padding-left: 0;
  }

  /* Style tab links as pills */
  .et_pb_tabs_controls li a {
    display: inline-block;
    padding: 4px 20px;
    border-radius: 25px;
    background: var(--white);
    color: var(--Primary-Blue);
    font-weight: 400;
    font-size: var(--smallestFontMax);
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  /* Active pill state */
  .et_pb_tabs_controls li.et_pb_tab_active a {
    background: var(--white);
    color: var(--Primary-Blue) !important;
    font-weight: 400 !important;
    border-color: var(--Primary-Blue);
  }

  /* Hover state for pills */
  .et_pb_tabs_controls li:not(.et_pb_tab_active) a:hover {
    background: rgba(0, 93, 170, 0.2);
    border-color: rgba(0, 93, 170, 0.3);
  }

  /* Remove padding from tab content on mobile */
  .et_pb_tab {
    padding: 0;
  }
}

.custom-tabs h3 {
  color: var(--Primary-Blue);
  /* margin-bottom: 20px; */
}
.custom-tabs .et_pb_tab_content {
  margin-top: 30px;
  padding-right: 10px;
  padding-left: 10px;
}
.history-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  /* border-bottom: 1px solid rgba(0, 93, 170, 0.2); */
}

.history-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.history-text {
  flex: 1;
}

.history-text h3,
.history-text .year {
  color: var(--black);
  font-family: var(--fira);
  font-size: var(--mediumFontMax);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1;
}

.history-text p {
  color: var(--black);
  font-family: var(--fira);
  font-size: var(--postContentFontMax);
  line-height: 1.6;
  margin: 0;
}

.history-image {
  flex: 1;
}

.history-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .history-item {
    flex-direction: column;
    gap: 20px;
  }

  .history-content h2 {
    font-size: var(--mediumFontMax);
  }
}
/* Global solid blue button */
.solid-blue-button {
  color: #ffffff !important;
  border-color: var(--Primary-Blue);
  border-radius: 0;
  font-size: 12px;
  text-transform: uppercase !important;
  background-color: var(--Primary-Blue);
}

.stay-connected-row .social-networks-shortcode ul {
  justify-content: center;
}
.stay-connected-row .social-networks-shortcode ul li a svg {
  width: 20px;
  height: 20px;
}
.stay-connected-row .social-networks-shortcode ul li.et-social-twitter a svg {
  width: 18px;
  height: 20px;
}
.stay-connected-row .social-networks-shortcode ul li.et-social-youtube a svg {
  width: 30px;
  height: 20px;
}
.social-networks-shortcode.large ul li a svg {
  width: 30px;
  height: 30px;
}
.social-networks-shortcode.large ul li.et-social-twitter a svg {
  width: 28px;
  height: 30px;
}
.social-networks-shortcode.large ul li.et-social-youtube a svg {
  width: 40px;
  height: 30px;
}
.social-networks-shortcode.large ul li:not(:last-child) {
  margin-right: 35px;
}
.social-networks-shortcode.justify-center ul {
  justify-content: center;
}
/* Mobile responsive */
@media (max-width: 981px) {
  .quick-links-row {
    gap: 30px;
    padding-top: 0;
  }
  .quick-links-row:after {
    display: none;
  }
  .quick-links-row .et_pb_column {
    flex: 1 0 auto;
    border-right: none;
    padding: 0;
    margin: 0 !important;
    width: auto !important;
  }
}
/*
* ----------[MEDIA QUERIES]--------*
*/
@media screen and (min-width: 768px) {
  /***********************************	
		CUSTOM BLOG MODULE LIST VIEW
	***********************************/

  /*** Set the image width ***/
  .custom-blog-list .entry-featured-image-url {
    width: 30%;
    float: left;
    margin-bottom: 0 !important;
  }

  /*** Set the image width ***/
  .custom-blog-list .entry-title,
  .custom-blog-list .post-meta,
  .custom-blog-list .post-content {
    width: 70%;
    float: left;
    padding-left: 30px;
  }

  /*** Style the individual posts ***/
  .custom-blog-list.add-box-shadow {
    box-shadow: 0px 2px 80px 0px rgba(160, 190, 212, 0.22);
    border-radius: 6px;
    padding: 60px;
  }

  /*** Blog image aspect ratio square 1:1 ***/
  .custom-blog-list.square .entry-featured-image-url {
    padding-top: 30%;
    display: block;
  }

  .custom-blog-list.square .entry-featured-image-url img {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
  }
}
@media only screen and (min-width: 2200px) {
}
@media screen and (min-width: 1280px) {
}
@media only screen and (min-width: 1101px) {
}
@media only screen and (min-width: 992px) {
}
@media only screen and (min-width: 981px) {
  .two-button-row {
    gap: 20px;
  }
}
@media only screen and (min-width: 981px) and (max-width: 1100px) {
}
@media only screen and (max-width: 980px) {
  .two-button-row .et_pb_column:last-child {
    margin-left: 20px;
  }
}
@media only screen and (min-width: 480px) and (max-width: 766px) {
}
@media only screen and (max-width: 768px) {
  .vert-details article {
    flex-direction: column;
  }
  .vert-details article a {
    width: 100%;
  }
  .vert-details article .wrap {
    width: 100%;
  }
}
@media only screen and (max-width: 480px) {
}
@media only screen and (max-width: 980px) and (orientation: portrait) {
}

/* ===== GRADUATE PROGRAMS MENU WITH BUTTONS ===== */
ul.menu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.graduate-program-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 93, 170, 0.1);
}

.graduate-program-item:last-child {
  border-bottom: none;
}

.program-title {
  color: var(--Primary-Blue);
  font-size: clamp(var(--smallestFontMin), 1.8vw, var(--smallestFontMax));
  font-weight: 600;
  flex: 1;
  margin-right: 20px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.program-title:hover {
  opacity: 0.8;
  /* text-decoration: underline; */
}

.program-title:focus-visible {
  outline: 2px solid var(--Primary-Blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.program-buttons {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.program-button {
  display: inline-block;
  padding: 4px 25px;
  background-color: var(--Primary-Blue);
  color: var(--white);
  text-decoration: none;
  font-size: var(--standardFontMax);
  text-transform: uppercase;
  border-radius: 0;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.program-button:hover {
  background-color: var(--Primart-Blue-Hover);
  transform: translateY(-1px);
  color: var(--white);
}

.program-button:focus-visible {
  outline: 2px solid var(--Primary-Blue);
  outline-offset: 2px;
}

/* Mobile responsive for graduate programs menu */
@media only screen and (max-width: 768px) {
  .graduate-program-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .program-title {
    margin-right: 0;
    width: 100%;
  }

  .program-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .program-button {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
  }
}
