/* Saqartvelo page specific styles */

body {
    background: var(--sg-bg-color);
}
/* PAGE WRAPPER */
.saqartvelo-page{
   /* padding-top: var(--header-height);
	 margin-bottom: 20px;
	 min-height: calc(100vh - var(--header-height) - 4px);*/
}

/*видеозаставка*/
#videodiv{
	width: 100%; height: auto; position: relative;
}
#videodiv_inner{
	width: 100%; min-height: 100%;
}
#novideo{
	position: absolute; top: 10px; right: 80px; width: 150px; font-size: 14px; font-weight: 500; color: #fff; text-align: center; padding: 7px; border: solid 2px #fff; border-radius: 20px; z-index: 100; cursor:pointer;
}
#nomute{
	position: absolute; top: 10px; right: 20px; width: 40px; height: 40px; padding: 7px; border: solid 2px #fff; border-radius: 20px; z-index: 100; cursor:pointer;
}
#nomute i{
	font-size: 20px; font-weight: bold; color: #fff;	
}
/*transition*/
.fade {
  opacity: 0;
  transition: opacity 1s ease;
  display: none; /* Изначально скрыты */
}
.fade.show {
  display: block; /* Сначала показываем в потоке */
  opacity: 1;     /* Затем плавно проявляем */
}
/*main area*/
:root {
  --sidebar-full: 280px;
  --sidebar-min: 60px;
}
.main-container {
  display: flex;
	width: 100%;	
}
.sidebar {
width: var(--sidebar-full);
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100vh - var(--header-height));
    background: #fff; /* Обязательно фон, чтобы контент не просвечивал */
    z-index: 900;
    border-right: 1px solid #ddd;
    transition: width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}
/* Кнопка переключения */
.panel-control {
 /* background: #eee;*/
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  font-weight: bold;
  font-size: 12px;
}
.panel-control .arrow {
  display: inline-block;
  transition: transform 0.3s;
  margin-right: 10px;
}
/* Элементы меню */
.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  /*color: #333;*/
  border-bottom: 1px solid #eee;
}
.nav-item img {
  width: 24px;
  min-width: 24px; /* Чтобы иконка не сжималась */
  height: 24px;
	margin-right: 10px;
}

.nav-item span, 
.toggle-text {
    transition: opacity 0.2s ease;
    white-space: nowrap;
}
.nav-item.active{
	color: var(--sg-panel-light);
	background: var(--sg-primary-dark);
}
/* --- СОСТОЯНИЕ СВЕРНУТО --- */
.sidebar.collapsed {
  width: var(--sidebar-min);
}
.sidebar.collapsed + .content-area {
    margin-left: var(--sidebar-min);
}
.sidebar.collapsed .panel-control .arrow {
  transform: rotate(180deg); /* Стрелка смотрит в другую сторону */
  margin-right: 0;
}
/*main area*/  
.georgia-all{
	display: none;
}
.georgia-all.active{
	display: block;
}
.content-area{
flex-grow: 1;
    /* Вместо max-width используем margin-left */
    margin-left: var(--sidebar-full); 
    transition: margin-left 0.3s ease;
    padding: 20px;
    min-width: 0;
}

/*main area inner elements*/ 
.mainpic, .mainpic2, .mainpic3{
	width: 100%;
	max-width: 	 560px;
	float: right;
	margin: 0 0 20px 20px;
}
.mainpic2{float: left; margin: 0 20px 20px 0;}
.mainpic3{max-width: 	 360px;}
.mainpic-img{width: 100%;}
.mainpic-caption{
	width: 100%;
	font-size: 0.9em;
	font-style: italic;
	padding: 10px;
	text-align: center;
}
.mainpic-100{
	width: 100%;
	margin: 20px 0;	
}
.mainpic-row3{
	width: 100%;
	display: flex;
	flex-flow: row nowap;
	justify-content: space-between;
	align-items: stretch;
}
.mainpic-33{
	width: calc(33% - 8px);
}
 /* --- ДЕСКТОП (экран больше 960px) --- */
@media (min-width: 961px) {
    .sidebar {width: var(--sidebar-full) !important;}
    .panel-control {display: none; }
    .nav-item span, .toggle-text {
        display: inline-block;
        opacity: 1;
    }
    .content-area {margin-left: var(--sidebar-full);}
}
@media (max-width: 960px) { 
		.panel-control {display: block; }
		.sidebar {
        width: var(--sidebar-min);
				left: 0;
    }
    .content-area {margin-left: var(--sidebar-min)!important;}    
		.sidebar .nav-item span, 
    .sidebar .toggle-text {
        display: none; /* Прячем текст */
        opacity: 0; 
    }
    .sidebar.expanded {
        width: var(--sidebar-full);
        z-index: 1001;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
    .sidebar.expanded .nav-item span, 
    .sidebar.expanded .toggle-text {
        display: inline-block;
        opacity: 1;
    }
}
@media screen and (max-width:860px){
	#videodiv{
		/* min-height: calc(100vh - 240px); */
		 max-height:  calc(100vh - 150px); 
		 background-color: var(--secondary-color3-2);
	}	
}
@media screen and (max-width:660px){
	#novideo{
		top: auto;
		bottom: 10px;
	}
	#nomute{
		top: auto;
		bottom: 10px;
	}
}
@media screen and (max-width:360px){
	h1{font-size: 1.7em;}
	#videodiv{
		display:flex;
		justify-content: center;
		align-items: center;	
	}	
}