/*
Theme Name: Tecnoseg Treinamentos
Theme URI: https://www.consultoriatecnoseg.com.br
Author: Tecnoseg
Author URI: https://www.consultoriatecnoseg.com.br
Description: Tema WordPress profissional e otimizado para SEO, desenvolvido para a Tecnoseg Treinamentos - especialista em cursos de segurança do trabalho, NRs e brigada de incêndio com atendimento nacional.
Version: 2.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tecnoseg
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar, responsive-layout, accessibility-ready
*/

/* ==========================================================================
   CSS Variables / Custom Properties
   ========================================================================== */
:root {
    /* Brand Colors */
    --tecnoseg-red: #E31E24;
    --tecnoseg-red-dark: #B91820;
    --tecnoseg-red-light: #FF4D52;
    --tecnoseg-green: #00A651;
    --tecnoseg-green-dark: #008C45;
    --tecnoseg-green-light: #00C853;
    
    /* Neutral Colors */
    --tecnoseg-black: #1A1A1A;
    --tecnoseg-dark: #2D2D2D;
    --tecnoseg-gray-dark: #4A4A4A;
    --tecnoseg-gray: #757575;
    --tecnoseg-gray-light: #F5F5F5;
    --tecnoseg-gray-lighter: #FAFAFA;
    --tecnoseg-white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 20px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tecnoseg-dark);
    background-color: var(--tecnoseg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tecnoseg-black);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--tecnoseg-gray-dark);
}

a {
    color: var(--tecnoseg-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--tecnoseg-red-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-badge {
    display: inline-block;
    background: rgba(227, 30, 36, 0.1);
    color: var(--tecnoseg-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--tecnoseg-gray);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--tecnoseg-red);
    color: var(--tecnoseg-white);
    box-shadow: 0 4px 14px rgba(227, 30, 36, 0.3);
}

.btn-primary:hover {
    background: var(--tecnoseg-red-dark);
    color: var(--tecnoseg-white);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

.btn-secondary {
    background: var(--tecnoseg-green);
    color: var(--tecnoseg-white);
    box-shadow: 0 4px 14px rgba(0, 166, 81, 0.3);
}

.btn-secondary:hover {
    background: var(--tecnoseg-green-dark);
    color: var(--tecnoseg-white);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--tecnoseg-red);
    color: var(--tecnoseg-red);
}

.btn-outline:hover {
    background: var(--tecnoseg-red);
    color: var(--tecnoseg-white);
}

.btn-white {
    background: var(--tecnoseg-white);
    color: var(--tecnoseg-green);
}

.btn-white:hover {
    background: var(--tecnoseg-gray-light);
    color: var(--tecnoseg-green-dark);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--tecnoseg-white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.header-top {
    background: var(--tecnoseg-black);
    color: var(--tecnoseg-white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-contact a {
    color: var(--tecnoseg-white);
    margin-right: 25px;
    transition: color var(--transition-fast);
}

.header-contact a:hover {
    color: var(--tecnoseg-green);
}

.header-contact i {
    margin-right: 8px;
    color: var(--tecnoseg-green);
}

.header-social a {
    color: var(--tecnoseg-white);
    margin-left: 15px;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.header-social a:hover {
    color: var(--tecnoseg-green);
}

.header-main {
    padding: 15px 0;
}

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

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo-text {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--tecnoseg-black);
    text-decoration: none;
}

.site-logo-text span {
    color: var(--tecnoseg-red);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--tecnoseg-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 10px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tecnoseg-red);
    transition: width var(--transition-normal);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--tecnoseg-red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--tecnoseg-dark);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(45,45,45,0.85) 100%);
    color: var(--tecnoseg-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tecnoseg-red);
    color: var(--tecnoseg-white);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-content h1 {
    color: var(--tecnoseg-white);
    margin-bottom: var(--spacing-md);
}

.hero-content h1 span {
    color: var(--tecnoseg-green);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.hero-features {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
}

.hero-feature i {
    color: var(--tecnoseg-green);
    font-size: 1.25rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    background: var(--tecnoseg-red);
    padding: var(--spacing-xl) 0;
    color: var(--tecnoseg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--tecnoseg-white);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    background: var(--tecnoseg-gray-light);
}

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

.service-card {
    background: var(--tecnoseg-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(227, 30, 36, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    color: var(--tecnoseg-red);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--tecnoseg-red);
    color: var(--tecnoseg-white);
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    margin-bottom: var(--spacing-md);
}

.service-link {
    color: var(--tecnoseg-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: var(--tecnoseg-red-dark);
}

/* ==========================================================================
   Courses Section
   ========================================================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.course-card {
    background: var(--tecnoseg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--tecnoseg-red);
    color: var(--tecnoseg-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-content p {
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-sm);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--tecnoseg-gray);
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-experience {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--tecnoseg-red);
    color: var(--tecnoseg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-experience .number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.about-content .section-badge {
    text-align: left;
}

.about-content h2 {
    text-align: left;
}

.about-content p {
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-md);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: var(--spacing-lg);
}

.about-feature {
    display: flex;
    gap: 15px;
}

.about-feature i {
    font-size: 1.5rem;
    color: var(--tecnoseg-green);
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.about-feature p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--tecnoseg-green) 0%, var(--tecnoseg-green-dark) 100%);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    color: var(--tecnoseg-white);
}

.cta-content h2 {
    color: var(--tecnoseg-white);
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    background: var(--tecnoseg-gray-light);
}

.testimonial-card {
    background: var(--tecnoseg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--tecnoseg-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--tecnoseg-red);
    display: block;
    line-height: 0.5;
    margin-bottom: var(--spacing-sm);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: 1.125rem;
    margin-bottom: 5px;
}

.testimonial-author-info span {
    color: var(--tecnoseg-gray);
    font-size: 0.875rem;
}

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--tecnoseg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8125rem;
    color: var(--tecnoseg-gray);
    margin-bottom: var(--spacing-sm);
}

.blog-meta i {
    margin-right: 5px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--tecnoseg-black);
}

.blog-content h3 a:hover {
    color: var(--tecnoseg-red);
}

.blog-excerpt {
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background: var(--tecnoseg-gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--tecnoseg-red);
    width: 30px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: var(--tecnoseg-gray);
    font-size: 0.9375rem;
}

.contact-item a:hover {
    color: var(--tecnoseg-red);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: var(--spacing-lg);
}

.contact-social a {
    width: 45px;
    height: 45px;
    background: var(--tecnoseg-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tecnoseg-dark);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.contact-social a:hover {
    background: var(--tecnoseg-red);
    color: var(--tecnoseg-white);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--tecnoseg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-form-wrapper > p {
    color: var(--tecnoseg-gray);
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--tecnoseg-gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--tecnoseg-red);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--tecnoseg-black);
    color: var(--tecnoseg-white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: var(--spacing-xl);
}

.footer-about .site-logo-text {
    color: var(--tecnoseg-white);
    margin-bottom: var(--spacing-md);
    display: inline-block;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--spacing-md);
}

.footer-widget h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
    color: var(--tecnoseg-white);
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--tecnoseg-red);
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer-widget ul li a:hover {
    color: var(--tecnoseg-green);
}

.footer-widget ul li i {
    margin-right: 10px;
    color: var(--tecnoseg-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ==========================================================================
   WhatsApp Float Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--tecnoseg-red);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
    z-index: 998;
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--tecnoseg-red-dark);
    transform: translateY(-5px);
    color: white;
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(45,45,45,0.85) 100%);
    padding: 180px 0 80px;
    text-align: center;
    color: var(--tecnoseg-white);
}

.page-header h1 {
    color: var(--tecnoseg-white);
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: rgba(255,255,255,0.7);
}

.breadcrumbs a:hover {
    color: var(--tecnoseg-green);
}

.breadcrumbs span {
    color: var(--tecnoseg-green);
}

/* Page Content */
.page-content {
    padding: var(--spacing-xxl) 0;
}

.page-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.page-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 8px;
    color: var(--tecnoseg-gray-dark);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top-content {
        justify-content: center;
        text-align: center;
    }
    
    .header-contact a {
        display: block;
        margin: 5px 0;
    }
    
    .main-navigation {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-experience {
        position: static;
        margin-top: var(--spacing-md);
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-widget h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */
.wp-block-image {
    margin-bottom: var(--spacing-md);
}

.wp-block-image img {
    border-radius: var(--radius-md);
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: var(--spacing-md);
}

.alignright {
    float: right;
    margin-left: var(--spacing-md);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Comments */
.comments-area {
    margin-top: var(--spacing-xl);
}

.comment-list {
    list-style: none;
}

.comment {
    padding: var(--spacing-md);
    background: var(--tecnoseg-gray-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.comment-author {
    font-weight: 600;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--tecnoseg-gray);
    margin-bottom: var(--spacing-sm);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-xl);
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--tecnoseg-gray-light);
    border-radius: var(--radius-sm);
    color: var(--tecnoseg-dark);
}

.pagination .current {
    background: var(--tecnoseg-red);
    color: var(--tecnoseg-white);
}

.pagination a:hover {
    background: var(--tecnoseg-red);
    color: var(--tecnoseg-white);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.bg-light { background: var(--tecnoseg-gray-light); }
.bg-dark { background: var(--tecnoseg-black); color: var(--tecnoseg-white); }
.bg-red { background: var(--tecnoseg-red); color: var(--tecnoseg-white); }
.bg-green { background: var(--tecnoseg-green); color: var(--tecnoseg-white); }

.text-red { color: var(--tecnoseg-red); }
.text-green { color: var(--tecnoseg-green); }
.text-gray { color: var(--tecnoseg-gray); }
