/*@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');


/* Base Styles */
:root {
    --background: #121212;
    --dark-100: #1E1E1E;
    --dark-200: #2A2A2A;
    --dark-300: #3A3A3A;
    --dark-400: #4A4A4A;
    --foreground: #f7f7f7;
    --brand: #427B8E;
    --brand-light: #5A93A6;
    --brand-dark: #2A6375;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --radius: 0.75rem;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
  }
  
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
  }

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

::selection {
    background-color: #427B8E;
    color: #f1f1f1;
}

 .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  button {
    cursor: pointer;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
  }
  
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .hover-link {
    position: relative;
  }
  
  .hover-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
  }
  
  .hover-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  

/* Main Content */
  .main {
    padding-top: 5rem;
    flex-grow: 1;
  }

  /* Carousel Section */
  .carousel-section {
    margin-bottom: 4rem;
  }

  .carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(58, 58, 58, 0.5);
    backdrop-filter: blur(4px);
    color: white;
    transition: background-color 0.2s ease;
  }

  .carousel-btn:hover {
    background-color: var(--dark-300);
  }

  .carousel-btn.prev {
    left: 1rem;
  }

  .carousel-btn.next {
    right: 1rem;
  }

  .carousel-slides {
    position: relative;
    height: 500px;
  }

  .carousel-slide {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 0;
  }

  .carousel-slide.active {
    opacity: 1;
    z-index: 10;
  }

  .carousel-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0.5), transparent);
  }

  .slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
  }

  .slide-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 4rem 1rem;
    width: 100%;
  }

  .slide-content-box {
    max-width: 48rem;
  }

  .slide-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--brand);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
  }

  .slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
  }

  .slide-desc {
    color: var(--gray-300);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }

  .slide-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .slide-meta-item {
    color: var(--gray-300);
    font-size: 0.875rem;
  }

  .slide-meta-item strong {
    color: white;
    font-weight: 500;
  }

  .slide-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--brand);
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
  }

  .slide-button:hover {
    background-color: var(--brand-light);
  }

  .slide-button svg {
    margin-left: 0.25rem;
  }

  .carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
  }

  .carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
  }

  .carousel-dot.active {
    width: 1rem;
    border-radius: 1rem;
    background-color: var(--brand);
  }

  .carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
  }

  /* About Section */
  .about-section {
    margin-bottom: 4rem;
    text-align: center;
  }

  .about-content {
    max-width: 48rem;
    margin: 0 auto;
  }

  .section-tag {
    display: inline-block;
    color: var(--brand);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .section-desc {
    color: var(--gray-300);
    font-size: 1.125rem;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  




.mobile-tag-filter-toggle {
    display: flex;
    width: 600px;
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 26, 26, 0.8);
    color: #427B8E;
    border: 1px solid rgba(66, 123, 142, 0.1);
    border-radius: 8px;
    margin: 0 auto;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.mobile-tag-filter-toggle:hover {
    border-color: rgba(66, 123, 142, 0.3);
    box-shadow: 0 0 15px rgba(66, 123, 142, 0.1);
}

.tag-filter {
    display: none;
    width: 600px;
    background: rgba(18, 18, 18, 0.9);
    margin: 0 auto;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(66, 123, 142, 0.05);
}

.tag-filter.mobile-expanded {
    display: block;
    max-height: 35vh;
    overflow-y: auto;
    margin: 10px auto;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tag-filter .tag {
    display: block;
    width: 100%;
    padding: 12px 22px;
    margin: 4px 0;
    text-align: left;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.tag-filter .tag:hover {
    background: rgba(66, 123, 142, 0.1);
    color: #fff;
}

.tag-filter .tag:hover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #427B8E;
}

.tag.active {
    background: rgba(66, 123, 142, 0.15);
    color: #427B8E;
    font-weight: 400;
}

.tag.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #427B8E;
}

/* Custom scrollbar */
.tag-filter::-webkit-scrollbar {
    width: 4px;
}

.tag-filter::-webkit-scrollbar-track {
    background: rgba(18, 18, 18, 0.5);
    border-radius: 4px;
}

.tag-filter::-webkit-scrollbar-thumb {
    background: rgba(66, 123, 142, 0.3);
    border-radius: 4px;
}

.tag-filter::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 123, 142, 0.5);
}








@media screen and (max-width: 768px) {
    .mobile-tag-filter-toggle {
        display: flex;
        width: 100%;
        padding: 8px 16px;
        align-items: center;
        justify-content: space-between;
        background: #1a1a1a;  /* Mantendo o tema escuro que vi na imagem */
        color: #427B8E;      /* Cor azul similar à da imagem */
        border: none;
        border-radius: 4px;
    }

    .tag-filter {
        display: none;
        width: 100%;
        background: #1a1a1a;  /* Fundo escuro para combinar */
    }

    .tag-filter.mobile-expanded {
        display: block;  /* Mudamos para block ao invés de flex */
        max-height: 60vh;  /* 70% da altura da viewport */
        overflow-y: scroll;
        margin-top: 8px;
        padding: 8px 0;
        border-radius: 4px;
    }

    .tag-filter .tag {
        display: block;  /* Força cada tag a ocupar sua própria linha */
        width: 100%;
        padding: 12px 16px;
        margin: 2px 0;
        text-align: left;
        box-sizing: border-box;
    }
    
     .tag.active {
        background: #427B8E;
        color: white;

    }

    /* Estilização da scrollbar para melhor visibilidade */
    .tag-filter::-webkit-scrollbar {
        width: 5px;
    }

    .tag-filter::-webkit-scrollbar-track {
        background: #1a1a1a;
    }

    .tag-filter::-webkit-scrollbar-thumb {
        background: #427B8E;
        border-radius: 6px;
    }
}













/* Navbar */
nav {
    display: flex;
    justify-content: space-between; /* Alinha os itens */
    align-items: center;
    padding: 20px 35px;
    background-color: #0A0A0A;
    box-shadow: 0px 1px 4px #427B8E;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
}

.logo a {
    color: white;
    text-decoration: none;
}

/* Container do menu hambúrguer */
.menu-container {
    position: relative;
}

/* Ícone do menu hambúrguer */
.menu-icon {
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Menu dropdown escondido por padrão */
.menu {
    display: none;
    position: absolute;
    top: 35px; /* Ajusta a altura abaixo do ícone */
    right: 0; /* Alinha à direita */
    background-color: #0A0A0A;
    box-shadow: 0px 1px 10px rgba(66, 123, 142, 0.5);
    width: 220px;
    border-radius: 8px;
    padding: 5px 0;
    text-align: center;
    z-index: 999;
}

/* Exibir menu quando ativo */
.menu.active {
    display: block;
}

/* Estilização dos links */
.menu ul {
    list-style: none;
    padding: 0;
}

.menu ul li {
    padding: 10px 0;
}

.menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
    display: block;
}

.menu ul li a:hover {
    color: #427B8E;
}




/* Hero Section */
header {
    padding: 1rem 5% 4rem;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #427B8E, #64ffda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.subtitle {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Search & Filter */
.search-container {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem;
    border: 1px solid #333;
    border-radius: 50px;
    background: #111;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #427B8E;
    box-shadow: 0 0 15px rgba(66, 123, 142, 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #427B8E;
    pointer-events: none;
}


/* Posts List (Keeping Original Structure) */
#posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
    list-style: none;
    padding: 2rem 5%;
    margin-top: -55px;
}

/* Post Card */
.post-card {
   background-color: var(--dark-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid #1a1a1a;
    width: 100%;
    height: 100%;
}


.post-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.post-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

/* Image Overlay */
.post-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.post-card:hover .post-image-overlay {
    opacity: 1;
}

.post-content {
    padding: 1.8rem;
    position: relative;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: #427B8E;
}

.post-excerpt {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

  .post-meta {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
  }

 .post-meta-item {
    display: flex;
    align-items: center;
  }
  
  .post-meta-item svg {
    margin-right: 0.25rem;
  }
  
.post-author {
    color: #427B8E;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Tags */
.post-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.post-tag {
    background: rgba(66, 123, 142, 0.1);
    color: #427B8E;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #427B8E;
    color: white;
    transform: translateY(-2px);
}

/* Reading Time and Views */
.post-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: #666;
}

.post-link {
    text-decoration: none;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: #427B8E;
    width: 0%;
}

/* FOOTER */
footer {
    padding: 60px 80px;
    background: #0A0A0A;
    color: #CCD6F6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-logo img {
    max-width: 170px;
    max-height: 120px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.social-links {
    flex: 1;
    display: flex;
    justify-content: center;
}

.social-links a {
    color: #5b9bb1;
    margin: 0 15px;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #99c9da;
    transform: translateY(-5px);
}

.footer-contact {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    color: #ffffff;
}

.footer-contact-inner {
    display: flex;
    flex-direction: column;
}

.footer-contact h4 {
    color: #5b9bb1;
    margin-bottom: 10px;
    font-size: 22px;
    letter-spacing: 1px;
}

.footer-contact p {
    margin: 5px 0;
    font-size: 17px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #212324;
    font-size: 14px;
    color: #ffffff;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo,
    .social-links,
    .footer-contact {
        margin-bottom: 20px;
        justify-content: center;
        text-align: center;
    }

    .footer-contact {
        align-items: center;
    }
}