/* ============================================================
   Pannonhalmi Főapátság – Szegedi SoB Technikuma
   custom.css  |  2026
   ============================================================ */

/* ── CSS változók ── */
:root {
  --primary:        #24375c;
  --primary-dark:   #14243d;
  --primary-light:  #2f4a7a;
  --accent:         #f3b545;
  --accent-dark:    #d49520;
  --light-bg:       #f6f8fb;
  --text:           #132033;
  --text-muted:     #687386;
  --border:         #dfe6ef;
  --white:          #ffffff;
  --shadow-sm:      0 4px 12px rgba(20,36,61,.07);
  --shadow-md:      0 12px 30px rgba(20,36,61,.10);
  --shadow-lg:      0 20px 50px rgba(20,36,61,.15);
  --radius:         1rem;
  --radius-sm:      .55rem;
  --transition:     .25s cubic-bezier(.4,0,.2,1);
}

/* ── Base ── */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'Merriweather Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── Felső info-sáv ── */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  letter-spacing: .01em;
  border-bottom: 2px solid var(--accent);
}
.top-bar a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--transition);
}
.top-bar a:hover { color: var(--accent); }
.top-bar .bi { font-size: .95rem; }

/* ── Fejléc ── */
.site-header {
  background: var(--white);
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: var(--shadow-sm);
}

.header-text .school-name {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .2rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
}
.header-text .school-subtitle {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  margin: 0;
}

/* ─── FADE-LOGÓ ─── */
.dual-logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
}

.dual-logo-wrap .logo-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.dual-logo-wrap .logo-fade.active {
  opacity: 1;
}

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-slow-reverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* ── Navigáció ── */
.main-nav {
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
}
.main-nav .nav-link {
  color: rgba(255,255,255,.88);
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .95rem .85rem;
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--accent);
  transition: left var(--transition), right var(--transition);
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { left: 0; right: 0; }
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

/* ── Hero Carousel ── */
.hero-slide {
  min-height: 540px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,36,61,.82) 0%, rgba(20,36,61,.30) 65%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  animation: fadeInUp .6s ease both;
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: 2px solid rgba(255,255,255,.3);
  transition: background var(--transition);
}
.carousel-indicators .active { background: var(--accent); border-color: var(--accent); }

/* ── Belső oldalak hero sávja ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white); padding: 4rem 0 3rem; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(243,181,69,.08); top: -120px; right: -80px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }

/* ── Szekciók ── */
.section-padding { padding: 5rem 0; }

.section-title {
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: .45rem;
}
.section-lead {
  color: var(--text-muted);
  max-width: 680px;
}

/* ── Info csempék ── */
.info-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.info-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.info-tile .tile-icon {
  width: 52px; height: 52px;
  border-radius: .75rem;
  background: rgba(243,181,69,.15);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.info-tile .tile-icon i { color: var(--accent); font-size: 1.5rem; }

/* ── Hírek ── */
.news-card {
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-card img { height: 200px; object-fit: cover; }
.badge-sob {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: .04em;
}

/* ── Képzési területek ── */
.program-section { background: var(--light-bg); }

.overview-tile {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.1rem 1.2rem; background: var(--white);
  display: flex; align-items: center; gap: .9rem;
  transition: box-shadow .2s, transform .2s; cursor: default;
}
.overview-tile:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.overview-tile .ov-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--primary-dark); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.overview-tile .ov-name { font-weight: 700; font-size: .9rem; color: var(--primary-dark); }
.overview-tile .ov-count { font-size: .78rem; color: var(--text-muted); }
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.program-card .prog-icon {
  width: 60px; height: 60px;
  border-radius: 1rem;
  background: var(--light-bg);
  display: grid; place-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  transition: background var(--transition);
}
.program-card:hover .prog-icon { background: rgba(243,181,69,.18); }
.program-card h3 { color: var(--primary-dark); font-weight: 700; }

/* ── CTA sáv ── */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(243,181,69,.08);
  top: -100px; right: -80px;
  pointer-events: none;
}
.cta-strip::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -60px; left: 5%;
  pointer-events: none;
}

/* ── Statisztikák sáv ── */
.stats-section {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
}
.stat-item { text-align: center; }
.stat-item .stat-number {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-item .stat-label { font-size: .9rem; opacity: .8; margin-top: .4rem; }

/* ── Footer ── */
.footer-top {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2rem 0;
  border-bottom: 3px solid var(--accent);
}
.footer-top .dual-logo-wrap { width: 72px; height: 72px; flex: 0 0 72px; }
.footer-top .dual-logo-wrap .logo-fade { border-radius: 50%; }

.footer-main {
  background: #f8fafc;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-main h3 { color: var(--primary); font-weight: 700; margin-bottom: 1rem; }
.footer-main a:not(.social-btn) {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-block;
  margin-bottom: .35rem;
}
.footer-main a:not(.social-btn):hover { color: var(--primary); }

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--primary-dark);
  text-decoration: none;
  margin-right: .4rem;
  margin-bottom: .4rem;
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}
.social-btn svg {
  display: block;
  flex-shrink: 0;
}
.social-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.footer-bottom {
  background: var(--white);
  border-top: 3px solid var(--accent);
  padding: 1rem 0;
  font-size: .88rem;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--primary); }

/* ── Favicon generátor segéd ── */
.school-mark-fallback {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.1rem;
  letter-spacing: .04em;
  flex: 0 0 auto;
}

/* ── Hamburger gomb ── */
.main-nav .navbar-toggler {
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  padding: .45rem .65rem;
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
  margin: .5rem 0;
}
.main-nav .navbar-toggler:hover,
.main-nav .navbar-toggler:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--accent);
  box-shadow: none;
  outline: none;
}
.main-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.4em;
  height: 1.4em;
}

/* ── Reszponzív ── */
@media (max-width: 991px) {
  .dual-logo-wrap { width: 76px; height: 76px; flex: 0 0 76px; }
  .main-nav .nav-link { padding: .7rem 1rem; }
  .main-nav .navbar-collapse { border-top: 1px solid rgba(255,255,255,.1); }
  .main-nav .nav-item { border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav .nav-item:last-child { border-bottom: none; }
  .main-nav .nav-link::after { display: none; }
}
@media (max-width: 768px) {
  .hero-slide { min-height: 400px; }
  .header-text .school-name { font-size: .95rem; }
  .section-padding { padding: 3.5rem 0; }
  .stat-item + .stat-item { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; margin-top: 1.5rem; }
  .top-bar .container { max-width: 100%; }

}
@media (prefers-reduced-motion: reduce) {
  .logo-fade { transition: none !important; }
}


/* WordPress compatibility */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.sob-main-content > .carousel:first-child,
.sob-main-content > section:first-child { margin-top: 0; }
.wp-site-blocks { padding: 0 !important; }
.site-header .custom-logo { max-width: 100px; height: auto; }
.navbar-nav .menu-item { list-style: none; }
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a { color: var(--white); background: rgba(255,255,255,.08); }
.navbar-nav .current-menu-item > a::after,
.navbar-nav .current_page_item > a::after { left: 0; right: 0; }
img { max-width: 100%; height: auto; }
.sob-main-content a { text-underline-offset: .18em; }


/** Menü **/

/* --- WordPress Bootstrap Almenü Kezelés --- */

/* Asztali nézeten (992px felett) az almenü elrejtése és formázása */
@media (min-width: 992px) {
    /* Pozicionáljuk a szülő menüpontot */
    .navbar-nav .menu-item-has-children {
        position: relative;
    }

    /* Az almenü (sub-menu) alaphelyzetben rejtett és abszolút pozicionált */
    .navbar-nav .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: none; /* Alapból rejtve */
        min-width: 10rem;
        padding: 0.5rem 0;
        margin: 0;
        font-size: 1rem;
        color: #212529;
        text-align: left;
        list-style: none;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid rgba(0, 0, 0, .15);
        border-radius: 0.25rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    /* Az almenüben lévő linkek formázása (Bootstrap dropdown-item stílus) */
    .navbar-nav .sub-menu a {
        display: block;
        width: 100%;
        padding: 0.25rem 1.5rem;
        clear: both;
        font-weight: 400;
        color: #212529;
        text-align: inherit;
        text-decoration: none;
        white-space: nowrap;
        background-color: transparent;
        border: 0;
        transition: background-color 0.15s ease-in-out;
    }

    /* Hover effektus az almenü linkjeire */
    .navbar-nav .sub-menu a:hover {
        color: #1e2125;
        background-color: #f8f9fa;
    }

    /* A VARÁZSLAT: Ha a főmenüpont fölé viszed az egeret, megjelenik az almenü */
    .navbar-nav .menu-item-has-children:hover > .sub-menu {
        display: block;
    }
}

/* Mobil nézeten (992px alatt) egymás alá nyílnak le az elemek */
@media (max-width: 991.98px) {
    .navbar-nav .sub-menu {
        padding-left: 1.5rem; /* Beljebb toljuk, hogy látszódjon a hierarchia */
        list-style: none;
        background: transparent;
        border: none;
    }
    
    .navbar-nav .sub-menu a {
        padding: 0.5rem 0;
        color: rgba(255, 255, 255, 0.75); /* Ha sötét a menüd, ha világos, írd át sötétre */
        text-decoration: none;
        display: block;
    }
}

.page-hero a {
	text-underline-offset: .18em;
  --bs-text-opacity: 1;
  color: rgba(255,255,255,.5) !important;
  text-decoration: none !important;
}

.wpforms-field-medium {
	width: 100%;
  	min-width: 100%;
  	max-width: 100%;
  	margin: 0;
  	padding: 0;
}

