/* ==========================================================================
   site.css — replaces the styling previously provided by Joomla extensions
   (BA Gallery, DPCalendar/JEvents, BA Forms, Smart Search, Droptables).
   ========================================================================== */
.djacc { font-family: Roboto, sans-serif; }
.djacc--sticky.djacc-popup { margin: 20px 20px; }
#mod-custom98 { background-image: url("/images/tovabb.jpg"); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Gallery ---------- */
.sg { --sg-cols: 4; --sg-gap: 15px; margin: 0 auto; padding: 0 var(--sg-gap); max-width: 1600px; }
.sg-masonry { column-count: var(--sg-cols); column-gap: var(--sg-gap); }
.sg-masonry .sg-item { break-inside: avoid; margin-bottom: var(--sg-gap); display: inline-block; width: 100%; background: #fff; }
.sg-masonry.sg-js { column-count: auto; display: flex; gap: var(--sg-gap); align-items: flex-start; }
.sg-masonry.sg-js .sg-col { flex: 1 1 0; min-width: 0; }
.sg-grid { display: grid; grid-template-columns: repeat(var(--sg-cols), 1fr); gap: var(--sg-gap); max-width: 1200px; }
.sg-item a { display: block; color: inherit; text-decoration: none; }
.sg-img { position: relative; display: block; overflow: hidden; background: #f2f2f2; }
.sg-img img { display: block; width: 100%; height: auto; transition: transform .4s ease, opacity .3s; }
.sg-item a:hover .sg-img img { transform: scale(1.05); }
.sg-masonry .sg-title { display: block; padding: 12px 10px 18px; color: rgb(20, 85, 159); font-size: 20px; font-weight: bold; text-align: center; line-height: 1.3; }
/* grid style (Eredményeink): square tiles, caption on hover */
.sg-grid .sg-item { position: relative; }
.sg-grid .sg-img { aspect-ratio: 1 / 1; }
.sg-grid .sg-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-grid .sg-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
  background: rgba(20, 85, 159, .85); color: #fff; font-size: 18px; font-weight: bold; opacity: 0; transition: opacity .3s; }
.sg-grid .sg-item a:hover .sg-title, .sg-grid .sg-item a:focus .sg-title { opacity: 1; }
.sg-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.55); }
.sg-play::after { content: ""; position: absolute; left: 25px; top: 18px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.sg-item.sg-target .sg-img { outline: 4px solid rgb(31, 104, 222); }
.fancybox-caption h3 { color: #fff; margin: 0 0 8px; font-size: 18px; }
.fancybox-caption { text-align: left; max-width: 900px; margin: 0 auto; }
@media (max-width: 991px) { .sg { --sg-cols: 3 !important; } }
@media (max-width: 767px) { .sg { --sg-cols: 2 !important; } }
@media (max-width: 480px) { .sg { --sg-cols: 1 !important; } }

/* ---------- Tables (formerly Droptables) ---------- */
.droptables_table { margin: 0 auto 30px; max-width: 100%; }
.droptablesresponsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.droptablestable table { border-collapse: collapse; margin: 0 auto; }
.droptablestable table td, .droptablestable table th { padding: 4px 8px; }

/* ---------- Calendar ---------- */
.sc-cal { max-width: 1100px; margin: 30px auto 0; font-family: 'Montserrat', Arial, sans-serif; }
.sc-cal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.sc-cal__title { font-family: 'Merriweather', serif; font-size: 22px; color: #04223c; margin: 0; text-transform: capitalize; }
.sc-cal__btns button { background: #1f68de; color: #fff; border: 0; padding: 8px 14px; margin-left: 4px; cursor: pointer; font-weight: 700; }
.sc-cal__btns button:hover { background: #212121; }
.sc-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid #ddd; border-top: 1px solid #ddd; }
.sc-cal__dow { background: #04223c; color: #fff; text-align: center; padding: 8px 2px; font-size: 13px; font-weight: 700; border-right: 1px solid #ddd; }
.sc-cal__day { min-height: 96px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 4px; font-size: 12px; background: #fff; }
.sc-cal__day--out { background: #f7f7f7; color: #aaa; }
.sc-cal__day--today { background: #eef4ff; }
.sc-cal__num { font-weight: 700; display: block; margin-bottom: 3px; }
.sc-cal__ev { display: block; border-left: 4px solid #1f68de; background: #f2f6fc; padding: 2px 4px; margin-bottom: 2px; line-height: 1.25; color: #04223c; }
.sc-cal__list { margin-top: 30px; }
.sc-cal__list h3 { font-size: 18px; margin: 20px 0 8px; color: #04223c; }
.sc-cal__list ul { list-style: none; padding: 0; margin: 0; }
.sc-cal__list li { border-left: 4px solid #cfdae3; padding: 6px 10px; margin-bottom: 6px; background: #fafafa; }
.sc-cal__list .sc-cal__date { display: block; font-size: 13px; color: #666; }
.sc-cal__empty { text-align: center; color: #666; padding: 20px 0; }
@media (max-width: 767px) { .sc-cal__grid { display: none; } }

/* ---------- Contact form ---------- */
.contact-form label { display: block; font-weight: 700; margin: 15px 0 6px; color: #04223c; }
.contact-form .required-star { color: #e33b3b; }
.cf-field { position: relative; }
.cf-field i { position: absolute; left: 14px; top: 16px; color: #1f68de; }
.cf-field input, .cf-field textarea { width: 100%; border: 1px solid #ddd; padding: 12px 12px 12px 42px; font-size: 16px; font-family: inherit; background: #fff; }
.cf-field textarea { min-height: 180px; resize: vertical; }
.cf-submit { margin-top: 25px; background: rgb(31, 104, 222); color: #fff; border: 0; padding: 20px 60px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background .3s; }
.cf-submit:hover { background: #212121; }
.cf-note { margin-top: 15px; font-size: 14px; color: #666; }

/* ---------- Search ---------- */
.site-search__form { display: flex; gap: 10px; max-width: 700px; margin: 0 auto 25px; }
.site-search__form input { flex: 1; border: 1px solid #ddd; padding: 12px; font-size: 16px; }
.site-search__count { text-align: center; color: #666; }
.site-search__results { max-width: 800px; margin: 0 auto; padding-left: 20px; }
.site-search__results li { margin-bottom: 18px; }
.site-search__results a { font-weight: 700; font-size: 18px; }
.site-search__results p { margin: 4px 0 0; color: #555; }
.site-search__results mark { background: #fff2a8; padding: 0; }
