/*-- Use For Custom Styling --*/

/* Szolgáltatások block: white background with image aligned to block bottom
	 Usage HTML structure (example):
	 <div class="szolgltatasok">
		 <img class="szolgltatasok__img" src="..." alt=""> <!-- optional visual -->
		 <div class="szolgltatasok__content">
			 <h2>Szolgáltatások</h2>
			 ...
		 </div>
	 </div>
*/
.szolgaltatasok{background:#ffffff;position:relative;padding:2.5rem 1.5rem;border-radius:4px; margin-bottom: 45px; border:1px solid #3d3d3d;border-bottom:none;z-index: 9999;}
.szolgaltatasok__img{position:absolute;left:50%;transform:translateX(-25%);bottom:0;width:100%;max-width:100%;height:auto;pointer-events:none;display:block}
.szolgaltatasok__content{position:relative;z-index:2;}
.szolgaltatasok h2{margin:0 0 1rem 0;font-size:1.3rem;line-height:1.1;font-weight:700;color:#26313c;text-align:left}

/* If you want the heading to sit visually on the image bottom, use this variant */
.szolgaltatasok--heading-on-image h2{position:absolute;left:50%;transform:translateX(-50%);bottom:16px;background:rgba(255,255,255,0.9);padding:0.35rem 0.75rem;border-radius:4px;z-index:3}

/* Responsive tweaks */
@media (max-width:767px){
	.szolgaltatasok{padding:20px}
	.szolgaltatasok h2{font-size:12px}
	.szolgaltatasok__img{bottom:-10px}
}

/* Service-image specific: ensure the white title block sits aligned to image bottom */
.service-image {
    position: relative;
    display: block;
    overflow: visible;
    padding-bottom: 50px;
    margin-top: 30px;
}

.service-image img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

.service-image .szolgaltatasok {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 3px;
    z-index: 10;
    background: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    max-width: 92%;
    text-align: center;
}

.service-image .szolgaltatasok h2 {
    margin: 0;
    line-height: 1.1;
    color: #26313c;
    text-align: center !important;
}

/* Tablet responsive */
@media (max-width: 991px) {
    .service-image {
        margin-top: 20px;
        padding-bottom: 40px;
    }
    .service-image .szolgaltatasok {
        max-width: 90%;
        padding: 0.7rem 1rem;
		width: 75%;
        margin-bottom: 30px;
		text-align: center !important;
    }
    .service-image .szolgaltatasok h2 {
        font-size: 18px;
    }
}

/* Mobile responsive */
@media (max-width: 767px) {
    .service-image {
        padding-bottom: 30px;
    }
    .service-image .szolgaltatasok {
        bottom: -3px;
        padding: 0.6rem 0.8rem;
        max-width: 96%;
		text-align: center !important;
    }
    .service-image .szolgaltatasok h2 {
        font-size: 14px;
    }
}

/* Mobile responsive */
@media (max-width: 500px) {
    .service-image {
		display: flex;
		justify-content: center;
		align-items: center;
        margin-top: 15px;
        padding-bottom: 30px;
    }
    .service-image .szolgaltatasok {
        padding: 0.6rem 0.8rem;
        max-width: 96%;
		text-align: center !important;
    }
    .service-image .szolgaltatasok h2 {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   OPTIMIZED SERVICES GRID (No Owl Carousel)
═══════════════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-box-wrapper {
    width: 100%;
}

.service-box {
    background: #26313c;
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-box:hover {
    transform: translateY(-5px);
    background: #c08b46;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-box h4 {
    color: #fff !important;
    margin: 1rem 0 !important;
    font-size: 1.5rem;
}

.service-box p {
    color: #fff !important;
    line-height: 1.6;
}

.service-box > span {
    display: inline-block;
    font-size: 3rem;
}

.service-box > span i {
    color: #fff !important;
}

/* Responsive Grid */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 467px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-box {
        padding: 2.5rem 1.5rem;
    }
    
    .service-box h4 {
        font-size: 1.3rem !important;
    }
    
    .service-box > span {
        font-size: 2.5rem;
    }
}

/* Hero Image Wrapper (replaces Owl Carousel) */
.hero-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Parent container needs relative positioning */
#sync1 .item {
	position: relative;
}

/* Signature SVG - Desktop - LEFT side, 90deg, slide in */
.conen-signature-box {
	position: absolute;
	left: -350px;
	top: 40%;
	transform: translateY(-50%);
	z-index: 100;
	pointer-events: none;
	opacity: 0;
	animation: slideInFromLeft 1.2s ease-out 0.8s forwards;
}

.signature-img {
	width: 600px;
	height: auto;
	transform: rotate(90deg);
	transform-origin: center center;
	filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.5));
}

@keyframes slideInFromLeft {
	from {
		opacity: 0;
		transform: translateY(-25%) translateX(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(50px) translateX(190px);
	}
}

/* Tablet landscape (769-1199px) - csak méret változik */
@media (max-width: 1199px) and (min-width: 769px) {
	.signature-img {
		width: 250px;
	}
}

/* Tablet portrait (469-768px) - csak méret változik */
@media (max-width: 768px) and (min-width: 469px) {
	.signature-img {
		width: 250px;
	}
}

/* Mobile (max 468px) - csak méret változik */
@media (max-width: 468px) {
	.signature-img {
		width: 250px;
	}
}

/* Services Overview Wrapper - Responsive fix */
.services-overview-wrapper {
    position: relative;
    padding-bottom: 80px;
}

/* Tablet nézet (468-991px) - csak 1 badge teljes szélességben */
@media (max-width: 991px) and (min-width: 468px) {
    .services-overview-wrapper {
        padding-bottom: 50px;
    }
    
    /* Force owl carousel to show only 1 item at 100% width */
    .services-slider.owl-carousel .owl-stage-outer {
        width: 100% !important;
    }
    
    .services-slider.owl-carousel .owl-stage {
        width: 100% !important;
        display: flex !important;
    }
    
    .services-slider .owl-item {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .services-slider .owl-item.active {
        width: 100% !important;
    }
    
    .services-slider .service-box {
        padding: 3rem 2rem !important;
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        background: #26313c !important;
        color: #fff !important;
    }
    
    .services-slider .owl-item.current .service-box {
        background: #c08b46 !important;
        padding: 3.5rem 2rem !important;
        margin-top: 0 !important;
    }
    
    .services-slider .service-box h4 {
        font-size: 1.5rem !important;
        margin: 1.5rem 0 1rem !important;
        color: #fff !important;
    }
    
    .services-slider .service-box p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        max-width: 85% !important;
        margin: 0 auto !important;
        color: #fff !important;
    }
    
    .services-slider .service-box > span {
        font-size: 3rem !important;
        display: inline-block !important;
        color: #fff !important;
    }
    
    .services-slider .service-box > span i {
        color: #fff !important;
    }
    
    /* Owl carousel dots navigation */
    .services-slider.owl-carousel .owl-dots {
        text-align: center !important;
        margin-top: 2rem !important;
        display: block !important;
    }
    
    .services-slider.owl-carousel .owl-dot {
        display: inline-block !important;
        margin: 0 5px !important;
    }
}

/* Mobile nézet (max 467px) */
@media (max-width: 467px) {
    .services-overview-wrapper {
        padding-bottom: 30px;
    }
    .services-overview-wrapper .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Force owl carousel to show only 1 item at 100% width */
    .services-slider.owl-carousel .owl-stage-outer {
        width: 100% !important;
    }
    
    .services-slider.owl-carousel .owl-stage {
        width: 100% !important;
        display: flex !important;
    }
    
    .services-slider .owl-item {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .services-slider .service-box {
        padding: 2.5rem 1.5rem !important;
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        background: #26313c !important;
        color: #fff !important;
    }
    
    .services-slider .owl-item.current .service-box {
        background: #c08b46 !important;
        padding: 3rem 1.5rem !important;
    }
    
    .services-slider .service-box h4 {
        font-size: 1.3rem !important;
        margin: 1rem 0 !important;
        color: #fff !important;
    }
    
    .services-slider .service-box p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        color: #fff !important;
    }
    
    .services-slider .service-box > span {
        font-size: 2.5rem !important;
        color: #fff !important;
    }
    
    .services-slider.owl-carousel .owl-dots {
        text-align: center !important;
        margin-top: 1.5rem !important;
    }
}

/* Truncate text */
.truncate-box {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Alapból csak 3 sor látszik */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* Ez az osztály fogja "feloldani" a korlátozást */
.truncate-box.expanded {
    display: block; /* Kikapcsolja a line-clampet */
    -webkit-line-clamp: unset;
}

.read-more-btn {
    margin-top: 10px;
    background: none;
    border: 1px solid #003366;
    color: #003366;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   HERO CONTENT OVERLAY
═══════════════════════════════════════════════════════════════ */
.hero-content-overlay {
    position: absolute;
    bottom: 470px;
    left: 0;
    right: -1190px;
    z-index: 50
}

.hero-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title-sub {
    font-size: 14px;
    font-weight: 400;
    color: rgb(46, 43, 43);
	padding-top: 10px;
}

.hero-subtitle {
    font-size: 12px;
    color: rgba(46, 43, 43);
    max-width: 700px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
	width: 300px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
	padding-left: 90px;
}

.hero-cta .btn-outline-light {
    background: #fff;
    color: #003366;
	border-radius: 20px;
	font-size: 18px;
}

.hero-cta .btn-outline-light:hover {
    background: #919191;
    color: #fff;
	border-radius: 20px;
	font-size: 18px;
}

@media (max-width: 768px) {
    .hero-content-overlay {
        padding: 40px 15px 30px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-title-sub {
        font-size: 1.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
}

.btn-contact {
    background: #c4830c;
    color: #fff;
    border-radius: 20px;
    font-size: 16px;
}

btn-contact:hover {
    background: #a06b0a;
    color: #fff;
    border: 1px solid #000;
}
/* ═══════════════════════════════════════════════════════════════
   SZOLGÁLTATÁS KÁRTYÁK
═══════════════════════════════════════════════════════════════ */
.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #664200 0%, #c4830c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card .service-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1rem;
}

.service-card p {
    color: #555;
    line-height: 1.7;
}

.service-card .service-goal {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #28a745;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   BEMUTATKOZÁS
═══════════════════════════════════════════════════════════════ */
.about {
    margin-top: -2rem;
}

.text-lead {
    font-size: 1.25rem;
    color: #333;
}

.text-highlight {
    font-size: 1.15rem;
    color: #003366;
    padding: 1rem;
    background: rgba(0,51,102,0.05);
    border-left: 4px solid #003366;
    border-radius: 0 8px 8px 0;
}

/* ═══════════════════════════════════════════════════════════════
   VÁLLALKOZÁSINDÍTÁS
═══════════════════════════════════════════════════════════════ */
.startup-section {
    background: #f8f9fa;
}

.startup-section .heading {
    color: #003366;
}

/* ═══════════════════════════════════════════════════════════════
   MIÉRT ENGEM?
═══════════════════════════════════════════════════════════════ */
.why-me-list li {
    font-size: 1.2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.why-me-list li i {
    font-size: 1.4rem;
    margin-right: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   CTA SZEKCIÓ
═══════════════════════════════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, #664e00 0%, #996900 100%);
}

.cta-section .heading {
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   KAPCSOLAT INFO
═══════════════════════════════════════════════════════════════ */
.contact-info-list li {
    font-size: 1rem;
    color: #333;
}

.contact-info-list li i {
    font-size: 1.3rem;
    color: #003366;
    margin-right: 0.5rem;
}

.contact-info-list a {
    color: #003366;
    text-decoration: none;
}

.contact-info-list a:hover {
    text-decoration: underline;
}