/* Study In Hungary BD — base styles */

:root {
  --green: #17a34a;
  --green-dark: #128a3e;
  --navy: #1b2033;
  --navy-2: #262c44;
  --ink: #16192a;
  --gray: #5b6270;
  --line: #e4e7ee;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 12px;
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--gray); }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.site-logo { display: flex; align-items: center; margin-right: auto; }
.site-logo-img { height: 40px; width: auto; display: block; }
.site-nav { display: none; }
.nav-list { display: flex; gap: 26px; }
.nav-list a { font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-list a:hover { color: var(--green); }
.header-cta { display: none; }
.nav-toggle { display: flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

@media (min-width: 900px) {
  .site-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-drawer { position: fixed; inset: 0; top: 62px; background: #fff; z-index: 49; transform: translateX(100%); transition: transform .25s ease; }
.mobile-drawer:not([inert]) { transform: translateX(0); }
.mobile-drawer nav ul { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; }
.mobile-drawer nav a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .mobile-drawer { display: none; } }

/* Footer */
.site-footer { background: var(--navy); color: #c7cbe0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 46px 24px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-tagline { color: #aeb3cc; font-size: 14.5px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--green); }
.footer-col h3, .footer-brand h3 { color: #d8ac2f; font-size: 15px; margin-bottom: 14px; }
.footer-contact p { color: #c7cbe0; font-size: 14.5px; display: flex; gap: 8px; align-items: flex-start; }
.footer-icon { flex-shrink: 0; color: #7fe0a3; display: inline-flex; margin-top: 2px; }
.footer-contact a { color: #c7cbe0; }
.footer-contact .btn { margin-top: 12px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; }
.newsletter-form input::placeholder { color: #8b90ab; }
.footer-links { max-width: 1320px; margin: 0 auto; padding: 0 24px 24px; display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }
.footer-links a { font-size: 13.5px; color: #aeb3cc; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #8b90ab; }

/* ---------- Global mobile ---------- */
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 22px 28px; }
  .footer-links { padding: 18px 22px 20px; gap: 14px; }
  .footer-contact .btn { max-width: 360px; }
  .newsletter-form { max-width: 360px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 23px; }
  .section-head p { font-size: 15px; }
  .page-content { padding: 44px 20px; }
  .page-content h1 { font-size: 27px; }
  .page-content h2 { font-size: 20px; }
  .page-content p, .page-content li { font-size: 15px; }
}

/* Shared line-list (meta textarea rendered as bullet list) */
.sihb-line-list li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 15px; color: var(--ink); }
.sihb-line-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }

/* Generic page content wrapper (for recoded static pages) */
.page-content { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.page-content h1 { font-size: 34px; margin-bottom: 18px; }
.page-content h2 { font-size: 24px; margin: 32px 0 14px; }
.page-content p, .page-content li { color: var(--gray); font-size: 16px; }
.page-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* Section heading helper used across pages */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 30px; }
.section-head p { font-size: 16px; }

/* CookieAdmin consent banner override: the plugin's default "box" style is a
   tall (~290px) fixed block pinned to the bottom-left corner, which overlaps
   the university directory's sidebar filters (and any other left-column
   content) until the visitor accepts/rejects/customizes it. Force it into a
   slim, full-width bottom bar instead so it never blocks page content. */
.cookieadmin_law_container.cookieadmin_box {
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	border-radius: 0 !important;
}
.cookieadmin_law_container .cookieadmin_consent_inside {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px 24px !important;
	max-height: 45vh !important;
	overflow-y: auto !important;
	padding: 14px 20px !important;
}
.cookieadmin_law_container #cookieadmin_notice_title { margin: 0 !important; flex: 1 1 100%; }
.cookieadmin_law_container .cookieadmin_notice_con { flex: 1 1 320px !important; }
.cookieadmin_law_container #cookieadmin_notice { margin: 0 !important; font-size: 13px !important; }
.cookieadmin_law_container .cookieadmin_consent_btns { display: flex !important; gap: 8px !important; flex-shrink: 0 !important; flex-wrap: wrap; }
