/* Global */
html {
    scroll-behavior: smooth;
  }
  body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: url('./assets/goldbg.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: #f4f4f4;
  }
  
  /* Header */
  header {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    color: #fff;
  }
  header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }
  header * {
    position: relative;
    z-index: 2;
  }
  header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 15px;
  }
  header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }

  .sticky-countdown {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0D0D0D;
    padding: 10px 0;
    border-bottom: 2px solid #FFD700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 2s ease-in;
  }
    .sticky-countdown h2 {
        margin: 0;
        font-size: 1.5rem;
        color: #FFD700;
        text-align: center;
    }   
    .sticky-countdown {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #0D0D0D;
        border-bottom: 2px solid #FFD700;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        display: none; /* Optional: use JS to toggle this */
      }
      
      .countdown-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        flex-wrap: wrap;
        gap: 15px;
      }
      
      .sticky-btn {
        animation: pulse 1.5s infinite;
        background-color: #FFD700;
        color: #000;
        padding: 10px 20px;
        border-radius: 6px;
        font-weight: bold;
        text-decoration: none;
        font-size: 1rem;
        transition: background 0.3s;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
      }
      
      .sticky-btn:hover {
        animation: none;
        background-color: #e6c200;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
      }    
  
  /* Button */
  .btn {
    background-color: #FFD700;
    color: #0D0D0D;
    padding: 12px 28px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
  }
  .btn:hover {
    background-color: #e6c200;
  }
  
  /* Section */
  section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
  }
  .details, .learn, .why-attend, .bonus, .closing-line, .register {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  /* Headings */
  h2 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 25px;
  }
  p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f4f4f4;
    text-align: justify;
  }
  header p, .details p, .why-attend p, .bonus p, footer p {
    text-align: center;
  }
  .colon {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  /* Learn Section */
  .learn ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
    margin-top: 30px;
  }
  .learn ul li {
    background: #1A1A1A;
    padding: 20px;
    border-radius: 10px;
    color: #FFD700;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
  }
  .learn ul li:hover {
    transform: translateY(-6px);
  }
  
  /* Register Section */
  .register {
    max-width: 550px;
    margin-inline: auto;
    text-align: center;
  }
  .register form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }
  label {
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 5px;
  }
  input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    background-color: #fff;
    color: #000;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s;
  }
  input:focus {
    outline: none;
    box-shadow: 0 0 5px #FFD700;
  }
  #r-btn{
    width: 50%;
    display: block;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    margin: 0 auto;
  }
  
  /* Countdown */
  #countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: bold;
    margin-top: 5px;
  }
  .count-item {
     background: #000; 
    padding: 10px 10px;     
    border-radius: 10px;
    text-align: center;
  }
  span {
    display: block;
    font-size: 0.85rem;
    color: #fff;
    margin-top: 8px;
  }
  
  /* Reminder Button */
  .reminder-btn {
    text-align: center;
    margin-top: 20px;
  }
  .reminder-btn a {
    background-color: #FFD700;
    color: #0D0D0D;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  .reminder-btn a:hover {
    background-color: #e6c200;
  }
  
  /* Footer */
  footer {
    background: #000;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #FFD700;
  }
  footer a {
    color: #FFD700;
    text-decoration: none;
    margin: 0 10px;
    transition: .3 ease-in-out;
  }
  footer a:hover {
    color: blue;
    text-decoration: underline;
  }
  
  /* Responsive */
  @media (max-width: 1080px) {
    header {
      padding: 60px 20px;
    }
    header h1 {
      font-size: 2.5rem;
    }
    h2 {
      font-size: 2.2rem;
    } 
    section {
      padding: 50px 20px;
    }
    .btn, .sticky-btn, .reminder-btn a {
      font-size: 0.95rem;
      padding: 12px 22px;
    }
    .count-item {
      min-width: 90px;
      padding: 12px 16px;
      font-size: 1.2rem;
    }
    .register {
      max-width: 600px;
      padding: 30px;
    } 
    .form-group {
      max-width: 100%;
      width: 90%;
    }
    input {
      font-size: 1rem;
      padding: 10px;
    }
    .learn ul {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .learn ul li {
      font-size: 1rem;
      padding: 18px;
    }
    .sticky-countdown {
      padding: 8px 15px;
    }  
    .countdown-bar {
      gap: 12px;
    }
  }
  

@media (max-width: 768px) {
    body{
        background: url('./assets/goldbgp.jpeg') no-repeat center center fixed;
        background-size: cover;
    }
    header h1 {
      font-size: 2.2rem;
    }
    h2 {
      font-size: 2rem;
    }
    .btn, .reminder-btn a {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    #countdown {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .count-item {
        padding: 1px;
        min-width: 50px;
      }
      .sticky-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
        animation: pulse 1.5s infinite;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
        transition: background 0.3s, padding 0.3s;
        border-radius: 4px;
        margin: 0 auto;
        display: block;
      }
    .countdown-bar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .countdown-bar .count-item {
      flex: 1;
      min-width: 80px;
    }    
    .countdown-bar .count-item span {
      font-size: 0.8rem;
    }
    .learn ul {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }    
    .learn ul li {
      padding: 15px;
      font-size: 0.9rem;
    }
    .learn ul li:hover {
      transform: translateY(-4px);
    }
    .sticky-countdown {
        padding: 5px 0;
        font-size: 0.9rem;
        box-shadow: 0 1px 4px rgba(0,0,0,0.2);
        transition: all 0.5s ease-in;
    }
    .sticky-countdown h2 {
        font-size: 1.2rem;
        margin: 0;
    } 
    .sticky-btn:hover {
        padding: 8px 16px;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
        background-color: #e6c200;
    }
}

@media (max-width: 425px) {
    header h1 {
      font-size: 1.8rem;
    }
    h2 {
      font-size: 1.6rem;
    }
    .learn ul li {
        font-size: 0.85rem;
        padding: 12px;
    }
    .sticky-btn {
        font-size: 0.6rem;
        padding: 6px 10px;
        animation: pulse 1.5s infinite;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
        transition: background 0.3s, padding 0.3s;
        border-radius: 4px;
        margin: 0 auto;
        display: block;
      }
      .count-item span {
        font-size: 1.1rem;
        font-weight: bold;
      }
      .count-item small {
        font-size: 0.7rem;
        color: #fff;
      }
    .countdown-bar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    .countdown-bar .count-item {
      flex: 1;
      min-width: 50px;
    }    
    .countdown-bar .count-item span {
      font-size: 0.5rem;
      margin-top: 5px;
    }
    footer p{
        font-size: 0.8rem;
    }
  }

  @media (max-width: 375px) {
    header h1 {
      font-size: 1.6rem;
    }
    h2 {
      font-size: 1.4rem;
    }
    .reminder-btn a {
      font-size: 0.75rem;
      padding: 6px 10px;
    }
    .btn{
      font-size: 0.8rem;
      padding: 8px 12px;
    }
    .sticky-btn {
        font-size: 0.5rem;
        padding: 4px 8px;
        flex-shrink: 0;
      }
    .count-item {
      min-width: 50px;
      padding: 4px 6px;
      font-size: 1rem;
    }
    .countdown-bar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .countdown-bar .count-item {
      flex: 1;
      min-width: 30px;
    }    
    .countdown-bar .count-item span {
      font-size: 1px;
    }
    .count-item span {
        font-size: 1rem;
    }
    .count-item small {
        font-size: 0.65rem;
    }
    footer p{
        font-size: 0.6rem;
    }
  }

  @media (max-width: 320px) {
    header h1 {
      font-size: 1.4rem;
    }
    h2 {
      font-size: 1.2rem;
    }
    .btn, .reminder-btn a {
      font-size: 0.7rem;
      padding: 8px 12px;
    }
    .sticky-btn {
        font-size: 0.4rem;
        padding: 4px 8px;
        flex-shrink: 0;
      }
    .sticky-btn:hover {
        padding: 4px 8px;
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
        background-color: #e6c200;
    }
    .count-item {
        min-width: 50px;
        padding: 4px 6px;
        font-size: 1rem;
      }
      .countdown-bar {
          flex-direction: row;
          align-items: center;
          justify-content: center;
          gap: 8px;
      }
      .countdown-bar .count-item {
        flex: 1;
        min-width: 15px;
      }    
      .countdown-bar .count-item span {
        font-size: 1px;
      }
    .learn ul li {
      font-size: 0.8rem;
      padding: 10px;
    }
    footer p{
        font-size: 0.5rem;
    }
  }
  
  /* Pulse Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}