* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e6dec5;
    background-image: url("https://www.transparenttextures.com/patterns/p6.png");
    color: #4b3a26;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    cursor: default;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Felső sáv */
.top-bar {
    background-color: #5d4037;
    color: #e6dec5;
    padding: 12px 0;
    font-weight: 700;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: #e6dec5;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.top-bar a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.top-bar .contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Elrendezés - Főoldal */
.main-content {
    padding: 50px 0;
}

.row {
    display: flex;
    gap: 40px;
}

.intro {
    flex: 0.8;
}

.intro-text {
    margin-bottom: 25px;
}

.intro-text p {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.services-grid {
    flex: 1.2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 0.95;
    color: #5d4037;
    margin-bottom: 30px;
}

.address-box {
    margin-bottom: 20px;
}

.address-box p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.btn-brown {
    background-color: #5d4037;
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 30px;
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-brown:hover {
    background-color: #432d26;
    transform: translateY(-2px);
}

.map-container {
    width: 100%;
    max-width: 20rem;
    height: 18rem;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

/* Kártyák alapstílusa */
.card {
    border-radius: 20px;
    padding: 25px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Színkódok */
.green {
    background-color: #8ba36a;
    color: white;
}

.red {
    background-color: #bd7966;
    color: white;
}

.yellow {
    background-color: #f2ca52;
    color: #4b3a26;
}

.dark-gold {
    background-color: #2b1d12;
    color: white;
}

/* Kártya tartalom */
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.default-content {
    font-size: 0.95rem;
    line-height: 1.4;
}

.default-content p {
    margin-bottom: 4px;
}

.hover-content {
    display: none;
    animation: fadeIn 0.3s ease;
    font-size: 0.92rem;
    line-height: 1.4;
}

.hover-content p {
    margin-bottom: 5px;
}

.hover-content .small {
    font-size: 0.85rem;
    opacity: 0.9;
}

.hover-content .btn-details {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.25);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.hover-content .btn-details:hover {
    background: rgba(255,255,255,0.4);
}

.yellow .hover-content .btn-details {
    background: rgba(0,0,0,0.1);
}

.yellow .hover-content .btn-details:hover {
    background: rgba(0,0,0,0.18);
}

.card:hover .default-content {
    display: none;
}

.card:hover .hover-content {
    display: block;
}

/* SPECIÁLIS OSZTOTT KÁRTYA STÍLUS - FÜGGŐLEGES ELRENDEZÉS */
.split-card {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    overflow: hidden;
    gap: 0 !important;
}

.split-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    text-align: center;
    transition: flex 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease;
    width: 100%;
    min-height: 0;
    z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.split-section:last-child {
    border-bottom: none;
}

.split-default {
    font-size: 0.95rem;
    line-height: 1.35;
}

.split-hover {
    display: none;
    opacity: 0;
    font-size: 0.9rem;
    line-height: 1.35;
}

.split-hover p {
    margin-bottom: 4px;
}

.split-hover .small {
    font-size: 0.82rem;
    opacity: 0.9;
}

.split-section:hover {
    flex: 9;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.split-section:hover .split-default {
    display: none;
}

.split-section:hover .split-hover {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease forwards;
}

.split-card:hover .split-section:not(:hover) {
    flex: 1;
    padding: 5px;
    opacity: 0.45;
}

/* FIX LOGÓ A SAROKBAN */
.fixed-corner-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
    padding: 5px;
    pointer-events: none;
}

.fixed-corner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Logó körök */
.logo-circle {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Facebook linkek */
.facebook-link {
    margin-top: 15px;
}

.facebook-link a,
.facebook-link a:visited,
.facebook-link a:link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #4b3a26 !important;
    transition: transform 0.2s ease;
}

.facebook-link a:hover {
    transform: translateX(4px);
}

.facebook-link img {
    width: 4.5rem;
    height: 4.5rem;
}

.facebook-link a:hover span {
    color: #5d4037 !important;
}

/* Harmónia kártya */
.harmony-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.large-harmony-logo {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.harmony-text {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.harmony-quote {
    font-style: italic;
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 4px 0;
}

/* Lábléc */
.footer {
    text-align: center;
    padding: 35px 20px;
    color: #5d4037;
    font-size: 0.95rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ALOLDAL STÍLUSOK (SUBPAGE STYLES)
   ========================================================================== */

.subpage-container {
    padding: 40px 0 60px 0;
}

.nav-back-row {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #5d4037;
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-back:hover {
    background-color: #432d26;
    transform: translateX(-3px);
}

.subpage-hero {
    border-radius: 24px;
    padding: 35px 40px;
    margin-bottom: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.subpage-hero-text h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

.subpage-hero.dark-gold h1,
.subpage-hero.green h1,
.subpage-hero.red h1 {
    color: #ffffff;
}

.subpage-hero.yellow h1 {
    color: #4b3a26;
}

.subpage-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 8px;
}

.subpage-hero-doctor {
    font-size: 1.1rem;
    font-weight: 700;
}

.subpage-hero-logo {
    width: 110px;
    height: 110px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.subpage-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Aloldali szekciók és kártyák */
.subpage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.subpage-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-top: 5px solid #5d4037;
    display: flex;
    flex-direction: column;
}

.subpage-card.theme-dark-gold { border-top-color: #2b1d12; }
.subpage-card.theme-green { border-top-color: #8ba36a; }
.subpage-card.theme-red { border-top-color: #bd7966; }
.subpage-card.theme-yellow { border-top-color: #f2ca52; }

.subpage-card h2,
.subpage-card h3 {
    color: #5d4037;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subpage-card h3 {
    font-size: 1.15rem;
    margin-top: 15px;
}

.subpage-card p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #4b3a26;
}

.subpage-card ul {
    list-style: none;
    margin-bottom: 15px;
}

.subpage-card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.subpage-card ul li::before {
    content: "•";
    color: #5d4037;
    font-weight: bold;
    font-size: 1.4rem;
    position: absolute;
    left: 6px;
    top: -2px;
}

/* Kiemelt információs doboz */
.highlight-box {
    background: rgba(93, 64, 55, 0.07);
    border-left: 4px solid #5d4037;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 15px 0;
}

.highlight-box p {
    margin-bottom: 6px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Letölthető dokumentumok listája */
.download-list {
    list-style: none !important;
    padding: 0;
    margin: 15px 0;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fbf9f4;
    border-radius: 12px;
    margin-bottom: 12px !important;
    border: 1px solid #ebd9c5;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #4b3a26;
    cursor: pointer;
}

.download-item:hover {
    background: #f3ebd9;
    border-color: #5d4037;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.12);
}

.download-item.pending {
    opacity: 0.75;
    cursor: default;
    background: #f7f5f0;
}

.download-item.pending:hover {
    transform: none;
    box-shadow: none;
    border-color: #ebd9c5;
    background: #f7f5f0;
}

.download-item-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.download-item-title i {
    color: #5d4037;
    font-size: 1.25rem;
}

.download-badge {
    background: #5d4037;
    color: white;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.download-item:hover .download-badge {
    background-color: #3b2822;
}

.download-badge.pending {
    background: #a89f91;
}

/* Médiatár / Videó linkek */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.media-item {
    background: #fbf9f4;
    border: 1px solid #ebd9c5;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: #4b3a26;
    transition: all 0.2s ease;
}

.media-item:hover {
    background: #f5eedf;
    border-color: #bd7966;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.media-icon {
    width: 42px;
    height: 42px;
    background: #e63946;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.media-content {
    flex: 1;
}

.media-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #4b3a26;
}

.media-date {
    font-size: 0.8rem;
    color: #887463;
}

/* Elérhetőség dobozok */
.contact-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.contact-card-item i {
    color: #5d4037;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.contact-card-item a {
    color: #5d4037;
    font-weight: 700;
    text-decoration: none;
}

.contact-card-item a:hover {
    text-decoration: underline;
}

/* Reszponzivitás */
@media (max-width: 1024px) {
    .subpage-hero {
        flex-direction: column-reverse;
        text-align: center;
    }
    .subpage-hero-logo {
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .row {
        flex-direction: column;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding: 30px 0;
    }
    .container {
        padding: 0 20px;
    }
    h1 {
        font-size: 2.8rem;
    }
    .subpage-grid {
        grid-template-columns: 1fr;
    }
}