/*
Theme Name: STTRANS Queimadas
Description: Tema personalizado para STTRANS Queimadas
Version: 1.0
*/

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
--primary-green: #1B5E20;
--cream: #FFFDFA;
--text-dark: #2C3E50;
--white: #FFFFFF;
--border-radius: 12px;
}

html,
body {
height: 100%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow-x: hidden;
}

body {
color: var(--text-dark);
line-height: 1.6;
flex-direction: column;
min-height: 100vh;
}

/* HEADER STYLES */
.header {
top: 0;
left: 0;
right: 0;
height: 80px;
background: var(--white);
border-bottom: 3px solid transparent;
border-image: linear-gradient(to right,
yellow 33.4%,
green 33.4%, green 66.6%,
red 66.6%);
border-image-slice: 1;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 2rem;
z-index: 1000;
}

.logo {
height: 50px;
object-fit: contain;
}

/* MAIN CONTENT */
.main {
flex: 1;
padding-top: 40px;
max-width: 1450px;
margin: 0 auto;
width: 100%;
}

.service-section {
background: white;
border-radius: var(--border-radius);
padding: 2rem;
margin-bottom: 2rem;
border: 2px solid var(--primary-green);
}

.section-header {
display: flex;
align-items: center;
gap: 1.5rem;
margin-bottom: 2rem;
}

.section-icon {
width: 80px;
height: 80px;
background: var(--primary-green);
border-radius: var(--border-radius);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem;
flex-shrink: 0;
}

.section-title {
color: var(--primary-green);
font-size: 1.8rem;
font-weight: 700;
}

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

.service-card {
background: linear-gradient(135deg, var(--cream) 0%, #F0EDD8 100%);
border: 2px solid var(--primary-green);
border-radius: var(--border-radius);
padding: 1.5rem;
display: flex;
align-items: center;
gap: 1rem;
text-decoration: none;
color: var(--text-dark);
transition: all 0.1s ease;
cursor: pointer;
position: relative;
overflow: hidden;
}

.service-card:hover {
transform: translateY(-1px);
border-color: var(--primary-green);
}

.service-card-icon {
width: 60px;
height: 60px;
background: var(--primary-green);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
flex-shrink: 0;
transition: transform 0.2s ease;
}

.service-card:hover .service-card-icon {
transform: scale(1.1) rotate(5deg);
}

.service-card-text {
font-weight: 600;
font-size: 1rem;
}

/* NEWS STYLES */
.news-container-home {
display: inline-block;
width: calc(50% - 0.2%);
vertical-align: top;
box-sizing: border-box;
}

.news-container {
max-width: 100%;
}

.news-featured {
background: white;
border-radius: var(--border-radius);
overflow: hidden;
margin-bottom: 1%;
border: 2px solid var(--primary-green);
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
transition: all 0.3s ease;
padding: 2%;
}

.news-featured-image-home {
position: relative;
overflow: hidden;
}

.news-featured-image-home img {
width: 100%;
height: 250px;
object-fit: cover;
}

.news-featured-image {
position: relative;
overflow: hidden;
}

.news-featured-image img {
height: 450px;
width: 100%;
object-fit: cover;
padding-right: 2%;
}

.news-category {
position: absolute;
top: 15px;
left: 15px;
background: #d32f2f;
color: white;
padding: 6px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
}

.news-featured-content-home {
padding: 1.5rem;
display: flex;
flex-direction: column;
justify-content: center;
}

.news-featured-content {
padding: 2%;
display: flex;
flex-direction: column;
justify-content: center;
}

.news-meta {
display: flex;
gap: 15px;
margin-bottom: 10px;
font-size: 13px;
color: #666;
}

.news-meta i {
color: var(--primary-green);
margin-right: 5px;
}

.news-featured-title-home {
color: var(--primary-green);
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 10px;
line-height: 1.3;
}



.news-featured-title {
color: var(--primary-green);
font-size: 2rem;
font-weight: 700;
margin-bottom: 10px;
line-height: 1.3;
}


.news-featured-excerpt-home {
color: var(--text-dark);
line-height: 1.5;
opacity: 0.8;
}

.news-featured-excerpt {
color: #222222;
line-height: 1.6;
margin-bottom: 15px;
opacity: 0.8;
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1.1rem;
font-weight: 500;
text-align: justify;
padding-right: 2% !important;
}

.see-more-news {
text-align: center;
margin-top: 20px;
}

.see-more-news .service-card {
display: inline-flex;
width: auto;
padding: 10px 20px;
}

.see-more-news .service-card-icon {
width: 40px;
height: 40px;
font-size: 1rem;
}

/* FOOTER STYLES */
.footer {
border-top: 3px solid;
border-image: linear-gradient(to right,
yellow 33.4%,
green 33.4%, green 66.6%,
red 66.6%) 1;
background: linear-gradient(135deg, var(--primary-green) 0%, #1e4a5f 100%);
color: white;
padding: 3rem 0 1rem 0;
margin-top: auto;
width: 100vw !important;
max-width: 100vw !important;
margin-left: calc(50% - 50vw) !important;
margin-bottom: 0 !important;
}

.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
text-align: center;
}

.footer-section h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--cream);
}

.footer-section p {
margin-bottom: 0.5rem;
opacity: 0.9;
}

.footer-section i {
margin-right: 0.5rem;
color: #FFD700;
}

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

/* MEDIA QUERIES */
@media (max-width: 768px) {
.header {
padding: 0 1rem;
}

.news-container-home{
width: 100%;
}

.section-header {
flex-direction: column;
text-align: center;
}

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

.service-section {
padding: 1.5rem;
}

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

.news-featured-image-home img {
height: 200px;
}

.news-featured-image img {
height: 200px;
}

.news-featured-content {
padding: 1rem;
}

.news-featured-content-home {
padding: 1rem;
}

.news-featured-excerpt {
font-size: 1rem;
}

.news-featured-title {
font-size: 1.2rem;
}

.news-meta {
flex-direction: column;
gap: 5px;
}
}

@media (max-width: 480px) {
.logo {
height: 40px;
}

.footer-content {
grid-template-columns: 1fr;
text-align: center;
}
}

