/* =========================================================
   BASE
========================================================= */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0b0b0b;
    color: #f5f5f5;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-hero::after {
    pointer-events: none;
}

.blog-header {
    z-index: 9999;
}

.blog-header a {
    pointer-events: auto;
}

/* LOGO */
.blog-logo img {
    height: 200px;
    width: auto;
}

/* BACK LINK */
.blog-back {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

.blog-back:hover {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    padding: 6px 2px;
    opacity: 0.75;
    position: relative;
    transition: opacity 0.25s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #f5c542;
    transition: width 0.3s ease;
}

.nav a:hover {
    opacity: 1;
}

.nav a:hover::after {
    width: 100%;
}

/* =========================================================
   BLOG – HERO
========================================================= */
.blog-hero {
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-bottom: 120px;

    background:
        linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.3)),
        url("/static/img/blog-hero.png") center / cover no-repeat;
}

.blog-hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.75;
}

.blog-hero::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(245,197,66,0.18),
        transparent 40%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 20px;
}

/* =========================================================
   BLOG – LAYOUT
========================================================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

/* Categories */
.categories {
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.categories a {
    text-decoration: none;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.categories a:hover {
    background: #fff;
    color: #000;
}

/* Posts */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.post {
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    transition: all .4s ease;
    position: relative;
}

.post::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}


.post:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,.6);
}

.post:hover::after {
    opacity: 1;
}

.post img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.post:hover img {
    transform: scale(1.05);
}

.post-body {
    padding: 20px;

    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.post-body p {
    opacity: 0.75;
    min-height: 3.2em; /* equivalente a 2 linhas */
}

.post-body a {
    margin-top: auto; /* empurra para o fundo */
    padding-top: 16px;
    color: #f5c542;
    font-weight: 600;
    text-decoration: none;
}

.post-text {
    max-width: 800px;
}

.post-text p {
    margin-bottom: 22px;
}


/* =========================================================
   BLOG – NEWSLETTER
========================================================= */
.newsletter {
    margin-top: 120px;
    padding: 70px 30px;
    background: linear-gradient(145deg, #111, #0a0a0a);
    border-radius: 22px;
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter p {
    opacity: 0.8;
    margin-bottom: 25px;
}

.newsletter input {
    padding: 12px;
    width: 260px;
    border-radius: 6px;
    border: none;
    background: #000;
    color: #fff;
}

.newsletter button {
    padding: 12px 18px;
    margin-left: 8px;
    border-radius: 6px;
    border: none;
    background: #f5c542;
    font-weight: bold;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245,197,66,.35);
}

/* =========================================================
   BLOG – POST DETAIL
========================================================= */

.post-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.post-content {
    max-width: 1100px;
    margin: auto;
    padding: 80px 40px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #f5c542;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
}

.post-title {
    font-size: 3.2rem;
    margin-bottom: 15px;
}

.post-meta {
    opacity: 0.7;
    margin-bottom: 40px;
}

.post-cta {
    margin-top: 100px;
    padding: 70px 40px;
    background: linear-gradient(135deg, #f5c542, #d4a61f);
    border-radius: 22px;
    text-align: center;
    color: #000;
}

.post-cta a {
    background: #000;
    color: #f5c542;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all .3s ease;
}

.post-cta a:hover {
    background: #111;
}

.post-cta h2 {
    margin-bottom: 10px;
}

/* =========================================================
   POST LAYOUT + GALLERY
========================================================= */

.post-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    margin-top: 40px;
}

/* MAIN IMAGE */
.gallery-main img {
    width: 100%;
    border-radius: 14px;
    cursor: pointer;
}

/* THUMBNAILS */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.gallery-thumbs img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-thumbs img:hover {
    opacity: 1;
    transform: scale(1.03);
}

.gallery-thumbs a img {
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-thumbs a:hover img {
    opacity: 1;
    transform: scale(1.04);
}

/* =========================================================
   GLIGHTBOX – CAPTION REFINEMENT
========================================================= */

.glightbox-container .gdesc-inner {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f1f1;
}

.glightbox-container .gdesc {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.35)
    );
    padding: 16px 20px;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto 25px;
}

/* seta e botões mais elegantes */
.glightbox-container .gprev,
.glightbox-container .gnext,
.glightbox-container .gclose {
    filter: brightness(1.1);
}

.post-extra-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-download,
.btn-external {
    padding: 12px 24px;
    background: #061630;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-download:hover,
.btn-external:hover {
    background: #d6c57d;
    color: #061630;
}

.blog-header{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    padding: 16px 28px;
  }
  
  .blog-logo img{
    height: 200px;
    width: auto;
    display: block;
  }
  
  .blog-header-actions{
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .blog-back{
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    /*background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);*/
  }
  
  .blog-back:hover{
    background: rgba(0,0,0,0.5);
  }
  
  .lang-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-wrapper img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.lang {
    background: transparent;
    color: #fff;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 900px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 18px 20px;
    }

    .blog-logo img {
        height: 100px;
    }

    .nav {
        display: none;
    }

    .logo img {
        height: 46px;
    }

    .blog-hero {
        min-height: 55vh;
    }

    .blog-hero h1 {
        font-size: 2.4rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .newsletter input,
    .newsletter button {
        width: 100%;
        margin: 0 0 10px 0;
    }
    .post-title {
        font-size: 2rem;
    }

    .post-hero img {
        height: 280px;
    }
}



