/* Alapbeállítások */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/LibreBaskerville-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/LibreBaskerville-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/LibreBaskerville-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Rovas_Szoke';
  src: url('fonts/rovasjb.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rovas_Szoke';
  src: url('fonts/rovasbj.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
body {
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    color: #1f2a1f;
    line-height: 1.6;
}

h1, h2, h3, .menu-title {
  font-family: 'Cormorant Garamond', serif;
}

html {
  scroll-behavior: smooth;
}

.split-left,
.split-right {
  padding-top: 20px;
}
.split-left h2 {
  margin-top: 0;
}
	
/* Link változatlan marad */
a:link,
a:visited {
    color: inherit;      /* az általad használt arany árnyalat #c9a24d*/
    text-decoration: underline;
}

a:hover {
    opacity: 0.65;
}
a:active {
    color: inherit;      /* finom világosodás rámutatáskor #e6d8a3*/
    text-decoration: none;
}



/* Fix háttér */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(20, 45, 30, 0.95),
        rgba(20, 45, 30, 0.95)
    );
    z-index: -1;
}

/* Oldalsó menü */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 90px;
    height: 100vh;
    background: rgba(15, 35, 25, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
}

/* Cím a menüben */
.site-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    letter-spacing: 2px;
    color: #c9a24d;
    margin-bottom: 40px;
}

/* Menüelemek */
.sidebar a {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-decoration: none;
    color: #e6d8a3;
    margin: 18px 0;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Tartalom */
.content {
    margin-left: 90px;
    padding: 60px 32px;
    max-width: 900px;
}

/* Oldal teteje */
.page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    margin-bottom: 60px;
    color: #c9a24d;
}

/* Szekciók */
section {
    margin-bottom: 80px;
    background: rgba(255, 255, 245, 0.92);
    padding: 32px;
}

section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    margin-bottom: 20px;
    color: #2f4f3a;
}

section h2 a {
    color: inherit;
    text-decoration: none;
    display: inline-block;	
}

section h2 a:hover {
    opacity: 0.65;
}

section h3 a {
    color: inherit;
    text-decoration: none;
    display: inline-block;	
}

section h3 a:hover {
    opacity: 0.65;
}

/* A halványodás maradjon */
section p a:hover {
    opacity: 0.65;
}

/* Szekciók megosztása */
.split-section {
    display: flex;
    gap: 32px;               /* a szöveg és a kép közti távolság */
    align-items: flex-start; /* igazítás tetejére */
    flex-wrap: wrap;         /* mobilon sorba rendeződés */
}

/* Szöveg oszlop */
.split-section .text {
    flex: 1 1 400px;         /* rugalmas szélesség, minimum 400px */
    min-width: 250px;        /* nagyon keskeny képernyőn se törjön össze */
}

/* Kép oszlop */
.split-section .image {
    flex: 0 0 240px;         /* fix szélesség a képnek */
    display: flex;
	 /* justify-content: center; - kép középre igazítása az oszlopban */
	flex-direction: column;
	align-items: flex-start; /* minden felülről indul */
    margin-top: 0;           /* mobilnál a margin-top külön beállítva */
	
}

/* Kép beállítások */
.split-section img {
    width: 100%;             /* kitölti a .image oszlopot */
    max-width: 240px;        /* ne nőjön túl a fix méretén */
    height: auto;
    border-radius: 4px;
    opacity: 0.9;
}


/* Sorkizárt törzsszöveg */
section p {
    text-align: justify;
	hyphens: auto;
}

/* Laptop finomítás */
@media (min-width: 1024px) {
    .sidebar {
        width: 120px;
    }

    .content {
        margin-left: 120px;
    }

    .sidebar a,
    .site-title {
        writing-mode: horizontal-tb;
        transform: none;
        text-align: center;
    }
}

/* Desktop layout stabilizálása (Firefox, cache edge cases) 
@media (min-width: 901px) {
    .split-section {
        flex-direction: row;
        flex-wrap: nowrap;
    }
}
*/
	
/* Mobil */
@media (max-width: 900px) {
    .sidebar {
        width: 70px;
    }

    .content {
        margin-left: 70px;
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 42px;
    }
	.split-section {
        flex-direction: column;  /* oszlopok egymás alá */
        gap: 16px;               /* kisebb távolság mobilon */
    }

 .split-section .text {
        flex: 1 1 100%;  /* teljes szélesség */
        min-width: 0;    /* nagyon fontos, hogy a szöveg törjön és ne legyen scroll */
    }
	
     .split-section .image {
        flex: 1 1 100%;  
        width: 100%;
        display: flex;
        justify-content: center; /* kép középre mobilon */
        margin-top: 20px;
    }

    .split-section img {
        max-width: 85%;  /* ne legyen túl nagy mobilon */
        height: auto;
    }
}	

