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

html {
    font-size: 16px;
}

:root {
    --color-text: #444444;
    --color-white: #ffffff;

    --color-orange: #fd7303;

    --color-gold: #d8a600;
    --color-gold-light: #e8a900;
    --color-yellow: #ffbd00;
    
    --color-blue-dark: #9cb2e5;

    --color-border-light: #d6d6d6;
    --color-border-gray: #9cb2e5; /*sea green;  #cfcfcf;  gray*/

    --color-shadow: rgba(0, 0, 0, 0.25);
    --color-menu-line: rgba(255, 255, 255, 0.65);
    
    --color-menu-hover: #fd7303;
}


body {
   font-family: 'Comfortaa', sans-serif;
    font-size: 0.875rem; /*14px;*/
    line-height: 1.42857143;
    color: var(--color-text);
    background:
        url("../images/layout/agni-background-light.png")
        repeat;        
        background-position: center top;
       
}


.site-header {
    position: relative;
    height: 54px;
    background:
        url("../images/layout/rainbow.png")
        repeat-x
        top center;
    border-bottom: 1px solid var(--color-border-light);
}

.site-header-inner {
    width: 1180px;
    height: 54px;
    margin: 0 auto;
    position: relative;
}


.site-header nav {
    display: flex;
    gap: 20px;
}

.site-header nav a {
    text-decoration: none;
    color: var(--color-white);
}

.site-footer {
    color: var(--color-dark-blue);
}

.logo-block {
    position: absolute;
    top: 0;
    left: 22px;
    width: 86px;
    height: 86px;
    z-index: 500;
}

.logo-block img {
    width: 100%;
    display: block;
    border: 0px solid var(--color-gold);
}


.hero-strip {
	  width: fit-content;
    margin: 0 auto;
    display: flex;
    gap: 35px;
    align-items: flex-start;
    height: auto;
    padding-top: 5px;
    overflow: visible;
    background: transparent;
   /* border: 3px solid var(--color-border-gray);*/
  
}

.hero-strip-wrapper {
    width: 100%;
    margin-top: 0;
    /*background: #b8e8d2; /* ???????? */
    background: url("../images/layout/hero-strip-bg.png"); 
    padding: 20px 0 20px 0; 
    margin-bottom:20px;
}



.hero-strip img {
   height: 300px;
   width: auto;
   display: block;
   border: 1px solid var(--color-border-gray);  
   border-radius: 10px;    
   cursor: pointer;
}


/* MENU & MEGAMENU */


.top-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 54px;
    margin-left: 140px;
    position: relative;
    z-index: 100;
    background: transparent;
    overflow: visible;
}


.top-menu a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 54px;
    /* font-size: 14px; inherit from body*/
}

.menu-item {
    position: relative;
}

.mega-menu {
    z-index: 999;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 54px;   /*posicia samoi plashki*/
    left: 0;
    width: 848px;
    height: 553px;
    padding: 22px;
    gap: 35px;
    background:
        url("../images/layout/megamenu-bg.png")
        repeat-x
        top left;
    border: 1px solid var(--color-white);
    box-shadow: 0 3px 8px var(--color-shadow);
    border-radius: 10px;
}

.mega-parent:hover .mega-menu {
    display: flex;
}

.mega-column {
    width: 33.333%;
}

.mega-column h3 a {
    color: var(--color-white);
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 0px 0;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--color-white);
    line-height: 10px;
}


.mega-column a {
    display: block;
    color: var(--color-white);
    text-transform: none;
    line-height: 40px;
    /* font-size: 14px; inherit from body*/
    padding: 0px 0;
    border-bottom: 1px solid var(--color-menu-line);
}
.mega-column h3 a:hover {
    color: var(--color-menu-hover);
}

.mega-column a:hover {
    color: var(--color-menu-hover);
}


/*layout of page after header*/

.main-layout {
    width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 680px 240px;
    gap: 10px;
    padding-top: 0px;
    margin-top:20px;
}

.left-sidebar,
.right-sidebar,
.content-area {

    min-height: 400px;
}

.left-sidebar-image {
    width: 100%;
    display: block;
    border: 1px solid var(--color-border-gray);
}

.content-area {
    background: var(--color-white);
    border: 1px solid var(--color-border-gray);
    padding: 24px 28px;
    border-radius: 10px;
}

.content-area p {
    margin: 0 0 12px 0;
}

.content-area h1 {
    color: var(--color-orange);
    font-size: 1.25rem;  /*24px;*/
    font-weight: normal;
    margin: 0 0 18px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-gold);
}

.content-area h2,
.content-area h3 { 
	color: var(--color-orange);
	font-family: 'Comfortaa', sans-serif;
	font-weight: 500;
	line-height: 1.1;
	margin-top: 20px;
	margin-bottom: 10px;
}

.content-area img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.content-area img.mainpic-left {
    float: left;
    margin: 0 18px 12px 0;
}

.content-area img.mainpic {
    float: right;
    margin: 0 0 12px 18px;
}

.side-menu-block {
    margin-bottom: 22px;
    background: var(--color-white);
    border: 1px solid var(--color-border-gray);
    border-radius: 10px;
    overflow: hidden;
}

.side-menu-block h3 a{
    color: var(--color-white);
    background:  var(--color-blue-dark);
    font-size: 0.875rem;
    font-weight: normal;
    padding: 8px 10px;
    border-bottom: 2px solid var(--color-border-gray);
}

.side-menu-block a {
    display: block;
    padding: 7px 10px;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-gray);
}

.side-menu-block a:hover {
    color: var(--color-menu-hover);
}

.category-article {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border-gray);
}

.category-article:last-child {
    border-bottom: none;
}

.category-layout .left-sidebar {
    display: none;
}

.category-layout .content-area {
    grid-column: 1 / 3;
}

.no-sidebar-layout .left-sidebar {
    display: none;
}

.no-sidebar-layout .content-area {
    grid-column: 1 / 3;
}

/* galery in the left sidebar*/


.gallery {
    background: var(--color-white);
    border: 1px solid var(--color-border-gray);
    padding: 16px;
    border-radius: 10px;
    overflow: hidden;
}


.gallery img {
    width: 200px;
    height: auto;
    display: block;
    margin-bottom: 18px;
    cursor: pointer;
    border: 1px solid var(--color-border-gray);
}

.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
  /*  background: rgba(0, 0, 0, 0.65); */
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 95vw;
    max-height: 95vh;

    width: auto;
    height: auto;

    box-shadow: 0 0 35px rgba(0,0,0,0.65);
    border: 1px solid var(--color-border-gray);
}

/* rounding the corners*/

.left-sidebar-image,
.gallery img,
.content-area img.mainpic,
.content-area img.mainpic-left,
.image-lightbox img {
    border-radius: 10px;
}

.content-area,
.gallery,
.side-menu-block {
    border-radius: 10px;
}

.banner-block {
    padding: 0;
    overflow: hidden;
}

.banner-block img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
}

@media (max-width: 1024px) {

    .site-header-inner,
    .hero-strip,
    .main-layout {
        width: 100%;
    }

    .main-layout {
        display: block;
        padding: 10px;
    }

    .left-sidebar,
    .content-area,
    .right-sidebar {
        width: 100%;
        margin-bottom: 15px;
    }

    .content-area {
        min-height: auto;
    }

}

@media (hover: none) {

    .mega-parent:hover .mega-menu {
        display: none;
    }

}


@media (max-width: 1024px) {

    .hero-strip {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 10px;
    }

    .hero-strip img {
        height: 180px;
        flex-shrink: 0;
    }

    .hero-strip img:first-child,
    .hero-strip img:last-child {
        transform: none;
    }

}

@media (max-width: 1024px) {

    .left-sidebar {
        display: none;
    }

}


@media (max-width: 1024px) {

    .logo-block {
        width: 60px;
        height: 60px;
        left: 10px;
    }

    .top-menu {
        margin-left: 80px;
        gap: 10px;
        font-size: 12px;
    }

}

@media (max-width: 1024px) {

    .hero-strip img {
        height: 180px;
        width: auto;
        flex-shrink: 0;
    }

}

@media (max-width: 1024px) {

    .hero-strip-wrapper {
        display: none;
    }

}



@media (max-width: 1024px) {

    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 8px;
        font-size: 32px;
        color: white;
        z-index: 1000;
    }

}

@media (max-width: 1024px) {

    .top-menu {
        display: none;
    }

}



@media (max-width: 1024px) {

    .top-menu {
        display: none !important;

        position: absolute;
        top: 54px;
        right: 0;

       /* width: 100%;*/

        flex-direction: column;

        background: #b7caf6;

        margin-left: 0;
        height: auto;

        z-index: 999;
    }

    .top-menu.active {
        display: flex !important;
        align-items: flex-end;
        flex-direction: column;
        
        padding: 10px 15px;
    }
    .top-menu a {
	   
	    width: 100%;
	    padding: 0px 0;
	    line-height: normal;
    }

}



#backToTop {

    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 50px;
    height: 50px;

    border: none;

    border-radius: 50%;

    background: #b7caf6;
    color: #ffffff;
    padding-top: 0px;
    font-size: 20px;
    display: flex;

    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
}

#backToTop:hover {
    background: #9cb2e5;
}


.mobile-gallery {
    display: none;
}

@media (max-width: 1024px) {

    .mobile-gallery {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .mobile-slides {
        position: relative;
        width: 100%;
    }

    .mobile-slides img {
        position: absolute;
        top: 0;
        left: 0;

        width: 100%;
        display: block;

        opacity: 0;
        visibility: hidden;
    }

    .mobile-slides img.active {
        position: relative;

        opacity: 1;
        visibility: visible;
    }

    .mobile-dots {
        text-align: center;
        margin-top: 10px;
    }

    .mobile-dots span {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 6px;
        border-radius: 50%;
        background: #cfd5e5;
        cursor: pointer;
    }

    .mobile-dots span.active {
        background: #9cb2e5;
    }

}


/*footer */
.site-footer {
    color: white;
    min-height: 95px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px 30px;

    background: #9cb2e5;

    font-size: 14px;
}

@media (max-width: 1024px) {

    .site-footer {

        flex-direction: column;

        text-align: center;

        gap: 10px;
    }

}

/* Adjusting fonts on the mobile versions */

@media (min-width: 768px) and (max-width: 1024px) {

    body {
        font-size: 18px;
    }

    .content-area {
        font-size: 18px;
    }
    .content-area h1{
        font-size: 28px;
    }
    .side-menu-block a {
        font-size: 18px;
    }

    .side-menu-block h3 {
        font-size: 22px;
    }
     .top-menu a {
	    font-size:18px;
    }    

}
