:root {
  --venezuela-yellow: #FFCC00;
  --venezuela-blue: #00247D;
  --venezuela-red: #CF142B;
  
  --orange: #fd7e14;
  --orange-subtle: #fff4e6;
}

.container-custom {
    width: 100%;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
    max-width: 1400px;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

/* Typography & Links */
a {
  color: var(--venezuela-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--venezuela-red);
}

/* Custom Primary Button (Yellow with Blue Text for Contrast) */
.btn-primary {
  background-color: var(--venezuela-yellow);
  color: var(--venezuela-blue);
  border: none;
  font-weight: 600;
  border-radius: 8px; /* Rounded corners */
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #e6b800; /* Darker yellow */
  color: var(--venezuela-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 36, 125, 0.2);
}

/* Custom Secondary Button (Blue with White Text) */
.btn-secondary, .btn-info {
  background-color: var(--venezuela-blue);
  color: white;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-secondary:hover, .btn-info:hover {
  background-color: #001854;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 36, 125, 0.3);
}

/* Custom Danger Button (Red) */
.btn-danger {
  background-color: var(--venezuela-red);
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #a61022;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(207, 20, 43, 0.3);
}

/* Cards */
.card {
  border: 1px solid rgba(255, 204, 0, 0.1); /* Subtle gold border */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 36, 125, 0.12);
  border-color: var(--venezuela-yellow);
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  padding: 15px 0;
}

.navbar-brand img {
  max-height: 55px !important;
  transition: transform 0.3s ease;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  margin: 0 0.5rem;
  position: relative;
}

.nav-link:hover {
  color: var(--venezuela-blue) !important;
}

/* Elegant Underline Hover Effect for Nav */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--venezuela-yellow);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Secondary Nav / Top Bar */
.top-bar {
  background-color: var(--venezuela-blue);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}
.top-bar a {
  color: #f8f9fa;
}
.top-bar a:hover {
  color: var(--venezuela-yellow);
}

/* Header Hero Area — Split Fade */
.hero-header {
  background: #000c24; /* Even darker navy for premium look */
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 720px; /* High height as per mockup */
  display: flex;
  align-items: center;
}

/* The photo background (right side) */
.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: top center; /* Ensure head is visible */
  z-index: 0;
}

/* Gradient that fades the image into the blue */
.hero-fade-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    to right,
    #001854 0%,
    #001854 15%,
    rgba(0, 24, 84, 0.95) 25%,
    rgba(0, 24, 84, 0.7) 45%,
    rgba(0, 24, 84, 0.3) 65%,
    transparent 85%
  );
}

/* Decorative subtle accent line */
.hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #FFCC00, #CF142B, #00247D);
  z-index: 3;
}

.hero-content-left {
  position: relative;
  z-index: 2;
}

/* Mobile: image as full background with stronger overlay */
@media (max-width: 991.98px) {
  .hero-header {
    min-height: 420px;
  }
  .hero-image {
    width: 100%;
  }
  .hero-fade-overlay {
    width: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 24, 84, 0.85) 0%,
      rgba(0, 24, 84, 0.7) 60%,
      rgba(0, 24, 84, 0.9) 100%
    );
  }
  .hero-content-left {
    text-align: center;
  }
  .hero-content-left p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content-left .d-flex {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
}

/* Sidebar Boxes */
.sidebar-box {
    transition: transform 0.3s ease;
}
.sidebar-box:hover {
    transform: translateY(-5px);
}
.border-red {
    border-top: 5px solid var(--venezuela-red) !important;
}
.border-orange {
    border-top: 5px solid var(--orange) !important;
}
.text-orange { color: var(--orange) !important; }
.bg-orange { background-color: var(--orange) !important; }
.bg-orange-subtle { background-color: var(--orange-subtle) !important; }
.fw-black { font-weight: 900; }
.extra-small { font-size: 0.7rem; }

.sidebar-box .border-bottom {
    border-bottom: 2px solid #f8f9fa !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    
    .navbar-collapse .btn-primary {
        width: fit-content !important;
        margin: 10px auto 0 auto !important;
        display: flex !important;
        justify-content: center;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .hero-title { font-size: 2rem; }
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
@media (max-width: 576px) {
    .news-filters .btn {
        flex: 1 1 45%;
        font-size: 0.8rem;
    }
}

.hero-title {
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Custom utilities */
.text-yellow { color: var(--venezuela-yellow); }
.text-blue { color: var(--venezuela-blue); }
.text-red { color: var(--venezuela-red); }

.bg-blue { background-color: var(--venezuela-blue); }
.bg-yellow { background-color: var(--venezuela-yellow); }

/* Form Elements */
.form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: var(--venezuela-blue);
  box-shadow: 0 0 0 0.25rem rgba(0, 36, 125, 0.25);
}

/* Live Radio Floating Player (Optional class if floating is desired) */
.radio-player-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-left: 5px solid var(--venezuela-yellow);
  z-index: 1000;
  width: 300px;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* --- Tablet (768px - 991px) --- */
@media (max-width: 991.98px) {
  /* Navbar fixes */
  .navbar .navbar-collapse {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .navbar .navbar-collapse .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    border-radius: 8px;
  }
  .navbar .navbar-collapse .nav-link:hover {
    background-color: #f8f9fa;
  }
  .navbar .navbar-collapse .nav-link::after {
    display: none;
  }
  .navbar .btn-primary {
    width: fit-content !important;
    text-align: center;
    margin: 0.5rem auto 0 auto !important;
    display: flex !important;
    justify-content: center;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Contact page heading */
  .display-3 {
    font-size: 2.2rem !important;
  }
}

/* --- Mobile (max-width: 767px) --- */
@media (max-width: 767.98px) {
  /* Global heading sizes */
  .display-3 {
    font-size: 1.8rem !important;
  }
  .display-4 {
    font-size: 1.6rem !important;
  }
  .display-5 {
    font-size: 1.4rem !important;
  }
  .display-6 {
    font-size: 1.2rem !important;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.2rem; }

  /* Lead text */
  .lead {
    font-size: 1rem !important;
  }

  /* Container spacing */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .mb-5 {
    margin-bottom: 2rem !important;
  }

  /* Hero section */
  .hero-header {
    min-height: 360px !important;
  }
  .hero-title {
    font-size: 2rem !important;
  }
  .hero-content-left .d-flex.flex-wrap {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .hero-content-left .d-flex.flex-wrap .btn {
    width: 100%;
    text-align: center;
  }

  /* Featured news card overlay */
  .card-img-overlay {
    padding: 1.5rem !important;
  }
  .card-img-overlay .display-5 {
    font-size: 1.3rem !important;
  }
  .card-img-overlay .fs-5 {
    font-size: 0.9rem !important;
  }
  .card-img-overlay .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .card-img {
    height: 350px !important;
  }

  /* News cards grid */
  .news-card .card-body {
    padding: 1rem !important;
  }

  /* Category filter buttons - horizontal scroll */
  .d-flex.flex-wrap.gap-2.justify-content-center {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .d-flex.flex-wrap.gap-2.justify-content-center::-webkit-scrollbar {
    display: none;
  }
  .d-flex.flex-wrap.gap-2.justify-content-center .btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Radio Section */
  .radio-deck {
    padding: 1.5rem !important;
  }
  .radio-deck .display-3 {
    font-size: 2.5rem !important;
  }
  #visualizer {
    height: 60px !important;
  }

  /* Article page */
  .article-body {
    font-size: 1rem !important;
  }

  /* Gallery grid */
  .hover-zoom img {
    height: 160px !important;
  }

  /* Footer */
  footer .row .col-md-4 {
    text-align: center;
  }
  footer .mt-4 .fs-5 {
    font-size: 1.3rem !important;
  }

  /* Registration form */
  .border-end-md {
    border-right: none !important;
    padding-right: 0 !important;
  }

  /* Contact page header */
  .bg-blue.position-relative.overflow-hidden.pt-5 {
    padding-bottom: 5rem !important;
  }

  /* Social cards */
  .social-card {
    padding: 1rem !important;
  }
  .social-card .display-4 {
    font-size: 2rem !important;
  }

  /* Modal dialogs */
  .modal-dialog {
    margin: 0.5rem;
  }
  .modal-body {
    padding: 1.5rem !important;
  }
}

/* --- Small phones (max-width: 400px) --- */
@media (max-width: 400px) {
  .display-3 {
    font-size: 1.5rem !important;
  }
  .display-4 {
    font-size: 1.35rem !important;
  }
  .hero-title {
    font-size: 1.6rem !important;
  }
  .hero-header {
    min-height: 320px !important;
  }
  .btn-lg {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
  .card-img {
    height: 280px !important;
  }
  .card-img-overlay .display-5 {
    font-size: 1.1rem !important;
  }
}

/* --- Utility: object-fit (used frequently) --- */
.object-fit-cover {
  object-fit: cover;
}

/* --- Improve touch targets globally --- */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  .nav-link {
    min-height: 44px;
    display: flex !important;
    align-items: center;
  }
  .btn-sm {
    min-height: 36px;
    min-width: 36px;
  }
}
