/* Theme Name: IEEE Sites Theme (Official)
   Text Domain: ieee-dci
   Version: 1.2.2
   Description: Designed & developed by <a href="http://www.d2creative.com">D2 Creative</a>.
   *
   * Author: Steve Ambielli of D2 Creative
   * Author URI: http://www..com
   * Theme URI: http://www.d2creative.com
   * License:
   * License URI:
   * Tags: page-builder, custom-background, custom-colors, custom-menu, editor-style, featured-images, theme-options
*/

/* WordPress Core
   -------------------------------------------------------------- */
.bypostauthor {}
.sticky {}
.gallery-caption {}

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  white-space: nowrap;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000; /* Above WP toolbar. */
}

.author {
  display: none !important;
}

#logo {
  max-width: none !important;
  padding: 6px 0;
}

#logo a {
  display: inline-block;
}

#logo-search {
  display: flex;
  align-items: center;
  min-height: 150px;
}

#logo img {
  display: block;
  width: auto;
  height: auto !important;
  max-height: 140px;
}

@media (max-width: 1199.98px) {
  #logo-search {
    min-height: 120px;
  }
  #logo img {
    max-height: 110px;
  }
}

@media (max-width: 991.98px) {
  #logo-search {
    min-height: 100px;
  }
  #logo img {
    max-height: 88px;
  }
}

@media (max-width: 767.98px) {
  #logo-search {
    min-height: 80px;
  }
  #logo img {
    max-height: 70px;
  }
}

#logo-search {
  display: flex;
  align-items: center;
}

.site-header {
  margin-bottom: 0 !important;
}

.menu-banner {
  background: url('https://ieeehs.uni-obuda.hu/wie/wp-content/uploads/2025/09/HOME_WIE.png') no-repeat center center;
  position: relative;
  background-size: cover;
  width: 100%;
  height: 230px;
  overflow: hidden;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .menu-banner {
    height: 160px;
  }
}

@media (max-width: 576px) {
  .menu-banner {
    height: 120px;
    background-position: center top;
  }
}

.menu-banner + #content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#search .search-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

#search .search-form-block {
  flex: 1 1 auto;
}

#search .logo-ieee-block {
  flex: 0 0 auto;
  text-align: right;
}

#logo-ieee img {
  max-height: 50px;
  width: auto;
  height: auto;
}

.wie-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.wie-gallery > p,
.wie-gallery br {
  display: none !important;
  margin: 0 !important;
}

/* Csempe + kép */
.wie-gallery .tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #f2f2f2;
}

.wie-gallery .tile img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  border: 0;
}

.wie-goals {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  margin-right: 50px;
  max-width: 900px;
}

.wie-goals li {
  position: relative;
  padding-left: 60px;
  margin: 20px 0;
  font-weight: 600;
  line-height: 1.6;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.wie-goals li::before {
  content: "";
  flex-shrink: 0;
  position: absolute;
  left: 0;
  width: 70px;
  height: 70px;
  background: url("https://ieeehs.uni-obuda.hu/wie/wp-content/uploads/2025/08/about_goal_icon.png") no-repeat center center;
  background-size: contain;
}

<script>
document.addEventListener("DOMContentLoaded", function() {
  var seeAllBtn = document.querySelector('.btn.more[href="/category/news/"]');
  if(seeAllBtn){
    seeAllBtn.setAttribute("href", "/wie/category/news/");
  }
});
</script>

.wie-home-sections {
  margin: 10px 0 50px;
}

.wie-home-sections .btn.more,
.wie-home-sections .btn.btn-primary.btn-block.more {
  display: block;
  width: 100% !important;
  max-width: 360px;
  margin: 16px auto 0;
}

body.home .btn.btn-primary.btn-block.more {
  display: block;
  width: 100%;
  max-width: 507px;
  margin: 25px auto 0 !important;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .wie-home-sections .wpb_column {
    margin-bottom: 32px;
  }
}

@media (min-width: 992px) {
  .wie-home-sections.vc_row,
  .wie-home-sections.wpb_row {
    display: flex;
    gap: 32px;
    align-items: stretch;
  }
  .wie-home-sections .wpb_column {
    flex: 1 0 0;
    margin: 0 !important;
  }
}

.top-section {
  position: relative;
  z-index: 0;
}
.top-section .flexslider {
  position: relative;
  z-index: 1;
}

.wie-membership-box {
  position: absolute;
  left: 0;
  top: 15px;
  z-index: 999999;
  width: 430px;
  max-width: calc(100% - 40px);
  padding: 25px 0 0 40px;
  background: rgba(119, 37, 131, .85);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  pointer-events: auto;
}

.wie-membership-box h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}
.wie-membership-box p {
  margin: 6px 0;
  line-height: 1.45;
}
.wie-membership-box .cta {
  margin-top: 10px;
  font-weight: 700;
  font-style: italic;
}

#page .wie-membership-box .cta a,
#page .wie-membership-box .cta a:visited,
#page .wie-membership-box .cta a:active {
  color: #fff !important;
  text-decoration: none !important;
}

#page .wie-membership-box .cta a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.wie-membership-box .cta a {
  display: inline-block;
  color: #fff !important;
  text-decoration: none !important;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.wie-social-icons {
  position: absolute;
  right: 18px;
  top: 125px;
  display: flex;
  gap: 12px;
  z-index: 2147483647;
}
.wie-social-icons a {
  width: 65px;
  height: 65px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.15));
}
.wie-social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 991.98px) {
  .wie-membership-box {
    display: none !important;
  }
}


#search .search-block{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  min-height:80px;
}


#toggle-search{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  margin:0 !important;
  padding:0 !important;
  line-height:1;
  color:#772583;
  font-size:20px;
}


#toggle-search i,
#toggle-search .fa{
  margin:0 !important;
  line-height:1;
}

#search .logo-ieee-block{
  display:flex;
  align-items:center;
  padding:0 !important;
}
#logo-ieee img{
  max-height:50px;
  width:auto;
}

.post-photos{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.post-photos a{
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:10px;
}

.post-photos img{
  width:100%;
  height:100%;
  object-fit:cover;
  image-rendering:auto;
}

/* --- OFFICERS --- */
.wie-officers{max-width:980px;margin:30px auto 70px;padding:0 16px}

.wie-officers .cards{
  display:grid;
  grid-template-columns: repeat(3, 220px);
  justify-content:center;
  gap:40px;
}

button.officer-card{
  border:0;
  background:transparent;
  padding:0;
  width:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  cursor:pointer;
}

.wie-officers .avatar{
  width:160px; height:160px;
  margin:0 auto 12px;
  border:6px solid rgba(119,37,131,.25);
  border-radius:0; overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.wie-officers .avatar img{
  width:100%; height:100%;
  object-fit:cover; display:block;
  max-width:none !important;
  transition: transform .25s ease;
}

button.officer-card:hover .avatar img {
  transform: scale(1.08);
}

.officer-card .name{display:block;font-weight:900;color:#772583;font-size:18px;line-height:1.2}
.officer-card .role{display:block;font-weight:900;color:#772583;font-size:15px;line-height:1.2;font-style:italic;margin-top:5px}

.wie-divider{max-width:960px;margin:28px auto;border-top:4px solid rgba(119,37,131,.45)}
.officer-bio{max-width:960px;margin:36px auto 0;display:none}
.officer-bio[aria-hidden="false"]{display:block}
.bio-header{display:flex;flex-direction:column;align-items:center;gap:14px;margin-bottom:14px}
.bio-header .avatar{width:180px;height:180px;border:6px solid rgba(119,37,131,.25);border-radius:0;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.bio-header .avatar img{width:100%;height:100%;object-fit:cover;max-width:none !important}
.bio-header .name{margin:0;font-size:24px;font-weight:900;color:#772583;line-height:1.2;text-align:center}
.bio-header .role{margin-top:4px;font-size:18px;font-weight:900;color:#772583;font-style:italic;line-height:1.2;text-align:center}
.bio-content p{margin:0 0 14px;line-height:1.6}
.officer-bio .bio-content{text-align: justify;}

@media (max-width: 800px){
  .wie-officers .cards{grid-template-columns: repeat(2, 220px)}
}
@media (max-width: 480px){
  .wie-officers .cards{grid-template-columns: 1fr}
  button.officer-card{width:100%}
}

/* Globális címsor szín */
h1,h2 {
  color: #772583 !important; /* oldal lila */
}

.wie-contact-list{
  max-width: 900px;
  margin: 24px auto 80px;
  padding: 0 16px;
  display: grid;
  gap: 42px;
}

.contact-row{
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 24px;
}

.avatar-wrap{
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
}

.avatar{
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(119,37,131);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-list .avatar img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  border-radius:50%;
}

.person-name{
  font-weight: 700;
  color: #772583;
  text-align: center;
  line-height: 1.2;
}

.mail-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mail-ico {
  width: 22px;
  height: 22px;
}

.mail-link{
  color: #772583;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.mail-link:hover{
  text-decoration: underline;
}

@media (max-width: 720px){
  .contact-row{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }
  .mail-wrap{
    justify-content: center;
  }
}

.wie-list .wie-sep{border:0;border-top:1px solid #e9e9ef;margin:26px 0}
.wie-list .wie-item{margin:26px 0}
.wie-list .date-box{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  width:90px;min-height:110px;border-radius:6px;background:#772583;color:#fff;text-decoration:none
}
.wie-list .date-box .day{font-size:40px;line-height:1;font-weight:800}
.wie-list .date-box .month-year{margin-top:6px;font-size:14px;letter-spacing:.2px;text-transform:uppercase;color:#fff}
.wie-list .thumb{display:block;margin-bottom:10px}
.wie-list .thumb img{width:100%;height:auto;display:block;border-radius:4px}
.wie-list .title{font-size:24px;margin:6px 0 6px;color:#772583;font-weight:900}
.wie-list .title a{color:#772583;text-decoration:none}
.wie-list .title a:hover{text-decoration:underline}
.wie-list .meta{font-size:14px;color:#666;margin-bottom:8px}
.wie-list .meta a{color:#772583;text-decoration:none}
.wie-list .meta a:hover{text-decoration:underline}
.wie-list .excerpt{color:#222;line-height:1.65;margin-bottom:8px}
.wie-list .wie-more{display:inline-block;margin-top:4px;font-weight:700;color:#772583;text-decoration:none}
.wie-list .wie-more:hover{text-decoration:underline}
.wie-pagination{text-align:center;margin:30px 0}
.wie-pagination .page-numbers{display:inline-block;margin:0 6px;padding:6px 10px;border-radius:4px;background:#f2ecf6;color:#772583;text-decoration:none}
.wie-pagination .page-numbers.current{background:#772583;color:#fff}
@media (max-width: 767.98px){
  .wie-list .date-box{width:74px;min-height:100px}
  .wie-list .date-box .day{font-size:34px}
  .wie-list .title{font-size:20px}
}

/* ARCHÍV LISTA – kép méret, soros elrendezés, dátumbadge */
.news-archive .post-row{
  display:flex;
  gap:24px;
  align-items:flex-start;
  margin:40px 0;
}

.news-archive .date-col{
  flex:0 0 80px;
}

.news-archive .date-badge{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:80px;
  min-height:96px;
  background:#772583;
  border-radius:8px;
  border-radius: 0 !important;
}

.news-archive .date-badge .day{
  font-weight:800;
  font-size:32px;
  line-height:1;
  color:#fff !important;
}

.news-archive .date-badge .mon,
.news-archive .date-badge .yr{
  color:#fff !important;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.1;
  opacity:.95;
}

.news-archive .content-col{
  flex:1 1 auto;
}

.news-archive .post-media{
  display:flex;
  gap:22px;
  align-items:flex-start;
}

.news-archive .post-media .thumb{
  flex:0 0 48%;
  max-width:48%;
}

.news-archive .post-media .thumb img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}

.news-archive .post-media .meta-and-text{
  flex:1 1 0;
  min-width:0;
}

.news-archive .entry-title{
  margin:0 0 8px;
  font-weight:800;
  color:#772583;
}

.news-archive .excerpt{
  margin:6px 0 10px;
  line-height:1.6;
}

.news-archive .read-more a{
  color:#772583;
  font-weight:700;
  text-decoration:none;
}
.news-archive .read-more a:hover{ text-decoration:underline; }

@media (max-width: 992px){
  .news-archive .post-media{ flex-direction:column; }
  .news-archive .post-media .thumb{ max-width:100%; flex-basis:auto; }
}

/* Events Calendar keresődoboz elrejtése csak az eseményoldalakon */
body.post-type-archive-tribe_events .tribe-events-c-events-bar,
body.tax-tribe_events_cat .tribe-events-c-events-bar,
body.page-id-XXX .tribe-events-c-events-bar, /* ha sima oldalba van beágyazva */
body.page-id-YYY .tribe-events-c-events-bar {
  display: none !important;
}

/* WP core [gallery] – rács, arány, kártya */
.entry-content .gallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin:24px 0;
  padding:0;
  list-style:none;
}
.entry-content .gallery-item{
  margin:0 !important;
  width:auto !important;       /* felülírja az inline width-et */
}
.entry-content .gallery-icon{
  position:relative;
  display:block;
  aspect-ratio: 4 / 3;          /* egységes csempe arány */
  overflow:hidden;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.10);
}
.entry-content .gallery-icon a,
.entry-content .gallery-icon img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Reszponzív törések */
@media (max-width: 992px){
  .entry-content .gallery{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px){
  .entry-content .gallery{ grid-template-columns:1fr; }
}

/* Csak magyar nyelvnél fusson */
html[lang="hu"] h3.boxed span {
  font-size: 0;
}

html[lang="hu"] h3.boxed span::after {
  content: "Események" !important;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
}

#page .post .date {
	font-size: 11px !important;
}

@media (max-width: 768px) {
  .wie-officers .cards {
    display: flex;
    flex-direction: column;
	gap:24px;
  }
  .wie-officers .officer-card.melania {
    order: -1;
  }
}

@media (max-width: 768px){
  .wie-officers .cards{display:flex;flex-direction:column;gap:24px}
  .wie-officers .officer-card.elnok{order:-1}
}

.tribe-event-date-start {
  font-weight: normal !important;
  font-size: 11px !important;
  color: #333333 !important;
  font-family: "Open Sans", sans-serif !important;
}

.tribe-event-date-end {
  font-weight: normal !important;
  font-size: 11px !important;
  color: #333333 !important;
  font-family: "Open Sans", sans-serif !important;
}

.tribe-events-schedule.tribe-clearfix h2 {
	font-size: 11px !important;
}