:root {
  --color-primary: #0077b6; /* Lab blue */
  --color-primary-light: rgba(0, 119, 182, 0.2); /* Soft overlay */
  --color-primary-variant: #023e8a; /* Darker blue */

  --color-red: #e63946; /* Alerts/errors */
  --color-red-light: rgba(230, 57, 70, 0.15);

  --color-green: #2a9d8f; /* Success indicators */
  --color-green-light: rgba(42, 157, 143, 0.15);

  --color-gray-900: #f8f9fa; /* Almost white text */
  --color-gray-700: #ced4da; /* Light gray text */
  --color-gray-300: rgba(255, 255, 255, 0.3);
  --color-gray-200: rgba(255, 255, 255, 0.7);

  --color-white: #ffffff; /* Used in highlights */
  --color-bg: #0d1b2a; /* Dark navy-blue background for a lab feel */

  --transition: all 300ms ease;

  --container-width-lg: 74%;
  --container-width-md: 88%;
  --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;
}
/* #region GENERAL */

* {
	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.6;
	color: var(--color-gray-200);
	overflow-x: hidden;
	background: var(--color-bg);
	font-size: 0.9rem;
}

.container {
	width: var(--container-width-lg);
	max-width: 1800px;
	margin-inline: auto;
}

section {
	margin-top: 3rem;
	width: 100vw;
}

h1,
h2,
h3,
h4,
h5 {
	color: var(--color-white);
	line-height: 1.3;
}

/* add to posts on index if there are no featured posts */
.section__extra-margin {
	margin-top: 7rem;
}

h1 {
	font-size: 3rem;
	margin: 1rem 0;
}
h2 {
	font-size: 1.7rem;
	margin: 1rem 0;
}
h3 {
	font-size: 1.1rem;
	margin: 0.8rem 0 0.5rem;
}
h4 {
	font-style: 1rem;
}

a {
	color: var(--color-white);
	font-size: medium;

}

img {
	display: block;
	width: 100%;
	object-fit: cover;
	height: 100%;
}
/* #endregion */

/* #region NAV */

.numero {
	background-color: #53c28b; 
	padding: 10px;
	text-align: left;
  }

nav {
	background: var(--color-primary);
	width: 100vw;
	position: fixed;
	top: 0;
	z-index: 10;
	box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
}

nav button {
	display: none;
}

.nav__container {

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px;
}

.avatar {
	width: 2.5rem;
	/* aspect-ratio: 1/1; */
	height: 2.5rem;
	border-radius: 50%;
	overflow: hidden;
	border: 0.3rem solid var(--color-bg);
}
.avatarl {
	width: 7rem;
	height: 4.5rem;

}

.nav_links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav__logo {
	font-weight: 600;
	font-size: 1.2rem;
}

.nav__items {
	display: flex;
	align-items: center;
	gap: 4rem;
	margin-right: 10px;
}

.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 hovered over */

.nav__profile:hover > ul {
	visibility: visible;
	opacity: 1;
}

.nav__profile ul li a {
	padding: 1rem;
	display: block;
	width: 100%;
	background: var(--color-gray-900);
}

.nav__profile ul li:last-child a {
	background: var(--color-red);
	color: var(--color-bg);
}
/* #endregion NAV */

/* #region CATEGORY BUTTON */

.category__button {
	background: #0077b6;
	color: white;
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: var(--card-border-radius-2);
	font-weight: 600;
	font-size: 600;
	font-size: 0.8rem;
	text-align: center;
}

/* #endregion CATEGORY BUTTON */

/* #region GENERAL POST */

.post__thumbnail {
	border-radius: var(--card-border-radius-5) 0;
	border: 1rem solid #0077b6;
	overflow: hidden;
	margin-bottom: 1.6rem;
}

.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;
}

/* #endregion GENERAL POST */

/* #region FEATURED */

.featured {
	margin-top: 8rem;
}

.featured__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}

.featured .post__thumbnail {
	height: fit-content;
}

/* #endregion FEATURED */

/* #region POSTS */

.posts__container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4rem;
	margin-bottom: 4rem;
}
/* #endregion POSTS */

/* #region CATEGORY BUTTONS */
.category__buttons {
	padding: 4rem 0;
	border-top: 2px solid #0077b6;
	border-bottom: 2px solid #0077b6;
}

.category__buttons-container {
	width: fit-content;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
/* #endregion CATEGORY BUTTONS */

/* #region CATEGORY FOOTER */
footer {

	padding: 5rem 0 0;

}

.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: black;
	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;
}

.footer__copyright {
	text-align: center;
	padding: 1.5rem 0;
	border-top: 2px solid turquoise;
	margin-top: 4rem;
}
/* #endregion CATEGORY FOOTER */

/* #region CATEGORY SEARCH */
.search__bar {
	margin-top: 7rem;
}

.search__bar-container {
	position: relative;
	width: 30rem;
	background: grey;
	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: var(--color-gray-200);
}

/* #region CATEGORY BUTTON */
.btn {
	display: inline-block;
	width: fit-content;
	padding: 0.6rem 1.2rem;
	background-color: var(--color-primary);
	border-radius: var(--card-border-radius-2);
	cursor: pointer;
	transition: var(--transition);
	color: var(--color-white);
}

.btn.sm {
	padding: 0.3rem;
	font-size: 0.8rem;
}
.btn.danger {
	background-color: red;
}
.btn:hover {
	background: var(--color-white);
	color: var(--color-bg);
}

/* #endregion CATEGORY BUTTON */

/* #region DASHBOARD */
.dashboard {
	margin-top: 6rem;
}

.sidebar__toggle {
	display: none;
}

.dashboard__container {
	display: grid;
	grid-template-columns: 14rem auto;
	gap: 1rem;
	background: var(--color-primary-light);
	padding: 2rem;
	margin-bottom: 5rem;
}
.dashboard aside a {
	color: var(--color-green);
	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-bg);
}
.dashboard aside a:hover {
	background: var(--color-bg);
}
.dashboard aside a.active {
	background-color: var(--color-bg);
}

.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);
}

/* #endregion DASHBOARD */

/* #region SINGLE POST */
.singlePost {
    margin: 6rem 0 2rem;
}

.singlePost__container {
    width: var(--form-width);
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
    padding: 2rem 3rem 4rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-gray-700);
}

.singlePost__container h2 {
    color: white; /* Changed to white */
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.post-content p {
    margin-top: 1.5rem;
    line-height: 1.8;
    color: white; /* Changed to white */
    font-size: 2 rem;
}

.singlePost__thumbnail {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.singlepost__thumbnail_img_container {
    flex: 1;
    height: 400px;
    position: relative;
    background: var(--color-gray-800);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.singlepost__thumbnail_img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-height: 400px;
    transition: transform 0.3s ease;
}

.singlepost__thumbnail_img:hover {
    transform: scale(1.02);
}

/* Author section styling */
.post__author {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--color-gray-800);
    border-radius: 8px;
}

.post__author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    object-fit: cover;
}

.post__author-info h5 {
    color: white; /* Changed to white */
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.post__author-info small {
    color: rgba(255, 255, 255, 0.7); /* Lighter white for less important text */
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .singlePost__container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .singlepost__thumbnail_img_container {
        height: 300px;
    }
    
    .singlePost__container h2 {
        font-size: 2rem;
    }
}

/* #endregion SINGLE POST */

/* #endregion CATEGORY SEARCH */

/* #region CATEGORY POSTS */
.category__title {
	height: 11rem;
	margin-top: 4.5rem;
	background: var(--color-gray-900);
	display: grid;
	place-items: center;
}
/* #endregion CATEGORY POSTS */

/* #region EMPTY PAGES */
.empty__page {
	height: 50vh;
	text-align: center;
	display: grid;
	place-content: center;
}
.empty__page1 {
	height: 5vh;
}
/* #endregion EMPTY PAGES */

/* #region 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-red-light);
	color: var(--color-red);
}

.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;
}

/* #region GENERAL DASHBAORD */

/* #endregion GENERAL DASHBAORD */

input,
textarea,
select {
	padding: 0.8rem 1.4rem;
	background-color: var(--color-gray-900);
	border-radius: var(--card-border-radius-2);
	resize: none;
	color: #000000; /* Black text */
}

/* #endregion GENERAL FORM */

/* #region  MEDIA QUERIES (Medium-Sized Devices) */
@media screen and (max-width: 1024px) {
	/* #region  GENERAL STYLES */
	.container {
		width: var(--container-width-md);
	}
	h2 {
		font-size: 1.6rem;
	}
	h3 {
		font-size: 1.2rem;
	}
	h5 {
		font-size: 0.8rem;
	}
	/* #endregion  GENERAL STYLES */

	/* #region  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: var(--color-gray-900);
		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: var(--color-gray-900);
		padding: 0 2rem;
		display: flex;
		align-items: center;
	}

	.nav__profile {
		background: var(--color-gray-900);
	}

	.nav__profile ul {
		top: 100%;
		width: 100%;
	}

	.nav__profile .avatar {
		margin-left: 2rem;
	}

	.featured__container {
		gap: 3rem;
	}

	.posts__container {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}

	.footer__container {
		grid-template-columns: 1fr 1fr;
	}

	/* #region  BLOG */
	.search__bar-container {
		width: 60%;
	}
	/* #endregion  BLOG */

	/* #region  GENERAL FORM */
	.form__section-container {
		padding: 3rem;
	}
	/* #endregion  GENERAL FORM */

	/* #endregion  GENERAL STYLES */

	/* #region DASHBOARD (Tablets)*/
	.dashboard__container {
		grid-template-columns: 4.5rem auto;
	}
	
	.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: var(--color-gray-900);
	}

	.dashboard main table tr:hover td {
		background: transparent;
	}

	/* #endregion DASHBOARD */

	.sidebar__toggle {
		display: none;
	}
	/* #endregion  MEDIA QUERIES *(Medium-Sized Devices) */
}

/* #region  MEDIA QUERIES (Small-Sized Devices) */

@media screen and (max-width: 600px) {
	section {
		margin-top: 2rem;
	}
	h1 {
		font-size: 2rem;
	}
	.featured {
		margin-top: 6rem;
	}
	.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;
	}
	/* #region  BLOG */
	.search__bar-container {
		width: var(--container-width-md);
	}
	/* #endregion  BLOG */

	/* #region  SINGLE POST */
	.singlePost__container {
		background-color: transparent;
		padding: 0;
	}
	/* #endregion  SINGLE POST */

	/* #region  GENERAL FORM*/
	.form__section-container {
		padding: 0;
	}
	.form__section form a {
		padding-bottom: 2rem;
	}
	/* #endregion  GENERAL FORM*/

	/* #region  DASHBAORD*/
	.dashboard {
		margin-top: 5rem;
	}
	.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: -100%;
		height: 100vh;
		transition: var(--transition);
		background: var(--color-primary);
	}

	.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;
	}
	/* #endregion  DASHBAORD*/
}
/* #endregion  MEDIA QUERIES (Small-Sized Devices) */



/* slide style*/

.slider {
	width: 100%;
	overflow: hidden;
	position: relative;
  }

  .slides {
	display: flex;
	transition: transform 0.5s ease;
  }

  .slide {
	min-width: 100%;
	overflow: hidden;
  }



/* map style*/
.contactinfo {
	align-self: flex-start;
	width: 100%; /* Adjusted for responsiveness */
	margin-top: 130px; /* Adjusted for responsiveness */
  }
  
  .contactTitle {
	font-size: 24px;
	border-bottom: 2px solid #333;
	padding-bottom: 5px;
	margin-bottom: 10px;
  }
  
  .contactp {
	margin: 5px 0;
  }
  
  .containerm {
	display: flex;
	flex-direction: column; /* Adjusted for responsiveness */
	gap: 100px; /* Adjusted for responsiveness */
	max-width: 100%; /* Adjusted for responsiveness */
	padding: 0 60px; /* Adjusted for responsiveness */
  }
  
  .title {
	display: flex;
	align-items: center;
	justify-content: center;
  }
  
  /* Media Queries for Responsiveness */
  
  @media only screen and (min-width: 768px) {
	.containerm {
	  flex-direction: row; /* Adjusted for responsiveness */
	  align-items: flex-start; /* Adjusted for responsiveness */
	}
  
	.contactinfo {
	  width: 50%; /* Adjusted for responsiveness */
	  margin-top: 30px; /* Adjusted for responsiveness */
	}
  }


/* about style*/
.containera {
	margin: 0 auto; /* Center the container horizontally */
	max-width: 1200px; /* Add a maximum width to the container */
	padding: 0 20px; /* Add padding to the sides */
	box-sizing: border-box; /* Include padding and border in the total width */
  }
  
  .imgContainera {
	width: 100%;
	max-height: 300px;
	position: relative;
  }
  
  .imga {
	width: 100%;
	height: 150px;
	object-fit: cover;
	filter: grayscale(100%);
	margin-top: 100px;
	margin-bottom: 100px;
  }
  
  .imgTexta {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background-color: #53c28b;
	padding: 5px;
	color: white;
  }
  
  .textContainera {
	display: flex;
	flex-direction: column;
	gap: 30px;
  }
  
  .itema {
	margin-top: 50px;
  }
  
  .desca {
	font-size: 18px;
	font-weight: 300;
	text-align: justify;
  }
  
  /* Media Queries for Responsiveness */
  
  @media only screen and (min-width: 768px) {
	.textContainera {
	  flex-direction: row;
	}
  
	.itema {
	  flex: 1;
	  margin-top: 0; /* Reset margin-top */
	}
  }
/**/

/*services style*/


.containers {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
}

.row {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Added to allow items to wrap onto multiple lines */
}

.service {
  text-align: center;
  margin: 0 15px;
  flex: 0 0 calc(33.333% - 30px); /* Adjusted for responsiveness */
  max-width: calc(33.333% - 30px); /* Adjusted for responsiveness */
}

.icon-circle {
  width: 100px;
  height: 100px;
  background-color: #53c28b;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-circle i {
  color: #fff;
  font-size: 36px;
}

.service h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.service p {
  font-size: 16px;
  color: #666;
}

.textContaineras {
	display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

.textContaineras p {
	font-size: 16px;
    flex: 1; 
	max-width: 600px;/* Allow the paragraph to grow to fill the available space */
}

.textContaineras div {
	
    flex-shrink: 0; /* Prevent the div from shrinking */
    margin-left: 20px; /* Add some space between the paragraph and the links */
}

.textContaineras a {
	margin-block-start: 1em;
    margin-block-end: 1em;
    display: block; /* Make the links block-level elements */
    margin-bottom: 5px; /* Add some space between the links */
}

/* Media Queries for Responsiveness */

@media only screen and (max-width: 768px) {
  .service {
    flex: 0 0 calc(50% - 30px); /* Adjusted for responsiveness */
    max-width: calc(50% - 30px); /* Adjusted for responsiveness */
  }
}

@media only screen and (max-width: 480px) {
  .service {
    flex: 0 0 calc(100% - 30px); /* Adjusted for responsiveness */
    max-width: calc(100% - 30px); /* Adjusted for responsiveness */
  }
}




/**/


