/* ==============================
   NerdWeb kezdőlap banner
   ============================== */

.nw-banner-only {
  width: 100%;
  margin: 0 0 28px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.nw-banner-only a {
  display: block;
}

.nw-banner-only img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}


/* ==============================
   Joomla fejléc finomhangolás
   ============================== */

.container-header {
  background: linear-gradient(120deg, #061b3f, #263064) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22) !important;
}

.container-header .navbar-brand img,
.container-header .brand-logo img {
  max-height: 95px !important;
}

.container-header .site-description,
.container-header p {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.container-header .mod-menu > li > a,
.container-header .navbar-nav > li > a {
  color: #ffffff !important;
  font-weight: 700 !important;
  padding-bottom: 8px !important;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a,
.container-header .navbar-nav > li.active > a {
  color: #ffffff !important;
  border-bottom: 3px solid #ffc400 !important;
}

.container-header .mod-menu > li > a:hover,
.container-header .navbar-nav > li > a:hover {
  color: #ffc400 !important;
}

.container-header .btn-primary,
.container-header button[type="submit"] {
  background: #061b3f !important;
  border-color: #061b3f !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.container-header .btn-primary:hover,
.container-header button[type="submit"]:hover {
  background: #ffc400 !important;
  border-color: #ffc400 !important;
  color: #061b3f !important;
}


/* ==============================
   Működési rend blokk
   ============================== */

.nw-info {
  margin: 30px 0;
}

.nw-info h2 {
  text-align: center;
  color: #003b82;
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 800;
}

.nw-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.nw-info-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  border-top: 4px solid #005bb8;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.nw-info-box h3 {
  color: #003b82;
  margin-bottom: 12px;
}

.nw-info-box p {
  margin: 0;
  line-height: 1.6;
}

.nw-note {
  margin-top: 25px;
  background: #fff7db;
  border-left: 5px solid #ffc400;
  padding: 18px 22px;
  border-radius: 8px;
}

@media (max-width: 1000px) {
  .nw-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nw-info-grid {
    grid-template-columns: 1fr;
  }
}


/* ==============================
   Szolgáltatások blokk
   ============================== */

.nw-services {
  margin: 40px 0;
}

.nw-services h2 {
  text-align: center;
  color: #003b82;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 30px;
}

.nw-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.nw-service {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  border-top: 4px solid #005bb8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.nw-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.nw-service h3 {
  color: #003b82;
  margin-bottom: 12px;
  font-size: 22px;
}

.nw-service p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .nw-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nw-services-grid {
    grid-template-columns: 1fr;
  }
}


/* ==============================
   Footer saját blokk
   ============================== */

.nw-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  color: #ffffff;
  padding: 28px 0;
  text-align: left;
}

.nw-footer h3 {
  color: #ffc400;
  font-size: 18px;
  margin-bottom: 12px;
}

.nw-footer p {
  margin: 0 0 8px 0;
  line-height: 1.45;
}

.nw-footer a {
  color: #ffffff;
  text-decoration: none;
}

.nw-footer a:hover {
  color: #ffc400;
}

.nw-footer-bottom {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: #cfd8e6;
  font-size: 14px;
}

@media (max-width: 900px) {
  .nw-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nw-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* Mobil banner javítás */

@media (max-width: 700px) {
  .nw-banner-only {
    border-radius: 10px;
    margin-bottom: 22px;
  }

  .nw-banner-only img {
    height: 180px;
    object-fit: cover;
    object-position: center center;
  }
}
.desktop-banner img,
.mobile-banner img {
    width: 100%;
    display: block;
    border-radius: 14px;
}

.mobile-banner {
    display: none;
}

@media (max-width:768px) {

    .desktop-banner {
        display: none;
    }

    .mobile-banner {
        display: block;
    }
}
/* Kapcsolat oldal */

.nw-contact-box {
  background: linear-gradient(120deg, #072b63, #005bb8);
  color: #ffffff;
  border-radius: 14px;
  padding: 36px 42px;
  margin: 0 0 30px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.nw-contact-box h1 {
  color: #ffffff;
  margin: 0 0 14px 0;
  font-size: 34px;
  font-weight: 800;
}

.nw-contact-lead {
  font-size: 18px;
  line-height: 1.55;
  max-width: 900px;
  margin-bottom: 24px;
}

.nw-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.nw-contact-grid div {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 18px 20px;
}

.nw-contact-grid strong {
  display: block;
  color: #ffc400;
  margin-bottom: 8px;
}

.nw-contact-grid a,
.nw-contact-grid span {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.nw-contact-grid a:hover {
  color: #ffc400;
}

@media (max-width: 800px) {
  .nw-contact-box {
    padding: 26px 22px;
  }

  .nw-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Kapcsolat űrlap dizájn
   ========================= */

.com-contact .contact-form {
  background: #ffffff !important;
  padding: 30px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.08) !important;
}

/* E-mail küldése felirat elrejtése */
.com-contact .contact-form legend,
.com-contact fieldset legend {
  display: none !important;
}

/* Kapcsolat űrlap cím */
.com-contact h3 {
  color: #003b82 !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #ffc400 !important;
}

/* Kötelező mező */
.com-contact .form-required,
.com-contact p.form-required {
  color: #003b82 !important;
  font-weight: 700 !important;
  margin-bottom: 18px !important;
}

/* Label */
.com-contact label {
  color: #003b82 !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}

/* Mezők */
.com-contact input[type="text"],
.com-contact input[type="email"],
.com-contact textarea {
  width: 100% !important;
  border: 2px solid #d8e1ee !important;
  border-radius: 10px !important;
  padding: 13px 14px !important;
  background: #ffffff !important;
}

/* Fókusz */
.com-contact input:focus,
.com-contact textarea:focus {
  border-color: #005bb8 !important;
  box-shadow: 0 0 0 4px rgba(0,91,184,.15) !important;
  outline: none !important;
}

/* Küldés gomb */
.com-contact .btn-primary,
.com-contact button[type="submit"] {
  background: #ffc400 !important;
  border: none !important;
  color: #061b3f !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  font-size: 16px !important;
}

.com-contact .btn-primary:hover,
.com-contact button[type="submit"]:hover {
  background: #005bb8 !important;
  color: #ffffff !important;
}
/* Kapcsolat oldalon a kapcsolattartó név elrejtése */
.com-contact h1,
.com-contact .page-header {
  display: none !important;
}
/* Kapcsolat űrlap finomhangolás */

.com-contact h3 {
  font-size: 28px !important;
  margin: 0 0 18px 0 !important;
  padding-bottom: 10px !important;
}

.com-contact .contact-form {
  padding: 24px 30px !important;
  margin-top: 20px !important;
}

.com-contact .form-required {
  margin-bottom: 14px !important;
}

.com-contact .control-group,
.com-contact .mb-3 {
  margin-bottom: 14px !important;
}

.com-contact textarea {
  min-height: 220px !important;
  height: 220px !important;
}

.com-contact input[type="text"],
.com-contact input[type="email"] {
  height: 46px !important;
}

.com-contact button[type="submit"],
.com-contact .btn-primary {
  margin-top: 10px !important;
}

/* Rólam oldal */

.nw-about h1 {
    text-align: center;
    color: #003b82;
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 800;
}

.nw-about-intro {
    background: linear-gradient(120deg,#072b63,#005bb8);
    color: #fff;
    padding: 35px;
    border-radius: 14px;
    margin-bottom: 30px;
}

.nw-about-intro h2 {
    color: #fff;
    margin-bottom: 20px;
}

.nw-about-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.nw-about-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #005bb8;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.nw-about-box h3 {
    color: #003b82;
    margin-bottom: 15px;
}

.nw-about-box ul {
    margin: 0;
    padding-left: 20px;
}

.nw-about-legal {
    background: #fff7db;
    border-left: 5px solid #ffc400;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.nw-about-contact {
    text-align: center;
    background: #003b82;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
}

.nw-about-contact h2 {
    color: #fff;
}

@media (max-width: 900px) {
    .nw-about-grid {
        grid-template-columns: 1fr;
    }
}

/* Árlista oldal */

.nw-prices h1 {
  text-align: center;
  color: #003b82;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 25px;
}

.nw-price-note {
  background: #fff7db;
  border-left: 5px solid #ffc400;
  padding: 20px 24px;
  border-radius: 10px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.nw-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}

.nw-price-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border-top: 4px solid #005bb8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nw-price-card h2 {
  color: #003b82;
  font-size: 22px;
  margin-bottom: 14px;
}

.nw-price {
  color: #061b3f;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.nw-price-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.nw-price-section h2 {
  color: #003b82;
  margin-bottom: 12px;
}

@media (max-width: 1000px) {
  .nw-price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nw-price-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog oldal - NerdWeb kártyás megjelenés */

.blog {
  margin-top: 20px;
}

.blog h1 {
  color: #003b82;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 28px;
}

.blog-items {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.blog-item {
  background: #ffffff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border-top: 4px solid #005bb8 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10) !important;
  transition: 0.2s ease !important;
}

.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14) !important;
}

.blog-item img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  display: block !important;
  border-bottom: 4px solid #ffc400 !important;
}

.blog-item .item-content {
  padding: 22px !important;
}

.blog-item .page-header h2,
.blog-item h2 {
  font-size: 24px !important;
  line-height: 1.25 !important;
  margin-bottom: 14px !important;
}

.blog-item .page-header h2 a,
.blog-item h2 a {
  color: #003b82 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

.blog-item .page-header h2 a:hover,
.blog-item h2 a:hover {
  color: #005bb8 !important;
}

.blog-item p {
  line-height: 1.55 !important;
}

.blog-item .readmore a,
.blog-item .btn {
  border: 1px solid #005bb8 !important;
  color: #003b82 !important;
  border-radius: 8px !important;
  padding: 9px 14px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.blog-item .readmore a:hover,
.blog-item .btn:hover {
  background: #ffc400 !important;
  border-color: #ffc400 !important;
  color: #061b3f !important;
}

.blog-item .article-info {
  font-size: 14px !important;
  color: #555 !important;
  margin-bottom: 12px !important;
}

@media (max-width: 1100px) {
  .blog-items {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 700px) {
  .blog-items {
    grid-template-columns: 1fr !important;
  }

  .blog-item img {
    height: 190px !important;
  }

  .blog h1 {
    font-size: 30px !important;
  }
}

/* Tudásbázis */

.category-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-list table {
    width: 100%;
    border-collapse: collapse;
}

.category-list thead {
    background: #003b82;
}

.category-list thead th {
    color: #fff;
    font-weight: 700;
    padding: 14px;
}

.category-list tbody tr {
    transition: 0.2s;
}

.category-list tbody tr:nth-child(even) {
    background: #f7f9fc;
}

.category-list tbody tr:hover {
    background: #eef5ff;
}

.category-list td {
    padding: 14px;
}

.category-list a {
    color: #003b82;
    font-weight: 600;
    text-decoration: none;
}

.category-list a:hover {
    color: #ffc400;
}

.badge {
    background: #ffc400 !important;
    color: #061b3f !important;
    font-weight: 700;
}