/* ===========================
   BASE E ELEMENTOS GERAIS
=========================== */

html,
body {
    text-rendering: optimizeLegibility;
    color: #6c6f73;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    color: #333;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
    position: relative;
}

h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 0.8s ease forwards;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 0.8s ease forwards;
}

h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background-color: #bd6716;
    margin: 10px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

h4 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
}

h5 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 12px;
}

p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
    max-width: 900px;
    margin: 0 auto 25px;
    padding: 0 10px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

ul {
    max-width: 900px;
    margin: 0 auto 25px;
    padding-left: 20px; 
    font-size: 1.05rem;
    line-height: 1.7;
    color: #344;
    letter-spacing: 0.2px;
}

li {
    margin-bottom: 10px;
}

a {
  color: #bd6716;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #8a4a10;
}


@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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



h6 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
}

/* ===========================
   NAVBAR
=========================== */

#topnav {
    background-color: #4e576b;
}

#topnav .navbar-brand {
    padding: 5px;
}

#topnav .navbar-toggle {
    background: #4e576b !important;
}

#topnav .nav .active a {
    background: #707684 !important;
}

#topnav .nav .active a:hover {
    background: #7d828e !important;
}

/* ALINHAMENTO PARA A DIREITA */
#topnav .navbar-nav {
    margin-left: auto !important;
    margin-right: 0 !important;
    float: none !important;  /* impede conflitos do Bootstrap antigo */
}


/* ===========================
   CAROUSEL / CAPTION
=========================== */

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 10;
    padding: 8px;
    color: #fff;
    font-size: 12px;
    text-align: left;
}

/* ===========================
   BLOCKQUOTES
=========================== */

.blockquote {
    font-size: 12px;
    color: #333;
    border: none;
    padding: 0;
}

.blockquote-footer {
    margin: 10px 0 0;
}

/* ===========================
   SEÇÃO PRINCIPAL / STAGE
=========================== */

#stage {
    background: url('../img/NASA_ABorealis_from_SpaceStation2017b3.jpg') center center no-repeat;
    background-size: cover;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

#stage-caption {
    font-size: 20px;
    font-weight: 200;
    max-width: 960px;
    margin: 0 auto;
}

#stage-caption h2 {
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

/* ===========================
   BOTÕES
=========================== */

.btn {
    border-color: #ff8402;
}

.btn-default {
    border-color: grey;
}

.btn-warning {
    margin-right: 20px;
}

/* ===========================
   CONTEÚDOS E SEÇÕES
=========================== */
.XR {
    padding-top: 5px;
}
.XPRO {
    padding-top: 5px;
}
.FPRO {
    padding-top: 5px;
}
.feature-content {
    padding: 10px 0;
    overflow: hidden;
}

.feature-content img {
    margin-bottom: 0;
}

.feature-content1 {
    padding: 5px 0 30px 0;
    overflow: hidden;
}

.feature-content1 .list1 {
    padding-left: 40px;
}

.feature-content1 .map {
    padding-right: 50px;
}

/* Variações de Seção */
.feature-dark {
    background: #262F36;
    color: #fff;
    padding-top: 50px;
}

.feature-dark h2,
.feature-dark h4 {
    color: #fff;
}

.feature-alt {
    background: #f0f0f0;
}

#feature-four .feature-content {
    padding: 0;
}

#feature-five img {
    margin-top: 32px;
}

/* ===========================
   FORMULÁRIOS
=========================== */

.control-label {
    color: #000;
}

#form1 .error {
    color: red;
}

.must {
    color: orangered;
    font-size: 12px;
    font-style: italic;
}

/* Ícones */
.fa-file-pdf {
    color: #f13f29;
    font-size: 24px;
}

/* Contato */
#ContatoGD img {
    margin: 0 15px 5px 0;
}

/* ===========================
   BOTÃO VOLTAR AO TOPO
=========================== */

.back-to-top,
#myBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 99;
}

.back-to-top:hover {
    background-color: #5cb85c;
    border-color: #5cb85c;
}

#myBtn {
    display: none;
    background-color: #5cb85c;
    border-color: #ff8402;
}

#myBtn:hover {
    background-color: #333;
    border-color: #5cb85c;
    color: #fff;
}

/* ===========================
   RODAPÉ
=========================== */

#main-footer {
    background: #252525;
    padding: 16px 0;
    text-align: center;
}

#main-footer p {
    color: #b8b9bc;
    margin: 0;
}

.fmenu p {
    font-size: 12px;
}

.fmenu a {
    color: #b8b9bc;
}

.fmenu a:hover {
    color: #fff;
    text-decoration: none;
}

.lrn p {
    font-size: 14px;
    font-weight: bold;
}

.note p {
    font-size: 10px;
}

#SobreGD .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    box-sizing: border-box;
}

#SobreGD .feature-content {
    padding: 20px 0;
}

@media (max-width: 768px) {
    #SobreGD .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    #SobreGD .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

h4 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
    margin: 0 auto 25px; /* igual aos <p> */
    max-width: 900px;     /* opcional, para limitar largura igual aos <p> */
    line-height: 1.75;    /* igual ao <p> */
    padding: 0 10px;      /* padding horizontal igual aos <p> */
}



/* ===========================
   COOKIE MESSAGE
=========================== */

.CookieMessage {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #121212;
    z-index: 999;
    width: 70%;  /* REDUZIDO: De 90% para 70% em telas grandes */
    max-width: 300px;  /* REDUZIDO: De 600px para 300px (metade) */
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
}

.CookieMessage-content {
    color: #fff;
    font-family: sans-serif;
    line-height: 1.5;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.CookieMessage-content a {
    color: #fff;
    text-decoration: underline;
}

.CookieMessage-button {
    background: #5cb85c;
    color: #fff;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.CookieMessage-button:hover {
    background: #4cae4c;
}

/* ===========================
   MEDIA QUERIES (RESPONSIVO)
=========================== */

/* Telas grandes (até 1200px) */
@media (max-width: 1200px) {
    .feature-content {
        padding: 80px 0;
    }
}

/* Tablets e telas médias (até 992px) */
@media (max-width: 992px) {
    #stage-caption h2 {
        font-size: 26px;
    }

    .feature-content {
        padding: 60px 20px;
    }

    .feature-content1 .list1 {
        padding-left: 20px;
    }

    .CookieMessage {
        width: 95%;
        right: 2.5%;
    }
}

/* Celulares (até 768px) */
@media (max-width: 768px) {
    #stage {
        height: auto;
        padding: 80px 20px;
    }

    #stage-caption h2 {
        font-size: 24px;
    }

    #stage-caption {
        font-size: 16px;
    }

    .feature-content {
        flex-direction: column;
        text-align: center;
    }

    .feature-content img {
        margin-bottom: 20px;
    }

    .CookieMessage-content {
        flex-direction: column;
        text-align: center;
    }

    .CookieMessage-button {
        margin: 10px 0 0;
    }
}

/* Celulares pequenos (até 576px) */
@media (max-width: 576px) {
    #stage-caption h2 {
        font-size: 20px;
    }

    #stage-caption {
        font-size: 14px;
    }

    .feature-content {
        padding: 40px 15px;
    }

    .CookieMessage {
        padding: 10px;
        font-size: 11px;
    }
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

table {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    font-size: 15px;

    border: 1px solid black;     /* borda externa */
    border-collapse: collapse;   /* une bordas */
    background: #ffffff;
}

table th,
table td {
    padding: 12px 14px;
    border: 1px solid black;     /* bordas internas pretas */
    text-align: center;
}

table th {
    background: #f7f7f7;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
}

table tr:nth-child(even) {
    background: #fafafa;
}

/* --- RESPONSIVO (CELULAR) --- */
@media (max-width: 700px) {
    table {
        width: 100%;
        margin: 20px auto;
        font-size: 14px;
    }

    table th,
    table td {
        padding: 10px;
        border: 1px solid black; /* mantém borda preta no mobile */
    }
}

#myCarousel1 {
    width: 100% !important;       
    height: auto !important;      
    margin: 0 auto !important;    
}

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

#SobreGD img,
.feature-content img {
  display: inline-block;
  vertical-align: middle;
}

h1, h2, h3, h4, h5 {
  text-align: center;
}

.feature-caption,
.feature-content ul {
  text-align: left;
}