@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #12ac8e;
  --primary-color-dark: #0d846c;
  --primary-color-light: #e9f7f7;
  --primary-color-dark: rgba(31, 41, 55, 0.95);
  --secondary-color: #fb923c;
  --btn: #fb923c;
  --text-dark: #333333;
  --text-light: #767268;
  --text-yellow: #eaa321;
  --white: #ffffff;
  --white-p: #767676;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-landingpage {
  padding: 0.75rem 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--white);
  background-color: var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

header {
  background-image: linear-gradient(
      to right,
      rgba(18, 172, 142, 0.9),
      rgba(18, 172, 142, 0.7)
    ),
    url("assets/header.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.nav__container {
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.nav__logo span {
  color: var(--secondary-color);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.link a {
  padding: 0.5rem;
  color: var(--primary-color-light);
}

.link a:hover {
  color: var(--white);
}
#home.header__container {
  padding-top: 15em;
}
.header__container {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.header__container h1 {
  margin-bottom: 1rem;
  max-width: 800px;
  font-size: 3.5rem;
  line-height: 4rem;
  color: var(--white);
}

.header__container p {
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--primary-color-light);
}

.header__form {
  width: 100%;
  max-width: 350px;
}

.header__form form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.header__form input {
  padding: 1rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--primary-color);
  background-color: var(--primary-color-light);
  border-radius: 5px;
}

.header__form input::placeholder {
  color: var(--primary-color);
}

.form__btn {
  background-color: var(--primary-color);
  transition: 0.3s;
}

.form__btn:hover {
  background-color: var(--secondary-color);
}

.header__form h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.service__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.service__header__content p {
  max-width: 600px;
  color: var(--text-light);
}

.service__btn {
  padding: 0.75rem 1rem;
  outline: none;
  font-size: 1rem;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: transparent;
  border-radius: 5px;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.3s;
}

.service__btn:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.service__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service__card {
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.service__card span {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 10px 20px;
  font-size: 2.5rem;
  color: var(--primary-color);
  background-color: var(--primary-color-light);
  border-radius: 100%;
  transition: 0.3s;
}

.service__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.service__card p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.service__card a {
  color: var(--primary-color);
}

.service__card a:hover {
  color: var(--primary-color-dark);
}

.service__card:hover span {
  color: var(--primary-color-light);
  background-color: var(--primary-color);
}

.about__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.about__content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.about__image img {
  max-width: 400px;
  margin: auto;
  border-radius: 10px;
}

.why__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.why__image img {
  max-width: 400px;
  margin: auto;
  border-radius: 10px;
}

.why__content p {
  color: var(--text-light);
}

.why__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 80px auto;
  gap: 2rem;
}

.why__grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.why__grid h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.why__grid p {
  color: var(--text-light);
}

.doctors__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.doctors__header__content p {
  max-width: 600px;
  color: var(--text-light);
}

.doctors__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doctors__nav span {
  padding: 5px 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: var(--primary-color-light);
  cursor: pointer;
}

.doctors__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.doctors__card {
  text-align: center;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}

.doctors__card__image {
  position: relative;
  overflow: hidden;
}

.doctors__socials {
  position: absolute;
  left: 0;
  bottom: -4rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: 0.5s;
}

.doctors__socials span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 1.5rem;
  color: var(--text-dark);
  background-color: var(--white);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.doctors__socials span:hover {
  color: var(--primary-color);
}

.doctors__card:hover .doctors__socials {
  bottom: 2rem;
}

.doctors__card h4 {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.position-relative {
  position: relative;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 32px;
  border: none;
  background: transparent;
  color: #6c757d;
}
.doctors__card p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer {
  background-color: var(--primary-color-dark);
}

.footer__container {
  display: grid;
  grid-template-columns: 400px repeat(3, 1fr);
  gap: 2rem;
}

.footer__col h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.footer__col h3 span {
  color: var(--text-yellow);
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-yellow);
}

.footer__col p {
  margin-bottom: 1rem;
  color: var(--white-p);
  cursor: pointer;
  transition: 0.3s;
}

.footer__col p:hover {
  color: var(--white);
}

.footer__col i {
  color: var(--primary-color);
}

.footer__bar {
  background-color: var(--primary-color);
}

.footer__bar__content {
  max-width: var(--max-width);
  margin: auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__bar__content p {
  font-size: 0.8rem;
  color: var(--white);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--white);
  cursor: pointer;
}

@media (width < 900px) {
  .service__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .about__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .about__image {
    grid-area: 1/1/2/2;
  }

  .about__content {
    text-align: center;
  }

  .why__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .why__content {
    text-align: center;
  }

  .why__grid {
    text-align: left;
  }

  .doctors__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width < 780px) {
  .nav__links {
    display: none;
  }

  .header__container {
    flex-direction: column;
  }
}

@media (width < 600px) {
  .service__header {
    flex-direction: column;
    text-align: center;
  }

  .service__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .why__grid {
    column-gap: 1rem;
  }

  .doctors__header {
    flex-direction: column;
    text-align: center;
  }

  .doctors__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer__bar__content {
    flex-direction: column;
    gap: 1rem;
  }
}

.password-requirements {
  padding: 10px 0;
  margin-top: 10px;
}

.requirement {
  margin-bottom: 8px;
  font-size: 14px;
}

.requirement i {
  margin-right: 8px;
  width: 16px;
}

.text-muted {
  color: #6c757d;
}

.text-success {
  color: #28a745;
}

.text-danger {
  color: #dc3545;
}
.form-check {
  margin-bottom: 15px;
}
.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
}
/* Full height container */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background-color: #f0f0f0; /* Light gray para lumutang ang shadow */
}

/* Custom styles for login page */
.login-side {
  position: relative;
  background: white;
  box-shadow: 10px 10px 20px rgba(2, 0, 1, 0.7); /* Floating shadow */
  z-index: 2;
}

.register-side {
  position: relative;
  background: white;
  box-shadow: 10px 10px 20px rgba(0, 1, 2, 0.7);
  z-index: 10;
  padding: 20px;
  border-radius: 10px;
  overflow: visible;
}

/* Right side background image */
.bg-image {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
              url("../../assets/images/loginside-bg-new.jpeg") no-repeat center center;
  background-size: cover;
  height: 100%;
  width: 100%;
}

/* Password toggle button */
.toggle-password {
  position: absolute;
  right: 5px;
  top: 70%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* news-details.php css for comments*/

/* Base comment styles */
.comment-thread {
  margin-bottom: 15px;
}

.comment-wrapper {
  position: relative;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

/* Responsive comment body */
.comment-body {
  border-radius: 18px;
  padding: 10px 15px;
  background-color: #f0f2f5;
  position: relative;
  word-wrap: break-word;
  max-width: 100%;
}

/* Comment footer */
.comment-actions {
  padding-left: 50px;
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
}

/* Base responsive styles */
.card {
  transition: transform 0.2s;
  overflow: hidden;
}

/* Better text readability for mobile */
.card-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive spacing */
@media (max-width: 768px) {
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .card-text {
    font-size: 0.95rem;
  }

  /* Stack meta info vertically on small screens */
  .post-meta .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Enhance touch targets for mobile */
.post-meta a,
.card-title {
  padding: 2px 0;
}

/* Ensure images don't overflow on small screens */
.post-image-container {
  max-height: 50vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Additional CSS for pagination styling */

.pagination {
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-link {
  color: #1877f2;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  background-color: #1877f2;
  border-color: #1877f2;
}

.page-link:hover {
  color: #0b5ed7;
  background-color: #e9ecef;
}

.page-item.disabled .page-link {
  color: #6c757d;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.comment-actions button {
  font-size: 0.75rem;
  font-weight: 600;
  color: #65676b;
  background: none;
  border: none;
  padding: 0;
  margin-right: 15px;
  cursor: pointer;
}

.comment-actions button:hover {
  text-decoration: underline;
}

/* Reply styles */
.reply-container {
  margin-left: 25px;
  border-left: 1px solid #ddd;
  padding-left: 15px;
}

/* Mobile optimizations */
@media (max-width: 576px) {
  .comment-wrapper {
    margin-bottom: 8px;
  }

  .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .comment-body {
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .comment-actions {
    padding-left: 40px;
    margin-top: 2px;
  }

  .comment-actions button {
    font-size: 0.7rem;
    margin-right: 10px;
  }

  .reply-container {
    margin-left: 15px;
    padding-left: 10px;
  }

  .timestamp {
    font-size: 0.65rem;
  }
}

/* Collapsed replies */
.show-more-replies {
  margin-left: 40px;
  padding: 5px 0;
  color: #1877f2;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.show-more-replies:hover {
  text-decoration: underline;
}

/* Forms */
.reply-form,
.edit-form {
  display: none;
  margin-top: 10px;
  margin-bottom: 10px;
}

.reply-form .form-control,
.edit-form .form-control {
  border-radius: 20px;
  background-color: #f0f2f5;
}

/* Hover effects */
.comment-body:hover {
  background-color: #e4e6eb;
}

/* Special styles for own comments */
.comment-own .comment-body {
  background-color: #e6f2ff;
}

.comment-own .comment-body:hover {
  background-color: #d1e7ff;
}

/* Like count */
.like-count {
  position: absolute;
  bottom: -5px;
  right: 10px;
  background-color: white;
  border-radius: 10px;
  padding: 2px 5px;
  font-size: 0.65rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loading-replies {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.loading-replies .spinner-border {
  width: 20px;
  height: 20px;
}

/* Edited badge */
.edited-badge {
  font-size: 0.7rem;
  color: #65676b;
  margin-left: 5px;
}

.navbar-collapse {
  display: none;
}
.navbar-collapse.show {
  display: block;
}

#moodSelect {
  background-color: transparent;
  color: #000000;
  border: none;
  outline: none;
  appearance: none;
  cursor: pointer;
  text-align: center;
  max-width: 25px;
}
#takeSurveyBtn {
  border: none;
  background-color: transparent;
  cursor: pointer;
  outline: none;
  padding: 5px;
  color: #ffffff;
}

.stats-container {
  display: grid;
  margin: 20px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stats-container a {
  text-decoration: none;
}
.card-box {
  padding: 20px;
  border: 2px solid #f3f3f3;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  background-clip: padding-box;
  margin-bottom: 20px;
  background-color: #ffffff;
}

.card-box p {
  color: #337ab7;
  font-weight: 600;
  font-size: 14px;
}
.card-box h2 {
  color: #505458;
}

@media screen and (max-width: 1024px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 767px) {
  .stats-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
