/* --- 1. GLOBÁLIS ÉS ALAPSTÍLUSOK --- */
.tck-logo-img { width: 250px; height: auto; }
picture img { aspect-ratio: 1920 / 320; }

.text-center { text-align: center; }

.dropdown-menu {
	min-width: 4rem;
	text-align: center;
}

/* Kiemelt bevezető szöveg (Idézet) */
.ds-lead {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    color: #444;
    padding: 0 20px;
    border-left: 4px solid #f07e3b;
    border-right: 4px solid #f07e3b;
    margin-bottom: 2rem;
    font-style: italic;
}

/* --- 2. HERO MODUL ALAP (MOBIL) --- */
.hero-ds {
    padding: 30px 0;
    background-color: #f4f4f4;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    flex-direction: column-reverse; /* Mobilon kép legyen felül */
    gap: 30px;
    align-items: center;
}

.hero-content {
    width: 100%;
    padding: 0 20px; /* Mobil szélső távolság */
    display: flex;
    flex-direction: column;
}

.hero-content h1 {
    font-weight: 700;
    color: #003366;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: left;
    border-left: 15px solid #f28b43; /* Narancs sáv */
    padding-left: 15px; /* Távolság a sávtól */
}

.hero-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: left;
    /* 15px border + 15px padding = 30px, hogy a H1 betűivel egy vonalban legyen */
    padding-left: 30px; 
}

.hero-actions {
    width: 100%;
    display: flex;
    justify-content: center; /* Mobilon a gomb középen marad */
}

.hero-image {
    width: 100%;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* --- ASZTALI NÉZET (992px felett) --- */
@media (min-width: 992px) {
    .hero-wrapper {
        flex-direction: row; /* Szöveg balra, kép jobbra */
        align-items: center;
        gap: 50px;
    }

    .hero-content {
        flex: 1.2;
        padding: 0; /* Itt már nem kell a mobil oldalsó padding */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: flex-start; /* Asztalin a gomb balra ugrik */
        padding-left: 30px; /* Egy vonalba a szöveggel */
    }

    .hero-image {
        flex: 1;
        max-width: none;
    }
}

/* GOMB KÖZÉPRE IGAZÍTÁSA */
/* Feltételezve, hogy a gomb egy <a> vagy <button> tag a .hero-content-en belül */
.hero-content a, 
.hero-content button {
    display: inline-block;
    margin: 0 auto;         /* Biztonsági tartalék a középre igazításhoz */
}

/* ASZTALI NÉZET (Visszaállítjuk a balra igazítást) */
@media (min-width: 992px) {
    .hero-wrapper { 
        flex-direction: row; 
    }
    .hero-content { 
        flex: 1.2; 
        padding-right: 50px; 
        padding-left: 0;    /* Itt levehetjük a mobil paddinget */
        align-items: flex-start; /* Asztali nézetben balra igazítjuk a gombot */
        text-align: left;        /* Asztali nézetben balra igazítjuk a szöveget */
    }
    .hero-image { 
        flex: 1; 
    }
    .hero-content h1 { 
        font-size: 2.2rem; 
    }
}

/* --- 3. KÁRTYA STÍLUSOK (Modern & Product összevonva) --- */
/* Közös alapok a kártyáknak */
.ds-modern-card, .ds-product-card {
    margin: 40px 0;
    counter-reset: step-counter;
}

.ds-modern-card .wf-column, .ds-product-card .wf-column {
    background: #ffffff;
    border: 1px solid #f1f1f1;
    border-bottom: 3px solid #f07e3b; /* Egységes narancs alj */
    padding: 30px 20px !important;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.ds-modern-card .wf-column:hover, .ds-product-card .wf-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.08);
}

/* Kártya Címek */
.ds-modern-card h3, .ds-product-card h3 {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px !important;
    color: #003366;
}

.ds-modern-card h3 { font-size: 1.5rem !important; }
.ds-product-card h3 { 
    font-size: 1.2rem !important; 
    border-bottom: 2px solid #f07e3b;
    display: block;
    padding-bottom: 5px;
}

.ds-reference { 
    background: #ffffff;
    border: 1px solid #f1f1f1;
    padding: 30px 20px !important;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

/* Kártya Szöveg */
.ds-modern-card p, .ds-product-card p {
    font-family: 'Open Sans', sans-serif;
    color: #666;
    margin-bottom: 0;
}
.ds-modern-card p, .ds-product-card p {
    font-size: 1.3rem; line-height: 1.8; 
}

/* Számozás (csak a modern kártyákhoz) */
.ds-modern-card .wf-column::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: 'Oswald', sans-serif !important;
    font-weight: bold;
    font-size: 3rem;
    color: #f07e3b;
    opacity: 0.25; /* Kicsit halványítottam, hogy ne zavarja a szöveget */
    line-height: 1;
    z-index: 1;
}

/* --- 4. STATISZTIKAI SZEKCIÓ --- */
.ds-stats-section {
    padding: 60px 0;
    margin: 40px 0;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-number {
    font-size: 2.8rem;
    color: #f07e3b;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* --- Wraper div --- */
.grid-wrapper {
  background-color: #f2f2f2; /* szürke háttér */
  padding: 20px;             /* hogy ne tapadjon a tartalom a széléhez */
  margin-bottom: 50px;
  border-bottom: 2px solid gray;
}

/* --- 5. GOMBOK --- */
/* Alap gomb stílus (közös tulajdonságok) */
.btn-ds-orange, .btn-ds-blue, .ds-button-link {
    display: inline-block;
    padding: 10px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.12rem;
}

.btn-ds-orange, .ds-button-link {
    background-color: #f07e3b !important;
    color: #ffffff !important;
}

.btn-ds-orange:hover, .ds-button-link:hover {
    background-color: #003366 !important;
}

.btn-ds-blue {
    background-color: #003366 !important;
    color: #ffffff !important;
}

.btn-ds-blue:hover {
    background-color: #f07e3b !important;
}

/* --- 6. LÁBLÉC --- */
.ds-footer {
    background-color: #003366;
    color: #ffffff;
    padding: 60px 0 40px;
    font-family: 'Open Sans', sans-serif;
}

.ds-footer .row { display: flex; align-items: center; flex-wrap: wrap; }
.ds-contact-info { list-style: none; padding: 0; margin: 0; }
.ds-contact-info li { margin-bottom: 12px; display: flex; align-items: center; font-size: 0.95rem; opacity: 0.9; }
.ds-contact-info i { width: 25px; color: #f07e3b; font-size: 1.1rem; margin-right: 10px; } /* Ikon színe narancsra állítva az egységességért */

.ds-footer a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.ds-footer a:hover { color: #f07e3b; }

@media (max-width: 768px) {
    .ds-footer .row, .ds-contact-info li { text-align: center; justify-content: center; }
    .footer-logo { margin-bottom: 30px; }
}


/* --- Desktop nézet (992px felett) --- */
@media (min-width: 992px) {
    .item-content {
        display: flex;
        flex-direction: row; /* Mellérendelés bekapcsolása */
        flex-wrap: wrap;    /* Engedi a címnek, hogy felül maradjon */
    }

    /* A cím, a dátum és a címkék maradjanak 100% szélességen, hogy felül legyenek */
    .item-title, .article-info, .tags {
        width: 100%;
        flex: 0 0 100%;
    }

.blog-items.masonry-2, .blog-items.columns-2 {
column-gap: 2.5em;
row-gap: 3em;
}
   /* Intro kép eltartás */
  figure {
	margin: 0em;
}

/* A teljes cikk konténere flexibilis lesz */
.com_content.view-article .item-page {
    display: flex;
    flex-direction: column;
}

/* 1. hely: Az illusztráció (intro image) */
.com_content.view-article .item-image {
    order: 1;
    margin-bottom: 15px;
}

/* 2. hely: A H1-es cím */
.com_content.view-article .page-header {
    order: 2;
    margin-bottom: 20px;
}

/* 3. hely: Minden más (a cikk törzsszövege) */
.com_content.view-article div[itemprop="articleBody"],
.com_content.view-article .pull-left,
.com_content.view-article .pull-right {
    order: 3;
}
  
/* Erőltetett megjelenítés az ID alapján */
#ds-ref-box #tab1:checked ~ .ds-panels #panel1 { display: block !important; }
#ds-ref-box #tab2:checked ~ .ds-panels #panel2 { display: block !important; }

/* Aktív fül kiemelése */
#ds-ref-box #tab1:checked ~ .ds-tabs label[for="tab1"],
#ds-ref-box #tab2:checked ~ .ds-tabs label[for="tab2"] {
    background-color: #f4f5f6 !important;
    border-top: 3px solid #d35400 !important;
    color: #00447c !important;
    border-bottom: 2px solid #f4f5f6 !important;
    z-index: 5;
}

/* Alap gomb stílus mobilon is */
#ds-ref-box .ds-tab-btn {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-bottom: none !important;
    padding: 12px 10px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    margin-bottom: -2px !important;
    min-height: 50px !important;
}

@media (max-width: 767px) {
    #ds-ref-box .ds-tab-btn {
        font-size: 0.8rem !important;
        border-radius: 0 !important;
    }
}
/* A lábléc ikonok egységes távolsága a szövegtől */
.fa-circle-chevron-right, 
.fa-circle-dot,
.fa-file-contract,
.fa-cookie-bite,
.fa-shield-halved,
.fa-scale-balanced,
.fa-building-columns {
    margin-right: 10px;
    display: inline-block; /* Biztosítja, hogy a margó pontosan érvényesüljön */
    vertical-align: middle; /* Szépen középre igazítja az ikont a szöveg sorában */
}
  .social-icons-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Ez rendezi az ikonokat egymáshoz képest középre */
    align-items: center;      /* Függőleges középre igazítás */
    gap: 15px;               /* Távolság az ikonok között */
    width: 100%;             /* Biztosítja, hogy a keret kitöltse a rendelkezésre álló helyet */
    margin: 0 auto;          /* Ha a keretnek van fix szélessége, ez középre tolja a szülő elemben */
    padding: 10px 0;
}
.social-icons-wrapper img {
    transition: transform 0.3s ease; /* Egy kis extra animáció a sepsiszentgyörgyi látogatóknak */
}

.social-icons-wrapper img:hover {
    transform: scale(1.1);    /* Kicsit megnő az ikon, ha fölé viszik az egeret */
}