/*
Theme Name: ABRANHI Azul escuro
Theme URI: https://abranhi.org.br
Author: Claude
Author URI: https://anthropic.com
Description: Tema personalizado para a Associação Brasileira de Narcolepsia e Hipersonia Idiopática. Segue a identidade visual oficial da ABRANHI com cores primárias azul (#0096DC) e verde (#A8CF45).
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abranhi
*/

/* Root color variables based on the official ABRANHI visual identity */
:root {
  --color-primary: #0096DC;    /* ABRANHI blue */
  --color-secondary: #A8CF45;  /* ABRANHI green (lime) */
  --color-accent: #0096DC;     /* blue accent */
  --color-dark: #000000;       /* black background */
  --color-black: #000000;      /* black */
  --color-white: #ffffff;
  --color-light-bg: #f5f5f5;   /* light background */
}

/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-light-bg);
  color: #333333;
  line-height: 1.6;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

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

header .site-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-white);
  flex: 1 1 0;
  min-width: 200px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Align the custom balloon logo and the title horizontally in the header */
.site-branding {
  display: flex;
  align-items: center;
}

/* Default size for the balloon logo */
.logo-balloon {
  /* Increase the balloon logo by 25% over its tripled size */
  width: 150px;
  height: auto;
  flex-shrink: 0;
}

nav {
  margin-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  color: var(--color-white);
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--color-secondary);
  color: #000000;
}

main {
  margin: 0;
  padding: 0;
}

/* Hero section with background image and overlay */
.hero {
  position: relative;
  background-color: #000;
  background-image: url('assets/images/hero.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 19, 19, 0.5);
  z-index: 1;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--color-secondary);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--color-white);
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-black);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

/* Container for main content */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 15px;
}

/* Posts styling */
.post {
  background-color: var(--color-white);
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--color-primary);
}

.post h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 2rem;
}

.post .meta {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 10px;
}

.post p {
  margin-bottom: 15px;
  color: #333333;
}

footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 20px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}
/* Branding link — keeps logo + title appearance unchanged */
.site-branding-link {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

.site-branding-link:hover,
.site-branding-link:focus {
  text-decoration: none;
}
