/*
Theme Name: A / Nouveau theme CAWEB
Text Domain: theme_caweb
Domain Path: /languages
*/

/* Imports */
@import url(css/menu-burger.css); /* Here is the css to make the burger menu work, be cautious */

/* Css variables */
:root {
  --page-width: 1440px;
  --post-width: 700px;
  --padding-main: 15px;
}

/* Include unistra fonts */
@font-face {
  /* For titles */
  font-family: "UnistraD";
  src:
    url("fonts/unistraD/UnistraD-Regular.ttf") format("truetype"),
    url("fonts/unistraD/UnistraD-Bold.ttf") format("truetype"),
    url("fonts/unistraD/UnistraD-Italic.ttf") format("truetype"),
    url("fonts/unistraD/UnistraD-BoldItalic.ttf") format("truetype");
}

@font-face {
  /* For text */
  font-family: "UnistraA";
  src:
    url("fonts/unistraA/UnistraA-Regular.ttf") format("truetype"),
    url("fonts/unistraA/UnistraA-Bold.ttf") format("truetype"),
    url("fonts/unistraA/UnistraA-Italic.ttf") format("truetype"),
    url("fonts/unistraA/UnistraA-BoldItalic.ttf") format("truetype");
}

/* Adding css for custom colors defined in the editor */
.has-gradient-caweb-gradient-background {
  background: var(--wp--preset--gradient--gradient-caweb);
}

.has-bleu-color {
  color: var(--wp--preset--color--bleu);
}

.has-vert-color {
  color: var(--wp--preset--color--vert);
}

.has-orange-color {
  color: var(--wp--preset--color--orange);
}

.has-rose-color {
  color: var(--wp--preset--color--rose);
}

.has-rouge-color {
  color: var(--wp--preset--color--rouge);
}

.has-bleu-background-color {
  background-color: var(--wp--preset--color--bleu);
}

.has-vert-background-color {
  background-color: var(--wp--preset--color--vert);
}

.has-orange-background-color {
  background-color: var(--wp--preset--color--orange);
}

.has-rose-background-color {
  background-color: var(--wp--preset--color--rose);
}

.has-rouge-background-color {
  background-color: var(--wp--preset--color--rouge);
}

/* Wordpress Classes Styles */
.alignfull {
  margin: 0px calc(50% - 50vw);
  max-width: 100vw;
  /*width: 100vw;*/
}

/* Header styles */
header {
  background: var(--wp--preset--gradient--gradient-caweb);
  font-family: "Unistra";
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

div.header-wrapper {
  margin: auto;
  width: var(--page-width);
  max-width: 100%;
  box-sizing: border-box;
  padding: 0px var(--padding-main);
  display: flex;
}

div.site-logo {
  padding: 15px 15px 15px 0px;
}

div.site-logo a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  gap: 15px;
}

div.site-logo img.custom-logo {
  max-height: 60px;
  width: auto;
}

#main-menu-wrapper {
  flex: 1;
}

div.header-social-media-container {
  margin: auto;
  justify-content: space-around;
  padding: 0px 30px;
  color: white;
}

/* Hide social media icons in the header on mobile*/
@media screen and (max-width: 999px) {
  div.header-social-media-container {
    display: none;
  }
}

/* Custom language switcher styles */
ul.language-switcher,
li.other-languages ul {
  padding: 0px;
  margin: 0px;
}

ul.language-switcher {
  position: relative;
  color: white;
  font-weight: bold;
  padding-left: 10px;
}

nav.language-switcher-wrapper {
  display: flex;
  align-items: center;
}

ul.language-switcher li {
  list-style-type: none;
  width: 100%;
}

li.active-language a {
  cursor: pointer;
}

li.other-languages {
  position: absolute;
  top: 100%;
}

@media screen and (max-width: 999px) {
  nav.language-switcher-wrapper {
    position: absolute;
    height: 100%;
    right: 100px;
  }
}

/* Nav styles */
nav ul {
  list-style-type: none;
  padding-left: 0px;
  margin: 0px;
}

nav a {
  text-decoration: none;
  color: inherit;
}

/* Main menu styles desktop */
@media screen and (min-width: 1000px) {
  #main-menu li {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  div.site-logo a.custom-icon-link {
    display: none;
  }

  /* Level 1 */

  #main-menu {
    display: flex;
    height: 100%;
    margin: 0px;
    width: 100%;
    font-weight: bold;
    font-size: 18px;
  }

  #main-menu > li:not(.main-menu-button) {
    flex: 1;
    color: white;
  }

  #main-menu > li:not(.main-menu-button):hover {
    background-color: orangered;
  }

  li.main-menu-button {
    color: #b11207;
    padding: 0px 20px;
  }

  li.main-menu-button a {
    background-color: white;
    padding: 5px 15px;
    border-radius: 100px;
  }

  /* Level 2 */
  #main-menu > li > ul.sub-menu {
    display: none;

    position: absolute;
    left: 0px;
    top: 100%;

    width: 100%;
    height: 75px;

    justify-content: center;
    gap: 50px;

    background-color: white;
    color: black;

    box-shadow: 0px 2px 10px #aaa;
  }

  #main-menu > li:hover > ul.sub-menu {
    display: flex;
  }

  #main-menu > li > ul.sub-menu > li {
    position: relative;
  }

  /* Level 3 */
  #main-menu ul.sub-menu ul.sub-menu {
    display: none;

    position: absolute;
    top: 100%;
    left: -10px;
    min-width: 100%;
    padding: 10px;
    box-sizing: content-box;

    background-color: white;
    box-shadow: 0px 2px 10px #aaa;
  }

  #main-menu ul.sub-menu ul.sub-menu li {
    display: block;
    padding: 10px 0px;
  }

  #main-menu ul.sub-menu ul.sub-menu li + li {
    border-top: 1px solid var(--wp--preset--color--orange);
  }

  #main-menu ul.sub-menu > li:hover > ul.sub-menu {
    display: block;
  }
}

/* Main menu styles mobile */
@media screen and (max-width: 999px) {
  body.menu-open > *:where(main, footer) {
    filter: brightness(60%) blur(3px);
  }

  div.site-logo a.custom-logo-link {
    display: none;
  }

  #main-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0px;
    right: 0px;
    background-color: white;
    box-shadow: 0px 2px 10px #aaa;
  }

  #main-menu li {
    text-align: center;
    font-size: 20px;
  }

  #main-menu li:not(.main-menu-button) a {
    display: inline-block;
    padding: 15px 0px 10px 0px;
  }

  #main-menu li.menu-item-has-children a {
    padding-right: 20px;
  }

  #main-menu li.menu-item-has-children i {
    transform: translateX(-20px);
    cursor: pointer;
  }

  #main-menu > li {
    font-weight: bold;
  }

  #main-menu > li:not(.main-menu-button) > a {
    border-bottom: 1px solid var(--wp--preset--color--orange);
  }

  #main-menu ul.sub-menu li {
    font-weight: normal;
  }

  #main-menu ul ul li {
    font-weight: normal;
    font-style: italic;
  }

  .main-menu-button a {
    padding: 5px 15px;
    border-radius: 100px;
    background-color: var(--wp--preset--color--orange);
    min-width: 80px;
    display: inline-block;
    margin: 25px 0px;
    color: white;
  }

  .main-menu-button {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-110%);
  }
}

/* Main styles */
main {
  width: var(--page-width);
  margin: auto;
  padding: 0px var(--padding-main);
  max-width: 100%;
  box-sizing: border-box;
}

body.single main > article {
  width: var(--post-width);
  max-width: 100%;
  margin: auto;
}

body.single main figure.post-image img {
  max-width: 100%;
  height: auto;
}

/* Footer styles */
footer {
  background-color: var(--wp--preset--color--bleu);
  color: white;
  font-family: UnistraD;
  font-size: 18px;
}

#footer-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;

  box-sizing: border-box;
  width: var(--page-width);
  max-width: 100%;
  margin: auto;
  padding: 50px var(--padding-main);
}

.footer-element-container {
  flex: 1;
}

.footer-element-container:has(#contact-menu) {
  flex: 2;
}

#social-menu {
  font-size: 30px;
  display: flex;
  gap: 10px;
}

#contact-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

#contact-menu ul > * {
  display: block;
  margin-bottom: 10px;
}

#footer-menu li {
  margin-bottom: 10px;
}

footer h4 {
  margin-top: 0px;
  margin-bottom: 15px;
}

footer .column-footer-sidebar {
  max-width: 180px;
}

#bottom-footer-wrapper {
  background-color: #132935;
}

.bottom-footer-sidebar {
  padding: 25px var(--padding-main);
  margin: auto;
  width: var(--page-width);
  max-width: 100%;
  box-sizing: border-box;
}

#bottom-footer-wrapper p {
  margin: 0px;
  text-align: center;
  font-size: 18px;
}

.wp-block-search__inside-wrapper input,
.wp-block-search__inside-wrapper button {
  border-radius: 10px;
}

/* General styles */
html,
body {
  margin: 0px;
  padding: 0px;
  overflow-x: hidden;
}

body {
  font-family: UnistraA, Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: UnistraD, Arial, Helvetica, sans-serif;
}

p {
  font-size: 20px;
  line-height: 28px;
  margin-top: 0px;
  margin-bottom: 20px;
}

main li {
  font-size: 20px;
  margin-bottom: 5px;
}

h1 {
  font-size: 60px;
  margin: 20px 0px;
  letter-spacing: 2px;
}

h2 {
  font-size: 36px;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

h3 {
  font-size: 26px;
  margin-top: 24px;
  margin-bottom: 0px;
  letter-spacing: 1px;
}

/* Single post styles */

ul.next-previous-posts,
div.other-posts ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 35px;

  padding: 0px;
  margin-top: 5px;

  font-size: 22px;
  font-family: UnistraD;
}

div.next-previous-posts h3,
div.other-posts h3 {
  font-size: 32px;
}

ul.next-previous-posts li,
div.other-posts li {
  list-style-type: none;
  width: 300px;
  max-width: 100%;
}

ul.next-previous-posts h4,
div.other-posts h4 {
  margin: 0px;
}

ul.next-previous-posts a,
div.other-posts a {
  text-decoration: none;
  color: inherit;
}

ul.next-previous-posts img,
div.other-posts img {
  max-width: 100%;
  height: auto;
}

div.author-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 15px 0px 100px 0px;
}

div.author-box h4 {
  margin-bottom: 0px;
}

div.author-box a {
  text-decoration: none;
  color: var(--wp--preset--color--bleu);
  font-size: 20px;
}

body.single-post h1 {
  font-size: 48px;
  margin-bottom: 0px;
  margin-top: 20px;
}

body.single-post div.post-meta {
  display: flex;
  justify-content: space-between;
}

body.single-post div.post-meta {
  font-family: UnistraD;
  font-weight: bold;
  font-size: 20px;
}

body.single-post p.post-categories span:not(span:last-of-type)::after {
  content: " | ";
}

body.single-post p.post-categories {
  margin-bottom: 16px;
  color: var(--wp--preset--color--orange);
}

/* added author to blogs */
.post-meta {
  display: flex;
  flex-direction: column;
}

.post-categories {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post-categories p {
  display: inline-block;
}

.post-info {
  display: flex;
  justify-content: space-between;
}

/* Blog archive page CSS */

.archive-title {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;

  margin: 40px 0px;
}

.archive-title h1 {
  margin: 0px;
}

ul.article-list {
  padding: 0px;
  margin: 0px;

  display: flex;
  flex-wrap: wrap;
  gap: 35px;
}

ul.article-list li {
  width: 300px;
  max-width: 100%;
  list-style-type: none;
  padding: 0px;
  box-shadow: 0px 2px 5px #eee;
  transition: transform 0.3s;
}

ul.article-list li:hover {
  transform: scale(102.5%);
}

ul.article-list img {
  max-width: 100%;
  height: auto;
}

ul.article-list h2 {
  margin: 0px;
  font-size: 22px;
  padding: 0px 5px;
  letter-spacing: initial;
}

ul.article-list p {
  margin: 0px;
  font-size: 18px;
}

ul.article-list p.post-excerpt {
  font-size: 17px;
  padding: 0px 5px 5px 5px;
  text-align: justify;
  line-height: initial;
}

ul.article-list a {
  text-decoration: none;
  color: inherit;
}

ul.article-list div.post-meta {
  display: flex;
  justify-content: space-between;
  margin: 5px 0px;
}

ul.article-list div.post-categories p {
  background-color: var(--wp--preset--color--orange);
  padding: 0px 15px 0px 5px;
  border-radius: 0px 25px 25px 0px;
  color: white;
  font-weight: bold;
}

ul.article-list div.post-categories p + p {
  margin-top: 5px;
}

ul.article-list time {
  padding-right: 5px;
  font-size: 18px;
}

/* Pagination search and archives*/
main.article-page {
  margin-bottom: 20px;
}

.nav-links {
  font-family: UnistraD;
  font-weight: bold;
  font-size: 24px;
  margin-top: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-links span.current {
  font-size: 28px;
  text-decoration: underline;
}

.nav-links .prev,
.nav-links .next {
  padding: 0px 20px;
}

/* Intervenants archive page and intervant single page */
a.link-to-instructor {
  text-decoration: none;
  color: var(--wp--preset--color--bleu);
}

ul.teacher-list:not(.teacher-list-en) {
  padding: 0px;
  margin: 0px 0px 100px 0px;

  display: flex;
  flex-wrap: wrap;
  gap: 70px;
}

ul.teacher-list:not(.teacher-list-en) li {
  list-style-type: none;
  width: 450px;
  max-width: 100%;
  box-shadow: 0px 2px 5px #ccc;
  box-sizing: border-box;
  padding: 15px;
  background-color: #fef4eb;
}

ul.teacher-list div.teacher-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0px 15px;
  margin-bottom: 15px;
}

ul.teacher-list h2 {
  margin: 0px;
  font-size: 30px;
}

ul.teacher-list figure {
  margin: 0px;
}

a.teacher-interview {
  background-color: var(--wp--preset--color--rouge);
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-family: UnistraD;
  display: inline-block;
  padding: 5px 15px;
  border-radius: 50px;
}

a.teacher-linkedin {
  color: var(--wp--preset--color--bleu);
  text-decoration: none;
  font-weight: bold;
}

p.teacher-subject {
  margin: 0px;
  font-weight: bold;
  font-family: UnistraD;
  color: var(--wp--preset--color--orange);
}

ul.teacher-list p.teacher-subject:last-of-type {
  margin-bottom: 5px;
}

div.subject-list {
  margin-bottom: 25px;
}

div.subject-list button {
  background-color: var(--wp--preset--color--rouge);
  color: white;
  font-weight: bold;
  font-size: 20px;
  font-family: UnistraD;
  display: inline-block;
  padding: 5px 15px;
  margin-bottom: 10px;
  margin-left: 10px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
}

div.subject-list button.selected-subject {
  background-color: var(--wp--preset--color--bleu);
}

/* Intervant single page */
h1.instructor-name {
  margin-bottom: 0px;
}

body.single-intervenant main article {
  margin-bottom: 50px;
}

body.single-intervenant figure.instructor-picture {
  margin-top: 16px;
}

/* Banner block specific CSS */
.wp-block-cover .wp-block-cover__inner-container {
  box-sizing: border-box;
  margin: auto;
}

#title-separator {
  margin-left: 0 !important;
}

body.page .wp-block-cover .wp-block-cover__inner-container {
  width: var(--page-width);
  padding: 0px var(--padding-main);
}

body.single-post .wp-block-cover .wp-block-cover__inner-container {
  width: var(--post-width);
}

/* PAGE D'ACCUEIL - HOME */

.wp-block-cover,
.wp-block-columns.has-background,
.wp-block-columns {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* gestion boutons */
.wp-block-button {
  position: relative;
}

.wp-block-button a {
  font-size: 1.5em;
  line-height: 1;
  height: 56px;
  display: flex;
  align-items: center;
  font-family: UnistraA;
  font-weight: bold;
  max-width: none;
  min-width: 0;
  position: relative;
  justify-content: center;
}

.wp-block-button__link,
.wp-block-button > .wp-block-button__link {
  transition-property: background-color;
  transition-duration: 0.2s;
}

.wp-block-button__link.has-rouge-background-color:hover {
  background-color: #f77b65 !important;
}
.wp-block-button__link.has-orange-background-color:hover {
  background-color: #fc9644 !important;
}

.wp-block-button__link::before {
  content: "";
  display: block;
  position: absolute;
  box-sizing: border-box;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 0px;
  height: 3px;
  border-radius: 5px;
  background-color: #fff;
  transition-property: width;
  transition-duration: 0.2s;
}

.wp-block-button__link:hover::before,
.wp-block-button__link:nth-child(2):hover::before,
.wp-block-button__link:nth-child(3):hover::before {
  width: 70px;
  transition-property: width;
  transition-duration: 0.2s;
}

/* trois (3) boutons découvrez, candidatez et caweb in english */
body.main .wp-container-core-buttons-is-layout-1 .wp-block-button a {
  width: 360px;
  margin: 2rem;
}

.wp-block-button__link.has-rose-color::before {
  background-color: #d85139;
}
.wp-block-button__link.has-bleu-color::before {
  background-color: #0a222f;
}

.wp-block-button__link.has-rose-color:hover {
  color: #d85139 !important;
  border-color: #d85139;
}

.wp-block-button:nth-child(2)
  > .wp-block-button__link.has-rose-color:hover::after {
  color: #d85139 !important;
}

.wp-block-button__link.has-bleu-color:hover {
  color: #0a222f !important;
  border-color: #0a222f;
}

.wp-block-button:nth-child(3)
  > .wp-block-button__link.has-bleu-color:hover::after {
  color: #0a222f !important;
}

body.home
  .wp-container-core-buttons-is-layout-1
  .wp-block-button
  > .wp-block-button__link::after {
  /*content: "\f054";
    font-family: "Font Awesome 6 Free";*/
  content: ">";
  margin-left: 8px;
  color: white;
}

.wp-block-button:nth-child(2) > .wp-block-button__link::after {
  color: var(--wp--preset--color--rose) !important;
}

.wp-block-button:nth-child(3) > .wp-block-button__link::after {
  color: var(--wp--preset--color--bleu) !important;
}

.button-nowrap {
  width: fit-content !important;
}

.button-nowrap a {
  padding: 10px 40px !important;
}

/* réglages généraux accueil */
p,
a,
li {
  font-family: UnistraA;
}

ul {
  margin-block-end: 24px;
}

.home .wp-container-core-columns-is-layout-1 {
  padding: 0 0 0 5% !important;
}

.home .wp-container-core-columns-is-layout-1 figure {
  margin: 0 !important;
}

.home .wp-container-core-columns-is-layout-2 {
  padding: 0 5% 0 5%;
}

.home .wp-container-core-columns-is-layout-3 {
  margin-bottom: 0;
  padding: 0 5% 0 0;
}

/* débouchés */

body.home
  > main
  > div.wp-block-group.is-vertical.is-layout-flex.wp-container-core-group-layout-6.wp-block-group-is-layout-flex
  > div
  > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 50px;
}

body.home .wp-container-core-group-layout-5.wp-container-core-group-layout-5 {
  grid-template-columns: none;
  margin: auto;
}

body.home
  > main
  > div.wp-block-group.is-vertical.is-layout-flex.wp-container-core-group-is-layout-6.wp-block-group-is-layout-flex
  > div {
  margin: auto !important;
}

body.home .wp-block-group__inner-container > .wp-block-group {
  width: 325px;
}

@media (max-width: 769px) {
  body.home
    > main
    > div.wp-block-group.is-vertical.is-layout-flex.wp-container-core-group-is-layout-6.wp-block-group-is-layout-flex
    > div
    > div
    > div
    > div
    > div {
    display: flex;
  }

  body.home
    > main
    > div.wp-block-group.is-vertical.is-layout-flex.wp-container-core-group-is-layout-6.wp-block-group-is-layout-flex
    > div
    > div {
    display: flex !important;
  }

  body.home
    > main
    > div.wp-block-group.is-vertical.is-layout-flex.wp-container-core-group-is-layout-6.wp-block-group-is-layout-flex
    > div
    > div
    > div:nth-child(1)
    > div
    > div
    > figure
    > img {
    width: 50px;
  }
}

/* section youtube */
.home .wp-container-core-columns-is-layout-2 .wp-block-column:nth-child(1) {
  display: flex;
  justify-content: center;
}

/* affichage articles page d'accueil - query loop */
.home .wp-block-query .wp-block-post-featured-image {
  aspect-ratio: 2.32 / 1 !important;
  overflow: hidden;
  transition: all 0.2s ease-in;
}

.home .wp-block-query .wp-block-post-featured-image:hover img {
  transform: scale(1.1);
  transition: all 0.1s ease-in;
}

.home .wp-block-query .wp-block-post-title {
  margin-top: 10px;
}

.home .wp-block-query .wp-block-post-title > a {
  line-height: 1;
  color: black;
  text-decoration: none;
  font-size: 0.7em;
  font-weight: bold;
  letter-spacing: 0;
}

.home .wp-block-query .taxonomy-category {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.home .wp-block-post-terms__separator {
  display: none;
}

.home .wp-block-query .taxonomy-category > a {
  text-decoration: none;
  color: white;
  background-color: var(--wp--preset--color--orange) !important;
  border-radius: 0 20px 20px 0;
  padding: 5px 20px;
  font-size: 0.9em;
  font-weight: bold;
}

.home .wp-block-query .wp-block-read-more {
  color: var(--wp--preset--color--bleu) !important;
  text-decoration: underline;
}

/* PAGE DEBOUCHES */
#buttons {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding: 10px 5px;
  box-sizing: border-box;
  gap: 20px;
}

.tablink {
  flex-grow: 1;
  margin: 5px 4px;
  padding: 14px 16px;
  font-size: 1.2em;
  font-weight: bold;
  font-family: UnistraA;
  color: white;
  text-align: center;
  border: none;
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease-in;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#careers .tablink:nth-child(1) {
  background-color: #da2317;
}
#careers .tablink:nth-child(2) {
  background-color: #f77b65;
}
#careers .tablink:nth-child(3) {
  background-color: #fca45d;
}
#careers .tablink:nth-child(4) {
  background-color: #78999c;
}
#careers .tablink:nth-child(5) {
  background-color: #27526a;
}

#careers .tablink.active:nth-child(1) {
  color: #da2317;
  outline: solid 2px #da2317;
}
#careers .tablink.active:nth-child(2) {
  color: #f77b65;
  outline: solid 2px #f77b65;
}
#careers .tablink.active:nth-child(3) {
  color: #fca45d;
  outline: solid 2px #fca45d;
}
#careers .tablink.active:nth-child(4) {
  color: #78999c;
  outline: solid 2px #78999c;
}
#careers .tablink.active:nth-child(5) {
  color: #27526a;
  outline: solid 2px #27526a;
}

#careers .tablink.active {
  background-color: #fff;
}

.tablink:hover:not(.active) {
  opacity: 0.8;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border-top: none;
}

.tabcontent.active {
  display: block;
}

@media (max-width: 768px) {
  .tablink {
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #buttons {
    flex-direction: column;
  }
  .tablink {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
}

/* PAGE PROGRAMME */
#title-separator {
  width: 173px;
  margin-left: 0;
}

#program #buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
  margin: 0;
}
#program #buttons button {
  margin: 5px;
}

#program .tablink {
  background-color: #27526a;
  color: white;
  padding: 10px 20px;
}

#program .tablink.active {
  color: #27526a;
  background-color: white;
  outline: solid 2px #27526a;
}

.tabprogram.active {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  #program #buttons {
    margin: 0 15%;
  }
  .tabprogram.active {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wp-block-themeisle-blocks-accordion {
  width: 100%;
  height: fit-content;
  border-radius: 20px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

/* make accordion title unclickable*/
.tabprogram details:first-child > summary {
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}
.tabprogram details:first-child > summary::after {
  display: none !important;
}

.tabprogram details:last-child > summary {
  border-radius: 0 0 20px 20px;
}
.tabprogram details > summary {
  font-weight: bold;
  border: none !important;
}
.tabprogram details > div {
  border: none !important;
}

.tabprogram
  .wp-block-themeisle-blocks-accordion
  details:nth-child(1)
  > summary {
  color: white;
}
#s1
  .wp-block-themeisle-blocks-accordion:nth-child(1)
  details:nth-child(1)
  > summary,
#s2
  .wp-block-themeisle-blocks-accordion:nth-child(1)
  details:nth-child(1)
  > summary,
#s1
  .wp-block-themeisle-blocks-accordion:nth-child(6)
  details:nth-child(1)
  > summary,
#s2
  .wp-block-themeisle-blocks-accordion:nth-child(6)
  details:nth-child(1)
  > summary {
  background-color: #da2317;
}
#s1
  .wp-block-themeisle-blocks-accordion:nth-child(2)
  details:nth-child(1)
  > summary,
#s2
  .wp-block-themeisle-blocks-accordion:nth-child(2)
  details:nth-child(1)
  > summary {
  background-color: #f77b65;
}
#s1
  .wp-block-themeisle-blocks-accordion:nth-child(3)
  details:nth-child(1)
  > summary,
#s2
  .wp-block-themeisle-blocks-accordion:nth-child(3)
  details:nth-child(1)
  > summary {
  background-color: #fca45d;
}
#s1
  .wp-block-themeisle-blocks-accordion:nth-child(4)
  details:nth-child(1)
  > summary,
#s2
  .wp-block-themeisle-blocks-accordion:nth-child(4)
  details:nth-child(1)
  > summary {
  background-color: #78999c;
}
#s1
  .wp-block-themeisle-blocks-accordion:nth-child(5)
  details:nth-child(1)
  > summary,
#s2
  .wp-block-themeisle-blocks-accordion:nth-child(5)
  details:nth-child(1)
  > summary {
  background-color: #27526a;
}

/* PAGE ADMISSION 1ERE ANNEE */
.page-id-98 .wp-container-core-group-is-layout-4 {
  border: solid 1px #da2317;
  border-radius: 20px;
  padding: 40px 20px;
}

.page-id-98
  > main
  > div.wp-block-columns.are-vertically-aligned-top.is-layout-flex.wp-container-core-columns-is-layout-3.wp-block-columns-is-layout-flex
  > div.wp-block-column.is-vertically-aligned-top.has-border-color.has-rose-border-color.is-layout-flow.wp-container-core-column-is-layout-5.wp-block-column-is-layout-flow,
.page-id-100
  > main
  > div.wp-block-columns.are-vertically-aligned-top.is-layout-flex.wp-container-core-columns-is-layout-2.wp-block-columns-is-layout-flex
  > div.wp-block-column.is-vertically-aligned-top.has-border-color.has-orange-border-color.is-layout-flow.wp-container-core-column-is-layout-3.wp-block-column-is-layout-flow {
  flex-direction: column;
  border: solid 1px #fca45d;
  border-radius: 20px !important;
  padding: 40px 20px;
}

.page-id-98
  > main
  > div.wp-block-columns.are-vertically-aligned-top.is-layout-flex.wp-container-core-columns-is-layout-3.wp-block-columns-is-layout-flex
  > div.wp-block-column.is-vertically-aligned-top.has-border-color.has-bleu-border-color.is-layout-flow.wp-block-column-is-layout-flow,
.page-id-100
  > main
  > div.wp-block-columns.are-vertically-aligned-top.is-layout-flex.wp-container-core-columns-is-layout-2.wp-block-columns-is-layout-flex
  > div.wp-block-column.is-vertically-aligned-top.has-border-color.has-bleu-border-color.is-layout-flow.wp-block-column-is-layout-flow {
  border: solid 1px #27526a;
  border-radius: 20px !important;
  padding: 40px 20px;
}

.page-id-100
  > main
  > div.wp-block-columns.are-vertically-aligned-top.is-layout-flex.wp-container-core-columns-is-layout-2.wp-block-columns-is-layout-flex
  > div.wp-block-column.is-vertically-aligned-top.has-border-color.has-bleu-border-color.is-layout-flow.wp-block-column-is-layout-flow {
  align-self: stretch;
}

.page-id-100 > main > div:nth-child(7) > div > div > div {
  margin: auto;
}

@media (max-width: 769px) {
  .page-id-98 .wp-block-group:not(.wp-block-group .wp-block-group),
  .wp-block-columns {
    padding: 5% !important;
  }

  .page-id-98
    > main
    > div.wp-block-group.is-vertical.is-layout-flex.wp-container-core-group-is-layout-4.wp-block-group-is-layout-flex {
    padding: 1% !important;
  }

  .page-id-98
    > main
    > div.wp-block-group.is-vertical.is-layout-flex.wp-container-core-group-is-layout-4.wp-block-group-is-layout-flex
    > div {
    padding: 5% !important;
  }
}

/* PAGE POURQUOI LE MASTER CAWEB? */
.page-id-31 .wp-block-columns {
  margin: auto !important;
}

.page-id-31 .full-background {
  margin: -1em !important;
}

.page-id-31 .wp-block-group > .wp-block-group__inner-container {
  display: flex;
  column-gap: 2em;
  justify-content: center;
}

.page-id-31 .wp-container-core-group-is-layout-3,
.page-id-31 .wp-container-core-group-is-layout-6,
.page-id-31 .wp-container-core-group-is-layout-7 {
  margin-top: 0;
}

.page-id-31 .wp-container-core-group-is-layout-5,
.page-id-31 .wp-container-core-group-is-layout-6,
.page-id-31 .wp-container-core-group-is-layout-7 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  width: 30%;
}

.page-id-31 .wp-container-core-group-is-layout-5 > p,
.page-id-31 .wp-container-core-group-is-layout-6 > p,
.page-id-31 .wp-container-core-group-is-layout-7 > p {
  padding: 1em;
}

.page-id-31 .wp-container-core-group-is-layout-5 > .wp-block-cover,
.page-id-31 .wp-container-core-group-is-layout-6 > .wp-block-cover,
.page-id-31 .wp-container-core-group-is-layout-7 > .wp-block-cover {
  width: 100%;
}

@media (max-width: 769px) {
  .page-id-31
    .wp-container-core-columns-is-layout-2
    > .wp-block-column
    > .wp-block-image {
    display: none;
  }
  .page-id-31 .wp-block-group > .wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 2em;
  }
  .page-id-31 .wp-container-core-group-is-layout-5,
  .page-id-31 .wp-container-core-group-is-layout-6,
  .page-id-31 .wp-container-core-group-is-layout-7,
  .page-id-31 .wp-container-core-group-is-layout-2,
  .page-id-31 .wp-container-core-group-is-layout-3 {
    width: 100%;
  }
  .page-id-31 .wp-block-button a {
    font-size: 24px;
  }
}

@media (max-width: 376px) {
  .page-id-31 .wp-container-core-group-is-layout-2,
  .page-id-31 .wp-container-core-group-is-layout-3 {
    padding: 0 !important;
    width: 100%;
  }

  .page-id-31 .wp-container-core-group-is-layout-2 > .wp-block-buttons,
  .page-id-31 .wp-container-core-group-is-layout-3 > .wp-block-buttons {
    margin: 1em;
  }

  .page-id-31 .wp-block-button a {
    font-size: 18px;
  }
}

/* PAGE POURQUOI UN ETUDIANT CAWEB */
body.page-id-61 > main > div.wp-block-group.has-background {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

body.page-id-61
  > main
  > div.wp-block-group.has-background
  > div
  > div.wp-block-group.is-nowrap.is-layout-flex.wp-container-core-group-is-layout-4.wp-block-group-is-layout-flex
  > div,
body.page-id-61
  > main
  > div.wp-block-group.has-background
  > div
  > div.wp-block-group.is-nowrap.is-layout-flex.wp-container-core-group-is-layout-7.wp-block-group-is-layout-flex
  > div {
  align-self: stretch;
}

.page-id-61
  > main
  > div.wp-block-group.has-background
  > div
  > div.wp-block-group.is-nowrap.is-layout-flex.wp-container-core-group-is-layout-4.wp-block-group-is-layout-flex,
.page-id-61
  > main
  > div.wp-block-group.has-background
  > div
  > div.wp-block-group.is-nowrap.is-layout-flex.wp-container-core-group-is-layout-7.wp-block-group-is-layout-flex {
  flex-direction: column !important;
}

@media (max-width: 769px) {
  .page-id-61
    > main
    > div.wp-block-columns.is-layout-flex.wp-container-core-columns-is-layout-2.wp-block-columns-is-layout-flex
    > div:nth-child(1) {
    padding: 0 !important;
  }
}

/* PAGE CREATIONS ETUDIANTES */
.page-id-41 .wp-block-columns {
  margin: auto !important;
}

.page-id-41 .wp-container-core-columns-is-layout-3 {
  margin: -1em !important;
}

.page-id-41 .full-background {
  margin: -1em !important;
}

.page-id-41 ul {
  margin: 0 auto;
  width: fit-content;
}

.page-id-41 .wp-block-spacer + .wp-block-image img {
  width: 100% !important;
  max-width: none;
  margin: 0 -1em;
}

/*STYLE FOR SINGLE PAGES - CREATIONS ETUDIANTES*/

/* Class to manually add to columns*/

.student-creation-columns {
  margin: 5px;
}

/* PAGE EVENEMENTS CAWEB */
.page-id-39 .wp-block-columns {
  margin: auto !important;
}

.page-id-39 .full-background {
  margin: -1em;
}

.page-id-39 .flex-column > .wp-block-group__inner-container {
  display: flex;
  column-gap: 2em;
}

.page-id-39 .wp-container-core-group-is-layout-3 {
  margin-top: 0;
}

.page-id-39 .wp-container-core-group-is-layout-2,
.page-id-39 .wp-container-core-group-is-layout-3 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  width: 49%;
}

.page-id-39 .wp-container-core-group-is-layout-2 > p,
.page-id-39 .wp-container-core-group-is-layout-3 > p {
  padding: 1em;
}

.page-id-39 .wp-container-core-group-is-layout-2 > .wp-block-cover,
.page-id-39 .wp-container-core-group-is-layout-3 > .wp-block-cover {
  width: 100%;
}

@media (max-width: 769px) {
  .page-id-39 .wp-container-core-columns-is-layout-3 {
    flex-direction: column-reverse;
  }
  .page-id-39 .wp-container-core-columns-is-layout-2 .alignright {
    float: none !important;
  }

  .page-id-39 .flex-column > .wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 2em;
  }

  .page-id-39 .wp-container-core-group-is-layout-2,
  .page-id-39 .wp-container-core-group-is-layout-3 {
    width: 100%;
  }

  .page-id-39 .wp-block-button a {
    font-size: 24px;
  }
}

@media (max-width: 376px) {
  .page-id-39 .wp-container-core-group-is-layout-2,
  .page-id-39 .wp-container-core-group-is-layout-3 {
    padding: 0 !important;
    width: 100%;
  }

  .page-id-39 .wp-container-core-group-is-layout-2 > .wp-block-buttons,
  .page-id-39 .wp-container-core-group-is-layout-3 > .wp-block-buttons {
    margin: 1em;
  }
  .page-id-39 .wp-block-button a {
    font-size: 18px;
  }
}

/* PAGE CONTRAT D'APPRENTISSAGE */
.page-id-65 .wp-block-columns {
  margin: auto !important;
}

.page-id-65 .wp-block-group > .wp-block-group__inner-container {
  display: flex;
  column-gap: 2em;
}

.page-id-65 .wp-container-core-group-is-layout-2 {
  margin-top: 0;
}

@media (max-width: 769px) {
  .page-id-65 .wp-block-button a {
    font-size: 24px;
  }

  .page-id-65 .wp-container-core-group-is-layout-1,
  .page-id-65 .wp-container-core-group-is-layout-2 {
    width: 100%;
  }

  .page-id-65 .wp-block-group > .wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
    row-gap: 2em;
  }
}

@media (max-width: 376px) {
  .page-id-65 .wp-block-button a {
    font-size: 18px;
  }

  .page-id-65 .wp-container-core-group-is-layout-2,
  .page-id-65 .wp-container-core-group-is-layout-1 {
    padding: 0.5em !important;
    width: 100%;
  }
  .page-id-65 .wp-container-core-group-is-layout-2 > .wp-block-buttons,
  .page-id-65 .wp-container-core-group-is-layout-1 > .wp-block-buttons {
    margin: 1em;
  }
}

/* PAGE CONTRAT DE PROFESSIONNALISATION */
.page-id-63 .wp-block-columns {
  margin: auto !important;
}
@media (max-width: 769px) {
  .page-id-63 .wp-block-button a {
    font-size: 24px;
  }
}

@media (max-width: 376px) {
  .page-id-63 .wp-block-button a {
    font-size: 18px;
  }
}

/* PAGE QUEL CONTRAT CHOISIR  */
.page-id-19221 .wp-block-columns {
  margin: auto !important;
}
@media (max-width: 769px) {
  .page-id-19221 .wp-block-button a {
    font-size: 24px;
  }
}

@media (max-width: 376px) {
  .page-id-19221 .wp-block-button a {
    font-size: 18px;
  }
}

/* COOKIES BANNER */
.cky-btn {
  border-radius: 20px !important;
}

/* FORMULAIRES */
main form:not(#wpcf7-f20369-p18562-o1 > form, .wp-block-search, #searchform) {
  background-color: #dae5e1;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 10px 5%;
}

main form #submit-button {
  display: flex;
  border-radius: 20px !important;
  width: 325px;
  border: none !important;
  font-size: 1.2em;
  line-height: 1;
  display: flex;
  align-items: center;
  font-family: UnistraA;
  font-weight: bold;
  max-width: none;
  min-width: 0;
  position: relative;
  justify-content: center;
}

#app-submit-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: auto;
}

.just-space-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 769px) {
  main form #submit-button {
    width: 100% !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  .form-row:nth-of-type(6) div:nth-child(2) {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }
}

/*formulaire Nadia*/
.page-id-18562 > main > div.wp-block-group.has-background {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

form h2,
form h3 {
  color: #004e47;
  font-weight: bold;
}

.form-row,
.form-row-full {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.form-row div,
.form-row-full div {
  flex: 1;
  margin-right: 10px;
}

.form-row div:last-child,
.form-row-full div {
  margin-right: 0;
}

label {
  display: block;
  margin-bottom: 5px;
}

label .required {
  color: #da2317;
}

input[type="text"]:not(.blog #s),
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

input[type="text"]:not(.blog #s),
input[type="date"]:not(.blog #s),
input[type="email"]:not(.blog #s),
input[type="tel"]:not(.blog #s),
textarea {
  border: 1px solid black;
}

input#searchsubmit {
  display: inline-block;
  text-decoration: none;
  background-color: var(--wp--preset--color--bleu);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  border: 0;
  font-weight: bold;
  font-size: 20px;
  font-family: UnistraD;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

textarea {
  height: 100px;
}

input[type="file"] {
  border: none;
}

input[type="radio"] {
  margin-right: 5px;
}

main form p {
  margin: 0;
}

/* PAGE CONTACT */
.page-id-29 .wp-block-table td,
.wp-block-table th {
  border: none !important;
}

body.page-id-29 > main > figure > table > tbody > tr:nth-child(3),
body.page-id-29 > main > figure > table > tbody > tr:nth-child(5) {
  background-color: #ededed;
}

/* Styles for the event promotion box */
.event-promotion-box {
  width: 100%;
  margin: 20px 0;
  border: 1px solid #ddd; /* Border for the box */
  box-sizing: border-box;
  padding: 10px;
  background-color: #fff; /* White background for the entire box */
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    /* Main shadow */ 0 1px 3px rgba(0, 0, 0, 0.06); /* Secondary shadow */
}

/* Banner at the top */
.event-banner {
  background-color: var(--wp--preset--color--rouge);
  padding: 20px;
  text-align: center;
  margin-bottom: 15px;
}

.event-banner-title {
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin: 0;
}

/* Content of the event promotion box (image and details) */
.event-promotion-content {
  display: flex;
  flex-direction: row;
  width: 100%;
}

/* Left side of the box - Thumbnail image */
.event-promotion-left {
  width: 50%;
  padding-right: 10px;
}

.event-promotion-left img {
  width: 350px;
  height: 350px;
  object-fit: cover;
}

/* Right side of the box - Title, excerpt, and button */
.event-promotion-right {
  width: 50%;
  padding-left: 10px;
}

.event-promotion-right h3.event-title {
  color: var(--wp--preset--color--rouge);
  font-size: 24px;
  margin-bottom: 10px;
  margin-top: 0px;
}

.event-promotion-right .event-button {
  display: inline-block;
  text-decoration: none;
  background-color: var(--wp--preset--color--rouge);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  font-family: UnistraD;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Responsive Design for main event promotion box*/

/* When the image height becomes smaller than the text height */
@media (max-aspect-ratio: 1/1) {
  .event-promotion-content {
    flex-direction: column; /* Stack image and text */
    text-align: center; /* Center-align content */
  }

  .event-promotion-left {
    width: 100%; /* Full width for the image */
    padding-right: 0; /* Remove padding */
  }

  .event-promotion-left img {
    width: 100%; /* Full width image */
    height: 350px;
  }

  .event-promotion-right {
    width: 100%; /* Full width for the text */
    padding-left: 0; /* Remove padding */
    text-align: center; /* Center-align text */
  }

  .event-promotion-right h3.event-title {
    text-align: center; /* Center the title */
  }

  .event-promotion-right .event-button {
    margin: 10px auto; /* Center the button */
  }
}

/* Additional responsiveness for smaller screens */
@media (max-width: 480px) {
  .event-promotion-content {
    flex-direction: column; /* Stacked layout */
  }
}

/* Styles for the second event promotion box */
.event-promotion-box-two {
  display: flex;
  flex-direction: row;
  width: 100%;
  border: 1px solid #ddd;
  margin: 20px 0;
  padding: 10px;
  background-color: #f9f9f9; /* Light gray background */
  box-sizing: border-box;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    /* Main shadow */ 0 1px 3px rgba(0, 0, 0, 0.06); /* Secondary shadow */
}

/* Left part of the box (Thumbnail) */
.event-box-two-left {
  flex-basis: auto;
  padding-right: 10px;
}

.event-box-two-left img {
  max-width: 100%;
  object-fit: cover;
}

/* Center part of the box (Title, category, excerpt) */
.event-box-two-center {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center the text vertically */
  text-align: center;
}

.event-box-two-center h3.event-title {
  color: var(--wp--preset--color--rouge);
  font-size: 20px;
  margin-top: 0px;
}

/* Right part of the box (Button) */
.event-box-two-right {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the button */
  padding-left: 10px;
}

.event-box-two-right .event-button {
  display: inline-block;
  text-decoration: none;
  background-color: var(--wp--preset--color--rouge);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  font-family: UnistraD;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Switch to Stacked Layout Based on Aspect Ratio */
@media (max-aspect-ratio: 1/1) {
  .event-promotion-box-two {
    flex-direction: column; /* Stack all content vertically */
    align-items: center; /* Center-align content */
    text-align: center; /* Center-align text */
  }

  .event-box-two-left {
    width: 100%; /* Full width for the image */
    padding-right: 0; /* Remove padding */
  }

  .event-box-two-left img {
    width: 100%; /* Full width image */
    height: 250px; /* Maintain aspect ratio */
  }

  .event-box-two-center {
    width: 100%; /* Full width for text */
    padding: 10px 0; /* Add vertical spacing */
  }

  .event-box-two-right {
    width: 100%; /* Full width for the button */
    padding-left: 0; /* Remove padding */
    justify-content: center; /* Center-align the button */
  }
}

/* Extra Responsiveness for Small Screens */
@media (max-width: 480px) {
  .event-promotion-box-two {
    flex-direction: column; /* Stack layout for small screens */
  }

  .event-box-two-left,
  .event-box-two-center,
  .event-box-two-right {
    width: 100%; /* Full width for all parts */
  }
}

/* Style for the archive-evenement.php page */

/* Title */
.all-events-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Category Buttons */
.category-list {
  margin-bottom: 20px;
}

.category-list button {
  display: inline-block;
  text-decoration: none;
  background-color: var(--wp--preset--color--rouge);
  border: 2px solid white;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  font-family: UnistraD;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.category-list button:hover {
  background-color: var(--wp--preset--color--bleu);
}

.category-list .selected-category {
  background-color: var(--wp--preset--color--bleu);
}

/* Event Grid */
.event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 50px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

/* Media Query for Tablets (Two Cards per Row) */
@media (max-width: 1024px) {
  .event-list {
    grid-template-columns: repeat(2, minmax(250px, 1fr)); /* 2 cards per row */
    gap: 30px; /* Slightly smaller gap for tablets */
  }
}

/* Media Query for Smartphones (One Card per Row) */
@media (max-width: 768px) {
  .event-list {
    grid-template-columns: 1fr; /* 1 card per row */
    gap: 20px; /* Smaller gap for smartphones */
  }
}

/* Event Card */
.event-item {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  justify-content: space-between; /* Ensure spacing between sections */
  align-items: stretch; /* Make sections fill the card width */
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  height: 500px; /* Set the fixed height of the card */
  min-width: 350px;
  max-width: 500px;
}

/* Top Section: Title, Category, and Date */
.event-item .event-header {
  flex: 1; /* Take 1/3rd of the card's height */
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space out title, category, and date */
  background-color: #f5f5f5; /* Optional: background for differentiation */
}

.event-item .event-header h2 {
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  text-align: center;
}

.event-header a {
  text-decoration: none;
  color: var(--wp--preset--color--bleu);
}

.event-item .event-header .event-category {
  margin: 0px;
  font-weight: bold;
  font-family: UnistraD;
  color: var(--wp--preset--color--orange);
  text-align: center;
}

.event-date {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: black !important;
}

/* Center Section: Description */
.event-item .event-description {
  flex: 1; /* Take 1/3rd of the card's height */
  padding: 10px;
  font-size: 0.9rem;
  color: #333;
  text-align: center;
  overflow: hidden; /* Hide overflowing content */
  text-overflow: ellipsis; /* Add ellipsis (...) to indicate truncated text */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines of text */
  -webkit-box-orient: vertical; /* Required for -webkit-line-clamp to work */
  background-color: #fff; /* Optional: background for differentiation */
}

/* Bottom Section: Thumbnail Image */
.event-item figure {
  flex: 1; /* Take 1/3rd of the card's height */
  margin: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eee; /* Placeholder background */
  height: 100%; /* Ensures the figure fills its container */
}

.event-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the image scales properly */
}

/* Hover Effect */
.event-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Style for a single event's own page */

/* Style for single-event-header */
.single-event-header {
  background: none; /* Removes the background from the header */
  padding: 20px; /* Optional: Add padding for spacing */
  position: relative;
  z-index: 0;
}

.single-event-categories {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.single-event-categories a {
  font-size: 24px;
  text-decoration: none;
}

.single-event-thumbnail img {
  padding-left: 20px;
  width: auto;
  max-width: 100%;
  height: auto;
}

.single-event-content h2,
.single-event-content h3,
.single-event-content h4,
.single-event-content p {
  padding-left: 20px;
}

@media only screen and (max-width: 600px) {
  .single-event-title {
    font-size: 40px;
  }

  .single-event-thumbnail {
    padding-left: 0px;
  }
}

/* Style for single-event-footer */
.single-event-footer {
  background: none; /* Removes the background from the footer */
  padding-left: 20px;
}

/* Style for the link in the single-event-footer */
.single-event-footer a {
  text-decoration: none;
  background-color: var(--wp--preset--color--rouge);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  font-family: UnistraD;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Basic styling for the calendar */
.calendar {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.calendar-header,
.calendar-body {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.calendar-day-name,
.calendar-cell {
  width: 14.28%; /* 7 days of the week */
  text-align: center;
  padding: 15px 10px;
  box-sizing: border-box;
}

.calendar-day-name {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.calendar-cell {
  position: relative;
  height: 100px; /* Increased height for better visual appeal */
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.calendar-cell.empty {
  background-color: #f4f4f4;
}

.calendar-cell:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

/* Styling event icon */
.calendar-event {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: #ff6600; /* Orange icon */
  border-radius: 50%;
}

/* Hover effect for event details */
.calendar-event:hover .event-details {
  display: block;
  opacity: 1;
  transform: translateY(10px);
}

/* Style for the event details box that will appear on hover */
.event-details {
  display: none;
  position: absolute;
  background-color: #fef4eb;
  box-shadow: 0px 2px 5px #ccc;
  padding: 15px;
  max-width: 300px; /* Adjust width as needed */
  font-family: UnistraA, sans-serif;
  z-index: 1000;
  border-radius: 8px;
  box-sizing: border-box;
  max-height: 300px;
  overflow: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Specific styles for the event content inside the details box */
.event-category {
  font-weight: bold;
  color: var(--wp--preset--color--bleu);
  margin-bottom: 8px;
}

.event-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.event-excerpt {
  /* Truncate long text */
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 20px;
  line-height: 28px;
  margin-top: 0px;
  margin-bottom: 20px;
}

/* Button style for linking to event detail page */
.event-link {
  display: inline-block;
  background-color: #1e73be; /* Blue background */
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  margin-top: auto; /* Pushes the button to the bottom */
}

.event-link:hover {
  background-color: #165a85; /* Darker blue on hover */
  transition: background-color 0.3s ease;
}

/* Calendar cell content */
.calendar-date {
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

/* Flex layout for event category buttons */
.event-categories {
  display: inline-flex;
  gap: 10px;
}

.event-category-button {
  display: inline-block;
  text-decoration: none;
  background-color: var(--wp--preset--color--rouge);
  color: #fff;
  padding: 5px 10px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  font-family: UnistraD;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.has-event {
  background-color: red;
}

/*CALENDAR JS STYLE*/

.event-tooltip {
  position: absolute;
  background: #f4f4f4;
  color: #000;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
  max-width: 250px;
  font-size: 14px;
  z-index: 1000;
  text-align: center;
  transition: opacity 0.2s ease-in-out;
  display: none; /* Hidden by default */
}

.event-tooltip strong {
  font-size: 16px;
  color: var(--wp--preset--color--bleu);
}

.event-tooltip p {
  margin: 5px 0;
}

.tooltip-button {
  display: inline-block;
  padding: 5px 10px;
  background: var(--wp--preset--color--rouge);
  color: #ffffff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
}

.tooltip-button:hover {
  background: #ffc107;
}

/* filter categories buttons for blog */
.filter-button-blog {
  background-color: var(--wp--preset--color--rouge);
  color: white;
  font-weight: bold;
  font-size: 20px;
  font-family: UnistraD;
  display: inline-block;
  padding: 5px 15px;
  margin-bottom: 10px;
  margin-left: 10px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.filter-button-blog-selected-categories {
  background-color: var(--wp--preset--color--bleu);
  color: white;
  font-weight: bold;
  font-size: 20px;
  font-family: UnistraD;
  display: inline-block;
  padding: 5px 15px;
  margin-bottom: 10px;
  margin-left: 10px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* Responsive for blog tables */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .hide-on-desktop {
    display: none;
  }
}

/* Apply to English version instructor page only */
.teacher-list-en {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 70px; /* Space between columns */
  row-gap: 20px;
  justify-content: center;
  padding: 0 2rem;
  margin: 0 auto;
  max-width: 1500px; /* Optional: keeps grid from becoming too wide */
}

@media (max-width: 768px) {
  .teacher-list-en {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }
}

/* Style each teacher card */
.teacher-list-en > li {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  width: 100%;
}

.teacher-list-en .teacher-header {
  display: flex;
  align-items: center; /* Vertical centering */
  gap: 1.5rem;
}

.teacher-list-en figure img {
  border-radius: 8px;
  width: 120px; /* Optional: control size */
  height: 120px; /* Optional: make it square */
  object-fit: cover; /* Ensure circular crop */
  margin: 0 auto; /* Center horizontally */
}

/* English-specific overrides */
div.subject-list.subject-list-en button {
  background-color: white;
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

div.subject-list.subject-list-en button.selected-subject {
  border: 1px solid red;
  color: red;
}

div.subject-list.subject-list-en {
  margin-left: 26px;
}

.en-hero-section {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: white;
  padding-left: 5rem;
  padding-bottom: 30px;
  box-sizing: border-box;
  text-align: left;
}

/* Gradient-filled text */
.gradient-text {
  font-size: 3rem;
  background: linear-gradient(to right, #e52e71, #ff6a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.en-hero-section h1 {
  font-size: 3rem;
  color: linear-gradient(to right, #e52e71, #ff6a00);
  margin-bottom: 0;
}

.en-hero-section h2 {
  font-size: 2rem;
  color: #444;
  margin: 0 0 1rem 0;
  font-weight: normal;
}

.en-hero-section p {
  font-size: 1.1rem;
  color: #333;
  max-width: 800px;
  margin: 0;
  text-align: left;
}

/* Divider line AFTER the section */
.gradient-line {
  height: 4px;
  border: none;
  background: linear-gradient(to right, #e52e71, #ff6a00);
  width: 100vw;
  margin: 0 0 2rem 0;
  margin-left: calc(-50vw + 50%); /* counter the parent padding */
}

.en-contact-us-rectangle {
  background-color: #0b3f64;
  color: white;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
  border-radius: 8px;
  margin: 40px auto 20px auto;
  max-width: 1500px; /* match .teacher-list-en */
  width: calc(100% - 4rem);
}

.en-contact-us-rectangle h2 {
  color: white;
  margin-top: 0;
}

.en-contact-button {
  color: black;
  background-color: white;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  margin: 0 auto;
  max-width: 1500px;
}

/* Comes from Additional CSS in customizer */
h1 {
  color: #d92316;
}

h3 {
  margin-top: 0;
  margin-bottom: 40px;
}

body {
  background-color: #f5f5f5;
}

/* homepage css -----*/
.cards_container {
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  margin: 0 15px;
  align-items: stretch;
  flex-wrap: wrap;
}

.card {
  background-color: white;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  flex: 1 1 300px;
  max-width: 460px;
  min-width: 280px;
  align-items: stretch;
  box-shadow:
    #f5f5f5 0px 0px 6px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px;
}

.program_title {
  display: flex;
  background: linear-gradient(90deg, #d92316 0%, #ea453f 79%, #ff4848 100%);
  color: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 10px 14px;
  height: 230px;
}

.height-stretch {
  height: 100%;
}

@media (max-width: 768px) {
  #third_title {
    padding-bottom: 2rem;
  }

  .latest-articles-grid {
    display: flex !important;
    flex-direction: column;
  }

  .mobile-grid {
    display: flex !important;
    flex-direction: column;
  }

  .get-started-p {
    padding: 0 14px !important;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  .mobile-nopadding {
    padding: 0px !important;
  }

  .prop p {
    font-size: small;
    text-align: center;
  }
}

@media (max-width: 1200px) {
  .wp-container-content-ab83f395 {
    flex-basis: 0 !important;
  }
}

@media (max-width: 1200px) {
  .responsive-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem !important;
    padding: 0px !important;
  }

  .responsive-row div:first-child {
    padding: 0 !important;
    align-items: center;
  }

  .program-header {
    text-align: center !important;
  }
}

.justify-align-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.width-fit {
  max-width: fit-content;
}

.program_title h2 {
  color: white;
  font-family: UnistraD, Arial, Helvetica, sans-serif;
  margin: 10px 0 0 0;
  line-height: 1.3;
}

.reqs {
  padding: 0px 14px;
  flex-grow: 20;
}

.reqs p {
  margin: 0px 0;
}

.p_sm {
  font-size: medium;
}

.properties {
  display: flex;
  background-color: #f5f5f5;
  justify-content: space-between;
  margin: 10px 14px 0px 14px;
  border-radius: 8px;
  padding: 5px 0px;
}

.prop {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.prop p {
  margin: 1px 0; /* Shrink spacing between Format/Online etc. */
  font-size: 25px; /* Optional: adjust font size */
  font-family: unistraD;
}

.prop p:first-of-type {
  font-size: small;
}

.prop p:last-of-type {
  font-weight: bold;
}

.program_info {
  flex-grow: 1;
}

ul.check-list {
  list-style: none;
  padding-left: 1.2em;
}

ul.check-list li::before {
  content: "✔"; /* Unicode check mark */
  color: black;
  font-size: 15px;
  margin-right: 14px;
}

/* reqs and fees css -----*/
.rf-container {
  background-color: #f5f5f5;
  padding-left: 30px;
  padding-right: 30px;
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 40px;
}

.rf-container h2 {
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .rf-container {
    text-align: center;
  }
}

.rf-reqs {
  display: flex;
  gap: 30px;
  justify-content: space-evenly;
}

.rf-req-cards {
  display: flex;
  gap: 44px;
  margin-top: 14px;
  margin-bottom: 40px;
  border-radius: 8px;
  justify-content: center;
}

.rf-req-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: white;
  width: 100%;
  height: 100%;
  /* max-height: 220px; */
}

.rf-req-card h2 {
  background-color: #246d98;
  color: white;
  text-align: center;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0px;
  margin: 0;
}

.rf-req-card ul {
  border: 1px;
  font-size: medium;
  margin-top: 14px;
  margin-bottom: 4px;
}

.vl {
  border-left: 4px solid red;
  border-radius: 6px;
  height: 190px;
  align-self: center;
}

@media (max-width: 768px) {
  .rf-reqs,
  .rf-req-cards {
    flex-direction: column;
    align-items: center;
  }

  .vl {
    display: none;
  }

  .rf-req-card {
    width: 90%;
    margin-bottom: 20px;
  }
}

.vapp-desc {
  display: flex;
  background-color: white;
  border-radius: 8px;
  gap: 14px;
  padding-left: 14px;
  max-width: 976px;
  height: auto;
  padding-bottom: 20px;
  margin: 0 auto;
}

.icon {
  height: 50px;
  width: 50px;
  margin-top: 14px;
}

.vapp-desc-text h2 {
  margin-bottom: 0;
  margin-top: 14px;
}

.vapp-desc-text {
  display: flex;
  flex-direction: column;
  margin-right: 70px;
}

.vapp-desc-text p {
  font-size: medium;
  margin-bottom: 0;
  font-size: 20px;
}

.illustration {
  align-self: top;
  width: 300px;
  height: 300px;
}
@media (max-width: 768px) {
  .vapp-desc {
    flex-direction: column;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .vapp-desc-text {
    margin-right: 0;
  }

  .illustration {
    width: 90%;
    height: auto;
    margin-top: 20px;
  }
}

.fees-container {
  background-color: #f5f5f5;
  padding: 0 30px;
}

.fee-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: flex-start;
  margin-top: 24px;
}

.fee-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 8px;
  height: auto;
  max-width: 350px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fee-card h2 {
  background: linear-gradient(90deg, #d92316 0%, #ea453f 79%, #ff4848 100%);
  color: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 10px 0px 14px 14px;
  height: auto;
  margin: 0;
}

.labels {
  display: flex;
  justify-content: space-evenly;
  background-color: #f5f5f5;
  height: 40px;
  padding-top: 7px;
}

.values {
  display: flex;
  justify-content: space-evenly;
  font-weight: 600;
  height: 40px;
  padding-top: 7px;
}

#second-values {
  border-top: 1px dotted;
}

.fees-rem {
  font-weight: bold;
  font-size: large;
  margin-top: 30px;
}
@media (max-width: 768px) {
  .fee-cards {
    flex-direction: column;
    align-items: center;
  }

  .fee-card {
    /* width: 90%; */
    max-width: 500px;
  }
}

.custom-secondary-wp-button {
  display: flex;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 1rem;
}

.custom-secondary-wp-button a {
  background: white;
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-family: inherit;
  font-size: 20px;
  border: none;
  border-radius: 11px;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  display: inline-block;
  white-space: nowrap; /* prevents button from stretching */
  margin: 14px;
}

.apprenticeship-box {
  display: flex;
  background-color: white;
  border-radius: 8px;
  margin-bottom: 40px;
  align-items: flex-start;
  padding-left: 14px;
  padding-right: 50px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.app-desc-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 20px;
}
.app-desc-text h2,
.app-desc-text p {
  margin: 0;
}

.app-desc-text h2 {
  color: #246d98;
}

.vapp-desc-text h2 {
  color: #246d98;
}
@media (max-width: 768px) {
  .apprenticeship-box {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
  }

  .app-desc-text {
    margin: 20px 0;
    text-align: center;
  }

  .apprenticeship-box img.illustartion {
    margin-left: 0 !important;
    max-width: 100%;
    height: auto;
  }

  .apprenticeship-box .icon {
    height: 50px;
    width: 50px;
  }
}

/* certificate page css */

.program-details-card {
  display: flex;
  flex-direction: column;
  box-shadow: 10px 4px 14px rgba(0, 0, 0, 0.1);
  width: 550px;
  background-color: #fff;
  border-radius: 8px;
  border: 0.5px solid #ddd;
}

.program-details-card h2 {
  font-size: 1.5rem;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  padding-left: 20px;
  margin-bottom: 0px;
}

.detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
}

.detail:last-of-type {
  border-bottom: none;
}

.detail p {
  margin: 0;
  font-size: 20px;
}

.custom-wp-button {
  display: flex;
  justify-content: center; /* center the button horizontally */
  margin-top: auto; /* optional: push to bottom of card if flex column */
  margin-bottom: 1rem; /* spacing under the button */
}

.custom-wp-button a {
  background: linear-gradient(90deg, #d92316 0%, #ea453f 79%, #ff4848 100%);
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-family: inherit;
  font-size: 20px;
  border: none;
  border-radius: 11px;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  display: inline-block;
  white-space: nowrap; /* prevents button from stretching */
}

.custom-wp-button-b {
  display: flex;
  justify-content: center; /* center the button horizontally */
  margin-top: auto; /* optional: push to bottom of card if flex column */
  margin-bottom: 1rem; /* spacing under the button */
}
.custom-wp-button-b a {
  background-color: #0b3f64;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-family: inherit;
  font-size: 20px;
  border: none;
  border-radius: 11px;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  display: inline-block;
  white-space: nowrap; /* prevents button from stretching */
}

/* testimonials ---------*/
@import url("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css");

.testimonial-section {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
}

.testimonial-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-carousel {
  padding: 1rem 1rem;
  overflow: visible;
  margin-left: -25px;
}

.swiper-slide {
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 80%; /* Show part of the next card */
  max-width: 700px;
}

.testimonial-photo {
  width: 287px;
  height: 343px;
  object-fit: cover;
  border-radius: 8px;
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-img {
  width: 32px;
  height: 32px;
}

.testimonial-text {
  font-size: 1.5rem;
  color: #333;
  line-height: 1.4;
  margin: 0;
  margin-top: 24px;
}

.testimonial-ref {
  font-size: 1.1rem;
  margin-top: 14px;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: none;
  color: gray;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.swiper-button-prev {
  left: -70px;
}
.swiper-button-next {
  right: -70px;
}

@media (max-width: 1024px) {
  .swiper-button-prev {
    left: -30px;
  }
  .swiper-button-next {
    right: -30px;
  }
}

/* REQUIRED Swiper styles */
.swiper {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .swiper-slide {
    flex-direction: column; /* stack content vertically */
    width: 90% !important; /* almost full width */
    max-width: none;
    padding: 15px;
  }

  .testimonial-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .testimonial-content {
    width: 100%;
  }

  .testimonial-text {
    font-size: 1.1rem;
    margin-top: 12px;
  }

  .testimonial-ref {
    font-size: 0.9rem;
    margin-top: 10px;
  }

  /* Navigation arrows closer to the container */
  .swiper-button-prev {
    /*left: 5px;*/
  }

  .swiper-button-next {
    /*right: 5px;*/
  }
}

@media (max-width: 480px) {
  .testimonial-text {
    font-size: 1rem;
  }
  .testimonial-ref {
    font-size: 0.85rem;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
.swiper-slide {
  flex-shrink: 0;
}

.testimonial-card a {
  text-decoration: none;
}

@media (min-width: 1024px) {
  .latest-articles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Make header and page background the same */
body,
header,
.site-header,
.navbar,
#masthead {
  background-color: #ffffff !important; /* same white */
}
