/* ==========================================================================
   MODERN UI RESET & OVERRIDES - SINDMEDICO
   ========================================================================== */

/* --- ROOT VARIABLES --- */
:root {
	/* Colors - Refined Palette */
	--color-primary: #007A41;
	/* Brighter, more modern green */
	--color-primary-dark: #00562e;
	--color-secondary: #FF8800;
	/* Vibrant Orange */
	--color-secondary-dark: #EF7D00;
	--color-dark: #1F2937;
	--color-gray-50: #F9FAFB;
	--color-gray-100: #F3F4F6;
	--color-gray-200: #E5E7EB;
	--color-gray-500: #6B7280;

	/* Spacing */
	--container-padding: 2rem;
	--card-radius: 16px;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- TYPOGRAPHY RESET --- */
body {
	font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
	background-color: var(--color-gray-50);
	color: var(--color-dark);
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.025em;
	color: #111827;
}

/* --- LAYOUT & CONTAINER --- */

/* Wider, but contained layout */
/* Increased padding and constrained width to ensure visible margins */
.container-wide {
	max-width: 1320px;
	/* Reduced from 1440px to force side margins on standard laptops */
	width: 100%;
	margin: 0 auto;
	padding-left: 2rem;
	/* Increased base padding */
	padding-right: 2rem;
}

@media (min-width: 1024px) {
	.container-wide {
		padding-left: 4vw;
		/* Use viewport width for responsive margins */
		padding-right: 4vw;
	}
}

@media (min-width: 1400px) {
	.container-wide {
		padding-left: 0;
		/* Let auto margins handle it when centered */
		padding-right: 0;
	}
}

/* --- COMPONENTS: CARDS --- */
.panel {
	border-radius: var(--card-radius);
	background-color: #fff;
	border: none;
}

/* Post Cards */
.post.panel {
	box-shadow: var(--shadow-sm);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
	border: 1px solid var(--color-gray-200);
	/* Subtle border for definition */
}

.post.panel:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--color-primary-dark);
}

/* Removes default panel borders if any */
.panel {
	border: none;
}

/* --- IMAGES & MEDIA --- */
.featured-image,
.post-media {
	border-radius: var(--card-radius) var(--card-radius) 0 0;
	overflow: hidden;
}

.post-media.rounded {
	border-radius: 12px !important;
}

/* --- SECTION HEADERS --- */
.section-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	position: relative;
	border-bottom: 2px solid var(--color-gray-200);
}

.section-header .title-text {
	font-size: 1.75rem;
	color: var(--color-primary-dark);
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

/* Custom Underline Effect (Orange Accent) */
.section-header .title-text::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background: var(--color-secondary);
	position: absolute;
	bottom: -1.1rem;
	/* Aligns with border-bottom */
	left: 0;
	border-radius: 2px;
}

/* --- NEWS GRID REFINEMENTS --- */

/* Main News Item */
.post-title.h2 {
	font-size: 2rem !important;
	/* Cap huge sizes */
	line-height: 1.2;
}

@media (max-width: 768px) {
	.post-title.h2 {
		font-size: 1.5rem !important;
	}
}

/* Meta Data */
.post-meta {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-secondary-dark);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
}

/* Read More Buttons / Links */
.btn-green {
	background-color: var(--color-primary);
	color: white;
	border: none;
	border-radius: 50px;
	/* Pill shape */
	padding: 0.5rem 1.5rem;
	font-weight: 600;
	transition: all 0.2s;
}

.btn-green:hover {
	background-color: var(--color-primary-dark);
	color: white;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

/* --- CLUBE DE VANTAGENS --- */
.clube-vantagens-section {
	background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%) !important;
	border-radius: 0;
	padding-top: 4rem;
	padding-bottom: 4rem;
	color: white;
}

.clube-vantagens-section .section-header {
	border-bottom-color: rgba(255, 255, 255, 0.2);
}

.clube-vantagens-section .title-text {
	color: white !important;
}

.clube-vantagens-section .title-text::after {
	background: white;
	/* White accent on orange bg */
}

/* Wrapper adjustments to prevent shrinking */
.wrapper {
	overflow: visible;
}

/* --- HEADER FIXES --- */
.uc-header .uc-navbar-container {
	background: white;
	box-shadow: var(--shadow-sm);
}

/* Fix sticky header overlap */
.uc-sticky-placeholder {
	height: 0 !important;
	/* Sometimes causes gaps */
}

/* --- UTILITIES --- */
.text-primary {
	color: var(--color-primary) !important;
}

.text-secondary {
	color: var(--color-secondary) !important;
}

.bg-gray-25 {
	background-color: var(--color-gray-50);
}

/* Fix image cover fitting */
.object-fit-cover {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

/* --- LEI SIDEBAR NAVIGATION --- */
/* High specificity to ensure it overrides everything */
html body .lei-layout .lei-sidebar-col .sidebar-lei .nav-lei .btn,
html body .lei-layout .lei-sidebar-col .sidebar-lei .nav-lei a.btn {
	white-space: normal !important;
	height: auto !important;
	min-height: 48px !important; /* Increased for better touch and visibility */
	padding: 12px 15px !important;
	line-height: 1.4 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	margin-bottom: 8px !important;
	border-radius: 8px !important;
	transition: all 0.2s ease !important;
	font-weight: 600 !important;
	width: 100% !important;
}

/* Fix Overlap: Force list items to expand */
html body .lei-layout .lei-sidebar-col .sidebar-lei .nav-lei li {
	height: auto !important;
	display: block !important;
	margin-bottom: 4px !important;
}

/* Brand Colors for Sidebar Elements */
html body .lei-layout .lei-sidebar-col .sidebar-lei h5.text-primary,
html body .lei-layout .lei-sidebar-col .sidebar-lei .text-primary {
	color: var(--color-secondary) !important; /* Orange to fix "blue" */
	font-weight: 800 !important;
	text-transform: none !important;
	border-bottom: 2px solid var(--color-gray-100) !important;
	padding-bottom: 15px !important;
}

/* Ensure btn-primary is Orange */
.btn-primary {
	background-color: var(--color-secondary) !important;
	border-color: var(--color-secondary) !important;
	color: white !important;
}

.btn-primary:hover {
	background-color: var(--color-secondary-dark) !important;
	border-color: var(--color-secondary-dark) !important;
}

/* Ensure btn-alt-primary follows the orange theme */
.btn-alt-primary {
	color: var(--color-secondary) !important;
	border-color: var(--color-secondary) !important;
	background-color: white !important;
}

.btn-alt-primary:hover {
	background-color: var(--color-secondary) !important;
	color: white !important;
}

/* Breadcrumbs Color Fix */
.breadcrumb a {
	color: var(--color-primary) !important;
	text-decoration: none !important;
}

.breadcrumb a:hover {
	color: var(--color-secondary) !important;
}