/* =========================================================================
   Vale do Sol — template responsivo (identidade original preservada)
   Cores: canvas #d7e9f1 · conteúdo #fff · teal #3aa6a0 · âmbar #D59500
   ========================================================================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.vds-body {
	margin: 0;
	padding: 0;
	background: #d7e9f1;
	color: #333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: #2f9c96; text-decoration: none; }
a:hover { color: #ef593b; text-decoration: underline; }

/* ---------- Banner de descontinuidade (sticky no topo) ---------- */
#vds-aviso-descontinuado {
	position: sticky; top: 0; z-index: 9999;
	background: #7a2810;
	background: linear-gradient(180deg, #8a2f12 0%, #6f2310 100%);
	color: #fff4e8; border-bottom: 3px solid #f0a035;
	text-align: center; padding: 9px 14px;
	font-size: 13px; line-height: 1.4;
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
#vds-aviso-descontinuado .vds-tag { font-weight: bold; letter-spacing: .05em; color: #ffce8a; text-transform: uppercase; }
#vds-aviso-descontinuado .vds-sep { opacity: .5; margin: 0 7px; }
#vds-aviso-descontinuado a { color: #fff; text-decoration: underline; font-weight: bold; margin-left: 6px; white-space: nowrap; }

/* ---------- Shell ---------- */
.vds-shell {
	max-width: 1200px; margin: 0 auto; background: #fff;
	box-shadow: 0 0 14px rgba(0,0,0,.12);
}

/* ---------- Header ---------- */
.vds-header {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 12px;
	padding: 14px 18px; border-bottom: 3px solid #e7e0cd;
}
.vds-logo img { display: block; max-height: 66px; width: auto; }

/* ---------- Navegação principal ---------- */
.vds-nav { flex: 1 1 auto; }
.vds-nav #vds-nav-toggle { position: absolute; left: -9999px; }
.vds-nav-btn { display: none; }

.vds-nav-menu > ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
}
.vds-nav-menu > ul li { position: relative; margin: 0; }
.vds-nav-menu > ul > li > a,
.vds-nav-menu > ul > li > span {
	display: block; padding: 10px 13px;
	color: #2f9c96; font-weight: bold; font-size: 12px;
	text-transform: uppercase; letter-spacing: .02em;
}
.vds-nav-menu > ul > li > a:hover,
.vds-nav-menu > ul > li.current > a,
.vds-nav-menu > ul > li.active > a { color: #ef593b; text-decoration: none; }

/* submenus (dropdown) */
.vds-nav-menu ul ul {
	display: none; position: absolute; top: 100%; left: 0; z-index: 60;
	list-style: none; margin: 0; padding: 4px 0; min-width: 190px;
	background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.16); border-top: 2px solid #D59500;
}
.vds-nav-menu li:hover > ul { display: block; }
.vds-nav-menu ul ul a { display: block; padding: 8px 14px; white-space: nowrap; color: #444; font-weight: normal; text-transform: none; }
.vds-nav-menu ul ul a:hover { background: #f6f2e7; color: #2f9c96; }

/* ---------- Linha de promo (recentes / lidos) ---------- */
.vds-promo { display: flex; flex-wrap: wrap; padding: 16px 12px 0; }
.vds-promo-col { flex: 1 1 0; min-width: 0; padding: 0 8px; }

/* ---------- Linha principal (3 colunas) ---------- */
.vds-main { display: flex; flex-wrap: wrap; align-items: flex-start; padding: 16px 10px 20px; }
.vds-col { padding: 0 8px; }
.vds-left  { flex: 0 0 24%; max-width: 24%; order: 1; }
.vds-content { flex: 1 1 0; min-width: 0; order: 2; }
.vds-right { flex: 0 0 24%; max-width: 24%; order: 3; }

/* ---------- Módulos ---------- */
.moduletable { margin-bottom: 16px; }
.vds-left .moduletable,
.vds-right .moduletable,
.vds-promo .moduletable {
	background: #f6f2e7; border: 1px solid #ece4cf; border-radius: 4px;
	padding: 11px 13px;
}
.moduletable h3 {
	margin: 0 0 10px; padding: 0 0 6px;
	color: #2f9c96; font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
	border-bottom: 2px solid #D59500;
}
.moduletable ul { margin: 0; padding-left: 18px; }
.moduletable li { margin: 4px 0; }
.moduletable img { height: auto; }

/* ---------- Conteúdo (artigos) ---------- */
.vds-content { color: #333; }
.vds-content h1, .vds-content h2, .vds-content h3,
.contentheading, .componentheading, .item-page h2, .page-header h1, .page-header h2 {
	color: #2f9c96; font-weight: bold; line-height: 1.25;
}
.vds-content h2 { font-size: 19px; }
.vds-content h1 { font-size: 22px; }
.vds-content p { margin: 0 0 12px; }
.vds-content img { height: auto; }
.vds-content table { max-width: 100%; border-collapse: collapse; }
.vds-content table td, .vds-content table th { padding: 4px 8px; }
.article-info, .createdby, .create, .published { color: #888; font-size: 12px; }

/* botões/inputs */
input, select, textarea { max-width: 100%; font-family: inherit; }
.btn, button, input[type="submit"] {
	background: #2f9c96; color: #fff; border: 0; border-radius: 4px;
	padding: 7px 14px; cursor: pointer; font-weight: bold;
}
.btn:hover, button:hover, input[type="submit"]:hover { background: #267f7a; }

/* paginação */
.pagination ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: block; padding: 5px 10px; border: 1px solid #ddd; border-radius: 3px; }

/* ---------- Rodapé ---------- */
.vds-footer {
	border-top: 3px solid #e7e0cd; margin-top: 6px;
	padding: 16px 18px; text-align: center; font-size: 12px; color: #777; background: #faf8f1;
}
.vds-footer .moduletable { margin-bottom: 8px; }
.vds-footer p { margin: 4px 0 0; }

/* =========================================================================
   RESPONSIVO
   ========================================================================= */

/* Tablet: sidebar direita vai para baixo, mantém esquerda + conteúdo */
@media (max-width: 1024px) {
	.vds-left  { flex-basis: 30%; max-width: 30%; }
	.vds-right { flex: 1 1 100%; max-width: 100%; order: 4; }
}

/* Celular: tudo em coluna única, menu vira hambúrguer */
@media (max-width: 760px) {
	.vds-shell { box-shadow: none; }
	.vds-header { padding: 12px 14px; }
	.vds-logo img { max-height: 54px; }

	.vds-nav { flex: 0 0 auto; }
	.vds-nav-btn {
		display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
		background: #2f9c96; color: #fff; font-weight: bold; text-transform: uppercase;
		padding: 9px 14px; border-radius: 5px; font-size: 13px;
	}
	.vds-nav-btn .vds-bars { width: 18px; height: 2px; background: #fff; position: relative; display: inline-block; }
	.vds-nav-btn .vds-bars::before, .vds-nav-btn .vds-bars::after {
		content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
	}
	.vds-nav-btn .vds-bars::before { top: -5px; }
	.vds-nav-btn .vds-bars::after  { top: 5px; }

	.vds-nav-menu { display: none; width: 100%; margin-top: 10px; }
	#vds-nav-toggle:checked ~ .vds-nav-menu { display: block; }
	.vds-nav-menu > ul { flex-direction: column; align-items: stretch; }
	.vds-nav-menu > ul > li { border-bottom: 1px solid #eee; }
	.vds-nav-menu > ul > li > a { padding: 13px 6px; font-size: 14px; }
	.vds-nav-menu ul ul { position: static; display: block; box-shadow: none; border-top: 0; padding-left: 16px; min-width: 0; }
	.vds-nav-menu ul ul a { white-space: normal; }

	.vds-promo { flex-direction: column; padding: 12px 12px 0; }
	.vds-promo-col { padding: 0; }

	.vds-main { flex-direction: column; padding: 12px; }
	.vds-col { width: 100%; max-width: 100% !important; flex: none !important; padding: 0; }
	.vds-content { order: 1; }
	.vds-left  { order: 2; }
	.vds-right { order: 3; }

	#vds-aviso-descontinuado { font-size: 12px; padding: 8px 10px; }
	#vds-aviso-descontinuado .vds-sep { display: none; }
	#vds-aviso-descontinuado a { display: inline-block; }

	body.vds-body { font-size: 14px; }
}
