/* ==========================================================================
   2. Core Site Layout & Styles
   ========================================================================== */

:root {
	--page-bg: #f3efe7;
	--page-shell-bg: #fffdf9;
	--nav-bg: #e9d7ab;
	--nav-bg-strong: #d0ae68;
	--nav-text: #2f2318;
	--content-text: #2c241d;
	--link: #8e6741;
	--border-soft: rgba(41, 38, 23, 0.18);
	--panel-bg: #f8f3ec;
	--shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
	--card-border: 1px solid rgba(47, 35, 24, 0.14);
	--card-radius: 12px;
	--card-shadow: 0 2px 10px rgba(31, 22, 15, 0.08);
	--card-shadow-hover: 0 6px 16px rgba(31, 22, 15, 0.13);
	--card-transition: box-shadow 0.3s ease;
	--grid-gap: 15px;
	--grid-row-gap: 40px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@font-face {
  font-family: MainTitle;
  src: url('../fonts/PlayfairDisplay-Bold.ttf');
}

@font-face {
    font-family: 'stamp_symbolsregular';
    src: url('../fonts/stampsymbols-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#specfont {
	font-family: stamp_symbolsregular;
	font-size: 11px;
	display: inline-block;
	font-style: normal;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	background: linear-gradient(180deg, #f0e8dc 0%, #f8f4ee 100%);
	color: var(--content-text);
}

@media (max-width: 768px) {
	body {
		overflow-x: hidden;
	}
}

/* Headings use Lora (elegant serif for historical context) */
h3, h4 {
	font-family: 'Lora', Georgia, 'Times New Roman', serif;
	font-weight: 700;
	line-height: 1.3;
}

/* h2 uses modern sans-serif */
h2 {
	font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 600;
	line-height: 1.4;
}

#container {
	width: 96%;
	max-width: 1720px;
	margin: 14px auto;
	background: var(--page-shell-bg);
	box-shadow: var(--shadow-soft);
	border-radius: 16px;
	overflow: hidden;
}

/* top menu begins */
#layoutMenu {
	position: relative;
	height: 32px;
	background: linear-gradient(180deg, #f0dfb8 0%, #d8b875 100%);
	border-bottom: 1px solid rgba(80, 50, 15, 0.2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.04);
	z-index: 100;
}

#layoutMenu nav {
	height: 100%;
}
/* top menu ends */

/* header begins*/
#layoutHeader {
	background-color: var(--page-shell-bg);
	background-image: url(../images/ibk.png), url(../images/header.jpg);
	background-repeat: no-repeat, no-repeat;
	background-position: left top, 116px top;
	background-size: 116px 116px, auto 116px;
	position: relative;
	width: 100%;
	height: 116px;
	border-bottom: 1px solid var(--border-soft);
}

.maintitle {
	text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
	color: #333;
	opacity: 1;
	font: min(max(21px, 3vw), 60px) 'MainTitle';
	position: absolute;
	bottom: 1px;
	right: 10px;
	white-space: nowrap;
}

.maintitle br {
	display: none;
}
/* header ends*/

/*central wrapper begins*/
#layoutCenterBody {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 10px 5px 0 10px;
	padding-bottom: 18px;
}

#layoutNavigation {
    width: 200px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, #f9f4ec 0%, #f1e7d8 100%);
    float: none;
    flex: 0 0 200px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    border-radius: 12px;
    overflow: hidden;
}

#layoutBodyContent {
	margin-left: 0;
	margin-right: 0;
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	width: 100%;
	padding: 16px 20px;
	background: linear-gradient(180deg, rgba(248,243,236,0.95), rgba(255,255,255,0.8));
	border: 1px solid rgba(54, 44, 34, 0.12);
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(41, 38, 23, 0.04);
}

#layoutBodyContent[class],
#layoutBodyContent[class*="-page"],
#layoutBodyContent.news-page,
#layoutBodyContent.intro-page,
#layoutBodyContent.contact-page,
#layoutBodyContent.catalogues-page,
#layoutBodyContent.search-page,
#layoutBodyContent.details-page,
#layoutBodyContent.stats-page,
#layoutBodyContent.faq-page,
#layoutBodyContent.donators-page,
#layoutBodyContent.history-page,
#layoutBodyContent.join-page,
#layoutBodyContent.join,
#layoutBodyContent.intro,
#layoutBodyContent.intro-redesign,
#layoutBodyContent.reviews-page,
#layoutBodyContent.awards-page,
#layoutBodyContent.nano-album-page,
#layoutBodyContent.videos-page,
#layoutBodyContent.pdetails-page,
#layoutBodyContent.cinderellas-page,
#layoutBodyContent.links-page,
#layoutBodyContent.commem-page,
#layoutBodyContent.prnd-page,
#layoutBodyContent.mono-page,
#layoutBodyContent.upu-page,
#layoutBodyContent.cancels-page,
#layoutBodyContent.type-page {
	width: 100%;
	max-width: 1680px;
	margin: 0 auto;
	padding: 8px 12px 32px !important;
	box-sizing: border-box;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

#layoutBodyContent > :first-child {
	margin-top: 0;
}

#layoutBodyContent a:link, #layoutBodyContent a:visited {
    color: var(--link);
    text-decoration: none;
}

#layoutBodyContent h1 {
    color: var(--content-text);
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 14px;
}

#layoutBodyContent h2 {
	color: var(--content-text);
}

#layoutBodyContent p {
    margin-top: 5px;
	color: var(--content-text);
}

.clearer {
    clear: both;
    height: 0;
    line-height: 0;
    font-size: 0;
}

#layoutFooter {
	clear: both;
    height: 34px;
    background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
    border-top: 1px solid rgba(41, 38, 23, 0.25);
    overflow: hidden;
}

#layoutFooter .siteinfoLegal {
    float: right;
    padding: 6px;
}

#layoutNavigation .navTitle {
    background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
    color: var(--nav-text);
    font-weight: bold;
    padding: 6px 8px;
    letter-spacing: 0.02em;
    margin: 0 !important;
}

#layoutNavigation1 {
	padding: 0;
}

#layoutNavigation ul.topnav,
#layoutNavigation ul.topnav ul,
#layoutNavigation dl.table-display {
	margin: 0 !important;
	padding: 0 !important;
}

#layoutNavigation ul.topnav li {
	margin: 0;
	padding: 0;
}

#layoutNavigation .topnav li:last-child a {
	border-bottom: none;
}

#layoutNavigation a {
	display: block;
	background: transparent;
	border-bottom: 1px solid rgba(98, 76, 51, 0.18);
	margin: 0;
    color: #3d2f22;
    text-decoration: none;
	padding: 5px 10px;
	line-height: 1.45;
}

#layoutNavigation a:hover {
    color: #2a1f17;
	background: rgba(116, 89, 55, 0.06);
}

#layoutNavigation .active a {
	color: #2a1f17;
	font-weight: bold;
	background: rgba(116, 89, 55, 0.1);
}


#layoutNavigation .topnav ul {
	display: none;
	padding-left: 10px !important;
}

#layoutNavigation .topnav span {
	float: right;
}

.centered-max-860 {
	margin: auto;
	max-width: 860px;
}

.centered-block {
	margin: auto;
}

.text-justify {
	text-align: justify;
}

#layoutFooter .siteinfoLegal .footer-license-icon {
	height: 22px !important;
	margin-left: 3px;
}

#layoutFooter .siteinfoLegal .footer-license-icon.last {
	margin-right: 3px;
}
/* ==========================================================================
   6. Fancybox Archival & Document Reader Customizations
   ========================================================================== */
/* Loaded from css/fancybox-settings.css (matching pew.ibk10025.hu) */

/* ==========================================================================
   7. Floating Scroll-to-Top Button
   ========================================================================== */

#back-to-top-btn {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 46px;
	height: 46px;
	background: #80602e;
	color: #ffffff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999;
	transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

#back-to-top-btn:hover {
	background: #5d4421;
	transform: translateY(-3px);
}



