/* site global settings */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Roboto", "Arial";
}
@font-face {
  font-family: "Jersey 10";
  src: url(./font/Jersey10-Regular.ttf);
}
:root {
  --primary-color-dark: black;
  --secondary-color: #ff6a33;
  --color-white: white;
  --bg-color-ad: #ffdacc;
  --padding-between-sections: 15px;
  --text-muted: #666666;
  --text-strong: #333333;
}

.heading__h1 {
  font-size: 32px;
  font-weight: bolder;
}
.heading__h2 {
  font-weight: 800;
  font-size: 28px;
}

.heading__h3 {
  font-weight: 600;
  font-size: 26px;
}

.heading__h4 {
  font-weight: 300;
  font-size: 24px;
}

.heading__h5 {
  font-weight: 400;
  font-size: 16px;
}

.copyright {
  font-weight: 400;
  font-size: 14px;
}
.support__h4 {
  font-family: "Jersey 10", "Roboto";
  color: var(--secondary-color);
  text-align: center;
  font-weight: bolder;
  margin-top: 10px;
}

.btn {
  background: none;
  cursor: pointer;
  border: none;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

a.btn, a.btn-main-blue, a.btn_white {
  text-decoration: none;
  display: inline-block;
}

a.btn:hover, a.btn-main-blue:hover, a.btn_white:hover {
  text-decoration: none;
}

.btn-main-blue {
  border: 2px solid var(--secondary-color);
  border-radius: 15px;
  padding: 3px 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--secondary-color);
}

.btn-main-blue:hover {
  background-color: var(--secondary-color);
  color: var(--color-white);
}

.btn_white {
  border: 2px solid var(--color-white);
  border-radius: 15px;
  padding: 5px 25px;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-white);
}

.btn_white:hover {
  background-color: var(--color-white);
  color: var(--secondary-color);
}

.btn-large {
  padding: 10px 30px;
  border-radius: 25px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  background-color: transparent;
  color: var(--secondary-color);
}
.paragraph {
  font-size: 14px;
}

.logo {
  height: auto;
  max-width: 150px;
  width: 100%;
}

/* MEDIA QUERIES */

@media (min-width: 1200px) {
  .heading__h1 {
    font-size: 34px;
  }
  .heading__h2 {
    font-weight: 700;
    font-size: 30px;
  }

  .heading__h3 {
    font-weight: 700;
    font-size: 28px;
  }

  .heading__h4 {
    font-size: 26px;
  }

  .support__h4 {
    font-size: 40px;
  }

  .heading__h5 {
    font-weight: 400;
    font-size: 18px;
  }

  .paragraph {
    font-size: 16px;
  }
}

/* header */

header {
  background-color: var(--secondary-color);
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo_header,
.box-logo {
  display: flex;
  justify-content: center;
}

.navigation-bar {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  align-items: center;
}

.navigation {
  flex: 1;
}
.search_header {
  flex: 1;
  justify-content: end;
  display: flex;
  align-items: center;
}

.logo_header {
  flex: 2;
}

.search__field {
  display: none;
}

.button-header {
  width: 50px;
}

.icon__search {
  transform: scale(80%);
  background: url(./icons/lupa.svg) no-repeat;
  min-width: 50px;
  height: 50px;
  margin-left: 5px;
}

.nav__link {
  text-decoration: none;
  border-radius: 20px;
  padding: 5px 30px;
  font-weight: 600;
}

.nav__link:hover {
  text-decoration: none;
}

/* HAMBURGER MENU */

#menuToggle {
  display: block;

  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle .nav__link {
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

#menuToggle .nav__link:hover,
#menuToggle .nav__link.active,
.nav__link.active {
  background-color: var(--secondary-color);
  color: var(--color-white);
}

#menuToggle .hamburger__checkbox {
  display: block;
  width: 32px;
  height: 32px;
  position: absolute;
  opacity: 0;
  cursor: pointer;
  z-index: 111;
}

#menuToggle .hamburger__icon {
  display: block;
  width: 30px;
  height: 6px;
  margin-top: 5px;
  position: relative;
  background: var(--color-white);
  z-index: 110;
}

#menu {
  position: absolute;
  max-width: 400px;
  width: 100vw;
  height: 102vh;
  margin: -62px 0 0 -50px;
  padding: 50px;
  padding-top: 85px;
  box-sizing: border-box;
  overflow-y: auto;
  background: var(--bg-color-ad);
  list-style-type: none;
  transform: translate(-2000%, 0);
}

#menu .list__item {
  padding: 10px 0;
  font-size: 18px;
  margin-top: 5px;
}

#menuToggle .hamburger__checkbox:checked ~ .hamburger__icon {
  background: black;
}

#menuToggle .hamburger__checkbox:checked ~ .nav-header {
  transform: translate(0, 0);
}
.nav-header {
  z-index: 20;
}

/* MAIN */
#main {
  padding: 0 25px;
}

.main__h1 {
  text-align: center;
  background-color: var(--bg-color-ad);
  padding: 10px 0;
}

.main__h2 {
  text-align: center;
  margin: 30px 0 10px;
  padding: 10px 0;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.article__h3 {
  margin-top: 10px;
  color: var(--secondary-color);
}

.article__link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.article__link {
  text-decoration: none;
  color: var(--primary-color-dark);
}

.article__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.article__text {
  margin: 10px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.categories-author__date {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  align-items: flex-end;
  gap: 10px;
}
.author__date {
  display: flex;
  flex-direction: column;
  align-items: end;
}
.article__categories {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.author a {
  color: var(--primary-color-dark);
  font-style: normal;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

.author a:hover {
  font-weight: 700;
}

.grid {
  padding: var(--padding-between-sections) 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.line {
  height: 1px;
  border-width: 0;
  margin: var(--padding-between-sections) 0;
}
.main-blue__line {
  background-color: var(--secondary-color);
}

.white__line {
  background-color: white;
  width: 100%;
}

.show-more__btn {
  display: flex;
  justify-content: center;
}

.btn-category {
  margin-top: 25px;
}

/* support section */

.main-support__ad {
  padding: 10px 20px;
  margin: 0 auto;
  background-color: var(--bg-color-ad);
  border-radius: 85px;
}

.support-ad__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 20px;
  gap: 15px;
}

.ad-content__box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-content__p {
  font-weight: 500;
}

.ad-content__thanks {
  text-align: center;
  font-size: 10px;
}

.ad-content__btn:hover {
  background-color: var(--secondary-color);
  color: var(--color-white);
}

/* about page */

.about__section {
  padding: var(--padding-between-sections) 0;
}

.about__content {
  max-width: 800px;
  margin: 0 auto;
}

.about__h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.about__paragraph {
  margin-bottom: 15px;
  line-height: 1.6;
}

.about__contact {
  margin-top: 15px;
  padding: 20px;
  background-color: var(--bg-color-ad);
  border-radius: 15px;
}

/* blog post page */

.post {
  max-width: 800px;
  margin: 0 auto;
}

.post__header {
  margin-bottom: 25px;
}

.post__categories {
  margin-bottom: 15px;
}

.post__title {
  margin-bottom: 15px;
  line-height: 1.2;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.post__date {
  font-style: normal;
}

.post__separator {
  color: var(--text-muted);
}

.post__author {
  font-style: normal;
}

.post__author a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}

.post__author a:hover {
  text-decoration: none;
}

.post__figure {
  margin: 25px 0;
}

.post__image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 15px;
}

.post__caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.post__content {
  margin-top: 30px;
}

.post__lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-strong);
}

.post__h2 {
  margin-top: 35px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.post__paragraph {
  margin-bottom: 20px;
  line-height: 1.8;
}

.post__footer {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 2px solid var(--bg-color-ad);
}

.post__footer-text {
  font-size: 14px;
  color: var(--text-muted);
}

.post__footer-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.post__footer-text a:hover {
  text-decoration: underline;
}

/* subscription page */

.subscription__section {
  padding: var(--padding-between-sections) 0;
}

.subscription__intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.subscription__h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.subscription__paragraph {
  margin-bottom: 20px;
  line-height: 1.6;
}

.subscription__plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.subscription__plan {
  padding: 25px;
  background-color: var(--bg-color-ad);
  border-radius: 25px;
  text-align: center;
  position: relative;
}

.plan__featured {
  border: 3px solid var(--secondary-color);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
}

.plan__h4 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.plan__price {
  font-size: 28px;
  font-weight: 700;
  margin: 15px 0;
  color: var(--primary-color-dark);
}

.plan__save {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.plan__features {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.plan__features li {
  padding: 8px 0;
  font-size: 14px;
}

.plan__btn {
  margin-top: 10px;
}

.subscription__faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  margin-bottom: 25px;
}

.faq__h4 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.faq__paragraph {
  line-height: 1.6;
}

/* footer */

#footer-section {
  margin-top: 30px;
  background-color: var(--secondary-color);
  padding: 20px 15px;
}
.footer-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: start;
}


.box-logo {
  align-self: center;
}

.link-footer {
  color: white;
  border: 2px solid var(--color-white);
}

.link-footer:hover {
  background-color: var(--color-white);
  color: var(--secondary-color);
}

.nav-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.social__footer {
  max-width: 50px;
}
.social-logos {
  display: flex;
  gap: 30px;
  margin-top: 15px;
}

.socials {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.list__item {
  list-style-type: none;
}

.nav-footer .list__item {
  margin-top: 3px;
}
.socials__h5,
.copyright {
  color: white;
}

.footer__copyright {
  width: 100%;
  text-align: center;
}
.copyright__h4 {
  color: white;
  margin-bottom: 15px;
}

/* MEDIA QURIES */

@media (min-width: 768px) {
  .search__field {
    display: block;
    flex: 1;
    max-width: 300px;
    padding: 8px;
    border-radius: 30px;
    border: none;
  }
  .support-ad__content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .main-support__ad {
    max-width: 700px;
  }

}

@media (min-width: 992px) {
  .navigation-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
    padding: 10px 0;

  }

  .navigation {
    justify-self: start;
  }

  .logo_header {
    justify-self: center;
  }

  .search_header {
    justify-self: end;
  }

  #menuToggle .hamburger__checkbox,
  #menuToggle .hamburger__icon {
    display: none;
  }

  #menuToggle .nav__link {
    color: var(--color-white);
    border-color: transparent;
    padding: 4px 7px;
  }

  #menuToggle {
    display: flex;
    align-items: center;
  }

  #menu {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    display: flex;
    gap: 8px;
  }

  #menu .list__item {
    padding: 0;
    margin: 0;
  }

  .navigation {
    display: flex;
    align-items: center;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {

  .grid {
    grid-template-columns: repeat(2, minmax(400px, 1fr));
  }

  .main-support__ad {
    max-width: 750px;
  }
}

@media (min-width: 1200px) {
  .logo {
    min-width: 220px;
    height: auto;
  }
  #main {
    max-width: 900px;
    margin: 0 auto;
  }

  .footer-wrapper {
    max-width: 95%;
    margin: 0 auto;
  }

  .grid {
    gap: 3rem;
  }

  .grid__easy .article__grid {
    display: flex;
    gap: 50px;
  }
  .grid__easy .article__img {
    width: 400px;
    height: 300px;
  }

  .grid__categories {
    grid-template-columns: repeat(2, minmax(400px, 1fr));
    gap: 25px;
  }

  .grid__categories .article__grid {
    flex-direction: column;
    gap: 20px;
  }

  .grid__categories .article__grid .article__img {
    width: 100%;
  }

  .article__text {
    -webkit-line-clamp: 6;
  }

  .article__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
  }

  .article__h3 {
    margin-top: 0;
  }

  .grid__complex {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 25px;
  }

  .grid__complex .article__img {
    width: 100%;
    height: 170px;
    margin-bottom: 5px;
  }

  .grid__complex .article__h3 {
    font-size: 20px;
    -webkit-line-clamp: 2;
  }

  .grid__complex .article__text,
  .grid__complex .categories-author__date {
    display: none;
  }

  .article__2x1 {
    grid-column: span 2;
  }

  .article__1x2 {
    grid-row: span 2;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .article__1x2 .article__img {
    width: 100%;
    height: 98%;
  }

  .article__1x2 .article__link {
    flex: 1;
  }

  .article__2x1 .article__img {
    width: 100%;
    max-height: 100%;
  }

  .main-support__ad {
    max-width: 800px;
  }

  .ad-content__thanks {
    font-size: 14px;
  }

  .footer-wrapper {
    flex-direction: row;
    gap: 20px;
  }

  #footer-section .white__line.line {
    display: none;
  }

  .footer__nav,
  .about-us {
    order: 3;
  }

  .socials.footer-box {
    width: auto;
    flex-direction: column;
    align-items: start;
  }

  .footer-box {
    flex: 1;
  }

  .box-logo {
    order: 2;
    flex: 3;
  }

  .footer-logo {
    font-size: 80px;
    text-align: center;
  }

  .footer__copyright {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid white;
  }

  .socials_address {
    margin-bottom: 30px;
  }

  .ad-content__thanks {
    padding-top: 40px;
    padding-bottom: 10px;
  }

  .subscription__plans {
    grid-template-columns: repeat(3, 1fr);
  }

  .post__lead {
    font-size: 20px;
  }

  .post__h2 {
    font-size: 30px;
  }

  .post__meta {
    font-size: 15px;
  }

  .post__image {
    max-height: 600px;
  }
}

@media (min-width: 1400px) {
  #main {
    max-width: 1000px;
  }

  .grid__easy .article__img {
    width: 450px;
    height: 337.5px;
  }

  .article__text {
    -webkit-line-clamp: 8;
  }
}

/* PRINT STYLES */

@page {
  margin: 12mm;
}

@media print {
  /* Global print reset */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none;
    text-shadow: none;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  /* Print link URLs after anchor text. */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555 !important;
    word-break: break-all;
  }
  .logo_header a[href]::after,
  .box-logo a[href]::after {
    content: "";
  }

  /* Hide interactive and decorative elements */
  #menuToggle, #menu, .hamburger__checkbox, .hamburger__icon,
  .search_header, .search__field, .icon__search,
  .btn, .btn-main-blue, .btn_white, .btn-large, .btn-category,
  .show-more__btn, .main-support__ad,
  .nav-footer, .social-logos, .socials, .footer__nav,
  .article__categories, .post__categories, .plan__badge, .post__footer {
    display: none;
  }

  /* Header with logo */
  header {
    position: relative;
    border-bottom: 2px solid black;
    margin-bottom: 15px;
  }

  .navigation-bar {
    display: flex;
    justify-content: center;
    padding: 10px;
    min-height: auto;
  }

  .logo_header, .box-logo {
    display: flex;
    justify-content: center;
  }

  .logo {
    display: block;
    max-width: 220px;
    height: auto;
  }

  /* Content layout */
  #main {
    padding: 0 12px;
    max-width: 100%;
  }

  .main__h1 {
    padding: 6px 0;
    margin-bottom: 12px;
  }

  h1, h2, h3, h4, h5 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .main__h2, .post__h2 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .grid, .article__grid, .article__wrapper,
  .categories-author__date, .subscription__plans, .footer-wrapper {
    display: block;
  }

  /* Articles */
  .article__grid {
    margin-bottom: 14px;
    border-bottom: 1px solid #bbb;
    padding-bottom: 10px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .article__img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 120pt;
    object-fit: contain;
  }

  .article__text {
    display: block;
    -webkit-line-clamp: initial;
    -webkit-box-orient: initial;
    overflow: visible;
  }

  .article__h3 {
    font-size: 16pt;
  }

  .article__text {
    margin: 6px 0 8px;
  }

  .categories-author__date {
    margin-top: 6px;
  }

  .author__date {
    align-items: flex-start;
  }

  /* Blog posts */
  .post {
    max-width: 100%;
  }

  .post__title {
    font-size: 24pt;
  }

  .post__meta, .post__caption {
    color: #666;
  }

  .post__meta {
    font-size: 10pt;
  }

  .post__caption {
    font-size: 9pt;
  }

  .post__image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 200pt;
    object-fit: contain;
  }

  .post__figure {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .post__lead {
    font-size: 13pt;
    font-weight: 600;
  }

  .post__h2 {
    font-size: 16pt;
  }

  .post__paragraph {
    font-size: 11pt;
  }

  /* Subscription and About pages */
  .subscription__plan, .about__contact {
    border: 1px solid #ccc;
  }

  .subscription__plans {
    gap: 12px;
  }

  .subscription__plan {
    padding: 14px;
    margin-bottom: 10px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .faq__item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .plan__featured {
    border: 2px solid black;
  }

  .about__h3 {
    font-size: 16pt;
  }

  .about__paragraph {
    font-size: 11pt;
  }

  /* Typography */
  h1 { font-size: 24pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 14pt; }
  h4, h5 { font-size: 12pt; }

  /* Footer */
  #footer-section {
    display: none;
  }

  hr.line {
    background: none !important;
    border: 0;
    border-top: 1px solid #999;
    height: 0;
  }
}

