:root {
  --green-light: #E4F7E8;
  --green-dark: #006B00;
  --green-accent: #00A36C;
  --text-dark: #1B1B1B;
  --text-muted: #4F4F4F;
  --bg-white: #ffffff;
  --bg-green: #EDF9EB;
  --border-light: #DDEAE0;
  --navy-blue: #2C3E50;
  --font-family: 'Open Sans', sans-serif;
}

body {
  margin:0;
  padding:0;
  font-family: var(--font-family);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.2;
  box-sizing: border-box;
}

p {
  font-size: 14px;
  line-height: 1.2;
}

section {
    /*padding: 2rem 0;
    border-bottom: 1px solid #ccc;*/
}

.margem {
    margin-top:3%;
    margin-bottom: 1.5%;

}
/* ================================== 1. Banner ============================ */

#banner {
	background: #25455F;
	color: white;
	font-size: 18px;
	text-align: center;
	margin-top:1%;
	margin-bottom: 1.5%;
	padding: 1%;
	height: 10%;

}

// Mensagem do Banner

#banner a {
	color: white;
	text-decoration: none;
}

#banner a:hover {
	color: white;
	text-decoration: underline;
}


.noticia a {
	color: white;
	text-decoration: none;
}

.noticia a:hover, .noticia a:focus {
	color: white;
	font=weight: bold;
	text-decoration: underline;
}

/* =============================== END Banner ============================== */
  

.logo img {
    vertical-align: left;	
    max-width: 250px;	
    height: auto;
    margin-left: 10px;
}

/* =============== INICIO # CSS pro Menu e Logo ============== */

.stfmed-header {
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
}

.main-nav {
    flex: 1 0 auto;
    text-align: right;
}

.main-nav ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
}


.main-nav ul li {
    color: white;
    backgroud-color: #006B00;
    margin: 0 5px;
}

/* ================== INICIO - Rodapé ====================== */

.site-footer {
    background-color: #f5f5f5;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav {
    flex: 1 1 auto;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav ul li {
    margin-right: 20px;
}

.footer-nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.whatsapp-button {
    flex: 0 0 auto;
    margin: 0 20px;
}

.whatsapp-button a {
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.whatsapp-button a:hover {
    background-color: #128C7E;
}

.whatsapp-button img {
    height: 20px;
    margin-right: 8px;
}

.copyright {
    margin-left: 1.5vw;	
    flex: 0 0 auto;
    font-size: 14px;
    color: white;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav ul {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .whatsapp-button {
        margin: 15px 0;
    }
    
    .copyright {
        margin-top: 15px;
    }
}
/* ================= FIM Rodapé ====================== */
.stfmed-header {
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
}

.main-nav {
    flex: 1 0 auto;
    text-align: right;
    margin-right: 20px; /* Add some space between nav and WhatsApp button */
}

.main-nav ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin: 0 1px;
}

/* WhatsApp button styling for header */
.whatsapp-header {
    flex: 0 0 auto;
}

.whatsapp-header a {
    display: inline-flex;
    align-items: center;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.whatsapp-header a:hover {
    background-color: #128C7E; /* Darker green on hover */
}

.whatsapp-header i {
    margin-right: 5px;
    font-size: 16px;
}
/* =============== FIM # CSS pro Menu e Logo ============== */

.main-nav ul li a:hover,
.main-nav ul .sub-menu li a:hover {
    color: #006B00;
}
.main-nav ul .sub-menu {
    border-top: 2px solid #006B00;
}
/* Estilo básico do menu */
.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    color: #F8F8F8;
}

.main-nav ul li {
    position: relative; /* Necessário para posicionar o submenu */
    margin-right: 20px;
    color: #898989;
}

.main-nav ul li a {
    text-decoration: none;
    padding: 5px;
    display: block;
}

/* Esconde os submenus por padrão */
.main-nav ul .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 150px;
    z-index: 1000;
}

.main-nav ul .sub-menu li {
    margin: 0;
}

.main-nav ul .sub-menu li a {
    padding: 10px;
    color: #333;
}

/* Exibe o submenu ao passar o mouse */
.main-nav ul li:hover > .sub-menu {
    display: block;
}

/* Estilo para dispositivos móveis (opcional) */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 0;
    }

    .main-nav ul .sub-menu {
        position: static;
        box-shadow: none;
    }
}


.logo {
	text-align: left;	
	max-width: auto;
	height: auto;
}


#menu{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: white;
	flex-wrap: wrap;
}

#navmenu {
	margin-right: 10px;
}

#primary-menu {
	vertical-aligh: right;
}

.main-nav ul {
    list-style: none;
    display: flex;
    vertical-align: right;	
}
.main-nav ul li {
    margin-right: 20px;
}

#navmenu ul { 
//	margin: 0; 
	padding: 0; 
	list-style-type: none; 
	list-style-image: none;
}

#navmenu li { 
	list-style: none;
	display: inline; 
	position: relative;

}

#navmenu ul li a { 
	text-decoration:none;
	font-size: 15px;  
	align-items: right;
	margin: 10px;
        margin-top: 15px;
	padding: 5px 20px 5px 20px; 
	color: #3c3c3c;
}
#navmenu ul li a:hover { 
	color: #006B00;
	text-decoration: none;
	font=weight: bold;
}



#noticias, #beneficiarios, #prestadores{
	height: 15%;
	margin-left: 5%;
	margin-right: 5%;
	display: flex;
	flex-wrap:wrap;
}

.site-main {
	height: 15%;
	margin-left: 5%;
	margin-right: 5%;
}

#rodape{
	margin-top: 5%;
        height: 70px;
	background-color: #006B00;
	color: #FFF;
}

.card-orientacoes {
    border: 2px solid #CBCBCB;
    margin-bottom: 10px;
}
h1, h2, h3, h4 {
  color:#283645;
  
}

h4 {
  font-size: 24px;
  line-height: 28px;
}


.stfmed-beneficiarios, .stfmed-prestadores {
    padding: 24px 16px;
    background: #fff;
    margin-top: 16px;
  }

/*  .stfmed-beneficiarios h3,
  .stfmed-prestadores h3 {
    margin-bottom: 16px;
    color: #2c3e50;
  }
*/

.card-grid {
    display: grid;
//    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Noticiais */

  .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .news-item img {
    width: 100%;
    height: auto;
    border-radius: 4px 4px 0 0;
  }

  .news-item p {
    padding: 8px;
    font-weight: 500;
    background: #f0f0f0;
    border-radius: 0 0 4px 4px;
  }

  .news-highlight {
    background: #007a00;
    color: white;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .news-highlight button {
    margin-top: 12px;
    padding: 8px 16px;
    background: white;
    color: green;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
  }


    .nav-menu {
      display: flex;
      gap: 20px;
    }

    .nav-menu > li {
      position: relative;
      list-style: none;
    }

    .nav-menu a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      padding: 10px 15px;
      display: block;
    }

    .nav-menu a:hover {
      background-color: rgba(255, 255, 255, 0.2);
      border-radius: 5px;
    }

    /* Submenu - Nível 1 */
    .nav-menu ul {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #004F00;
      min-width: 200px;
      z-index: 1000;
    }

    .nav-menu li:hover > ul {
      display: block;
    }

    .nav-menu ul li {
      position: relative;
    }

    .nav-menu ul a {
      padding: 10px 15px;
      white-space: nowrap;
    }

    /* Submenu - Nível 2 */
    .nav-menu ul ul {
      left: 100%;
      top: 0;
    }

    @media (max-width: 768px) {
      .top-bar {
        flex-direction: column;
        align-items: flex-start;
      }
      .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
      }
      .nav-menu ul {
        position: static;
      }
    }

.stfmed-news {
    padding: 24px 16px;
    background: #fff;
}

.stfmed-news h2 {
   margin-bottom: 16px;
   color: #2c3e50;
}

.stfmed-beneficiarios, .stfmed-prestadores {
    padding: 24px 16px;
    background: #fff;
    margin-top: 16px;
}

.news-highlight {
    background: #007a00;
    color: white;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-outline-success {
  border-color: #006B00;
  color: #006B00;
}

.btn-outline-success:hover {
  background-color: #006B00;
  color: #fff;
}


a {
  text-decoration: underline;
  color: black;  /*var(--green-dark)*/;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: #006B00; /*var(--green-accent);*/
}

a:focus {
  /*outline: 2px solid var(--green-accent);
  outline-offset: 2px;*/
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem;
}

/* ================================== 2. Menu ============================ */
/* ================================== 3. Notícias ============================ */

// Botões das redes Crededenciada, AMHPDF e Caixa
.btnRede {
    background-color: #006B00;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
}

        /* News slider container */
        .news-slider-container {
            position: relative;
            width: 100%;
            height: var(--slider-height);
            background-color: var(--slider-background);
            border: var(--slider-border-width) solid var(--slider-border-color);
            overflow: hidden;
        }

        /* News slider */
        .news-slider {
            display: flex;
            height: 100%;
            transition: transform 0.5s ease-in-out;
        }

        /* News item */
        .news-item {
            flex: 0 0 100%;
            display: flex;
            align-items: center;
            padding: 0 60px;
            height: 100%;
        }

        /* News content */
        .news-content {
            width: 100%;
        }

        /* News title */
        .news-title {
            color: var(--title-color);
            font-size: var(--title-font-size);
            font-weight: bold;
            margin-bottom: 4px;
        }

        /* News text */
        .news-text {
            color: var(--content-color);
            font-size: var(--content-font-size);
        }

        /* Slider controls */
        .slider-controls {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
        }

        /* Slider dots */
        .slider-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: var(--dots-color);
            cursor: pointer;
        }

        .slider-dot.active {
            background-color: var(--dots-active-color);
        }

        /* Slider arrows */
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            color: var(--arrow-color);
            font-size: 24px;
            z-index: 1;
        }

        .slider-arrow:hover {
            color: var(--arrow-hover-color);
        }

        .slider-arrow-prev {
            left: 10px;
        }

        .slider-arrow-next {
            right: 10px;
        }

.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  margin: 0;
}

.site-title a {
  color: var(--green-dark);
  text-decoration: none;
}

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

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--green-accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
}

.hero {
  background-color: var(--green-light);
  padding: 3rem 1rem;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--green-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--green-accent);
  color: white;
}

.cards {
  padding: 2rem 1rem;
  background-color: #F5FCF6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--green-dark);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.service-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.site-footer {
  background-color: var(--green-dark);
  color: white;
  padding: 2rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-info {
  flex: 1;
  min-width: 200px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav-column {
  min-width: 150px;
}

.footer-nav h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: white;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Beneficiarios & Prestadores Pages */
.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.section-header h2 {
  color: var(--green-dark);
  font-size: 1.75rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--green-dark);
}

.service-title {
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* News section */
.news-section {
  padding: 3rem 0;
}

.news-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 2rem;
        }
        .news-item {
            flex: 1;
            min-width: 300px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        .news-item:hover {
            transform: translateY(-5px);
        }
        .news-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        .news-content {
            padding: 1rem;
        }
        .news-title {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #333;
        }
        .news-text {
            color: #666;
            margin-bottom: 1rem;
        }
        .news-highlight {
            flex: 1;
            min-width: 300px;
            padding: 1.5rem;
            background-color: #f5f5f5;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        .news-highlight p {
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }
/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--green-dark);
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-navigation {
    width: 100%;
    margin-top: 1rem;
  }
  
  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin-top: -2.5rem;
  }
  
  .main-navigation ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  
  .main-navigation.toggled ul {
    display: block;
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

/* Responsivo */
  @media (max-width: 1024px) {
    .news-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 768px) {
    .nav-menu ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .news-grid {
      grid-template-columns: 1fr;
    }

    .news-highlight {
      order: -1;
    }

    .card-grid {
      grid-template-columns: 1fr;
    }
		
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* WAI-ARIA specific styles */
[aria-hidden="true"] {
  display: none;
}

[aria-expanded="true"] + .sub-menu {
  display: block;
}

[aria-expanded="false"] + .sub-menu {
  display: none;
}