/* Reset and Base Styling */
body, html {
  height: 100%;
  margin: 0;
  font-family: 'Lora', 'Georgia', serif; 
  background-color: #111;
}

/* Background Image setup */
.bg-image {
  background-image: url('/images/Philippines-Spain-Flags-3D.jpg'); 
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Overlay with scrolling enabled for smaller screens */
.blur-overlay {
  height: 100%;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(15, 15, 15, 0.85);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto; 
}

/* Header fixed to sit naturally above text */
.top-nav {
  width: 100%;
  padding: 50px 20px 30px; 
  text-align: center;
  box-sizing: border-box;
}

/* LOGO FIX: Added width constraints and object-fit */
.brand-logo {
  max-height: 60px; 
  max-width: 100%; /* Prevents horizontal overflow on small screens */
  width: auto;
  height: auto;
  object-fit: contain; /* Ensures the logo scales down proportionately without squishing */
}

/* Content Block specifically styled for paragraphs */
.content-block {
  text-align: left; 
  color: #f4f4f4;
  max-width: 650px; 
  padding: 0 30px 60px 30px; 
}

.content-block h1 {
  font-size: 2.2rem; 
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.2;
  text-align: center; 
}

.content-block p {
  font-size: 1.1rem; 
  line-height: 1.8; 
  margin-bottom: 20px; 
  color: #cccccc;
}

/* Styling the link so it stands out */
.content-block a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.content-block a:hover {
  color: #aaaaaa;
}

/* Responsive adjustments for standard tablets and larger phones */
@media (max-width: 768px) {
  .top-nav {
    padding: 30px 20px 20px;
  }
  .brand-logo {
    max-height: 45px; /* Scales the logo down slightly */
  }
  .content-block h1 {
    font-size: 1.8rem;
  }
  .content-block p {
    font-size: 1rem;
  }
}

/* NEW: Specific adjustments for smaller phones (smaller than Pro Max) */
@media (max-width: 430px) {
  .brand-logo {
    max-height: 35px; /* Scales the logo down even further for narrow screens */
  }
  .content-block h1 {
    font-size: 1.6rem; /* Adjusts the headline so it doesn't take up the whole screen */
  }
  .content-block {
    padding: 0 20px 60px 20px; /* Slightly tighter padding on small screens */
  }
}
