/*
Theme Name: ÓE Téma
Theme URI: https://nagysmarton.hu
Author: Nagy Sándor Márton
Author URI: https://nagysmarton.hu
Description: Saját fejlesztésű téma - Bootstrap 5.3.7 használatával
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obudai
*/

/* Betűkészletek */
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Light.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Light.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("assets/fonts/Metropolis-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bs-primary: #00288c;
  --bs-primary-rgb: 0, 40, 140;
  --bs-secondary: #00dcdc;
  --bs-secondary-rgb: 0, 220, 220;
  --bs-info: #9ad1f0;
  --bs-info-rgb: 154, 209, 240;

  --bs-body-bg: #f6f6f6;
  --bs-body-font-family: "Open Sans", sans-serif;

  --bs-link-color: #00288c;
  --bs-link-hover-color: #fcaf17;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #00288c;
  --bs-btn-border-color: #00288c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #fcaf17;
  --bs-btn-hover-border-color: #fcaf17;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #fcaf17;
  --bs-btn-active-border-color: #fcaf17;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #00288c;
  --bs-btn-disabled-border-color: #00288c;
}

footer a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
footer a:hover {
  color: #00dcdc;
}

/* Sticky footer */
html,
body {
  height: 100%;
  background: #fff !important;
}
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #6b6b6b;
}

a {
  color: #00288c;
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: #00dcdc;
}

.page-content {
  flex: 1 0 auto;
  background: #fff;
}

footer {
  margin-top: auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Metropolis", sans-serif;
  color: #00288c;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-size: 1em;
}

.dark-blue-bg {
  background: linear-gradient(to right, #00288c 0%, #001964 100%);
}
.logo {
  width: 210px;
  margin: 3px;
}

.dropdown-menu {
  background: linear-gradient(to right, #00288c 0%, #001964 100%) !important;
  border-bottom: 2px solid #00dcdc !important;
}
.dropdown-menu a {
  color: #fff !important;
  text-transform: uppercase;
}
#mainMenu a {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1px;
}

.page-content .container {
  background: #fff;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(73, 92, 136, 0.12);
}

.sidebar-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(73, 92, 136, 0.12);
}

.transparent-bg {
  background: transparent !important;
  box-shadow: none !important;
}

h1.title {
  background: linear-gradient(to right, #00288c 0%, #001964 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  margin-left: -6px;
  margin-right: -6px;
  font-weight: 700;
}

/* Navbar */
.navbar {
  border-bottom: 2px solid #00dcdc;
  box-shadow: 0px 5px 24px;
}

.navbar-nav .nav-link {
  color: #fff;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff;
  opacity: 0.85;
}

.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current-menu-parent > .nav-link,
.navbar-nav .current-menu-ancestor > .nav-link {
  color: #00dcdc !important;
  font-weight: 700;
}

.navbar-nav .current-menu-item > .nav-link:hover,
.navbar-nav .current-menu-parent > .nav-link:hover,
.navbar-nav .current-menu-ancestor > .nav-link:hover {
  color: #00dcdc !important;
  opacity: 1;
}

.navbar .dropdown-menu {
  position: absolute;
  overflow: visible;
  z-index: 2000;
}

/* Top szintű dropdown */
.navbar-nav > .dropdown > .dropdown-menu {
  margin-top: 0;
  transform: translateY(-0.5rem);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    visibility 0s linear 0.12s;
}

@media (hover: hover) and (pointer: fine) {
  .navbar-nav > .dropdown:hover > .dropdown-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform 0.12s ease,
      opacity 0.12s ease,
      visibility 0s;
  }
}

.navbar-nav > .dropdown > .dropdown-menu.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    visibility 0s;
}

/* 2–3. szint: oldalra nyíló submenu */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin: 0;
  transform: translateX(0.25rem);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    visibility 0s linear 0.12s;
}

.dropdown-submenu.open-left > .dropdown-menu {
  left: auto;
  right: 100%;
  transform: translateX(-0.25rem);
}

@media (hover: hover) and (pointer: fine) {
  .dropdown-submenu:hover > .dropdown-menu,
  .dropdown-submenu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform 0.12s ease,
      opacity 0.12s ease,
      visibility 0s;
  }
}

.dropdown-submenu > .dropdown-menu.show,
.dropdown-submenu.open-left > .dropdown-menu.show {
  display: block;
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease,
    visibility 0s;
}

/* Belső szintek nyíl ikonja */
.dropdown-menu .dropdown-item.dropdown-toggle::after {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  border: 0;
  width: auto;
  height: auto;
  line-height: 1;
  float: none;
  vertical-align: middle;
  opacity: 0.6;
}

a.dropdown-item.dropdown-toggle {
  margin-right: 10px;
  position: relative;
  padding-right: 2rem;
}

@media (hover: hover) and (pointer: fine) {
  .dropdown-menu .dropdown-item.dropdown-toggle::after {
    content: "›";
  }
  .dropdown-submenu.open-left > a.dropdown-toggle::after {
    content: "‹";
  }
}

/* Mobil / tablet: stackelt submenu-k */
@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    position: static;
    float: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0;
    display: none;
    border: 0;
    box-shadow: none;
    width: 100%;
  }

  .navbar .dropdown-menu.show {
    display: block;
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Minden beágyazott szint egymás alá kerül */
  .navbar .dropdown-menu .dropdown-menu {
    position: static !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    display: none;
  }

  .navbar .dropdown-menu .dropdown-menu.show {
    display: block !important;
  }

  /* Nyitás JS nélkül */
  .dropdown-submenu > .dropdown-toggle:focus + .dropdown-menu,
  .dropdown-submenu > .dropdown-toggle:active + .dropdown-menu,
  .dropdown-submenu .dropdown-submenu > .dropdown-toggle:focus + .dropdown-menu,
  .dropdown-submenu
    .dropdown-submenu
    > .dropdown-toggle:active
    + .dropdown-menu,
  .dropdown-submenu:hover > .dropdown-menu,
  .dropdown-submenu .dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
  }

  /* Hierarchia behúzása */
  .dropdown-menu .dropdown-item {
    padding-left: 1.25rem;
  }
  .dropdown-menu .dropdown-menu .dropdown-item {
    padding-left: 2rem;
  }
  .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item {
    padding-left: 2.75rem;
  }
  .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item {
    padding-left: 3.5rem;
  }

  .dropdown-menu .dropdown-item.dropdown-toggle::after {
    content: "▾";
  }
  .dropdown-menu .dropdown-item.dropdown-toggle[aria-expanded="true"]::after {
    content: "▴";
  }
}

/* Footer */
.social-line {
  border-top: 1px solid #e7e7e7;
  width: 74%;
  margin-top: 20px;
}

#menu-footer a,
#menu-footer-en a {
  color: #00dcdc !important;
}

#menu-footer a:hover,
#menu-footer-en a:hover {
  color: #fcaf17 !important;
}

.social-container {
  gap: 5px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: left;
  align-items: center;
  flex-grow: 0;
}

ul#menu-footer li,
ul#menu-footer-en li {
  list-style: none;
}

ul#menu-footer,
ul#menu-footer-en {
  padding-left: 0 !important;
}

.social_ikonok img {
  max-width: 38px !important;
  height: 38px !important;
}

@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: auto !important;
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .social-container {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: left;
    flex-grow: 0 !important;
  }

  .social-container .wp-block-column {
    flex-basis: auto !important;
    max-width: 50px;
  }

  .social-container img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .social-container {
    gap: 4px;
  }

  .social-container img {
    width: 35px;
    height: 35px;
  }
}

/* Dropdown lecsúszó animáció */
@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

.navbar-nav > .dropdown > .dropdown-menu.show {
  animation: slideDown 0.4s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .navbar-nav > .dropdown:hover > .dropdown-menu,
  .navbar-nav > .dropdown:focus > .dropdown-menu,
  .navbar-nav > .dropdown:active > .dropdown-menu {
    animation: slideDown 0.4s ease-out;
    padding-top: 15px;
    padding-bottom: 0px;
    border: none;
    border-radius: 0px;
  }
}

.dropdown-menu .dropdown-level-2,
.dropdown-menu .dropdown-level-3 {
  padding-top: 0px;
  padding-bottom: 0px;
  border: none;
  border-radius: 0px;
}

.dropdown-item {
  padding-top: 10px;
  padding-bottom: 10px;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
  background: linear-gradient(to right, #00dcdc 0%, #14aaaa 100%);
  color: #fff;
}

.dropdown-menu .current-menu-item > .dropdown-item,
.dropdown-menu .current-menu-parent > .dropdown-item,
.dropdown-menu .current-menu-ancestor > .dropdown-item {
  background: linear-gradient(to right, #00dcdc 0%, #14aaaa 100%);
  color: #fff !important;
  font-weight: 700;
}

.dropdown-menu .current-menu-item > .dropdown-item:hover,
.dropdown-menu .current-menu-parent > .dropdown-item:hover,
.dropdown-menu .current-menu-ancestor > .dropdown-item:hover {
  background-color: #fcaf17;
  color: #fff !important;
  opacity: 0.9;
}

/* Kereső (mobil) */
@media (max-width: 991.98px) {
  .is-menu .is-search-form {
    width: 100%;
    min-width: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(29, 41, 77, 0.18);
  }

  .is-menu .is-search-submit {
    width: 36px;
    height: 36px;
  }
}

/* Slider feliratok */
.flex-caption h2 {
  background-color: rgba(0, 40, 140, 0.8);
  text-transform: none !important;
  padding: clamp(5px, 1.5vw, 12px) clamp(6px, 2.5vw, 20px) !important;
  font-size: clamp(0.5rem, 1.5vw, 2rem) !important;
  text-align: right;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .flex-caption {
    width: 100% !important;
    max-width: 100% !important;
  }

  .flex-caption h2 {
    line-height: 1.4;
    width: 100%;
    text-align: center;
  }
}

.carousel-caption {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bs-carousel-caption-color);
  width: max-content;
}

h5.h6.text-uppercase.text-white-50.mb-3 {
  color: #fff !important;
  font-weight: 700;
}

.wp-block-file * + .wp-block-file__button {
  margin-left: 5.75em;
  background: #1d294d;
  border-radius: 0;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  float: right;
}

/* Sidebar */
.sidebar-container .menu,
.sidebar-container .menu ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.sidebar-container .menu li::marker {
  content: "";
}

.sidebar-container h5 {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 25px;
  margin-top: 0;
  color: #1d294d;
  font-weight: 700;
}

.sidebar-container .menu a,
.sidebar-container .menu a:visited,
.sidebar-container .menu a:hover,
.sidebar-container .menu a:focus,
.sidebar-container .menu .current-menu-item > a {
  font-weight: 400;
  font-size: 13px;
}

.sidebar-container .menu li {
  padding-top: 3px;
  padding-bottom: 3px;
}

figcaption {
  background: rgba(154, 209, 240, 0.75);
  bottom: 75px;
  box-sizing: border-box;
  position: relative;
  padding: 5px 15px;
  -webkit-transition: max-height 0.3s ease-out;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
  color: #1d294d;
  font-weight: bold;
  font-size: 19px;
  text-transform: uppercase;
  box-shadow: -1px 6px 6px 1px rgba(55, 55, 55, 0.75);
  -webkit-box-shadow: -1px 6px 6px 1px rgba(55, 55, 55, 0.75);
  -moz-box-shadow: -1px 6px 6px 1px rgba(55, 55, 55, 0.75);
}

main > div > .container {
  box-shadow: none !important;
}

blockquote {
  padding: 10px 20px;
  margin: 0 0 20px;
  font-size: 17.5px;
  border-left: 5px solid #eee;
}

.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: var(--bs-carousel-indicator-active-bg);
  background-clip: padding-box;
  border: 0 !important;
  border-top: 10px solid transparent !important;
  border-bottom: 10px solid transparent !important;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.oe-last-updated {
  color: #00dcdc !important;
  padding: 10px !important;
  text-align: right !important;
  border-top: 1px solid #3a3a3a;
  background: linear-gradient(to right, #00288c 0%, #001964 100%);
}


.searchandfilter .sf-input-text,
.searchandfilter select.sf-input-select,
.searchandfilter input[type="submit"],
.searchandfilter input[type="button"],
.searchandfilter input[type="reset"],
.searchandfilter button,
.searchandfilter .sf-field-submit input,
.searchandfilter .sf-field-reset a,
.searchandfilter .sf-field-reset input,
.searchandfilter .sf-field-reset button {
  height: 38px;
  box-sizing: border-box;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  vertical-align: bottom;
}

.searchandfilter .sf-input-text,
.searchandfilter select.sf-input-select {
  padding: 0 10px;
  border: 1px solid #ced4da;
}

.searchandfilter input[type="submit"],
.searchandfilter input[type="button"],
.searchandfilter input[type="reset"],
.searchandfilter button,
.searchandfilter .sf-field-submit input,
.searchandfilter .sf-field-reset a,
.searchandfilter .sf-field-reset input,
.searchandfilter .sf-field-reset button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 0 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.searchandfilter input[type="submit"]:focus-visible,
.searchandfilter button:focus-visible,
.searchandfilter .sf-field-reset a:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.searchandfilter .sf-field-submit,
.searchandfilter .sf-field-reset {
  width: auto !important;
  vertical-align: bottom;
}
@media (max-width: 575.98px) {
  .searchandfilter ul li,
  .searchandfilter .sf-field-submit,
  .searchandfilter .sf-field-reset {
    width: 100% !important;
  }

  .searchandfilter label {
    display: block;
    width: 100% !important;
  }

  .searchandfilter .sf-input-text,
  .searchandfilter select.sf-input-select,
  .searchandfilter input[type="submit"],
  .searchandfilter input[type="button"],
  .searchandfilter input[type="reset"],
  .searchandfilter button,
  .searchandfilter .sf-field-submit input,
  .searchandfilter .sf-field-reset a,
  .searchandfilter .sf-field-reset input,
  .searchandfilter .sf-field-reset button {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  .searchandfilter input[type="submit"],
  .searchandfilter input[type="button"],
  .searchandfilter input[type="reset"],
  .searchandfilter button,
  .searchandfilter .sf-field-submit input,
  .searchandfilter .sf-field-reset a,
  .searchandfilter .sf-field-reset input,
  .searchandfilter .sf-field-reset button {
    display: flex;
  }
}

/* =======================================================
   PUBLIKACIOS OLDALAK (Folyoiratcikk / Konferenciakiadvany / Egyeb)
   ======================================================= */

.publications-search {
  max-width: 640px;
  margin: 0 auto 8px;
}

.publications-search__label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bs-primary);
  margin-bottom: 6px;
}

.publications-search__input {
  display: block;
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

.publications-search__input:focus {
  border-color: var(--bs-primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}

.publications-count {
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 0.85rem;
  color: #6b6b6b;
}

.publications-empty {
  padding: 20px 0;
  color: #6b6b6b;
}

/* --- Talalati lista --- */
.publications-list {
  width: 100%;
}

.publication {
  padding: 14px 0;
  border-bottom: 1px solid #e7e7e7;
}

.publication:last-child {
  border-bottom: none;
}

.publication-title {
  margin: 0 0 6px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.publication-links {
  margin: 0;
  font-size: 0.9rem;
  overflow-wrap: break-word;
}

.publication-links a {
  font-weight: 600;
}

/* --- Mobil --- */
@media (max-width: 767.98px) {
  /* A 16px alatti betumeret miatt az iOS Safari ranagyit az oldalra,
     es utana nem all vissza. Ezert itt pontosan 16px. */
  .publications-search__input {
    height: 44px;
    font-size: 16px;
  }

  .publications-search__label {
    font-size: 1rem;
  }

  .publication {
    padding: 12px 0;
  }

  .publication-links {
    line-height: 2;
  }
}

@media (max-width: 575.98px) {
  .publications-list {
    font-size: 0.95rem;
  }

  .publication-title {
    line-height: 1.55;
  }
}

.slider_masodik_sor {
  display: none;
}

/* =======================================================
   CSAPATTAG KARTYAK (page-csapattagok-*.php, physcon_team_grid)
   ======================================================= */

.team-section-title {
  text-align: left;
  margin-top: 28px;
  margin-bottom: 18px;
}

.team-grid {
  margin-bottom: 10px;
}

.team-card {
  height: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 22px 15px 16px;
  box-shadow: 0 8px 24px rgba(73, 92, 136, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(73, 92, 136, 0.18);
}

/* A fenykepek kulonbozo meretuek es aranyuak. Fix aranyu doboz +
   object-fit: cover, igy minden kartyan pontosan ugyanakkora a kep. */
.team-card__photo {
  display: block;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 14px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  background: #f3f4f6;
}

.team-card__name {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--bs-primary);
}

.team-card__name a {
  color: inherit;
}

.team-card__meta {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #6b6b6b;
  overflow-wrap: break-word;
}

.team-card__links {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.team-card__links li {
  list-style: none;
}

.team-card__links img {
  width: 25px;
  height: 25px;
  display: block;
}

@media (max-width: 767.98px) {
  .team-card {
    padding: 18px 12px 12px;
  }

  .team-card__photo {
    max-width: 150px;
  }

  .team-section-title {
    margin-top: 22px;
  }

  /* Nagyobb erintheto terulet az ikonoknal */
  .team-card__links {
    gap: 12px;
  }

  .team-card__links a {
    display: block;
    padding: 4px;
  }
}

/* =======================================================
   CSAPATTAG PROFIL (page-csapattagok-sajat.php)
   Egy fore szolo oldal: fenykep, elerhetosegek, idovonal.
   ======================================================= */

.cs-profile__photo {
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 16px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #f3f4f6;
}

.cs-profile__contact {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 16px 16px 20px;
}

.cs-profile__contact-title {
  font-size: 1rem;
  text-align: center;
  margin: 0 0 12px;
}

.cs-profile__email {
  text-align: center;
  font-size: 0.9rem;
  margin: 0 0 12px;
  overflow-wrap: break-word;
}

.cs-profile__links {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.cs-profile__links li + li {
  border-top: 1px solid #ececec;
}

.cs-profile__links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.cs-profile__links img {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.cs-profile__role {
  margin-bottom: 1rem;
}

.cs-profile__content {
  text-align: justify;
}

.cs-profile__studies-title {
  margin-top: 28px;
  margin-bottom: 18px;
}

/* --- Tanulmanyok idovonal --- */
.cs-timeline {
  list-style: none;
  position: relative;
  margin: 0;
  padding-left: 32px;
}

/* A fuggoleges vonal */
.cs-timeline:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--bs-primary);
}

.cs-timeline__item {
  position: relative;
  margin: 0 0 20px;
}

/* A pont a vonalon */
.cs-timeline__item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bs-primary);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

.cs-timeline__card {
  background: #f2f2f2;
  border-radius: 6px;
  padding: 14px 18px;
}

.cs-timeline__name {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.cs-timeline__year {
  display: inline-block;
  font-size: 0.85rem;
  color: #555;
}

.cs-timeline__place {
  font-size: 0.9rem;
  margin: 6px 0 0;
}

/* --- Mobil --- */
@media (max-width: 767.98px) {
  .cs-profile__photo {
    max-width: 220px;
  }

  .cs-timeline {
    padding-left: 26px;
  }

  .cs-timeline__item::before {
    left: -23px;
  }

  .cs-timeline__card {
    padding: 12px 14px;
  }

  /* Kenyelmesebb erintheto sorok */
  .cs-profile__links a {
    padding: 12px 14px;
  }
}