/* YouTube videórács – Helix Ultimate */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin: 20px 0;
}

.yt-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform .25s, box-shadow .25s;
}

.yt-item iframe:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}
/* Modulcímek középre igazítása (bal és jobb oszlop) */
#sp-left .sp-module-title,
#sp-right .sp-module-title {
    text-align: center;
}

/* Modulon belüli menüpontok balra igazítása */
#sp-left .sp-module ul,
#sp-right .sp-module ul {
    text-align: left !important;
    padding-left: 0;
}

/* Menüelemek balra rendezése */
#sp-left .sp-module ul li,
#sp-right .sp-module ul li {
    text-align: left !important;
}

/* Menü linkek balra igazítása */
#sp-left .sp-module ul li a,
#sp-right .sp-module ul li a {
    text-align: left !important;
}
/* Bővebben gomb – erős felülírás */
.readmore a[itemprop="url"] {
    display: inline-block !important;
    background-color: #8e6d47 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    border: 2px solid #7c5f3d !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    white-space: nowrap;
}

/* Hover */
.readmore a[itemprop="url"]:hover {
    background-color: #6f5434 !important;
    border-color: #5e472c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
/* 4. Változat – Keretes, átlátszó „Kiemelt” badge */
.featured-article-badge {
    background-color: transparent !important;
    color: transparent !important;          /* eredeti szöveg eltüntetése */
    padding: 3px 10px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0 !important;                /* eredeti szöveg teljes elrejtése */
    border: 2px solid #8e6d47 !important;   /* barna keret */
    display: inline-block !important;
}

/* Magyar szöveg pótlása */
.featured-article-badge::after {
    content: "Kiemelt";
    font-size: 12px !important;
    color: #8e6d47 !important;              /* barna szöveg */
    font-weight: 600;
}
/* Névnap modul betűmérete – teljes modul tartalom */
#sp-right .moduletable h4,
#sp-right .moduletable p,
#sp-right .moduletable div,
#sp-right .moduletable span,
#sp-right .moduletable a {
    font-size: 13px !important;   /* állítható: 13–18px között ajánlom */
    line-height: 1.4;
}
/* FACEBOOK OLDAL – középre igazítás + széles megjelenítés */
.fb-kozep {
    margin: 0 auto !important;      /* középre igazítás */
    display: block !important;
    max-width: 800px !important;    /* fb data-width érték */
}

/* Mobilnézet – 100% szélesség */
@media (max-width: 768px) {
    .fb-kozep {
        max-width: 100% !important;
    }
}
/* FACEBOOK oldal szélesítése és középre igazítása */
.fb-container {
    max-width: 900px !important;
    margin: 0 auto !important;      /* középre igazítás */
    display: block !important;
}

/* A facebook iframe szélesítése */
.fb-container iframe {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Mobilbarát */
@media (max-width: 768px) {
    .fb-container {
        max-width: 100% !important;
    }
    .fb-container iframe {
        max-width: 100% !important;
    }
}
/* FACEBOOK MENÜ IKON – Felső menüsor */
.fb-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    background-image: url("/igriceegyesulet425a/images/facebook-logo.png");
    background-size: cover;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-top: -4px; /* finom igazítás */
}

/* Hover hatás – elegáns */
.sp-megamenu-parent li:hover .fb-icon {
    filter: brightness(1.2);
}
/* FACEBOOK MENÜPONT IKONNAL HELYETTESÍTVE */
.sp-megamenu-parent > li.menu-item-facebook > a {
    font-size: 0 !important; /* elrejti a szöveget */
    background-image: url("/igriceegyesulet425a/images/fb-premium-64.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px 26px;
    width: 32px;
    height: 32px;
    display: inline-block;
    padding: 10px 16px !important; /* igazítás, finomhangolható */
}

/* Hover effekt */
.sp-megamenu-parent > li.menu-item-facebook:hover > a {
    filter: brightness(1.2);
}
/* Helix Back To Top ikon javítása – háttér és rétegezés */
#sp-back-top {
    background: #ffffff !important;       /* fehér háttér */
    border-radius: 50% !important;        /* kör alak */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* kis árnyék */
    z-index: 9999 !important;             /* minden fölött jelenjen meg */
}

/* A belső ikon középre igazítása */
#sp-back-top span {
    display: inline-block !important;
    text-align: center !important;
}
#sp-back-top {
    right: 20px !important;
    bottom: 20px !important;
}
/* ===== Scroll Up ikon javítása ===== */

/* 1) A cikkekben véletlenül megjelenő sp-scroll-up elemek elrejtése */
#sp-component .sp-scroll-up {
    display: none !important;
}

/* 2) A valódi "Scroll to Top" gomb mindig látható legyen */
body .sp-scroll-up[role="button"] {
    display: block !important;
    position: fixed !important;
    right: 25px;
    bottom: 25px;
    background: #ffffff;
    padding: 12px 15px;
    border-radius: 50%;
    z-index: 99999;
    box-shadow: 0 3px 9px rgba(0,0,0,0.25);
}
/* ===== Vissza a tetejére gomb – végleges középre igazított verzió ===== */

/* A gomb megjelenése */
.sp-scroll-up[role="button"] {
    width: 48px !important;
    height: 48px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.20) !important;
    position: fixed !important;
    right: 22px !important;
    bottom: 22px !important;
    z-index: 99999 !important;
    text-align: center !important;
}

/* Az eredeti span/icon középre igazítása */
.sp-scroll-up[role="button"] span {
    font-size: 22px !important;
    color: #303531 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Logó feljebb tolása */
#sp-header .logo img {
    margin-top: -25px !important;   /* innen tudod finoman állítani */
    height: 120px !important;       /* a beállított méreted */
    width: auto !important;
    object-fit: contain;
    z-index: 999;
    position: relative;
}
/* Felső menü balra tolása */
#sp-menu {
    margin-left: -40px;   /* állítható, pl. -20, -30, -50 */
}
/* Felső menü balra tolása – VÉGLEGES FELÜLÍRÁS */
#sp-menu .sp-megamenu-parent {
    margin-left: -60px !important;     /* állítható: -20 -30 -40 -50 */
}
/* Bal oldali menü (left modulpozíció) – sortávolság csökkentése */
#sp-left .mod-menu li a {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    line-height: 1.2 !important;
}

/* Ha túl nagy a távolság a menüpontok között */
#sp-left .mod-menu li {
    margin-bottom: 4px !important;   /* 8–12px helyett */
}

.igrice-weather {
    background: #f9f5ef;
    border: 1px solid #d9c9b4;
    padding: 10px;
    border-radius: 8px;
}

.igrice-weather .temp {
    font-weight: bold;
    font-size: 1.4em;
    color: #5d4c3f;
}

.igrice-weather .location {
    font-size: 0.9em;
    color: #6b594a;
}

/* Időjárás kártya igazítása a Helix modulhoz */
.igrice-weather-card {
    width: 100%;
    max-width: 260px;     /* ez illeszkedik a right modulhoz */
    margin: 0 auto;       /* középre igazítás */
}

/* Időjárás adatok vízszintes sorba rendezése */
.igrice-weather-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.igrice-extra-item {
    display: flex;
    align-items: center;
    gap: 5px;       /* ikon és szöveg közötti távolság */
}

/* Időjárás modul teljes felülírása */
.sp-module.igrice-weather-module,
.sp-module.igrice-weather-module * {
    box-shadow: none !important;
    background-image: none !important;
}

/* A mi kártyánknak elsőbbség */
.igrice-weather-card {
    width: 100% !important;
    padding: 12px 10px !important;
    margin-bottom: 15px !important;
    box-shadow: none !important;
    background: #fcfbf7 !important;
}

/* ikon + páratartalom + szél vízszintesre */
.igrice-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 6px 4px !important;
    font-size: 15px !important;
}
/* Időjárás modul – végleges megjelenés */
/* Kártya keret */
.igrice-weather-card {
    width: 100% !important;
    max-width: none !important;        /* <<< fontos módosítás */
    background: #f7f7f7 !important;
    border: 2px solid #c9b08a !important;
    border-radius: 10px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
}

/* Fejléc – középre igazítás */
.igrice-weather-header {
    text-align: center;
    font-weight: bold;
    font-size: 17px;
    color: #fff;
    background: #c9b08a;
    border-radius: 10px;
    padding: 8px 0;
    margin-bottom: 12px;
}

/* Hőmérséklet középre */
#igrice-temp {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Leírás középre */
#igrice-desc {
    text-align: center;
    font-size: 16px;
    margin-bottom: 12px;
}

/* Ikon + páratartalom + szél vízszintesen */
.igrice-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 15px;
    padding: 0 4px;
}

/* Weather card fix override */
#igrice-weather.igrice-weather-card,
div#igrice-weather.igrice-weather-card {
    width: 100% !important;
    max-width: 260px !important;
    margin: 0 auto !important;
    padding: 15px !important;
    border: 2px solid #c9b08a !important;
    border-radius: 10px !important;
    background: #f7f7f7 !important;
    box-shadow: none !important;
}
#igrice-weather .igrice-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 10px;
}
#igrice-weather .igrice-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 14px;
    margin-top: 10px;
}

#igrice-weather .igrice-humidity,
#igrice-weather .igrice-wind {
    display: inline-block !important;
}
#igrice-weather .igrice-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

#igrice-weather .igrice-row > div {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}
/* --- Időjárás: Páratartalom + Szél egymás alatt --- */

#igrice-weather .igrice-row {
    display: flex !important;
    flex-direction: column !important;   /* <<< függőleges irány */
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 6px !important;                 /* elemköz */
    margin-top: 10px !important;
}

/* ikon + szöveg igazítás */
#igrice-weather .igrice-row > div {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

/* esetleges korábbi vízszintes beállítások felülírása */
#igrice-weather .igrice-humidity,
#igrice-weather .igrice-wind {
    width: auto !important;
}
.badge.bg-info {
    background-color: #514f53 !important; /* sötétkék */
    color: #fff !important;               /* fehér szöveg */
}
.btn.readmore, .btn.readmore-button, a.readmore {
    margin-top: 5px !important;   /* kisebb távolság */
    display: inline-block;
}
img.align-center,
img.center,
figure.align-center {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Tűzőikonos bevezető blokk */
.intro-pin {
    background-image: url("/images/ikonok/tuz_pin.png");
    background-repeat: no-repeat;
    background-position: left 4px top 4px;
    background-size: 32px auto;
    padding-left: 42px;
    padding-top: 6px;
    padding-bottom: 4px;
    min-height: 38px;
    display: block;
}
.intro-pin {
    background-image: url("/images/ikonok/tuz_pin.png");
    background-repeat: no-repeat;
    background-position: left 4px top 4px;
    background-size: 32px auto;
    padding-left: 42px;
    padding-top: 6px;
    padding-bottom: 4px;
    min-height: 38px;
    display: block;
}
/* Automatikus tűzőikon a Lead bekezdéshez */
p.lead {
    background-image: url("/images/ikonok/tuz_pin.png");
    background-repeat: no-repeat;
    background-position: left 4px top 4px;
    background-size: 32px auto;
    padding-left: 42px;
    padding-top: 6px;
    padding-bottom: 4px;
    min-height: 38px;
    display: block;
}
/* Tűzőikon a bevezető stílushoz */
.lead-pin {
    position: relative;
    padding-left: 40px; /* hely a tűzőikonnak */
}

.lead-pin::before {
    content: "";
    background-image: url('/images/icons/tuz_pin.png');
    background-size: 28px 28px;
    width: 28px;
    height: 28px;
    position: absolute;
    left: 0;
    top: 2px;
}
.lead-pin {
    position: relative;
    padding-left: 40px;
    min-height: 32px;
}
.lead-pin::before {
    content: "";
    background-image: url('/images/icons/tuz_pin.png');
    background-size: 28px 28px;
    background-repeat: no-repeat;
    position: absolute;
    left: 5px;
    top: 0;
    width: 28px;
    height: 28px;
}

.tamogato-nyil {
    position: relative;
    padding-left: 32px;
    line-height: 1.6;
}

.tamogato-nyil:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 25px;
    height: 21px;
    background-image: url('/images/icons/nyil_25.png');
    background-size: contain;
    background-repeat: no-repeat;
}
/* Migrált Joomla 2.5 cikkek képeinek középre igazítása – FLEX FIX */
.com-content-article .article-details p {
    display: block !important;
}

/* Biztos középre igazítás képre */
.com-content-article .article-details p > img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}
/* HELIX FLEX OVERRIDE – migrált cikkek képeinek középre igazítása */
.com-content-article__body {
    display: block !important;
}

/* képet tartalmazó bekezdések */
.com-content-article__body p {
    display: block !important;
    width: 100%;
}

/* a képek tényleges középre húzása */
.com-content-article__body p > img {
    display: block !important;
    margin: 0 auto !important;
    float: none !important;
}
/* Migrált cikkek fix szélességű képeinek középre igazítása */
.item-content.articlebody p > img[style*="width"] {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}
/* Inline width/height kiváltása CSS-sel */
.item-content.articlebody img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
}
/* Komento login / submit gomb – Foundry scope FELÜLÍRÁS */
#fd .kt-login button.o-btn.o-btn--default {
    background-color: #8b6b4a !important;
    border-color: #8b6b4a !important;
    color: #ffffff !important;
}
#fd .kt-login button.o-btn.o-btn--default:hover,
#fd .kt-login button.o-btn.o-btn--default:focus {
    background-color: #6f543a !important;
    border-color: #6f543a !important;
    color: #ffffff !important;
}
#fd .kt-login button.o-btn.o-btn--default:active {
    background-color: #5c4530 !important;
    border-color: #5c4530 !important;
}
#fd .kt-comments button.o-btn--like {
    background-color: transparent !important;
    color: #8b6b4a !important;
    border: 1px solid #8b6b4a !important;
}

#fd .kt-comments button.o-btn--like:hover {
    background-color: #8b6b4a !important;
    color: #ffffff !important;
}
#fd .kt-comments .kt-action-reply {
    color: #8b6b4a !important;
    font-weight: 500;
}

#fd .kt-comments .kt-action-reply:hover {
    color: #6f543a !important;
    text-decoration: underline;
}
/* Komento login – placeholder eltüntetése fókuszkor */
#fd .kt-login input::placeholder {
    opacity: 1;
    transition: opacity 0.2s ease;
}

#fd .kt-login input:focus::placeholder {
    opacity: 0;
}
#fd .kt-login input:not(:placeholder-shown)::placeholder {
    opacity: 0;
}
#fd .kt-login .o-form-group--lfta {
    position: relative;
}

#fd .kt-login .o-form-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    color: rgba(0,0,0,0.5);
}

#fd .kt-login .o-form-control:focus + .o-form-label,
#fd .kt-login .o-form-control:not(:placeholder-shown) + .o-form-label {
    top: -6px;
    font-size: 12px;
    color: #8b6b4a;
}
/* Hónap szerint gomb – alap */
#jevents_body .jev_bootstrap .nav-tabs > li > a {
    background-color: #e6dccd;      /* világos bézs */
    color: #5a4632;
    border: 1px solid #c8b89e;
}

/* Aktív tab */
#jevents_body .jev_bootstrap .nav-tabs > li.active > a,
#jevents_body .jev_bootstrap .nav-tabs > li.active > a:hover {
    background-color: #8b6a45;      /* főbarna */
    color: #ffffff;
    border-color: #8b6a45;
}
/* Facebook ikon kikapcsolása */
.article-social-share,
.social-share,
.social-share-icon {
  display: none !important;
}

/* ==============================
   Joomla 2.5 -> 4.x migrált képek
   Mobil képarány javítás
   ============================== */

@media (max-width: 768px) {

  /* Cikkekben lévő összes kép */
  .com-content article img,
  .item-page img,
  .blog img {

    max-width: 100% !important;
    width: auto !important;

    height: auto !important;
    min-height: 0 !important;

    object-fit: contain;

    display: block;
  }
}
@media (max-width: 768px) {

  .com-content article img,
  .item-page img,
  .blog img {

    max-width: 100% !important;
    width: auto !important;
    height: auto !important;

    aspect-ratio: auto !important;
    object-fit: contain;

    display: block;
  }

  /* Szülő elemek ne torzítsanak */
  .com-content article figure,
  .item-page figure {
    height: auto !important;
  }
}
/* =================================================
   JCE által inline méretezett képek javítása mobilon
   ================================================= */

@media (max-width: 768px) {

  .articleBody p > img,
  .articleBody img {

    width: 100% !important;
    height: auto !important;

    max-width: 100% !important;
    min-height: 0 !important;

    box-sizing: border-box;
  }

}

/* ==================================================
   JCE / HTML width+height attribútumos képek javítása
   ================================================== */

@media (max-width: 768px) {

  .articleBody img {

    width: 100% !important;
    height: auto !important;

    max-width: 100% !important;

    aspect-ratio: auto !important;

    display: block;
  }

}

.igrice-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.igrice-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 768px) {

  .igrice-video {
    margin-left: 0;
    margin-right: 0;
  }

}


/* Mobilon ne lógjon ki SEMMI jobbra */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {

  /* Joomla cikk fő konténer */
  .item-page,
  .item-page .articleBody,
  .item-page .entry-content {
    max-width: 100%;
    overflow-x: hidden;
  }

}
/*
@media (min-width: 992px) {
  .sp-page-builder-row,
  .sp-row {
    display: flex !important;
    flex-wrap: nowrap !important;
  }
}
.igrice-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 25px 0 35px;
}

@media (min-width: 900px) {
  .igrice-video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.igrice-video-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.igrice-video-item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}