/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;

  /*===== Colores =====*/
  --first-color: #ff3030;
  --dark-color: #070d1f;
  --dark-color-alt: #000000;
  --white-color: #e6e7e9;
  --pcolor : rgb(213, 213, 213);
  --pcolor-black : rgb(101, 101, 101);

  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /*===== z index =====*/
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --normal-font-size: 14px;
    --small-font-size: 0.875rem;
    background-color: #282b3a;
  }
}

/*===== BASE =====*/
*,
::before,
::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: 500;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: #ffffff;
  font-family: sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

.bd-grid {
  max-width: 1024px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 100%;
  grid-template-columns: 100%;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/*===== HEADER =====*/
.header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  padding: 0rem 1.5rem;
  background-color: var(--dark-color);
  z-index: var(--z-fixed);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.header__logo {
  color: var(--white-color);
}

.header__toggle {
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
}

/*===== NAV =====*/
@media screen and (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    background-color: #282b3a
    color: var(--white-color);
    width: 100%;
    height: 100vh;
    padding: 1.5rem 0;
    z-index: var(--z-fixed);
    -webkit-transition: 0.5s;
    transition: 0.5s;
  }
}

.nav__content {
  height: 100%;
  -ms-grid-rows: max-content 1fr max-content;
  grid-template-rows: -webkit-max-content 1fr -webkit-max-content;
  grid-template-rows: max-content 1fr max-content;
  row-gap: 2rem;
}

.nav__close {
  position: absolute;
  right: 2.2rem;
  top: 0.6rem;
  font-size: 1.3rem;
  padding: 0.25rem;
  background-color: var(--white-color);
  border-radius: 50%;
  cursor: pointer;
}

.nav__img {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding-top: 0rem;
  margin-bottom: 0.8rem;
  width: 10px;
  height: 10px;
  margin-top: 1rem;
  border-radius: 50%;
  overflow: hidden;
}

.nav__img img {
  width: 30px;
}

.nav__name {
  display: block;
  color: var(--white-color);
}

.nav__profesion {
  font-size: var(--small-font-size);
  color: var(--first-color);
}

.nav__menu {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
}

.nav__item {
  margin: 2.5rem 0;
}

.nav__link {
  color: var(--white-color);
}

.nav__social {
  padding-top: 0.5rem;
}

.nav__social-icon {
  font-size: 1.2rem;
  color: var(--white-color);
  margin-right: 1rem;
}

.nav__social-icon:hover {
  color: var(--first-color);
}

/*Aparecer menu*/
.show {
  left: 0;
}

/*Active menu*/
.active {
  color: var(--first-color);
}

/*===== MEDIA QUERIES =====*/
@media screen and (min-width: 768px) {
  body {
    background-color: #282b3a;
    margin: 0;
  }
  .header {
    height: calc(var(--header-height) + 0rem);
  }
  .header__logo,
  .header__toggle {
    display: none;
  }
  .nav {
    width: 100%;
  }
  .nav__content {
    -ms-grid-columns: (max-content) [3];
    grid-template-columns: repeat(3, -webkit-max-content);
    grid-template-columns: repeat(3, max-content);
    -ms-grid-rows: 1fr;
    grid-template-rows: 1fr;
    -webkit-column-gap: 1rem;
    column-gap: 1rem;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  .nav__close,
  }
  .nav__profesion {
    display: none;
  }
  .nav__perfil {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .nav__img {
    width: 35px;
    height: 35px;
    margin: 0rem 1rem;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

  }
  .nav__img img {
    width: 100%;
    border-radius: 50%;
  }
  .nav__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .nav__item {
    margin: 0 0.25rem;
  }
  .nav__link {
    padding: 0.5rem 0.8rem;
    border-radius: 0.25rem;
  }
  .nav__link:hover {
    background-color: var(--first-color);
  }
  .active {
    background-color: var(--first-color);
    color: var(--white-color);
  }


@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

/* PEMBENARAN BACKROUND HP */
body {
  background-color: #282b3a;
}
@media screen and (max-width:768px) {
  body {
    background-color: #282b3a;
  }
  
}

/* fixing Nav backround */

.nav__content.bd-grid {
  background-color: var(--dark-color);
  margin: 1rem 0rem;
  padding: 0rem 0rem;
}

@media screen and (max-width:768px) {
  .nav__list {
    display: grid;
    gap: 4rem;
    justify-content: start;
    padding: 0rem 0.3rem;
  }
}

/* fixing Blog a */
.nav__link-Blog {
  color: var(--white-color);
  margin-left: 0.2rem;
}
.nav__link-Blog:hover {
  background-color: var(--first-color);
  padding: 7px 10px;
  border-radius: 5px;
  
}

/* SCROLLDOWN Bar*/

.nav__menu .nav__list .nav__item .dropdown {
  display: none;
}

.nav__menu .nav__list .nav__item .dropdown:hover {
  display: flex;

}
/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
}

.hero-text {
  color: white;
  margin: 0 5rem;
}

.hero-text h3 {
  margin: 0;
  font-weight: 500;
  color: var(--first-color);
}

.hero-text h1 {
  margin: 0;
  font-size: 47px;
}

.hero-text p {
  color: var(--pcolor);
  font-size: medium;
}

.hero-img img {
  max-width: 700px;
  height: auto;
  display: block;
}

/* ===== BUTTON ===== */
button {
  padding: 10.5px 20px;
  border: 0;
  border-radius: 100px;
  background-color: var(--first-color);
  color: #ffffff;
  font-size: 13.3px;
  font-weight: bold;
  transition: all 0.5s;
}

button:hover {
  background-color: #6fc5ff;
  box-shadow: 0 0 10px #6fc5ff50;
}

button:active {
  background-color: #3d94cf;
  transition: 0.25s;
  box-shadow: none;
  transform: scale(0.8);
}

/* ===== CONTENT (LAYANAN) ===== */
.container-Layanan {
  width: 100%;
}

.container-Layanan h1 {
  color: white;
  text-align: center;
  margin-top: 5rem;
}

/* ===== CARD LIST ===== */
.container-list-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.container-1 {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  text-align: start;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 1rem;

  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
}
.container-1 img {
  width: 90px;
}

.container-1:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.container-1 h1 {
  text-align: center;
}

.container-1 p {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #555;
  margin: 0;
  text-align: start;
}

.button {
  margin-top: auto;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #0b0b3b;
  color: #ffffff;
  padding: 40px 20px 20px;
  font-family: "Segoe UI", sans-serif;
  margin-top: 80px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  margin-top: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .bd-grid {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    display: block;
    text-align: center;
  }

  .container-list-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .container-1 {
    padding: 12px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container-list-5 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .container-1 {
    font-size: 12px;
    padding: 8px;
  }

  .container-1 h2 {
    font-size: 14px;
  }

  .container-1 p {
    font-size: 11px;
  }

  .container-1:hover {
    transform: none;
  }
}
