/**
 * Custom CSS
 *
 * This file is for your custom styles.
 * You can add any CSS rules here to customize the Ghost theme.
 *
 * Note: Changes made directly to this file may be overwritten during theme updates.
 * It's recommended to use the Code Injection feature in Ghost for persistent customizations.
 */

/* Your custom CSS goes below this line */

/* Hide blog posts bar when the body has the class 'hide-sidebar-posts' */
.hide-sidebar-posts .sidebar-posts {
  display: none;
}

/* Logo styles */
.logo img {
  display: block !important; 
  max-height: 120px;
  width: 340px;
  height: 120px;
  object-fit: cover;
  position: relative;
  left: -10px;
  margin-bottom: 1px;
}

.logo-light {
  filter: invert(1);
}

.logo-dark {
  filter: invert(0);
}

/* Video container styles */
.video-container video {
  aspect-ratio: 660/372;
  max-width: 660px;
  margin: 0 auto;
  display: block;
  width: 100%;
  height: auto;
}

.video-container {
  margin-top: 4rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Image container styles */
.image-container {
  margin: 2rem auto 4rem;
  width: 100%;
  max-width: 660px;
  display: flex;
  justify-content: center;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Description container */
.description-container {
  margin-top: 3rem;
  padding-top: 2rem;
}

/* Link styles */
.description-container a {
  color: #0066cc;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border-bottom: 1px solid transparent;
}

.description-container a:hover {
  color: #004499;
  border-bottom: 1px solid currentColor;
}

.company-link {
  color: #0066cc;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.company-link:hover {
  color: #004499;
}

.company-link:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.company-link:hover:after {
  transform: scaleX(1);
}

/* Search container and button styles in sidebar */
.sidebar-search-container {
    padding: 0 var(--padding-h);
    margin: 0;
    width: 100%;
    max-width: none; /* Remove max-width to allow full width */
}

[data-ghost-search] {
    width: 100%;
    padding: 0.75rem 1.25rem; /* More horizontal padding */
    border-radius: 4px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

[data-ghost-search]:hover,
[data-ghost-search]:focus {
    border-color: var(--ghost-accent-color);
    background: var(--color-background);
    outline: none;
}

[data-ghost-search]:before {
    content: "Search For...";
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Hide search from header */
.header-buttons [data-ghost-search] {
    display: none !important; /* Force hide with !important */
}

/* Sidebar search icon */
.sidebar-search-container [data-ghost-search] svg {
    opacity: 0.6;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 0.25rem; /* Add space between icon and text */
}

.sidebar-search-container [data-ghost-search]:hover svg {
    opacity: 0.8;
}

/* Style the search container and ensure proper positioning */
.sidebar-search-container {
    margin-bottom: 0.5rem;
    position: relative;
    width: 100%;
}

/* Adjust sidebar header layout */
.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: var(--padding-v) var(--padding-h);
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
    position: relative; /* For proper positioning of search */
}

/* Adjust sidebar layout */
.sidebar .logo {
    margin-bottom: 0.25rem;
    padding-bottom: 0;
    width: 100%; /* Ensure logo takes full width */
}

/* Ensure search box spans properly */
.sidebar-search-container [data-ghost-search] {
    min-width: 100%;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
    height: 42px; /* Fixed height for consistency */
}

/* Improve search box appearance */
.sidebar-search-container [data-ghost-search]:hover {
    border-color: var(--ghost-accent-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Move navigation secondary to bottom of header */
.sidebar-header .navigation-secondary {
    margin-top: auto;
    margin-left: 0;
}

/* [START] Home Page - Banner Styles */
.banner-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.banner-container:hover {
  transform: translateY(-5px);
}

.banner-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2));
  pointer-events: none;
}

@media (max-width: 768px) {
  .banner-container {
    border-radius: 12px;
    margin: 0 16px;
  }
}
/* [END] Home Page - Banner Styles */

/* [START] Landing Overview Styles */
.landing-overview {
  margin-top: 3rem;
  padding-top: 2rem;
}

.landing-overview h2 {
  margin-bottom: 2.5rem;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.landing-overview p {
  line-height: 1.7;
}

.landing-overview .grid p {
  color: var(--color-secondary);
  font-size: 1.1rem;
}

.landing-overview .grid h3 {
  color: var(--color-contrast);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.landing-overview .grid > div {
  padding: 0 1rem 2rem 1rem;
}

@media (max-width: 768px) {
  .landing-overview h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}
/* [END] Landing Overview Styles */

/* Countdown description styles */
.countdown-timer .countdown-description {
    font-size: 0.9em;
    margin: 0.5em 0 1em;
    color: var(--secondary-text-color);
    line-height: 1.5;
    padding: 0.5em 1.5em;
    text-align: left;
    background: var(--background-color);
    border-radius: 8px;
}

/* Sidebar right header spacing */
.sidebar-right-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-right-header .sidebar-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.sidebar-right-header .button-minimal {
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 6px;
}

/* Aumenta el tamaño del título solo en el header de la barra de posts */
.sidebar-posts .sidebar-header {
  margin-top: 10px;
}

/* Oculta el tag del post en el header pero lo deja en el DOM para JS */
.post-tag-hidden {
  display: none !important;
}

.sidebar-posts .sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Oculta el filtro manual de la barra de posts y del popup */
#sidebar-posts-filter-wrapper,
.popup-header-filter {
  display: none !important;
}
/* Oculta el tag de las cards y posts */
.card-tag {
  display: none !important;
}
