*
        .my-template {
        max-width: 1200px;
        margin: 0 auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        background: #fff;
        
        border-left: 1px solid #ddd;  /* Левая граница */
        border-right: 1px solid #ddd; /* Правая граница */
        
        padding-left: 0; /* Убираем лишние отступы */
        padding-right: 0;
        }
        .recent-posts {
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .recent-posts h5 {
            border-bottom: 2px solid #ddd;
            padding-bottom: 8px;
            margin-bottom: 12px;
        }
        .custom-footer {
            width: 100%;
            text-align: center;
            padding: 15px;
        }
        .logo-img {
        width: 54px;
        height: 54px;
        transition: all 0.3s ease-in-out;
		}
        .custom-justify {        /* Для текста выравнивание по ширине */
        text-align: justify;
        }
        .text-justify {         /* Для всего контейнера выравнивание по ширине */
            text-align: justify;
            word-break: break-word;
        }
        .text-justify h1 {
            text-align: initial; /* Возвращает стандартное выравнивание */
            text-wrap: initial;
        }
        
        .text-justify h2 {
            text-align: initial; /* Возвращает стандартное выравнивание */
            text-wrap: initial;
        }
        .text-justify h3 {
            text-align: initial; /* Возвращает стандартное выравнивание */
            text-wrap: initial;
        }
        /* Навигация */
        .navbar-collapse {
            max-height: 75vh;
            overflow-y: auto;
        }
			

        /* Карточки */
        h5.card-title {
            visibility: visible;
            opacity: 1;
            transition: none;
        }
        /* --- ВЕРХНИЙ БЛОК С ЦИТАТОЙ --- */
        .top-banner {
            background-color: #235787;
            font-size: 1rem;
            font-weight: 500;
        }

        /* --- ОСНОВНАЯ НАВИГАЦИЯ --- */
        .navbar {
            transition: all 0.3s ease-in-out;
        }
        .navbar-brand {
            font-size: 1.1rem;
            display: flex;
            align-items: center;
        }
        .navbar-brand img {
            transition: transform 0.3s ease-in-out;
        }
        .navbar-brand:hover img {
            transform: scale(1.1);
        }

        /* --- НАВИГАЦИЯ (МЕНЮ) --- */
        .navbar-nav .nav-link {
            font-weight: 500;
            padding: 10px 15px;
            color: #514f4f;
            position: relative; /* Нужно для псевдоэлемента */
            transition: all 0.3s ease-in-out;
        }

        /* Создаем полосу сверху */
        .navbar-nav .nav-link::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px; /* Толщина полосы */
            background: black; /* Цвет полосы */
            transform: scaleX(0); /* Изначально скрываем */
            transition: transform 0.3s ease-in-out;
        }

        /* Показываем полосу при наведении */
        .navbar-nav .nav-link:hover::before,
        .navbar-nav .nav-link.active::before {
            transform: scaleX(1); /* Разворачиваем на всю ширину */
        }

        /*Настройка меню*/
        .menu-active {
                    background-color: #cfe2ff !important;
                    border-radius: 8px;
                    font-weight: bold;
                }
        .btn-toggle {
            display: inline-flex;
            align-items: center;
            padding: .25rem .5rem;
            font-weight: 600;
            color: rgba(0, 0, 0, .65);
            background-color: transparent;
            border: 0;
        }
        .btn-toggle:hover,
        .btn-toggle:focus {
        color: rgba(0, 0, 0, .85);
        background-color: #cfe2ff; 
        }

        .btn-toggle::before {
        width: 1.25em;
        line-height: 0;
        content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
        transition: transform .35s ease;
        transform-origin: .5em 50%;
        }

        .btn-toggle[aria-expanded="true"] {
        color: rgba(0, 0, 0, .85);
        }
        .btn-toggle[aria-expanded="true"]::before {
        transform: rotate(90deg);
        }

        .btn-toggle-nav a {
        display: inline-flex;
        padding: .1875rem .5rem;
        margin-top: .125rem;
        margin-left: 1.25rem;
        text-decoration: none;
        }
        .btn-toggle-nav a:hover,
        .btn-toggle-nav a:focus {
        background-color: #cfe2ff;
        }
        .responsive-image {
            display: block;
            max-width: 100%;  /* Ограничивает ширину контейнером */
            height: auto;     /* Сохраняет пропорции */
            margin: 10px auto; /* Центрируем изображение и добавляем отступы */
            object-fit: contain;
        }
        .btn-circle {
            width: 35px; /* Ширина кнопки */
            height: 35px; /* Высота кнопки */
            border-radius: 60%; /* Круглая форма */
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 0; /* Убираем внутренние отступы */
        }

        .btn-outline-warning {
            border-color: #0d6efd; /* Цвет границы */
            color: #0d6efd; /* Цвет текста */
        }

        .btn-outline-warning:hover {
            background-color: #0d6efd; /* Цвет фона при наведении */
            color: white; /* Цвет текста при наведении */
        }
        /* --- КНОПКА "ЧИТАТИ ДАЛІ" --- */
        .btn-outline-primary {
            color: #235787;
            border-color: #235787;
            transition: all 0.3s ease-in-out;
        }
        .btn-outline-primary:hover {
            background: #235787;
            color: #fff;
            border-color: #235787;
        }
        .bg-custom {
            background-color: #235787 !important;
        }
        /* --- КНОПКА ПОИСКА --- */
        .btn-primary {
            background: #235787;
            border-color: #235787;
            transition: all 0.3s ease-in-out;
        }
        .btn-primary:hover {
            background: #235787;
            border-color: #235787;
        }
        /* --- ФИКСИРОВАННАЯ ШАПКА --- */
        .shadow-sm {
            box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075) !important;
        }
	/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
	@media (max-width: 992px) {
		.navbar-nav {
			text-align: center;
		}
		.navbar-nav .nav-link {
			padding: 10px;
			font-size: 1rem;
		}
		.navbar-collapse {
			background: #f8f9fa;
			padding: 10px;
			border-radius: 5px;
		}
		.col-lg-4 {
			order: 2;
		}
		.col-lg-8 {
			order: 1;
		}
		.card img {
			width: 100%; /* Делаем изображение адаптивным */
			height: auto;
			object-fit: cover;
			border-radius: 5px;
		}
	}



	/* 🔥 Адаптация для всех мобильных устройств */
	   
	@media (max-width: 768px) {
		.card {
			display: flex;
			flex-direction: column;
			width: 100%;
			max-width: 400px;
			margin: auto;
		}
		.card img {
			width: 100%;
			max-height: 260px;
			object-fit: cover;
		}
		.card-body {
			padding: 15px;
		}
	}
	.card img {
			display: block; /* Убираем лишние отступы */
			margin: 0 auto; /* Центрируем изображение */
			width: 100%; /* Картинка растягивается на ширину карточки */
			height: auto; /* Сохраняем пропорции */
			object-fit: cover; /* Подгоняем размер без искажений */
		}

	/* 🔥 Адаптация для смартфонов */
	@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .my-template {
        border-radius: 0;
        box-shadow: none;
    }
    .btn-outline-primary {
        width: 100%;
        font-size: 1rem;
        padding: 12px;
    }
    h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    h5 {
        font-size: 1.2rem;
    }
    .custom-footer {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    .card img {
        display: block; /* Убираем лишние отступы */
        margin: 0 auto; /* Центрируем */
        width: 100%; /* Растягиваем на всю ширину карточки */
        height: auto; /* Сохраняем пропорции */
        object-fit: cover; /* Убираем искажения */
        border-radius: 5px; /* Небольшое скругление углов */
    }
    .portal-text {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .logo-img {
            width: 36;
            height: 36;
        }
}
