/* Variáveis de cores baseadas no site tiagosegato.com */
:root {
    --primary-color: #4682A0;
    --secondary-color: #2c3e50;
    --accent-color: #4682A0;
    --text-color: #333;
    --light-text: #f8f9fa;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #dee2e6;
    --hover-color: #3a6d87;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: #343746;
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header e navegação */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    /* Mantém o padding original */
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 15px 0;
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin-left: 20px;
}

.nav-links a {
    display: block;
    padding: 15px 0;
    font-weight: 500;
    color: #fff;
}

.nav-links a:hover,
.nav-links a.active {
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 15px;
    font-weight: 400;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Breadcrumbs 
.breadcrumbs {
    background-color: var(--light-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: var(--border-color);
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs li:last-child {
    color: var(--text-color);
    font-weight: 500;
} */


/* Hero section */
.hero {
    background-color: #343746;
    color: var(--light-text);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--hover-color);
    color: white;
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Features section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.feature-icon {
    background-color: var(--primary-color);
    color: white;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.feature-content {
    padding: 25px;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-content p {
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Modules section */
.modules {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

.module-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.module-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
}

.module-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.module-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.module-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.module-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.module-content li {
    margin-bottom: 8px;
}

.module-footer {
    padding: 0 20px 20px;
    margin-top: auto;
}

/* Page header */
.page-header {
    background-color: #343746;
    color: var(--light-text);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Content section */
.content-section {
    padding: 60px 0;
    width: 100%;
    overflow-x: hidden;
}

.content-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    width: 100%;
}

.main-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.main-content h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.main-content h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 30px 0 15px;
}

.main-content p {
    margin-bottom: 20px;
}

.main-content ul,
.main-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    max-width: 100%;
}

.main-content li {
    margin-bottom: 10px;
}

.main-content li ul {
    margin-top: 10px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-nav {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.sidebar-nav h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.instructor-image img {
    width: 100px;
    border-radius: 10px;
    box-shadow: 0px, 0px 10px #ccc;
}

.recursos-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recurso-link {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: var(--light-bg);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.recurso-link i {
    margin-right: 10px;
    color: var(--primary-color);
}

.recurso-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.recurso-link:hover i {
    color: white;
}

.projeto-preview {
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 4px;
    margin-top: 15px;
}

.projeto-preview h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.projeto-preview p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Module info */
.module-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.module-info-item {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
}

.module-info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.module-info-item h3 {
    font-size: 1rem;
    margin: 0 0 5px;
}

.module-info-item p {
    margin: 0;
    font-weight: 500;
}

/* Accordion */
.accordion {
    margin: 30px 0;
    width: 100%;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.accordion-header {
    padding: 15px 20px;
    background-color: var(--light-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 1000px;
}

.accordion-content ul {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.accordion-content ul li {
    width: 100%;
    max-width: 100%;
}

.accordion-content ul li ul {
    width: 100%;
    max-width: 100%;
}

/* Code example */
.code-example {
    margin: 30px 0;
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.code-example h3 {
    padding: 15px 20px;
    background-color: var(--secondary-color);
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.code-example pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-example code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Example section */
.example-section {
    margin: 30px 0;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
}

.example-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--secondary-color);
    color: white;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Card */
.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 20px;
    width: 100%;
}

.card-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
}

.card-header h4 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.card-header p {
    margin: 0;
    opacity: 0.9;
}

.card-body {
    padding: 20px;
}

.card-body h5 {
    font-size: 1.1rem;
    margin: 0 0 15px;
    color: var(--secondary-color);
}

/* CTA */
.cta {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.cta h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.cta p {
    margin-bottom: 20px;
}

.mt-5 {
    margin-top: 50px;
}

/* Contact Form Styles */
.contact-form {
    max-width: 800px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(70, 130, 160, 0.2);
}

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

/* Contact Info Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--secondary-color);
}

.contact-item p {
    margin: 0;
}

/* Social Links for Contact Page */
.social-links-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.social-links-contact a {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.social-links-contact a i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links-contact a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-links-contact a:hover i {
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.footer-logo p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

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

/* Utilities */
.mt-3 {
    margin-top: 15px;
}

.text-center {
    text-align: center;
}

/* Ajustes para diagramas e ASCII art */
.ascii-diagram {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.2;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.diagram-container {
    overflow-x: auto;
    margin: 20px 0;
    max-width: 100%;
}