/* Base styles and variables */
:root {
    --primary-color: #2a4365;
    --secondary-color: #4a5568;
    --accent-color: #3182ce;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #2d3748;
    --text-muted: #718096;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 8px;
    --maxw: 800px;
}

/* [Previous global styles remain the same...] */

/* Enhanced Header Spacing */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-top: var(--spacing-sm);    /* Added top margin */
    margin-bottom: var(--spacing-sm); /* Increased bottom margin */
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-top: var(--spacing-lg);    /* Larger top margin for main title */
    margin-bottom: var(--spacing-lg); /* Larger bottom margin for main title */
}

h2 {
    font-size: 2rem;
    margin-top: var(--spacing-lg);    /* Consistent top margin */
    margin-bottom: var(--spacing-md); /* Comfortable bottom margin */
}

h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-md);    /* Slightly smaller top margin for subsections */
    margin-bottom: var(--spacing-sm); /* Smaller bottom margin for subsections */
}

/* Special case for headers that start a section (remove top margin) */
.card h2,
.secondary-section h2,
section > h2:first-child {
    margin-top: 0;
}

/* [Rest of the previous CSS remains exactly the same...] */

/* Global resets and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Layout and Container */
.container {
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-size: 1.125rem;
}

.hero h3,
.hero h4 {
    padding:0;
    margin:0;
    margin-top:16px;
    margin-bottom: 10px;
}

.hero {
    background-size: cover;
    height: 30vh;
    background-color: #eeeeee;
    padding-bottom: 260px;
} 
.container.form .hero {
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  background-color: red;
  background-image: none;
}

.hero .content {
    max-width: var(--maxw);
    display: block;
    margin: auto;
    padding-top: var(--spacing-md)
}


/* Card Grid Layout */
.promoted-cards {
    max-width: var(--maxw);
    margin: auto;
    margin-top: -100px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.promoted-cards .card {
    margin: 0;
}

/* Enhanced Card Styling */
.card {
    background-color: var(--card-background);
    min-width: 300px;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05),
                0 10px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card:hover:not(.disabled) {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08),
                0 12px 18px rgba(0, 0, 0, 0.05);
}

/* Disabled card state */
.card.disabled {
    opacity: 0.6;
    background-color: #f9fafb;
    cursor: not-allowed;
}

/* Card Content Styling */
.card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.card p {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.card.disabled h2,
.card.disabled p {
    color: #6b7280;
}

/* Call to Action Links */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-xs) 0;
    transition: color 0.2s ease-in-out;
    position: relative;
}

.cta-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.2s ease-in-out;
}

.cta-link:hover:not(.disabled) {
    color: var(--primary-color);
}

.cta-link:hover:not(.disabled)::after {
    width: 100%;
}

/* Disabled CTA styles */
.cta-link.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}

.cta-link.disabled::after {
    display: none;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .promoted-cards {
        margin-top: -50px;
    }
    
    .card {
        min-width: 100%;
    }
}

/* If using Tailwind, you can use these utility classes instead */
/*
.card.disabled {
    @apply opacity-60 bg-gray-50 cursor-not-allowed;
}

.card.disabled h2,
.card.disabled p {
    @apply text-gray-500;
}

.cta-link.disabled {
    @apply text-gray-400 cursor-not-allowed no-underline;
}
*/

/* Secondary Sections */
.secondary-section {
    max-width: var(--maxw);
    margin: auto;
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: var(--spacing-md);
}
.secondary-section.form {
  margin-top:-200px;
}

.secondary-section h2 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

/* Image Gallery Styling */
.image-duo {
    margin-top: var(--spacing-md);
}

.dual-images {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.dual-images img {
    flex:1;
    object-fit: cover;  /* This maintains aspect ratio while filling the container */
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.dual-images img:hover {
    transform: scale(1.02);
}








.logos {
    display: flex;
    justify-content: start;
  }
  
  .logo-holder {
    max-width: 200px;  /* Adjust this value based on your needs */
    width: 100%;
  }
  
  .logo-holder img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  





  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    text-decoration: underline;
}




.info-card {
    padding: 1rem;

    border-radius: 4px;
    display: flex;
    gap: 1rem;
  }
  
  .info-card .icon {
    font-size: 1.2rem;
  }
  
  .info-card.info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
  }
  
  .info-card.warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
  }
  
  .info-card.error {
    background: #ffebee;
    border-left: 4px solid #f44336;
  }
  
  .info-card.success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
  }


  .card {
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
  }
  
  .card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }
  
  .card-inner {
    padding-top: 0.5rem;
  }
  
  .card-sm .card-header {
    font-weight: bold;
  }
  .card-sm img {
    max-width: 120px;
    max-height: 100px;
  }
  .card-sm .card-inner {
    font-size: 0.8em;
  }
  /* .card-md {
    max-width: 600px;
    margin:auto;
  } */
  .card-md img {
    max-width: 150px;
    max-height: 140px;
  }
  .card-md .card-header {
    font-weight: bold;
    font-size: 1.3em;
  }

  .card-lg .card-header {
    font-weight: bold;
    font-size: 2em;
  }
  .card-lg img {
    max-width: 300px;
    max-height: 220px;
  }

  ul { 
    margin-left:30px; 
    margin-bottom: 20px;
  }

  .spacer {
    height: 2rem;
  }
  
  .divider {
    padding: 2rem 0;
  }
  
  .divider hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 0;
  }


  .block-test-class {
    background-color:#edefef;
    padding:20px;
    border-radius: 8px;
  }
  .block-test-class h2 {
    color:black;
    padding-top:0;
  }
  .block-test-class pre {
    padding:10px;
    border-radius: 10px;
  }

pre {
    padding:4px 8px;
    border-radius: 8px;
    overflow-x: auto;
}

.page-status {
  position: fixed;
  padding: 0.75rem;
  border-radius: 4px;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.draft {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.status-badge.future {
  background-color: #cce5ff;
  color: #004085;
  border: 1px solid #b8daff;
}

.status-badge.expired {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
      --spacing-md: 1.5rem;
      --spacing-lg: 3rem;
      --maxw: 600px;
  }
  .card {
    margin: 8px 0;
  }

  .info-card .icon {
    display:none;
  }
  .info-card h3 {
    font-size: 1.2em;
    margin:0;
    margin-bottom: 8px;
  }
  .info-card p {
    font-size: 0.8em;
  }
  .dual-images {
      grid-template-columns: 1fr;
      gap: var(--spacing-sm);
  }

  h1 {
      font-size: 2rem;
  }

  h2 {
      font-size: 1.75rem;
  }
  .logo-holder {
    max-width: 150px;
  }
  .nav {
    flex-direction: column;
    gap: 1rem;
}
.promoted-cards {
  padding-bottom: var(--spacing-md);
}

.secondary-section {
  padding-left:4px;
  padding-right:4px;
}

.nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}
.hero {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom:300px;
}
}
  
  @media (max-width: 480px) {
    .logo-holder {
      max-width: 120px;
    }
  }

  /* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .card,
  .dual-images img,
  .cta-link::after {
      transition: none;
  }
}

.language-switcher {
  display: inline-block;
  position: absolute;
  top:0px;
  right:0px;
  margin: 1rem;
}

.select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
}

.language-switcher select {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0.5rem 2rem 0.5rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
}

.flag-icon {
  position: absolute;
  left: 0.75rem;
  width: 1.2rem;
  height: 1.2rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Add a subtle hover effect */
.select-wrapper:hover {
  border-color: #bbb;
}

/* Add a custom dropdown arrow */
.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 0.75rem;
  color: #666;
  pointer-events: none;
}