/*meniu*/
/*hamburger*/
/* =========================
   MOBILE MENU
   ========================= */

.mobile-toggle,
.mobile-menu {
  display: none;
}

@media (max-width: 575px) {
    .furnizori-page {
        padding: 20px 0 40px;
    }

    .furnizori-container {
        width: 94%;
    }

    .furnizor-link {
        padding: 12px 14px 12px 18px;
        line-height: 1.45;
    }
}

@media (max-width: 768px) {

  /*Meniu*/
  .header_top,
  .header_top_outer,
  .header_top_inner,
  .header_top_left {
    display: none;
  }

  .header_bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .header_bottom_outer {
    background-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .header_bottom_inner {
    margin-left: 0;
    padding: 0 10px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .header_bottom_right {
    display: none;
  }

  .dropdown,
  .dropbtn,
  .dropdown-content {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: none;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 300;
  }

  .mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .header_bottom_left {
    width: auto;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .header_bottom_left a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 0;
  }

  .header_bottom_left img {
    width: 32px;
    height: 32px;
    min-width: 32px;
    object-fit: cover;
  }

  .header_bottom_left p {
    margin: 0;
    color: #fff;
    font-size: 0.90rem;
    line-height: 1.05;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    max-width: 12rem;
    white-space: normal;
  }

  .header_top,
  .header_bottom {
    background-color: #2F80ED;
    color: #ffffff;
  }


  .mobile-menu {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    z-index: 250;
    padding: 0;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }


  /* highlight cand e deschis (optional) */
  .mobile-menu-section.open .mobile-menu-parent {
    background-color: #2e9e44;
    color: #fff;
  }

  /* submenu show/hide */
  .mobile-submenu {
    display: none;
  }

  .mobile-menu-section.open .mobile-submenu {
    display: block;
  }

  .mobile-submenu {
    display: none;
    background: #f8f8f8;
  }

  .mobile-menu-section.open .mobile-submenu {
    display: block;
  }

  .mobile-submenu a {
    display: block;
    padding: 12px 16px 12px 28px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.35;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu-parent,
  .mobile-single-link {
    width: 100%;
    padding: 14px 40px 14px 9px;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
    text-align: left;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
  }

  .mobile-menu-parent {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 3% 4%;
    /* width: 31%; */
  }

  .mobile-title {
    display: block;
  }

  .mobile-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: block !important;
    font-size: 14px;
    line-height: 1;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: Arial, sans-serif;
  }

  .mobile-menu-section.open .mobile-arrow {
    transform: translateY(-50%) rotate(180deg);
  }

  .mobile-arrow {
    display: inline-block !important;
    position: relative !important;
    font-size: 14px !important;
    color: #333 !important;
    background: white !important;
    /* padding: 2px !important; */
    z-index: 9999 !important;
    padding: 4% 1% 0 0 !important;
  }

  /* .mobile-menu-parent {
    display: flex !important;
  } */

  .mobile-single-link {
    display: block;
  }

  .main-title {
    font-size: 1.4rem;
  }



  /*Prima pagina*/
  .slideshow {
    display: none;
  }

  /*Contacteaza-ne*/
  #middle {
    padding-top: 4rem;
  }

  .middle-row {
    width: 100%;
    padding: 0 15px;
  }

  .middle-row-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .middle-row-outer {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #icon-box {
    justify-content: flex-start;
    align-items: center;
  }

  .one-third {
    width: 100%;
  }

  .middle-icon {
    font-size: 24px;
    width: 35px;
    height: 35px;
    margin-right: 1rem;
  }

  .icon-box-text h2 {
    font-size: 16px;
  }

  .icon-box-heading {
    font-size: 13px;
    color: rgba(58, 58, 68, 0.9);
  }

  /*Anunturi*/
  .anunturi-pr {
    padding: 0 15px 20px;
  }

  .anunturi-pr h2 {
    font-size: 1.9rem;
    text-align: center;
    margin: 10px 0 20px;
  }

  .grid-2-anunturi {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
    margin: 0;
  }

  .carte-vizita2 {
    width: 100%;
    height: auto;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    outline: 1px solid #d7dde2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    background: #fff;
    width: 100%;
    max-width: 320px;
    /* mai mici */
    margin: 0 auto;
    padding: 10px;
    border-radius: 10px;
  }

  .carte-vizita2 img {
    width: 100%;
    height: 8.75rem;
    margin: 0 0 12px 0;
    padding: 0;
    border-radius: 4px;
    object-fit: cover;
  }

  .carte-vizita2 p {
    margin: 0;
    padding: 0;
    text-align: left;
    line-height: 1.4;
  }

  .carte-vizita2 p a {
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
    word-break: break-word;
  }

  /*despre noi*/
  .despre-noi {
    width: 100%;
    margin-left: 0;
    padding: 1.5rem 1rem;
  }

  .despre-noi h2 {
    margin-left: 0;
    font-size: 1.3rem;
    line-height: 1.4;
    text-align: left;
    margin-bottom: 1rem;
  }

  .despre-noi p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-indent: 15px;
  }

  .despre-noi ul {
    margin-left: 1rem;
    padding-left: 0.5rem;
  }

  .despre-noi ul li {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
  }

  /*Comunicate de presa*/
  .comunicat-presa {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .comunicat-presa .comunicat-container {
    width: 92%;
    max-width: 25rem;
    /* ~400px */
    height: auto;
    padding: 0.9rem 1rem;
    margin-left: 0 !important;
    border-radius: 0.6rem;
  }

  .comunicat-presa .comunicat-titlu {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .comunicat-presa .comunicat-container h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .comunicat-presa .comunicat-container p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
  }

  .btn-citeste-mai-mult {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
  }

  /*Atribuții și responsabilități*/
  .dsp-info-section {
    padding: 2.5rem 0;
  }

  .dsp-info-section .container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dsp-info-section .section-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .dsp-info-section .section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }

  .dsp-info-section .section-header p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .dsp-info-section .info-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    width: 100%;
    justify-items: center;
  }

  .dsp-info-section .info-card {
    width: 90%;
    max-width: 22rem;
    padding: 1.2rem 1rem;
    border-radius: 0.8rem;
    margin: 0;
  }

  .dsp-info-section .card-header {
    gap: 0.7rem;
    margin-bottom: 0.4rem;
  }

  .dsp-info-section .info-icon {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.1rem;
  }

  .dsp-info-section .info-card h3 {
    font-size: 1.05rem;
  }

  .dsp-info-section .info-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /*footer*/
  footer .info {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    margin: 0 auto;
    width: 92%;
    gap: 1.5rem;
  }

  #footer1,
  #footer2,
  #footer3 {
    width: 100%;
  }

  footer {
    font-size: 0.85rem;
  }

  footer h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  footer p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
  }

  #footer2 img {
    width: 100% !important;
    max-width: 12rem;
    border-radius: 0.6rem;
  }

  .design {
    padding: 0.8rem 1rem;
  }

  .design p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /*Comunicate de presa*/
  .page-section {
    padding: 1.75rem 0 2.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .content-shell {
    padding: 1.25rem 1rem;
    border-radius: 0.75rem;
  }

  p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.1875rem;
  }

  .card-title {
    font-size: 1.0625rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .resource-link {
    width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
  }

   .dsp-about-page .dsp-history-timeline::before {
        display: none;
    }

    .dsp-about-page .dsp-history-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dsp-about-page .dsp-history-year {
        width: fit-content;
    }

    .dsp-about-page .dsp-history-content::before {
        display: none;
    }

    .dsp-about-page .dsp-about-list li {
        padding-left: 1.5rem;
    }
    .cod-conduita-page .cod-single-card {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }

    .cod-conduita-page .cod-right {
        width: 100%;
    }
    .organigrama-page .organigrama-image {
        width: 100%;
    }

    .organigrama-modal {
        padding: 1rem;
    }

    .organigrama-close {
        top: 0.5rem;
        right: 0.5rem;
    }
     .sedii-page .sediu-title {
        font-size: 1.2rem;
    }

    .sedii-page .sediu-card,
    .sedii-page .sediu-card-full {
        padding: 1rem;
    }

    .sedii-page .epi-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .sedii-page .epi-right {
        text-align: left;
        white-space: normal;
    }

    .legislatie-container .sediu-card,
    .legislatie-container .sediu-card-full {
        padding: 1rem;
    }

    .legislatie-container .sediu-contact-list {
        width: 100%;
        min-width: 0;
    }

    .legislatie-container .sediu-contact-list p {
        position: relative;
        padding-left: 14px;
        font-size: 0.95rem;
        line-height: 1.65;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .legislatie-container .sediu-card-full .sediu-contact-list p::before {
        left: 0;
        top: 0.62em;
        width: 5px;
        height: 5px;
    }

    .legislatie-container .sediu-title {
        font-size: 1.15rem;
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .legislatie-container .sediu-label {
        font-size: 0.68rem;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .tarife-modern-section {
        padding: 1.1rem;
    }

    .tarife-modern-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tarife-modern-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .tarife-modern-value {
        white-space: normal;
    }

    .anunturi-details-page .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .anunturi-details-list {
        max-width: 100%;
    }

    .anunt-item summary {
        padding: 0.9rem 2.75rem 0.9rem 0.9rem;
        font-size: 0.9rem;
    }

    .anunt-item summary::after {
        right: 0.85rem;
    }

    .anunt-content {
        padding: 0.8rem 0.9rem 0.95rem;
    }

    .anunt-links-grid {
        grid-template-columns: 1fr;
    }

    .anunt-content a {
        font-size: 0.88rem;
    }

    .dspmb-runos-extra {
        margin-top: 20px;
        padding-top: 14px;
    }

    .dspmb-runos-extra .dspmb-runos-title {
        font-size: 18px;
    }

    .dspmb-runos-extra .dspmb-runos-text,
    .dspmb-runos-extra .dspmb-runos-list li,
    .dspmb-runos-extra .dspmb-runos-note {
        font-size: 13px;
        line-height: 1.7;
    }

    .dspmb-cert-page {
        padding: 16px 14px 32px;
    }

    .dspmb-cert-main-title {
        font-size: 18px;
    }

    .dspmb-cert-subtitle,
    .dspmb-runos-title {
        font-size: 17px;
    }

    .dspmb-runos-text,
    .dspmb-runos-list li,
    .dspmb-cert-link {
        font-size: 14px;
        line-height: 1.8;
    }

    .dspmb-runos-section:nth-of-type(2) {
        padding: 16px 14px 18px;
        border-radius: 14px;
    }

     .furnizori-grid {
        grid-template-columns: 1fr;
    }

    .medicina-muncii {
        padding: 40px 15px 55px;
    }

    .medicina-muncii__title {
        font-size: 28px;
    }

    .medicina-muncii__card {
        padding: 26px 22px;
    }

    .medicina-muncii__subtitle {
        font-size: 21px;
    }
    .sedii-dsp-content {
        grid-template-columns: 1fr;
    }

    .sedii-dsp-card-wide {
        grid-column: span 1;
    }

    .sedii-dsp-sector-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sedii-dsp-side h3 {
        font-size: 28px;
    }

     .rapoarte .container{
        width:95%;
        margin:1rem auto;
        padding:1.25rem;
    }
}

/*tableta*/
@media (max-width: 991px) {
  .content-shell {
    padding: 1.75rem;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .lead {
    font-size: 1.0625rem;
  }

  .quote-text {
    font-size: 1.125rem;
  }

  .dsp-about-page .dsp-history-timeline::before {
        left: 4.85rem;
    }

    .dsp-about-page .dsp-history-item {
        grid-template-columns: 4.25rem 1fr;
        gap: 1rem;
    }
  .sedii-page .sediu-grid {
        grid-template-columns: 1fr;
    }
  .sedii-dsp-box {
        grid-template-columns: 1fr;
    }
}