* {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-size: 16px;
  font-family: sans serif, arial, verdana;
  line-height: 1.5;
}

.top_bar_container {
  background-color: rgb(5, 114, 23);
  padding: 5px 40px;
  color: white;
}

.blog_head {
  text-align: left !important;
  font-size: 24px;

  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ....................VIDEOS......................... */

#video_wrapper {
  height: 100%;
  display: none;
}

.video {
  width: 100%;
  max-width: 900px;
}

.video_container {
  margin: 10px 0;

  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
}

.video_container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

.video_box {
  min-height: 20px;
  width: 100%;
  max-width: 400px;
}

/* NAVIGATION BAR */

.header_container .menu_items .active,
.header_container .media_menu_items .active {
  color: orange;
}

.header_container .media_menu_items {
  display: none;
  position: absolute;
  right: 2px;
  top: 80px;
  background: white;
}

.header_container .hamburger {
  display: none;
}

.header_container {
  background-color: white;
  padding: 10px 40px;
  /*box-shadow: 0px 1px 10px  silver;*/
  position: sticky;
  top: 0;
  display: flex;
  z-index: 3;
}

.header_container img {
  width: 50px;
}

.header_container img:hover {
  opacity: 0.7;
  transition: 0.5s ease;
}

.header_container ul {
  list-style: none;
  display: flex;
  margin-left: auto;
}

.header_container ul li {
  padding: 10px 15px;
  margin-top: 5px;
}

.header_container ul li a {
  text-decoration: none;
  color: black;
}

.header_container ul li a:hover {
  color: orange;
  transition: 0.5s ease;
}

#register_form {
  padding: 50px;
}

/* SLIDER STYLING */

.slider_container {
  overflow: hidden;
}

.slider_container figure {
  display: flex;
  position: relative;
  width: 500%;
  margin: 0;
  left: 0;
  animation: 20s slider infinite;
}

.slider_container figure img {
  width: 20%;
}

@keyframes slider {
  0% {
    left: 0;
    transform: scale(1.2);
    opacity: 0.8;
  }
  20% {
    left: 0;
    transform: scale(1);
    opacity: 1;
  }
  25% {
    left: -100%;
    transform: scale(1.2);
    opacity: 0.7;
  }
  45% {
    left: -100%;
    transform: scale(1);
    opacity: 1;
  }
  50% {
    left: -200%;
    transform: scale(1.2);
    opacity: 0.7;
  }
  70% {
    left: -200%;
    transform: scale(1);
    opacity: 1;
  }
  75% {
    left: -300%;
    transform: scale(1.2);
    opacity: 0.7;
  }
  95% {
    left: -300%;
    transform: scale(1);
    opacity: 1;
  }
  100% {
    left: -400%;
    transform: scale(1.2);
    opacity: 07;
  }
}

.slider {
  max-width: 700px;
  border: 10px solid;
  margin: 50px auto;
  position: relative;
  overflow: hidden;
}

.slider .left-slide,
.slider .right-slide {
  position: absolute;
  height: 40px;
  width: 40px;
  background-color: rgb(12, 1, 1);
  border-radius: 50px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  top: 50%;
  margin-top: -20px;
  text-align: center;
  line-height: 40px;
  transition: all 0.5s ease;
}

.slider .left-slide:hover,
.slider .right-slide:hover {
  background-color: orange;
  box-shadow: 0px 0px 5px black;
}

.slider .left-slide {
  left: 30px;
}

.slider .right-slide {
  right: 30px;
}

.slider .slider-items .item img {
  width: 100%;
  display: block;
  animation: zoom 1s ease;
}

@keyframes zoom {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.slider .slider-items {
  width: 400%;
  margin: 0;
  left: 0;
  display: flex;
}

.slider .slider-items .item {
  display: none;
  position: relative;
  width: 25%;
}

.slider .slider-items .item .caption {
  position: absolute;
  width: 100%;
  height: 40px;
  background-color: black;
  bottom: 0;
  left: 0;
  text-align: center;
  color: white;
  font-size: 20px;
  box-sizing: border-box;
  padding: 10px;
  opacity: 0.5;
}

.slider .slider-items .item.active {
  display: block;
}

.box_container {
  height: 80vh;
  background: white;
  position: relative;
}

.box {
  height: 100px;
  width: 100px;
  background: rgb(10, 0, 0);
  position: relative;
  left: 20px;
  top: 0;
}

.product_container {
  display: flex;
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.product {
  max-width: 250px;
  background-color: white;
  box-shadow: 0px 1px 10px silver;
  margin: 10px 20px;
  overflow: hidden;
  text-align: center;
}

.product img {
  width: 100%;
}

.product h4 {
  padding: 10px;
}

.product_button {
  background-color: rgb(15, 1, 1);
  padding: 15px 30px;
  border-radius: 30px;
  color: white;
  margin: auto;
  margin-bottom: 50px;
  border: 0;
  font-size: 18px;
  cursor: pointer;
}

.product_button:hover {
  opacity: 0.8;
  box-shadow: 0px 1px 10px silver;
  transition: all 0.8s ease;
}

.homepage_container {
  text-align: center;
  padding: 50px 0;
}

.sample_box {
  background: yellow;
  border: 4px solid rgb(3, 0, 0);
  padding: 20px;
  margin: 100px;
}

.simple {
  border: 2px solid gray;
  padding: 20px;
  margin: 20px;
  list-style: none;
}

.simple span,
.simple b {
  display: block;
  border: 2px solid gray;
  padding: 20px;
  margin: 20px;
}

.change_color {
  background: blue;
  border: 4px solid rgb(19, 1, 1);
  padding: 50px;
}

.product:hover {
  opacity: 0.8;
  border: 2px solid orange;
  transition: all 0.5s ease;
}

/* FOOTER STYLING */

.footer1 {
  display: flex;
  background-color: darkred;
  color: silver;
  padding: 40px;
}

.footer_column {
  border: 2px solid darkred;
  text-align: left;
  padding: 20px;
  flex: 1;
}

.footer2 {
  text-align: center;
  background-color: silver;
  color: darkred;
  padding: 20px 40px 60px 40px;
}

/* OTHER PAGES CONTAINER */

.main_container {
  display: flex;
  /*height: 100vh;*/
}

.product_main_container {
  display: flex;
  flex-direction: column;
}

/* SIDEBAR */
.sidebar_content_container {
  display: grid;
  /*grid-gap: 15px;*/
  grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
}

.blog_sidebar {
  flex-basis: 400px;
  flex-shrink: 0;
  padding: 20px 40px 20px 20px;
  /*box-shadow: 2px 2px 8px silver;*/
  border-left: 1px solid #e3e5e3;
  background: #fafafa;
}

.blog_sidebar h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.product_sidebar {
  display: flex;
  flex-basis: 300px;
  padding: 40px;
  box-shadow: 2px 2px 3px silver;
  justify-content: center;
}

.quick_link_container {
  padding: 20px 0;
}

.quick_link_container ul {
  padding-left: 14px;
}

.quick_link_container ul li:not(:last-child) {
  padding-bottom: 10px;
}

.quick_link_container ul li a {
  text-decoration: none;
  color: #545454;
}

.quick_link_head {
  color: red;
  padding-bottom: 10px;
}

.sidebar_latest_content {
  margin: 20px 0;
  display: block;
}

.sidebar_latest_content.top {
  margin: 0 0 20px 0;
}

/*
	.sidebar_latest_content:hover h4
	{
		color: var(--main_color_highlight);
	}
	
	*/

/* OTHER PAGES CONTAINER */

.main_body {
  flex: 1;
  padding: 20px 20px 20px 50px;
  /*text-align: justify;*/
}

.title {
  text-align: center;
  padding: 20px;
  box-shadow: 0px 0px 5px silver;
}

.header_container .display {
  display: block;
}

/* BLOGGING STYLES */

.post_container {
  background: white;
  border-radius: 5px;
  /*box-shadow: 0 0 5px silver;*/
  overflow: hidden;
  display: flex;
  color: var(--color_shade9);
}

.main_post_content {
  text-align: left !important;
}

.post_container:hover .blog_head {
  color: var(--main_color_shade2);
}

.post_container:hover .post_title {
  color: var(--main_color_highlight);
}

.post_container:not(:last-child) {
  margin-bottom: 20px;
}

.post_img {
  flex-basis: 50%;
  /*height: 25%;*/
  overflow: hidden;
  border-radius: 5px;
  position: relative;
}

.post_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post_img.one_column {
  height: 0;
  /*padding-bottom: 32%;*/
  padding-bottom: 300px;
  overflow: hidden;
  position: relative;
}

.post_inner_img {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image_caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 10px;
  background-color: var(--color_shade9);
  opacity: 0.8;
  color: var(--color_shade1);
  font-size: 12px;
}

.single_head_container {
  margin: 0px 0px 20px 0px;
}

.single_head_container small {
  font-size: 16px;
}

.auto_time_container {
  padding: 10px 0;
}

.news_author {
  font-weight: bold;
}

.post_content {
  flex: 1;
  padding: 10px;
    overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-align: justify;
}

.post_content p {
  margin-top: 20px;

}

.read_more {
  padding: 5px 8px;
  border: 1px solid orange;
  background: orange;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
  letter-spacing: 1.5px;
}

.category_indicator {
  background-color: var(--main_color_shade2);
  padding: 2px 5px;
  transform: skewX(-10deg);
  display: inline-block;
  color: var(--color_shade1);
  margin-bottom: 10px;
  font-size: 12px;
}

.post_container:hover .category_indicator {
  background-color: var(--main_color_highlight);
}

.post_cat_container {
  display: grid;
  grid-gap: 1em;
  grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
}

.post_cat_container .post_container {
  flex-basis: 500px;
  padding: 0;
  margin: 0;
}

.cat_head {
  font-size: 18px !important;
}

.cat_content .news_lead {
  display: none;
}

.cat_img {
  height: 150px;
}

.sidebar_post_img {
  width: 120px;
  height: 100px;
  overflow: hidden;
}

.sidebar_post_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar_read_more {
  padding: 5px 8px;
  border: 1px solid orange;
  background: white;
  color: orange;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 1.5px;
}

.sidebar_post_content {
  flex: 1;
  padding: 10px;
}

.lastest_new_head {
  color: rgb(6, 141, 18);
  margin-bottom: 20px;
}

.single_news_container .post_img {
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.single_news_container .post_img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.post_img_wrapper {
  height: 0;
  padding-bottom: 60%;
  position: relative;
}

.single_post_content {
  flex-grow: 0;
}

.single_post_content p {
  margin-top: 20px;
}

.single_news_head {
  /*margin-top: 20px;*/
  text-align: left !important;
}

/*---------Views---------*/

.view_container {
  display: flex;
  padding: 10px 0 0 0;
}

.view_container p {
  margin: 0 20px 0 0;
  font-size: 12px;
  color: var(--color_shade5);
  display: flex;
  align-items: center;
}

.view_container p span {
  font-size: 13px;
  color: var(--color_shade5);
  margin-right: 5px;
}

.scroll .view_container {
  padding: 0 0 0 10px;
}

/* Comments Styles */

.comment_container {
  margin-top: 50px;
  border: 1px solid #e3e5e3;
  padding: 20px;
}

.comment_content {
  display: flex;
  align-items: center;

  border-bottom: 1px solid #e3e5e3;
  padding-bottom: 0px;
  margin-bottom: 10px;
}

.comment_text {
  flex: 1;
  padding-left: 15px;
  border: none;
}

.comment_img {
  overflow: hidden;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.comment_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment_form {
  max-width: 600px;
  margin: auto;
  border: none;
  padding: 20px 0 0 0;
}

.comment_container h3 {
  margin-bottom: 20px;
  color: rgb(3, 126, 19);
}

.comment_form label {
  display: block;
  width: 100%;
}

.input_box:not(:last-child) {
  margin-bottom: 20px;
}

.form_input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e3e5e3;
}

.form_input:focus {
  border: 1px solid orange;
  outline: none;
}

button {
  background-color: #fa7000;
  padding: 8px 10px;
  border-radius: 5px;
  color: white;
  border: 1px solid #fa7000;
  font-size: 14px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
}

.main_media_nav {
  height: 80vh;
  overflow: auto;
}

.news_menu_section {
  border-top: 1px solid var(--color_shade4);
}

/*============== GOOGLE NEWS STYLE SECTION ============= */
.latest_news_home_container {
  display: grid;
  grid-gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
  margin-bottom: 20px;
}

.latest_news_home_container h2 {
  font-size: 24px;
  color: var(--color_shade9);
  margin: 10px 0 0 0;

  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-align: left !important;

  font-weight: 400;
}

small {
  color: var(--color_shade5);
}

.latest_news_home_container small,
.sidebar_post_content small {
  font-size: 14px;
  color: var(--color_shade5);
}

.main_author_time_content {
  padding: 10px 0 0 0;
}

.news_home_pix {
  border-radius: 10px;
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  overflow: hidden;
  position: relative;
}

.inner_pix_wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.latest_news_home_box:hover h2 {
  color: var(--main_color_highlight);
}

.latest_news_home_box {
  margin-bottom: 20px;
}

.news_home_pix img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*============== ALERT MESSAGE ============= */

.message_container {
  display: none;
  margin: 10px 0;
  position: fixed;
  top: 80px;
  right: 20px;
}

.success_msg {
  display: none;
  background: #deffd6;
  padding: 10px;
  color: #146300;
}

.fail_msg {
  display: none;
  background: #fff0e0;
  padding: 10px;
  color: #6b0000;
}

.category_container_section {
  padding: 20px;
  display: flex;
  overflow-x: auto;
}

.category_box {
  flex-basis: 200px;
  flex-grow: 0;
  flex-shrink: 0;
  background: #1f0100;
  border-radius: 5px;
  /*
		background-image: linear-gradient(to left, rgba(92, 1, 1, 0.7), 
						rgba(102, 0, 0, 0.7)),url("../images/fireworks.jpg");
		*/
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.category_box a {
  text-decoration: none;
  display: block;
  width: 100%;
}

.category_box h2 {
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 20px;
  font-weight: 400;
  user-select: none;
}

.category_box:not(:last-child) {
  margin-right: 20px;
}

.category_title {
  background-color: darkred;
  padding: 50px;
  /*
		background-image: linear-gradient(to left, rgba(92, 1, 1, 0.7), 
						rgb(102, 0, 0, 0.7)),url("../images/fireworks.jpg");
		*/
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.category_title h1 {
  color: white;
  text-align: center;
  font-size: 30px;
  font-weight: 200;
  letter-spacing: 3px;
}

.category_title_header h5 {
  color: var(--main_color_highlight);
}

.news_lead {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  text-align: left !important;
  margin-top: 10px;
}

.recent_article_container {
  padding: 20px 0;
}

.recent_article_container ul li {
  list-style: none;
  color: var(--color_shade9);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left !important;
  padding: 10px 0;
}

.recent_article_container ul li:not(:last-child) {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color_shade4);
}

.recent_article_container ul li a {
  color: var(--color_shade9);
  font-size: 16px;
  text-align: left !important;
}

.ad_container {
  display: block;
  width: 100%;
}

.ad_container img,
.top_home_ad_container img {
  width: 100%;
}

.top_home_ad_container {
  max-width: 800px;
  margin-bottom: 10px;
  display: block;
}

.more_new_btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.more_new_btn a {
  border: 1px solid red;
  padding: 2px 8px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.more_new_btn a span {
  margin-left: 10px;
  font-size: 16px;
}

.more_new_btn a:hover {
  background-color: var(--highlight_color);
  color: var(--color_shade1);
}

.course_item_box:hover .course_title_head {
  color: var(--main_color_highlight);
}

.news_title_head {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  font-size: 18px;
  text-align: left !important;
}

.category_news .news_lead {
  display: none;
}

/**/
#single_news_container p img {
  width: 100% !important;
  display: block;
}

/* RESPONSIVE MEDIA QUERRIES */

@media only screen and (max-width: 1339px) {
  .news_title_head {
    -webkit-line-clamp: 3;
  }
}

@media only screen and (max-width: 1169px) {
  .news_title_head {
    -webkit-line-clamp: 2;
  }

  .category_news .news_lead {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
    text-align: left !important;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 1156px) {
  .blog_head {
    font-size: 20px;
  }
}

@media only screen and (max-width: 987px) {
  .news_title_head {
    -webkit-line-clamp: 3;
  }

  .category_news .news_lead {
    display: none;
  }

  .main_container {
    flex-direction: column;
  }

  .blog_sidebar {
    order: 1;
    display: flex;
    align-items: center;
  }

  .footer1 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .footer_column {
    text-align: center;
  }
}

@media only screen and (max-width: 952px) {
  .main_body {
    padding: 20px;
  }
}

@media only screen and (max-width: 850px) {
  .news_title_head {
    font-size: 15px;
  }

  .product {
    width: 250px;
  }

  .product_container {
    flex-wrap: wrap;
    padding: 0;
  }

  .product_button {
    margin-top: 30px;
  }

  .product_sidebar {
    align-items: center;
  }

  .category_box {
    flex-basis: 120px;
  }

  .category_box:not(:last-child) {
    margin-right: 10px;
  }

  .category_box h2 {
    padding: 10px;
    font-size: 16px;
  }

  .category_container_section {
    padding: 10px;
  }
}

@media only screen and (max-width: 739px) {
  .news_title_head {
    -webkit-line-clamp: 3;
    font-size: 18px;
  }

  .category_news .news_lead {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 15px;
    text-align: left !important;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 694px) {
  .latest_news_home_box {
    border-bottom: 1px solid var(--color_shade5);
    padding-bottom: 20px;
  }

  .latest_news_home_container {
    margin-bottom: 10px;
  }
}

@media only screen and (max-width: 650px) {
  .header_container .menu_items {
    display: none;
  }

  .header_container .hamburger {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    background: orange;
    margin-left: auto;
    border-radius: 3px;
    margin-top: 5px;
    padding: 10px 5px;
    justify-content: space-between;
    cursor: pointer;
  }

  .header_container .hamburger .line {
    width: 100%;
    height: 3px;
    background: darkred;
  }
}

@media only screen and (max-width: 620px) {
  .category_news .news_lead {
    -webkit-line-clamp: 2;
  }

  .news_title_head {
    -webkit-line-clamp: 2;
  }

  .blog_sidebar {
    padding: 10px;
    border-left: none;
  }

  .main_body.home_section {
    padding: 0px 20px 20px 20px;
  }

  .blog_sidebar,
  .product_sidebar {
    flex-direction: column;
  }

  .post_content p {
    -webkit-line-clamp: 2;
    font-size: 14px;
    /*margin: 10px 0 0 0;*/
    margin-top: 10px;
  }

  .blog_head {
    -webkit-line-clamp: 2;
    font-size: 15px;
  }

  .post_content {
    padding: 10px;
  }

  .main_author {
    display: none;
  }

  .post_img.one_column {
    padding-bottom: 200px;
  }
}

@media only screen and (max-width: 500px) {
  .category_wrap {
    margin: 0 !important;
  }

  .category_news .news_lead {
    display: none;
  }

  .news_title_head {
    -webkit-line-clamp: 3;
  }

  .single_news_head {
    font-size: 30px;
  }

  textarea {
    height: 180px;
  }

  .more_new_btn a {
    font-size: 11px;
    margin: 5px 0;
  }

  .more_new_btn a span {
    font-size: 12px;
  }

  .post_container:not(:last-child) {
    margin-bottom: 15px;
  }

  .main_body.home_section {
    padding: 10px;
  }

  .post_content .main_post_content {
    display: none;
  }

  .blog_head {
    -webkit-line-clamp: 4;
  }

  .category_indicator {
    padding: 0px 3px;

    font-size: 10px;
    font-weight: bold;
  }

  .category_box {
    flex-basis: 100px;
  }

  .category_box h2 {
    padding: 5px;
    font-size: 12px;
    font-weight: bold;
  }

  .category_container_section {
    padding: 10px;
  }

  .post_img.one_column {
    padding-bottom: 170px;
  }
}

@media only screen and (max-width: 400px) {
  .news_lead {
    display: none;
  }

  .course_title_head {
    -webkit-line-clamp: 5;
  }
}
