:root {
  --color-primary: white;
  --color-primary-light: hsl(242, 91%, 69%, 18%);
  --color-primary-variant: white;
  --color-white: #da0f3f;
  --color-white-light: hsl(346, 87%, 46%, 15%);
  --color-green: #00c476;
  --color-green-light: hsl(156, 100%, 38%, 15%);
  --color-gray-900: white;
  --color-gray-700: white;
  --color-gray-300: rgba(242, 242, 254, 0.3);
  --color-gray-200: rgba(242, 242, 254, 0.7);
  --color-white: #f2f2fe;
  --color-bg: white;

  --transition: all 300ms ease;

  --container-width-lg: 74%;
  --container-width-md: 95%;
  --form-width: 40%;

  --card-border-radius-1: 0.3rem;
  --card-border-radius-2: 0.5rem;
  --card-border-radius-3: 0.8rem;
  --card-border-radius-4: 2rem;
  --card-border-radius-5: 5rem;
}

/* START GENERAL */

* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  appearance: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1;
  color: #fff;
  overflow-x: hidden;
  background: #604e4e;
  font-size: 0.9rem;
}

.container {
  width: var(--container-width-lg);
  max-width: 1800px;
  margin-inline: auto;
}

section {
  margin-top: 1rem;
  width: 100vw;
}
p,
h1,
h2,
h3,
h4,
h5 {
  color: var(--color-white);
  line-height: 1.3;
}

/* add to posts on index if there are no featuwhite posts */
.section__extra-margin {
  margin-top: 1rem;
}

h1 {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: black;
}
h2 {
  font-size: 1.7rem;
  margin: 1rem 0;
  color: black;
}
h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.5rem;
  color: black;
}
h4 {
  font-style: 1rem;
  color: black;
}
h5 {
  font-style: 1rem;
  color: black;
}


a {
  color: var(--color-white);
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
  height: 100%;
}
/* END */

/* START NAV */

nav {
  background: var(--color-primary);
  width: 100vw;
  height: 4.5rem;
  position: fixed;
  top: 0;
  z-index: 10;
}

nav button {
  display: none;
}

.nav__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avatar {
  width: 2.5rem;
  /* aspect-ratio: 1/1; */
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 0.3rem solid var(--color-bg);
}

.nav__logo {
  font-weight: 600;
  font-size: 1.2rem;
}

.nav__items {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__profile {
  position: relative;
  cursor: pointer;
}

.nav__profile ul {
  position: absolute;
  top: 140%;
  right: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.4);
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

/* show nav ul when nav profile is hovewhite over */

.nav__profile:hover > ul {
  visibility: visible;
  opacity: 1;
}

.nav__profile ul li a {
  padding: 1rem;
  display: block;
  width: 100%;
  background: white;
}

.nav__profile ul li:last-child a {
  background: var(--color-white);
  color: var(--color-bg);
}
/* END NAV */

/* START CATEGORY BUTTON */

.category__button {
  background: #ae4545;
  color: #fff;
  display: inline-block;
  padding: 0.5rem 0.5rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 600;
  font-size: 0.8rem;
  text-align: left;
}

/* END CATEGORY BUTTON */

/* START GENERAL POST */

.post {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 2px;
}

.post__thumbnail {
  border-radius: none;
  border: 0rem solid white;
  overflow: hidden;
  margin-bottom: 0.1rem;
}

.post:hover .post__thumbnail img {
  filter: saturate(0);
  transition: filter 500ms ease;
}

.post__author {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}

.post__author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--card-border-radius-3);
  overflow: hidden;
}

.posts__container {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Default to 1 column */
  gap: 16px;
}

/* Ensure a two-column layout on small screens */
@media (max-width: 600px) {
  .posts__container {
    grid-template-columns: repeat(2, 1fr); /* Two columns for small screens */
  }
}

.post {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 8px;
}


/* END GENERAL POST */

/* START FEATUwhite */

.featured {
  margin-top: 0rem;
}

.featured__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.featured .post__thumbnail {
  height: fit-content;
}

/* END FEATURED */

/* START POSTS */

.posts__container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}


/* END POSTS */

/* START CATEGORY BUTTONS */
.category__buttons {
  padding: 0.2rem 0;
  
}

.category__buttons-container {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  position: left;
  
}
/* END CATEGORY BUTTONS */

/* START CATEGORY FOOTER */
footer {
  background: #000;
  padding: 1rem 0 0;
  box-shadow: inset 0 1.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.footer__socials {
  margin-inline: auto;
  width: fit-content;
  margin-bottom: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.footer__socials a {
  background: var(--color-bg);
  border-radius: 50%;
  height: 2.3rem;
  width: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__socials a:hover {
  background: var(--color-white);
  color: var(--color-bg);
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

footer li {
  padding: 0.4rem 0;
}

footer h4 {
  color: var(--color-white);
  margin-bottom: 0.6rem;
}

footer ul a {
  opacity: 0.75;
}
footer ul a:hover {
  letter-spacing: 0.1rem;
  opacity: 1;
  transition: var(--transition);
  
}

.footer__copyright {
  text-align: left;
  padding: 1.5rem 0;
  margin-top: 0rem;
}
/* END CATEGORY FOOTER */

/* START CATEGORY SEARCH */
.search__bar {
  margin-top: 5rem;
}

.search__bar-container {
  position: relative;
  width: 30rem;
  background: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 0.6rem 1rem;
  border-radius: var(--card-border-radius-2);
  color: var(--color-gray-300);
}
.search__bar-container > div {
  width: 100%;
  display: flex;
  align-items: center;
}

.search__bar input {
  background: transparent;
  margin-left: 0.7rem;
  padding: 0.5rem 0;
  width: 100%;
  color: var(--color-white);
}

.search__bar input::placeholder {
  color: white;
}

/* START CATEGORY BUTTON */
.btn {
  display: inline-block;
  width: fit-content;
  padding: 0.6rem 1.2rem;
  background-color: var(--color-primary);
  border-radius: none;
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-white);
}

.btn.sm {
  padding: 0.3rem;
  font-size: 0.8rem;
}
.btn.danger {
  background-color: white;
}
.btn:hover {
  background: var(--color-white);
  color: var(--color-bg);
}

/* END CATEGORY BUTTON */

/* START DASHBOARD */
.dashboard {
  margin-top: 0rem;
  padding: 0rem;
}

.sidebar__toggle {
  display: none;
}

.dashboard__container {
  display: grid;
  grid-template-columns: 14rem auto;
  gap: 2rem;
  background: #8c8c8c;
  padding: 2rem;
  margin-bottom: 5rem;
  border-radius: 0rem;
}
.dashboard aside a {
  color: var(--color-white);
  background: var(--color-primary);
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.6rem;
}
.dashboard aside ul li:not(:last-child) a {
  border-bottom: 1px solid var(--color-gray-700);
}
.dashboard aside a:hover {
  background: var(--color-gray-700);
}
.dashboard aside a.active {
  background-color: var(--color-gray-700);
}
.dashboard aside ul li:not(:last-child):not(:first-child) a {
  border-bottom: 1px solid var(--color-gray-700);
}

.dashboard aside ul li:first-child a {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.dashboard main table th:first-child {
  border-top-left-radius: 10px;
}

.dashboard main table th:last-child {
  border-top-right-radius: 10px;
}

.dashboard aside ul li:last-child a {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.dashboard main {
  margin-left: 1.5rem;
}
.dashboard main h2 {
  margin: 0 0 2rem 0;
  line-height: 1;
}
.dashboard main table {
  width: 100%;
  text-align: left;
}
.dashboard main table th {
  background: var(--color-gray-700);
  padding: 0.8rem;
  color: var(--color-white);
}
.dashboard main table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.dashboard main table tr:hover {
  background-color: var(--color-bg);
  color: var(--color-white);
  cursor: default;
  transition: var(--transition);
}

/* END DASHBOARD */

/* START SINGLE POST */
.singlepost {
  margin: 2rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: left;
}
.singlepost__container {
  width: 70%;
  background: #fff;
  padding: 3rem 4rem;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  border-radius: none;
}
.singlepost__container h2 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: bold;
  color: black;
  text-align: left;
}
.singlepost__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.post__author-info h5 {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: white;
}
.post__author-info small {
  font-size: 0.9rem;
  color: white;
  text-align: center;
}
.singlepost__thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin: 2rem 0;
}
.singlepost__container p {
  margin-top: 1rem;
  line-height: 1.8;
  font-size: 1.1rem;
  color: white;
  text-align: justify;
}
/* END SINGLE POST */

/* END CATEGORY SEARCH */

/* START CATEGORY POSTS */
.category__title {
  height: 8rem;
  margin-top: 4.5rem;
  background: #fff;
  display: grid;
  place-items: center;
}
/* END CATEGORY POSTS */

/* START EMPTY PAGES */
.empty__page {
  height: 0vh;
  text-align: center;
  display: grid;
  place-content: center;
}
/* END EMPTY PAGES */

/* START GENERAL FORM */
.form__section {
  display: grid;
  place-items: center;
  height: 100vh;
  margin: 5rem 0;
}
.form__section-container {
  width: var(--form-width);
}

.alert__message {
  padding: 0.8rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: var(--card-border-radius-2);
}

.alert__message.error {
  background: var(--color-white-light);
  color: var(--color-white);
}

.alert__message.success {
  background: var(--color-green-light);
  color: var(--color-green);
}

.alert__message.lg {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__control {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form__control.inline {
  flex-direction: row;
  align-items: center;
}

.form__section small {
  margin-top: 1rem;
  display: block;
}

.form__section small a {
  color: var(--color-primary);
  margin-left: 1rem;
}

/* START GENERAL DASHBAORD */

/* END GENERAL DASHBAORD */

input,
textarea,
select {
  padding: 0.8rem 1.4rem;
  background-color: white;
  border-radius: var(--card-border-radius-2);
  resize: none;
  color: var(--color-white);
}

/* END GENERAL FORM */

/* START  MEDIA QUERIES (Medium-Sized Devices) */
@media screen and (max-width: 600px) {
  /* START  GENERAL STYLES */
  .container {
    width: var(--container-width-md);
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  h5 {
    font-size: 0.8rem;
  }
  /* END  GENERAL STYLES */

  /* START  NAV STYLES */
  nav button {
    display: inline-block;
    font-size: 1.5rem;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
  }

  nav button#close__nav-btn {
    display: none;
  }
  .nav__container {
    position: relative;
  }
  .nav__items {
    display: none;
    position: absolute;
    flex-direction: column;
    top: 100%;
    right: 0;
    width: 12rem;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  .nav__items li {
    width: 100%;
    height: 4.5rem;
    display: flex;
    align-items: center;
    box-shadow: -2rem 3rem 7rem rgba(0, 0, 0, 0.7);
    background: white;
    border-top: 1px solid var(--color-bg);
    opacity: 0;

    animation: animateDropdown 400ms 0s ease forwards;
    transform-origin: top;
  }

  .nav__items li:nth-child(2) {
    animation-delay: 150ms;
  }
  .nav__items li:nth-child(3) {
    animation-delay: 250ms;
  }
  .nav__items li:nth-child(4) {
    animation-delay: 350ms;
  }
  .nav__items li:nth-child(5) {
    animation-delay: 450ms;
  }
  .nav__items li:nth-child(6) {
    animation-delay: 550ms;
  }

  /* Nav dropodwn animations */
  @keyframes animateDropdown {
    0% {
      transform: rotateX(90deg);
    }
    100% {
      transform: rotateX(0deg);
      opacity: 1;
    }
  }

  .nav__items a {
    border-radius: 0;
    width: 100%;
    height: 100%;
    background: white;
    padding: 0 2rem;
    display: flex;
    align-items: center;
  }

  .nav__profile {
    background: white;
  }

  .nav__profile ul {
    top: 100%;
    width: 100%;
  }
  .nav__profile ul li a {
    padding: 0 2rem;
    display: block;
    width: 100%;
    text-align: left;
    align-self: center;
    display: flex;
  }

  .nav__profile .avatar {
    margin-left: 2rem;
  }

  .featured__container {
    gap: 3rem;
  }

  .posts__container {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }

  /* START  BLOG */
  .search__bar-container {
    width: 60%;
  }
  /* END  BLOG */

  /* START  GENERAL FORM */
  .form__section-container {
    padding: 3rem;
  }
  /* END  GENERAL FORM */

  /* END  GENERAL STYLES */

  /* START DASHBOARD (Tablets)*/
  .dashboard__container {
    grid-template-columns: 4.5rem auto;
  }
  .dashboard aside {
  }
  .dashboard aside h5 {
    display: none;
  }
  .dashboard main table thead {
    display: none;
  }
  .dashboard main table tr {
    display: flex;
    flex-direction: column;
  }
  .dashboard main table tr:nth-child(even) {
    background: white;
  }

  .dashboard main table tr:hover td {
    background: transparent;
  }

  /* END DASHBOARD */

  .sidebar__toggle {
    display: none;
    
  }
  /* END  MEDIA QUERIES *(Medium-Sized Devices) */
}

/* START  MEDIA QUERIES (Small-Sized Devices) */

@media screen and (max-width: 600px) {
  section {
    margin-top: 2rem;
  }
  h1 {
    font-size: 2rem;
  }
  .featured {
    margin-top: 0rem;
  }
  .featured__container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .posts__container {
    grid-template-columns: 1fr;
  }

  .category__buttons-container {
    grid-template-columns: 1fr 1fr;
  }
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  /* START  BLOG */
  .search__bar-container {
    width: var(--container-width-md);
  }
  /* END  BLOG */

  /* START  SINGLE POST */
  .singlepost__container {
    background-color: transparent;
    padding: 0;
  }
  /* END  SINGLE POST */

  /* START  GENERAL FORM*/
  .form__section-container {
    padding: 0;
  }
  .form__section form a {
    padding-bottom: 2rem;
  }
  /* END  GENERAL FORM*/

  /* START  DASHBAORD*/
  .dashboard {
    margin-top: 0rem;
  }
  .dashboard__container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dashboard main {
    margin: 0;
  }
  .dashboard main h2 {
    margin-top: 1rem;
  }
  .dashboard aside {
    position: fixed;
    box-shadow: 2rem 0 4rem rgba(0, 0, 0, 0.4);
    left: 0;
    z-index: 2;
    height: 100vh;
    transition: var(--transition);
    background: var(--color-primary);
  }
  .singlepost__container{
    box-shadow: none;
  }

  .dashboard .sidebar__toggle {
    display: inline-block;
    background: var(--color-primary-variant);
    color: var(--color-white);
    position: fixed;
    right: 0;
    bottom: 4rem;
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50% 0 0 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: -1rem 0 2rem rgba(0, 0, 0, 0.4);
  }

  .dashboard aside a h5 {
    display: inline-block;
  }

    #hide_sidebar-btn {
    display: none;
  }
  /* END  DASHBAORD*/
}
/* END  MEDIA QUERIES (Small-Sized Devices) */



/*ADDED POST PAGE */


/*SECTION HEADER STARTS*/
.ribbon {
  width: 60px;
  font-size: 14px;
  padding: 4px;
  position: absolute;
  right: -25px;
  top: -12px;
  text-align: center;
  border-radius: 25px;
  transform: rotate(20deg);
  background-color: #ff9800;
  color: white;
}
/*SECTION HEADER ENDS*/



/*button*/
.btn {
  border: 0px solid black;
  border-radius: 5px;
  background-color: #ff9800;
  color: white;
  padding: 5px;
  font-size: 16px;
  cursor: pointer;
}


/*filter section*/

.featured__container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust gap as needed */
}

.post__thumbnail, .post__video, .post__info {
    box-sizing: border-box;
}

.post__thumbnail {
    flex: 1;
}

.post__video {
    flex: 2;
}

.post__info {
    flex: 2;
}

.about-me {
    width: 100%;
    margin-top: none; /* Adjust margin as needed */
}


/*8 row buttons*/

.buttone {
  border: none;
  color: white;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.button1 {
  background-color: white; 
  color: black; 
  border: 2px solid white;
}

.button1:hover {
  background-color: white;
  color: white;
}

/*button x for post area*/
.buttonx {
  background-color: red; /* green */
  border: none;
  color: white;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.button4 {border-radius: 12px;}


/*video playing */

   span.float-right.summary_icon {
    font-size: 3rem;
    position: absolute;
    right: 1rem;
    top: 0;
}
.imgs{
		margin: .5em;
		max-width: calc(100%);
		max-height: calc(100%);
	}
	.imgs img{
		max-width: calc(100%);
		max-height: calc(100%);
		cursor: pointer;
	}
	#imagesCarousel,#imagesCarousel .carousel-inner,#imagesCarousel .carousel-item{
		height: 60vh !important;background: black;
	}
	#imagesCarousel .carousel-item.active{
		display: flex !important;
	}
	#imagesCarousel .carousel-item-next{
		display: flex !important;
	}
	#imagesCarousel .carousel-item img{
		margin: auto;
	}
	#imagesCarousel img{
		width: auto!important;
		height: auto!important;
		max-height: calc(100%)!important;
		max-width: calc(100%)!important;
	}
	.vid-item{
		cursor: pointer;
		position: relative;
	}
	.watch{
		position: absolute;
		top: 0;
		left: 0;
		height: calc(100%);
		width: calc(100%);
		opacity: 0;
	    background: #00000052;
	}
	.vid-item:hover .watch{
		opacity: 1;
	}

/*video post page*/
	
  
  .modal-dialog.large {
    width: 80% !important;
    max-width: unset;
  }
  .modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
  }
  #viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: none;
    border: unset;
    font-size: 27px;
    top: 0;
}
#viewer_modal .modal-dialog {
        width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}
  #viewer_modal .modal-content {
       background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #viewer_modal img,#viewer_modal video{
    max-height: calc(100%);
    max-width: calc(100%);
  }


span.select2-selection.select2-selection--single {
    min-height: 2rem;
  }


/*Add CSS for pagination styling*/

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.pagination a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    border: 2px solid white;
    margin: 0 4px;
}

.pagination a.active {
    background-color: white;
    color: white;
    border: 0px solid black;
}

.pagination a:hover:not(.active) {
    background-color: #ff8400;
}


/*related posts section added*/


/*image upload*/

.cd__main{
    max-width: 720px !important;
}


.image-left, .image-right
{
	margin: 1em 0;
}

@media (min-width: 20em)
{
	.image-left, .image-right
	{
		display: flex;
		align-items: center;
	}

	.image-left img
	{

		margin-right: 1em;
		float: left; /* fallback */
	}

	.image-right img
	{
		order: 1;
		margin-left: 1em;
		float: right; /* fallback */
	}
	
	/* clearfix for fallback */
	.image-left::after,
	.image-right::after
	{
		content: "";
  	display: block;
		clear: both;
	}
}

@media (min-width: 30em)
{
	.image-left img, .image-right img
	{
		flex-shrink: 0;
	}
}

/*categories arranged horizontal*/

/*image gallery for photos*/

    .container1 {
        display: flex;
        justify-content: space-between;
    }

    .slideshow-column {
        flex: 1;
        margin-right: 20px;
    }

    .slideshow-container {
        width: 700px;
        height: 600px;
        position: relative;
        overflow: hidden;
        background-color: #f1f1f1;
        margin-bottom: 20px;
    }

    .slideshow-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .prev, .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        margin-top: -22px;
        padding: 16px;
        color: white;
        font-weight: bold;
        font-size: 18px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .next {
        right: 0;
        border-radius: 3px 0 0 3px;
    }

    .prev {
        left: 0;
    }

    .thumbnail-row {
        display: flex;
        justify-content: space-between;
    }

    .thumbnail-row img {
        width: 200px;
        height: 200px;
        object-fit: contain;
        cursor: pointer;
    }

    .articles-column {
        flex: 1;
        background-color: #f9f9f9;
        padding: 20px;
    }

    .articles-column h3 {
        margin-bottom: 10px;
    }

    .article-item {
        margin-bottom: 10px;
    }

    .article-item a {
        text-decoration: none;
        color: #333;
    }

    .article-item a:hover {
        color: #007BFF;
    }

/*dropdown categories*/

    /* Style the dropdown button */
.dropbtn {
    background-color: #fff;
    color: black;
    padding: 5px;
    font-size: 14.5px;
    border: 1px solid white;
    cursor: pointer;
}

/* The container for the dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(255, 255, 255);
    z-index: 1;
}

/* Dropdown links */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: white;
    color: white;
    
}

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
    
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: white;
    color: white;
}

/*display towns and categories*/
/* Main dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #fff;
    color: black;
    padding: 5px;
    font-size: 15px;
    border: 2px solid white;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(255,255,255);
    z-index: 1;
}

.dropdown-content .dropdown-item {
    position: relative;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: white;
}

/* Sub-towns dropdown */
.subtowns {
    display: none;
    position: absolute;
    left: 160px; /* Adjust based on the width of your category dropdown */
    top: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    z-index: 1;
    box-shadow: 0px 8px 16px 0px rgba(255,255,255);
}

.subtowns a {
    padding: 12px 16px;
    color: black;
}

.subtowns a:hover {
    background-color: white;
}

/* Show sub-towns on hover */
.dropdown-item:hover .subtowns {
    display: block;
    color: white;
}

/* Show dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
    color: white;
}


    /* Default styles for navigation */
.nav__items {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
}

.nav__items li {
    margin: 0 2px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 18px;
        background: #333;
        color: white;
        padding: 10px;
        border: none;
        cursor: pointer;
    }

    .nav__items {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #f9f9f9;
        position: absolute;
        top: 50px; /* Adjust based on header height */
        left: 0;
    }

    .nav__items.show {
        display: flex;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
    }

    .dropdown-content li {
        margin: 5px 0;
    }

    .dropdown-content a {
        padding: 10px;
        display: block;
        width: 100%;
        background-color: #f1f1f1;
        border-bottom: 1px solid #ddd;
    }

    .dropdown-toggle {
        display: block;
        width: 100%;
        padding: 10px;
        background-color: #f9f9f9;
    }

    .post-btn {
        display: block;
        width: 100%;
        padding: 10px;
        text-align: center;
        background-color: #ff4d4d;
        color: white;
        text-decoration: none;
        font-weight: bold;
    }
}


        

