/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* Animated Gradient Background */
  body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    background: linear-gradient(-45deg, #c5d1f1, #294D89, #4E67EB, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #294D89;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Loader Styles */
  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
  }
  
  .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #294D89;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Container Styling */
  .container {
    width: 100%;
    max-width: 1300px;
    border: 2px solid #294D89;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Header Container Styles */
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 36px;
    font-weight: bold;
    padding-bottom: 20px;
    animation: slideIn 1s ease-out;
    width: 100%;
  }
  
  .header .title {
    flex-grow: 1;
    text-align: center;
    color: #294D89;
  }
  
  .header img {
    width: 80px;
    height: 80px;
    animation: bounceIn 1s ease-out;
  }
  
  /* Timer Styles */
  .timer-container {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
  
  .timer-container svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
  }
  
  .timer-container circle {
    fill: none;
    stroke-width: 8;
    stroke: #e0e0e0;
  }
  
  .timer-container .progress {
    stroke: #4E67EB;
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    stroke-linecap: round;
    transform-origin: center;
    transition: stroke-dashoffset 1s linear, stroke 0.3s;
  }
  
  .timer-container .time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: #294D89;
  }
  
  /* Animations */
  @keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes bounceIn {
    0% { transform: translateY(-100%) scale(0.3); opacity: 0; }
    50% { transform: translateY(15%) scale(1.05); opacity: 1; }
    70% { transform: translateY(-10%) scale(0.9); }
    100% { transform: translateY(0) scale(1); }
  }
  
  /* Main Content Styling */
  main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }
  
  /* Program Grid Styles */
  .program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Updated to always have two columns */
    grid-gap: 20px;
    margin-top: 20px;
  }
  
  /* Program Item Styles */
  .program-item {
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background-color: #fafafa;
  }
  
  .program-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
    border-radius: 4px;
  }
  
  .program-item:hover img {
    transform: scale(1.05);
  }
  
  .program-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
  }
  
  .program-name {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #294D89;
  }
  
  /* Responsive Images */
  @media (max-width: 1200px) {
    .program-item img {
      max-height: 300px;
      object-fit: cover;
    }
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .header {
      flex-direction: column;
      text-align: center;
      padding-bottom: 10px;
    }
  
    .header img {
      width: 60px;
      height: 60px;
    }
  
    .timer-container {
      width: 60px;
      height: 60px;
    }
  
    .timer-container .time {
      font-size: 14px;
    }
  
    .title {
      text-align: center;
      margin: 10px 0;
    }
  
    .header {
      font-size: 28px;
    }
  
    /* Adjust grid to one column on smaller screens */
    .program-grid {
      grid-template-columns: 1fr; /* One column on screens less than 768px */
    }
  }
  
  /* Adjust font sizes for small screens */
  @media (max-width: 480px) {
    .program-name {
      font-size: 16px;
    }
  
    .timer-container {
      width: 50px;
      height: 50px;
    }
  
    .timer-container .time {
      font-size: 12px;
    }
  
    .header {
      font-size: 24px;
    }
  }
  