/* Reset CSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    font-family: "Libertinus Serif", serif;
}

body {
    line-height: 1.6;
    background: #ffffff;
    color: #333;
    margin: 0 auto;
    font: 16px/1.6 "Libertinus Serif", serif;
    width: 960px;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    /* CORREÇÃO: Adiciona padding-top para compensar o menu fixo */
    padding-top: 80px;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

:focus {
    outline: 0;
}

ins {
    text-decoration: none;
}

del {
    text-decoration: line-through;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

header, footer, aside, nav, article, section {
    display: block;
    margin: 0;
    padding: 0;
}

.clear:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* Typography */
h1 {
    font: normal bold 34px/50px Arial, Helvetica, sans-serif;
    padding-top: 30px;
}

h2 {
    font-size: 28px;
    line-height: 44px;
    padding: 21px 0;
}

h3 {
    font-size: 18px;
    line-height: 22px;
    padding: 11px 0;
}

p {
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 22px;
}

/* Links */
a {
    color: #ffffff;
    text-decoration: none;
}

a:visited {
    color: #ffffff;
    outline: none;
    text-decoration: none;
}

a:hover {
    color: #9cc7eb;
    text-decoration: underline;
}

a:active {
    color: #85bbe7;
    outline: none;
    text-decoration: none;
}

a:focus {
    outline: 1px dotted;
}

/* Header */
#mast h1 {
    padding: 30px 0 20px 40px;
}

/* Navigation */
nav#global {
    padding: 10px 0;
    position: fixed; /* CORREÇÃO: Mudado para fixed */
    top: 0; /* CORREÇÃO: Fixado no topo */
    left: 0;
    width: 100%;
    background-color: #045c09;
    z-index: 100;
}

nav#global ul {
    margin: 0 auto;
    width: 960px;
    max-width: 100%;
    border: none;
    padding: 0 15px;
    box-sizing: border-box;
}

nav#global ul li {
    display: inline;
    list-style: none;
    padding-left: 40px;
}

nav#global ul li a {
    color: #ffffff;
    background-color: #046909;
    border: 2px solid #046909;
    font: normal bold 14px/44px Arial, Helvetica, sans-serif;
    padding: 10px;
    margin-right: 40px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

nav#global ul li a:hover,
nav#global ul li a:focus {
    background-color: #048a0b;
    border: 2px solid #ffffff;
    color: #f1f1f1;
    text-decoration: none;
}

nav#global ul li a.selected {
    color: #fff;
}

nav#global ul li a.selected:hover {
    color: #ffffff;
}

/* Dropdown Menu */
nav#global ul li.dropdown {
    position: relative;
    display: inline-block;
}

nav#global ul li.dropdown .submenu {
    display: none;
    position: absolute;
    background-color: #046909;
    width: max-content;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 10px;
    border-radius: 5px;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    left: 50%;
    transform: translateX(-50%);
}

nav#global ul li.dropdown.open .submenu {
    display: block;
}

nav#global ul li.dropdown .submenu li {
    display: block;
    padding: 0;
    margin: 0;
}

nav#global ul li.dropdown .submenu li a {
    display: block;
    padding: 10px 15px;
    background-color: #046909;
    color: #fff;
    border-bottom: 1px solid #045c09;
    text-align: left;
    font: normal bold 14px Arial, Helvetica, sans-serif;
    white-space: nowrap;
    margin-right: 0;
}

nav#global ul li.dropdown .submenu li a:hover {
    background-color: #035005;
    color: #9cc7eb;
}

/* Intro Section */
#intro {
    background-color: #3d5a6b;
    margin-top: 20px; /* CORREÇÃO: Reduzido de 100px */
    padding: 40px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

#intro header h2 {
    font-weight: normal;
    line-height: 1.3;
    padding: 0 0 15px 0;
    color: #fff;
    font-size: 24px;
    text-align: center;
}

#intro p {
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
}

#intro a {
    color: #fff;
    background-color: #333;
    font: normal bold 16px/44px Arial, Helvetica, sans-serif;
    padding: 10px;
    margin-right: 40px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

#intro a:hover {
    color: #ffffff;
    background-color: #222;
    text-decoration: none;
}

/* Intro with Photo */
.intro-photo img {
    width: 281px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 1px 10px #333;
    display: block;
}

.intro-photo-professora img {
    width: 160px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 1px 10px #ffffff;
    display: block;
}

.intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: white;
}

.intro-text h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
    color: #ffffff;
}

.intro-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    line-height: 1.6;
}

.intro-info h3 {
    margin: 0;
    font-weight: normal;
    font-size: 16px;
    line-height: 1.6;
}

/* Photo Containers */
#intro #photo {
    background-color: #ffffff;
    float: right;
    margin-top: -170px;
    box-shadow: 0 1px 10px #333;
    border-radius: 4px;
    width: 400px;
    max-width: 100%;
    height: 300px;
}

#photo div { 
    background-color: #ffffff;
    margin: 10px auto 0 auto;
    border-radius: 2px;
    width: 380px;
    max-width: 95%;
    height: 260px;
    text-align: center;
}

#photo div h3 {
    color: #ffffff;
    font-size: 25px;
    line-height: 25px;
    padding: 115px 0 0 0;
}

#intro #photoSmall {
    background-color: #ffffff;
    float: right;
    margin-top: -170px;
    box-shadow: 0 1px 10px #333;
    border-radius: 4px;
    width: 400px;
    max-width: 100%;
    height: 200px;
}

#photoSmall div {
    background-color: #ffffff;
    margin: 10px auto 0 auto;
    border-radius: 2px;
    width: 380px;
    max-width: 95%;
    height: 180px;
    text-align: center;
}

#photoSmall div h3 {
    color: #ffffff;
    font-size: 25px;
    line-height: 25px;
    padding: 115px 0 0 0;
}

#intro #photoMember {
    background-color: #fff;
    float: right;
    margin-top: -100px;
    box-shadow: 0 1px 10px #333;
    border-radius: 4px;
    width: 300px;
    max-width: 100%;
    height: 300px;
}

#photoMember div {
    background-color: #fff;
    margin: 10px auto 0 auto;
    border-radius: 2px;
    width: 280px;
    max-width: 95%;
    height: 280px;
    text-align: center;
}

#photoMember div h3 {
    color: #fff;
    font-size: 25px;
    line-height: 25px;
    padding: 115px 0 0 0;
}

#intro #photoGroup {
    background-color: #fff;
    float: right;
    margin-top: -240px;
    box-shadow: 0 1px 10px #333;
    border-radius: 4px;
    width: 450px;
    max-width: 100%;
    height: 276px;
}

#photoGroup div {
    background-color: #fff;
    margin: 5px 0px 0px 0px;
    border-radius: 2px;
    width: 450px;
    max-width: 100%;
    height: 270px;
    text-align: center;
}

#photoGroup div h3 {
    color: #fff;
    font-size: 25px;
    line-height: 25px;
    padding: 115px 0 0 0;
}

#photoLarge div {
    background-color: #ffffff;
    margin: 5px 5px 5px 5px;
    border-radius: 2px;
    width: 500px;
    max-width: 100%;
    height: 280px;
    text-align: center;
}

#photoLarge div h3 {
    color: #ffffff;
    font-size: 25px;
    line-height: 25px;
    padding: 115px 0 0 0;
}

/* Main Content */
div#mainWhite {
    border: none;
}

#mainWhite #articles {
    float: left;
    margin-left: 40px;
    width: 850px;
    max-width: 100%;
    border: none;
}

div#main {
    background: url(../images/main_bkgd.png) repeat-y top right;
    border: none;
    padding-top: 20px;
}

#main #articles {
    float: left;
    margin-left: 40px;
    width: 600px;
    max-width: 100%;
    border: none;
}

article {
    border-bottom: 1px dotted #aaa;
    padding: 15px 0;
}

article:last-child {
    border-bottom: none;
}

/* Aside */
aside {
    float: right;
    margin-top: 40px;
    margin-right: 16px;
}

aside section {
    background-color: #90A4AE;
    margin-bottom: 30px;
    padding: 20px 40px 20px 20px;
    border-radius: 5px;
}

aside h3 {
    padding: 0 0 11px 0;
}

nav#categories ul li,
nav#archives ul li {
    list-style: none;
    margin: 5px 0;
}

/* Blog Post Styles */
.blogPost section {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 5px solid #444;
    font-family: 'Libertinus Serif', serif;
    border-radius: 6px;
}

.blogPost section h3 {
    color: #2a2a2a;
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
}

.blogPost ul {
    margin-left: 20px;
    list-style-type: disc;
}

.blogPost p,
.blogPost ul li {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Gallery Section */
.gallery-nav {
    text-align: center;
    padding: 30px 0;
    background: #f5f5f5;
    margin: 20px 40px;
    border-radius: 8px;
}

.gallery-nav button {
    background: #046909;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font: normal bold 14px Arial, Helvetica, sans-serif;
    transition: background-color 0.3s ease;
}

.gallery-nav button:hover {
    background: #048a0b;
}

.gallery-nav button.active {
    background: #035005;
}

.gallery-container {
    padding: 20px 40px;
}

.gallery-section {
    display: none;
}

.gallery-section.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-item {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 15px;
}

.gallery-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.gallery-demo-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.gallery-demo-link:hover {
    text-decoration: underline;
    color: #004499;
}

.gallery-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    text-decoration: none;
}

/* Modal Styles */
.modal,
.equipment-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    margin: 20px auto;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal,
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-modal:hover,
.close-modal:focus,
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h2,
.modal-title {
    color: #046909;
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-content p,
.modal-description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 14px;
}

.modal-equipment-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

/* Content Containers */
.content-container {
    display: none;
    padding: 20px 40px;
}

.content-container.active {
    display: block;
}

/* Filters Section */
.filters-section {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: bold;
    color: #333;
}

.filter-group select {
    padding: 8px 15px;
    border: 2px solid #4a90a4;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Timeline */
.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
}

.year-button {
    background-color: #4a90a4;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    font-size: 16px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-button:hover,
.year-button.active {
    background-color: #357a8c;
    transform: scale(1.05);
}

.year-button .year-count {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 5px;
    font-size: 14px;
}

/* Publications Grid */
.publications-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.publication-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.publication-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #4a90a4;
}

.publication-card h3 {
    color: #333;
    font-size: 18px;
    padding: 0 0 10px 0;
    line-height: 1.4;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-item {
    background-color: #4a90a4;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
}

.publication-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.publication-authors {
    color: #555;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 10px;
}

.publication-link {
    color: #4a90a4;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.publication-link:hover {
    text-decoration: underline;
}

.card-actions {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    gap: 5px;
}

.authenticated .card-actions {
    display: flex;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.edit-btn {
    background-color: #2196f3;
    color: white;
}

.edit-btn:hover {
    background-color: #1976d2;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90a4;
}

.submit-btn {
    background-color: #4a90a4;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #357a8c;
    transform: translateY(-2px);
}

/* Success Message */
.success-message {
    background-color: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    display: none;
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    min-width: 300px;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Footer */
footer {
    position: relative;
    left: 0;
    width: 100%;
    background-color: #7094db;
    margin-top: 50px;
    clear: both;
}

footer div {
    margin: 0 auto;
    padding: 10px 0 20px 40px;
    width: 920px;
    max-width: 100%;
    border: none;
    box-sizing: border-box;
}

footer div section {
    color: #000000;
    float: left;
    margin-right: 25px;
    width: 920px;
    max-width: 100%;
    border: none;
}

footer div section h3 {
    color: #fff;
}

nav#blogRoll ul li,
nav#siteMap ul li {
    color: #777;
    list-style: disc;
    margin-left: 15px;
}

footer #about {
    margin-right: 10px;
    width: 920px;
    max-width: 100%;
}

/* RESPONSIVIDADE - TABLETS (768px) */
@media screen and (max-width: 768px) {
    body {
        width: 100%;
        padding: 70px 10px 0 10px; /* CORREÇÃO: padding-top aumentado */
        font-size: 14px;
        line-height: 1.6;
    }

    h1 {
        font-size: 24px;
        line-height: 36px;
        padding-top: 20px;
    }

    h2 {
        font-size: 20px;
        line-height: 32px;
        padding: 15px 0;
    }

    h3 {
        font-size: 16px;
        line-height: 20px;
        padding: 8px 0;
    }

    p {
        font-size: 14px;
    }

    #mast h1 {
        padding: 20px 0 15px 20px;
    }

    nav#global {
        padding: 8px 0; /* CORREÇÃO: padding reduzido */
    }

    nav#global ul {
        width: 100%;
        padding: 0 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav#global ul li {
        padding-left: 5px;
        padding-right: 5px;
    }

    nav#global ul li a {
        font-size: 12px;
        padding: 8px;
        margin-right: 5px;
        line-height: normal;
    }

    #intro {
        margin-top: 10px; /* CORREÇÃO: margem reduzida */
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    #intro header h2,
    .intro-text h2 {
        width: 100%;
        margin-left: 0;
        text-align: center;
        font-size: 22px;
    }

    .intro-info {
        font-size: 14px;
        align-items: center;
        text-align: center;
    }

    .intro-info h3 {
        font-size: 14px;
    }

    #main #articles,
    #mainWhite #articles {
        float: none;
        margin-left: 20px;
        margin-right: 20px;
        width: auto;
    }

    aside {
        float: none;
        margin: 20px;
        width: auto;
    }

    .gallery-nav {
        margin: 20px 10px;
        padding: 20px 0;
    }

    .gallery-nav button {
        font-size: 12px;
        padding: 10px 18px;
        margin: 5px;
    }

    .gallery-container {
        padding: 15px 10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-item img {
        height: 150px;
    }

    .gallery-title {
        font-size: 14px;
    }

    .gallery-demo-link {
        font-size: 12px;
    }

    .gallery-description {
        font-size: 11px;
    }

    .modal-content {
        width: 90%;
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-description {
        font-size: 13px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    footer div {
        padding: 10px 20px;
        width: 100%;
    }

    footer div section {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    nav#global ul li.dropdown .submenu {
        left: 0;
        transform: none;
        width: 100%;
    }

    .intro-photo img {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .intro-photo-professora img {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }
}

/* RESPONSIVIDADE - MOBILE (480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 5px;
        padding-top: 110px; /* CORREÇÃO: Aumentado para compensar menu maior no mobile */
    }

    h1 {
        font-size: 20px;
        line-height: 30px;
        padding-top: 15px;
    }

    h2 {
        font-size: 18px;
        line-height: 26px;
        padding: 10px 0;
    }

    h3 {
        font-size: 14px;
        line-height: 18px;
        padding: 6px 0;
    }

    p {
        font-size: 14px;
        padding-bottom: 15px;
    }

    #mast h1 {
        padding: 15px 0 10px 10px;
    }

    nav#global {
        padding: 8px 0; /* CORREÇÃO: padding ajustado */
    }

    nav#global ul {
        padding: 0 5px;
        flex-direction: column;
        align-items: stretch;
    }

    nav#global ul li {
        display: block;
        padding: 3px 0;
        padding-left: 0;
    }

    nav#global ul li a {
        font-size: 11px;
        line-height: 1.4;
        padding: 8px 10px;
        margin-right: 0;
        display: block;
        text-align: center;
    }

    #intro {
        margin-top: 10px; /* CORREÇÃO: margem ajustada */
        padding: 15px;
    }

    #intro a {
        font-size: 14px;
        line-height: 1.4;
        padding: 10px;
        margin-right: 0;
        display: block;
        margin-bottom: 10px;
    }

    #intro header h2,
    .intro-text h2 {
        font-size: 18px;
        line-height: 1.3;
    }

    .intro-info {
        font-size: 14px;
        gap: 6px;
    }

    .intro-info h3 {
        font-size: 14px;
    }

    .intro-photo img {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .intro-photo-professora img {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }

    #photo, #photoSmall, #photoMember, #photoGroup {
        float: none;
        width: 100%;
        margin: 20px 0 0 0;
    }

    #photo div, #photoSmall div, #photoMember div, #photoGroup div {
        width: 95%;
    }

    #main #articles,
    #mainWhite #articles {
        margin-left: 10px;
        margin-right: 10px;
    }

    aside {
        margin: 10px;
    }

    aside section {
        padding: 15px;
    }

    .gallery-nav {
        margin: 15px 5px;
        padding: 15px 5px;
    }

    .gallery-nav button {
        font-size: 11px;
        padding: 8px 12px;
        margin: 3px;
        display: block;
        width: 90%;
        margin: 5px auto;
    }

    .gallery-container {
        padding: 10px 5px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item img {
        height: 180px;
    }

    .gallery-info {
        padding: 12px;
    }

    .gallery-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .gallery-demo-link {
        font-size: 12px;
    }

    .gallery-description {
        font-size: 11px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
        max-height: 85vh;
    }

    .close,
    .close-modal {
        font-size: 24px;
    }

    .modal-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .modal-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .modal-equipment-img {
        max-width: 100%;
        margin: 15px 0;
    }

    .blogPost section h3 {
        font-size: 16px;
    }

    .blogPost p,
    .blogPost ul li {
        font-size: 14px;
    }

    .filters-section {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group select {
        width: 100%;
    }

    .timeline {
        flex-direction: column;
        gap: 8px;
    }

    .year-button {
        width: 90%;
        font-size: 14px;
        padding: 10px 15px;
    }

    .publication-card h3 {
        font-size: 16px;
    }

    .publication-summary,
    .publication-authors {
        font-size: 13px;
    }

    .meta-item {
        font-size: 12px;
        padding: 4px 10px;
    }

    footer {
        margin-top: 30px;
    }

    footer div {
        padding: 10px;
    }

    nav#global ul li.dropdown .submenu li a {
        font-size: 11px;
        padding: 8px 10px;
    }

    .action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .success-message {
        min-width: 250px;
        font-size: 14px;
        padding: 12px;
        top: 130px; /* CORREÇÃO: posição ajustada para não ficar atrás do menu */
    }
}

/* RESPONSIVIDADE EXTRA - Telas muito pequenas (320px) */
@media screen and (max-width: 360px) {
    body {
        font-size: 13px;
        padding-top: 140px; /* CORREÇÃO: mais espaço para menus muito grandes */
    }

    h1 {
        font-size: 18px;
        line-height: 26px;
    }

    h2 {
        font-size: 16px;
        line-height: 24px;
    }

    h3 {
        font-size: 14px;
        line-height: 18px;
    }

    p {
        font-size: 13px;
    }

    #intro header h2,
    .intro-text h2 {
        font-size: 16px;
    }

    .intro-info,
    .intro-info h3 {
        font-size: 13px;
    }

    nav#global ul li a {
        font-size: 10px;
        padding: 7px 8px;
        line-height: 1.3;
    }

    .gallery-nav button {
        font-size: 10px;
        padding: 6px 10px;
    }

    .modal-content {
        padding: 12px;
    }

    .modal-title {
        font-size: 16px;
    }

    .publication-card {
        padding: 15px;
    }

    .publication-card h3 {
        font-size: 14px;
    }
}

/* Melhorias de Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    nav#global,
    .gallery-nav,
    .action-btn,
    .submit-btn,
    footer {
        display: none;
    }

    body {
        width: 100%;
        font-size: 12pt;
        color: #000;
        background: #fff;
        padding-top: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    #intro {
        background-color: #fff;
        border: 1px solid #000;
        margin-top: 0;
    }

    .publication-card,
    .gallery-item {
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
}
/* Estilos para seções de especialização */
.specialization-section {
    margin-bottom: 40px;
    grid-column: 1/-1;
    width: 100%;
}

.specialization-title {
    font-size: 1.8rem;
    color: #046909;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    border-left: 5px solid #046909;
    border-radius: 5px;
    font-weight: 600;
}

.specialization-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 10px;
}

/* Ajustes no member-card para funcionar dentro das seções */
.specialization-members .member-card {
    margin: 0;
}

@media (max-width: 768px) {
    .specialization-members {
        grid-template-columns: 1fr;
    }
    
    .specialization-title {
        font-size: 1.4rem;
        padding: 12px 15px;
    }
}