/*
Theme Name: EhoBG 2026
Theme URI: http://ehobg.com
Description: Wordpress тема за сайта на ЕХО България. Собствен дизайн.
Author: Custom Theme
Version: 1.0
Tags: theme, ehobg.com, news
*/



        :root {
            --primary-blue:  #521796; /*#004aad;*/
            --accent-orange: #ff6b00;
            --text-dark: #1a1a1a;
            --text-gray: #555;
            --bg-light: #f8f9fa;
            --white: #ffffff;
            --dark-gray: #333333;			
			--swiper-theme-color: #ff6b00 !important;
        }
		

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

        body {
            font-family: 'Manrope', sans-serif;
            background-color: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
            padding: 0;
        }
		
        .news-body ul {
            list-style: disc;
            padding: 5px 0 0 30px;
        }		

		.clearfloat {
		clear:both;
		}
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header & Navigation */
        header {
            background: var(--white);
            padding: 15px 0;
            border-bottom: 1px solid #ddd;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo img {
            height: 120px; /* Нагласи според нуждите 
			margin-bottom:-44px;	*/
        }

        .nav-links {
            display: flex;
            gap: 25px;
            align-items: center;
        }

        .nav-links a:hover {
            color: var(--primary-blue);
        }

        .hamburger {
            display: none;
            cursor: pointer;
            font-size: 30px;
            border: none;
            background: none;
        }

        /* Hero Section (Leading News) */
        .hero-section {
            margin: 30px 0;
        }

        .swiper {
            width: 100%;
            /*height: 500px;*/
			height: 600px;
            border-radius: 12px;
            overflow: hidden;
        }

        .swiper-slide {
            position: relative;
            background: #ccc;
        }

        .swiper-slide img {
            width: 100%;
            max-height: 100%;
            object-fit: contain;
			/*transform:scale(1.2);*/
			position:absolute;
			top:50%;
			box-shadow:0 0 58px 58px rgba(0,0,0,0) inset;
			left:50%;
			transform:translate(-50%, -50%);
        }
		
		.backgroundblur {
            width: 100%;
            height: 100%;
            object-fit: cover;
			background-size: cover;		
			padding:0px;
		  -webkit-filter: blur(25px);
		  -moz-filter: blur(25px);
		  -o-filter: blur(25px);
		  -ms-filter: blur(25px);
		  filter: blur(25px);
		  z-index:-1;
        }

        .slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            padding: 40px;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            color: white;
            width: 100%;
        }

        .slide-content h2 {
            font-size: 2rem;
			line-height: 2.2rem;
            margin:10px 0;
        }

        /* News Grid */
        .section-title { 
            border-left: 5px solid var(--accent-orange); 
            padding-left: 15px; 
            margin: 10px 0 20px; 
            text-transform: uppercase; 
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .three{
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 10px;
            margin-bottom: 40px;
        }

        .news-card {
            background: var(--white);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }

        .news-card:hover {
            transform: translateY(-5px);
        }

        .news-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .news-card-body {
            padding: 20px;
        }

        .category-tag {
            font-size: 0.75rem;
            font-weight: bold;
            color: var(--accent-orange);
            text-transform: uppercase;
        }
		.hero-section .category-tag {
			background-color:rgba(255, 255, 255, .7);
			padding:.5em;		
		}

        /* Regions and Categories Bar */
        .sub-nav {
            background: #fff;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            margin-top: 10px;
            font-size: 0.9rem;
        }

        .sub-nav .container {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
        }

        .sub-nav a {
            color: var(--text-gray);
            font-weight: 600;
        }

       /* --- Sidebar --- */
	    .news-sections {
		width: calc(100% / 3 * 2);
		float:left;
		}
		
		.content-area {
		display:inline;
		}
		
		.sidebar {
		margin: 10px 0 20px;
		width: calc((100% / 3) - 1em);
		float:right;
		}
        .sidebar-widget { 
            background: var(--white); 
            padding: 20px; 
            border-radius: 8px; 
            margin-bottom: 30px; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }
        .widget-title { 
            border-bottom: 2px solid var(--accent-orange); 
            padding-bottom: 10px; 
            margin-bottom: 15px; 
            font-size: 1.1rem; 
            text-transform: uppercase;
			font-weight:200;
        }
		.popular-item {
			display: flex;
			padding-left: 15px;
			margin-bottom: 15px;
			padding-bottom: 15px;
			border-bottom: 1px solid #eee;
			position: relative;
			overflow: hidden; /* Важно за визуализацията */
		}
		
		.item-content {
			display: flex;
			flex-direction: column;
			justify-content: center;
		}

		.view-count {
			font-size: 0.8rem;
			color: #777;
			margin-bottom: 4px;
			padding-left:15px;
		}

		/* Контейнерът за фона */
		.progress-bg {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: #FFF; /* Бледо сиво за запълнени зони */
			opacity: 0.4; /* Намалява контраста, за да не пречи на текста */
			z-index: 0;
			transition: width 1.5s ease-out;
		}

		/* Самата анимация на запълване */
		.progress-fill {
			height: 80px;
			width: 0%; /* Първоначално 0% */
			background-color: #e0e0e0; /* По-темно сиво за ефекта на запълване */
			//opacity: 0.4;
			transition: width 1.5s ease-out;
			will-change: width;
		}

		/* Гарантираме, че текстът е над фона */
		.popular-item img, .item-content {
			position: relative;
			z-index: 1;
		}		
		
        .popular-item img { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; }
        .popular-item h4 { font-size: 0.9rem; line-height: 1.15rem; padding:0 5px 0 15px; z-index:999}
        .ad-space { 
            height: auto; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            font-weight: bold;
			padding:0px;
        }
		.ad-space a{padding:0;margin:0;display:block;}
		.ad-space img {
			width:100%;

		}		
		
       /* Footer Styles */
        footer {
            background-color: var(--dark-gray);
            color: #ffffff;
            padding: 40px 0 20px;
            margin-top: 50px;
        }

        .footer-content {
            text-align: center;
            margin-bottom: 20px;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
        }

        .footer-links a {
            color: #ccc;
            text-decoration: none;
        }

        .footer-links a:hover {
            color: var(--white);
        }

        .copyright {
            font-size: 0.8rem;
            color: #999;
            border-top: 1px solid #444;
            padding-top: 20px;
        }		


/*  Article  */


.news-detail {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.news-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.news-title {
    font-size: 2.5rem;
	line-height: 2.8rem;
    margin: 15px 0;
    color: #1a1a1a;
}

.category-tag-article {
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.news-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.yarpp-related h3 {
	text-transform:none !important;
	line-height: 1.3;
}

/* --- Слайдър СТИЛОВЕ (FOCUS POINT) --- */
.news-content-wrapper .swiper {
    width: 100%;
    max-height: 490px; /* Фиксирана височина на целия блок */
    background: #f9f9f9; /* Светъл фон, който ще запълва празните пространства */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.focus-container {
    display: flex;
	  height: auto;
    justify-content: center; /* Центрира снимката по хоризонтала */
    align-items: center;     /* Центрира снимката по вертикалата */
    background: #f9f9f9;     /* Фонът на самия слайд */
}

.focus-container img {
    max-width: 100%;          /* Не позволява на снимката да бъде по-широка от слайда */
    max-height: 100%;         /* Не позволява на снимката да бъде по-висока от слайда */
    width: auto;               /* Автоматична ширина в зависимост от пропорциите */
    height: auto;              /* Автоматична височина в зависимост от пропорциите */
    object-fit: contain;      /* Ключов параметър: показва цялата снимка без разтягане */
    
    /* Малко засенчаване, за да се "отдели" снимката от фона */
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Стили за бутоните на Swiper */
.swiper-button-next, .swiper-button-prev {
    color: #ff6b00 !important;
    background: rgba(255,255,255,0.2);
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
}

.news-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.news-body a{
    color: #e74c3c;
}
.news-body p:nth-child(1), .quote {
    font-size: 1.4rem;
	line-height:1.8rem;
    font-weight: 600;
    border-left: 4px solid #e74c3c;
    padding-left: 20px;
    margin-bottom: 25px;
}

.news-body p img {
    width: 100%;
    height: auto;
    display: block;
}

/* WP стандартна галерия */
.wp-block-gallery,
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    width: 100%;
    margin: 0;
}

/* отделна снимка */
.wp-block-gallery .wp-block-image,
.gallery-item {
    width: calc((100% - 45px) / 3);
    margin: 0;
}

/* самата снимка */
.wp-block-gallery img,
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
	

/* Реактивност за мобилни устройства article */
@media (max-width: 768px) {
	nav {padding:0px 10px;}
            .nav-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 70px;
                left: 0;
                width: 100%;
                background: var(--white);
                padding: 20px;
                border-bottom: 1px solid #ddd;
            }

            .nav-links.active {
                display: flex;
				margin-top:25px;
            }

            .hamburger {
                display: block;
            }

            .swiper {
                height: 350px;
            }
			.news-sections, .sidebar {
			width:100%;
			}

	.logo img {
	  height: 80px;
	  margin-bottom:-20px;
	}
			
    .swiper {
        max-height: 400px;
    }
    .news-title {
        font-size: 1rem;
		line-height: 1.1rem;
    }
	.news-detail {padding:0}
	.slide-content h2 {
		font-size: 1rem;
		line-height: 1.1rem;
	}
	.slide-content {
		font-size: .8rem;
		line-height: .9rem;
	}
	.container {padding:0 10px;}
	.slide-content p {display:none;}
.footer-links {font-size:.6rem;}
}
			