/*
Theme Name: ReadLab Theme
Author: ReadLab
Description: ReadLab's custom WordPress theme
Version: 4.9.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: readlab-theme
*/

/* ===============================
   Color Variables
   =============================== */
:root {
  --nav-white: #ffffff;
  /* --nav-bluelight: #ffffff; */
  --nav-green: #158480;
  --nav-greenlight: #75b22c;
  --nav-gray: #99a49d;
  --nav-yellow: #fdb813;
}

/* ===============================
   Typography & Text Styling
   =============================== */
body {
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  text-align: center;
}

a {
  text-decoration: none;
}

em, i {
  font-style: italic;
}

p, li {
 text-align: justify;
}

.light-text {
  font-weight: 300;
}

/* #logo-primary{
  width: 100%;
} */


/* ===============================
   Scrollbar Styling
   =============================== */
body::-webkit-scrollbar {
  width: 0.5em;
 /* background-color: #76b22c62; */
}

body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
  background-color: var(--nav-greenlight);
  border-radius: 50px;
}

/* ===============================
   Navigation Menu Colors
   =============================== */
.nav-home a {
  color: var(--nav-blue) !important;
}

.nav-project a {
  color: var(--nav-white) !important;
}

.nav-digital-eco a {
  color: var(--nav-green) !important;
}

.nav-media-corner a {
  color: var(--nav-greenlight) !important;
}

.nav-contact a {
  color: var(--nav-gray) !important;
}

.nav-language a {
  color: var(--nav-yellow) !important;
}

/* ===============================
   Navigation Layout
   =============================== */
#masthead {
  background-color: var(--nav-white);
  margin-bottom: 15px !important;
}

.navbar {
  padding: 0.5rem 0;
}


.navbar-nav {
  gap: 2rem;
  --bs-nav-link-padding-y: 0 !important;
}

.menu-item a {
  color: #158480;
  border:rgba(4, 78, 162, 0.76) solid 3px;
  border-radius: 20px;
  transition: all 0.2s ease-in-out;
}

.menu-item a:hover,
.menu-item a:focus {
  color:rgb(49, 49, 49) !important;        
  opacity: 0.85;                  
  text-decoration: none;          
}

/* ===============================
   Dropdown Styling
   =============================== */

.dropdown-menu {
  padding: 0;
  margin: 0;
  border: none;
  background-color: transparent;
  border-radius: 6px;
  /* min-width: 220px; */
}

.dropdown-menu .menu-item {
  margin: 0;
  padding: 5px;
  border: none;
  line-height: 1;
}

.dropdown-menu .nav-link {
  display: flex;
  align-items: center;
  padding: 0 0.2rem;
  height: 50px;
  line-height: 1.2;
  box-sizing: border-box;
  color: #158480; 
  background: white;

}

.dropdown-menu .nav-link:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* .dropdown-menu li:first-child .nav-link {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.dropdown-menu li:last-child .nav-link {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
} */

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-menu {
    transition: opacity 0.3s, visibility 0.3s;
  }
}

/* Mobile navigation adjustments */
@media (max-width: 991.98px) {
  .dropdown-menu {
    position: static !important;
    background: rgba(255, 255, 255, 0.1);
    border: none;
  }

  .navbar-collapse {
    padding: 1rem;
  }

  .flex-grow-1 {
    justify-content: flex-end !important; 
  }

  .navbar-collapse.justify-content-center {
    justify-content: flex-end !important;
  }
}

/* ===============================
   Active Menu Item Underline
   =============================== */

.menu-item.current-menu-item > a:not(.dropdown-toggle):not(.dropdown-menu a),
.menu-item.current_page_item > a:not(.dropdown-toggle):not(.dropdown-menu a),
.menu-item.current-menu-ancestor > a:not(.dropdown-toggle):not(.dropdown-menu a),
.menu-item.current_page_ancestor > a:not(.dropdown-toggle):not(.dropdown-menu a) {
  position: relative;
}

.menu-item.current-menu-item > a:not(.dropdown-toggle):not(.dropdown-menu a)::after,
.menu-item.current_page_item > a:not(.dropdown-toggle):not(.dropdown-menu a)::after,
.menu-item.current-menu-ancestor > a:not(.dropdown-toggle):not(.dropdown-menu a)::after,
.menu-item.current_page_ancestor > a:not(.dropdown-toggle):not(.dropdown-menu a)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; 
  width: 100%;
  height: 2px;
  background-color: #fff;
}

/* ===============================
   Lists and Content Styling
   =============================== */


/* .digital-text ul {
  list-style-type: disc !important;
  padding-left: 20px;
}

.wp-block-list {
  list-style-type: disc !important;
  padding-left: 40px;
} */


/* ===============================
   Custom Buttons
   =============================== */


.c-btn-1{
  border: #451955 3px solid;
  text-decoration: none;
  padding: 5px 10px;
  color: #ef345f;
  background: white;
  border-radius: 20px;
  font-weight: bolder;

  transition: all 0.5s ease-in-out;

  /* Set initial transform for animation to work */
  animation: slide-right-in .3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-fill-mode: forwards;
}

.c-btn-1:hover{
  border-radius: 0px;
  background-color: #451955;
  color: #fff;
  position: relative;
}




/* Mailchimp form */

.wp-block-column.newsletter-section{
  margin-top: 50px;
  padding-top: 20px;
  background: #ed049c5c;
  /* border-radius: 20px; */
  padding-left: 50px;
  padding-right: 50px;
}

.form-container {
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;    /* vertical centering */
    min-height: 100vh;      /* take full viewport height */
}

/* Style the form layout */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center; /* center label text */
}

/* Arrange input and button side by side */
.form-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Style the email input */
.form-group input[type="email"] {
    padding: 10px 20px;
    border-radius: 50px; /* pill shape */
    border: 1px solid #ccc;
    outline: none;
    flex: 1;
}

/* Style the submit button */
.form-group input[type="submit"] {
    padding: 10px 20px; 
    border-radius: 50px; /* pill shape */
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Button hover effect */
.form-group input[type="submit"]:hover {
    background-color: #f0f0f0;
}

/* **************** VIRTUAL LIBRARY ****************** */

.listing-item-db {
    display: flex;
    justify-content: center;;
    background-color: #fefeef;
    border-radius: 25px;
    padding: 5px;
    margin: 15px;
    filter: drop-shadow(5px 5px 0px #f4f4e3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-item-db:hover {
	transform: translateY(-3px);
	filter: drop-shadow(5px 5px 5px #e0e0c0);
}


.two-parts {
    display: flex;
    flex-direction: column;
    padding: 25px;
    align-items: center;
}

.left-image {
    align-content: center;
}

.left-image img {
    width: 100%;
    height: 100%;
    max-width: 350px !important;
    max-height: 250px !important;
    height: 100%;
    border-radius: 25px;
    object-fit: cover;
    border: 5px #f4f4e3 solid;
}

.right-descriptive {
    flex-grow: 1;
    max-width: 70%;
    padding-left: 5px;
    align-content: space-around !important;
}

.vl-list-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    gap: 10px;
}

.vl-single-category, .vl-single-tag {
	background-color: #80b6ef;
	border: 2px solid #5c74b6;
	color: #000;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 0.9rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.vl-single-category:hover, .vl-single-tag:hover {
	background-color: #5c74b6;
	color: #fff;
}

.loading-icon-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

@media screen and (max-width: 1070px) {
	.two-parts {
		padding: 0px;
	}

	.right-descriptive {
		max-width: 100% !important;
	}

	.vl-list-categories, .vl-list-tags {
		justify-content: space-evenly;
		gap: 5px;
	}
}