:root {
    --primary: #2b2d73;
    --ternary:#231E5D;
    --primary-600: #3b3e8c;
    --primary-700: #1f225e;
    --accent: #c12d6b;
    --orchid: #da70d6;
    --bg: #ffffff;
    --text: #1f1f1f;
    --muted: #6b6b6b;
    --alt: #f6f7fb;
    --card: #ffffff;
    --primarya:
    --shadow: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 14px;
    --header-total: 0px;
  }
  
  /* Base */
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
  body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-align: justify;
    text-justify: inter-word;
  }
  img { max-width: 100%; display: block; height: auto; }
  a { color: var(--primary-700); text-decoration: none; }
  a:hover { color: var(--primary); }
  a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--accent), white 20%);
    outline-offset: 2px;
    border-radius: 10px;
  }
  .skip-link {
    position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  }
  .skip-link:focus {
    left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem .75rem; background: var(--primary); color: #fff; border-radius: 8px;
  }
  
  /* Header */
  .site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid #eee;
  }
  .site-header::after {
    content: ""; display: block; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
  }
.header-inner {
 /*   display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: .75rem 1rem; */

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: .75rem 4rem;



  }
  .logo { display: flex; align-items: center; }
  .logo.left { justify-content: flex-start; }
  .logo.center-main { justify-content: center; }
  .logo-group.right { 
    justify-content: flex-end; 
    display: flex;
    align-items: center;
    gap: 5rem;
  }
  .logo-group .logo {
    display: flex;
    align-items: center;
  }
  .logo img { max-height: 64px; }
  
  /* Specific sizing for different logos to match screenshot */
  .logo.left img { max-height: 60px; }
  .logo.center-main img { max-height: 70px; }
  .logo-group .logo img { max-height: 50px; }
  
  /* Increase size for AICTE and VTU logos specifically */
  .logo-group .logo img[src="aicte.png"] { max-height: 65px; }
  .logo-group .logo img[src="vtu.png"] { max-height: 65px; }
  
  /* Nav */
  .site-nav {
    position: sticky; top: 0; z-index: 1001;
    background: rgba(255,255,255,0.75);
    -webkit-backdrop-filter: saturate(150%) blur(6px);
    backdrop-filter: saturate(150%) blur(6px);
    border-top: 1px solid #f0f0f4;
    border-bottom: 2px solid var(--primary);
  }
  /* Align nav content with page container */
  .site-nav .nav-menu {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .nav-toggle {
    display: none;
    background: transparent; border: 0; padding: .75rem 1rem; cursor: pointer;
  }
  .nav-toggle .bar {
    display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--primary); border-radius: 2px; transition: transform .2s ease;
  }
  .nav-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: .5rem; align-items: center; justify-content: center;
  }
  .nav-menu a {
    display: inline-block;
    /* adding: .85rem 1rem; */
    padding: 10px 5px 10px 5px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.2;
  }
  .nav-menu a:hover,
  .nav-menu a:focus-visible {
    background: var(--alt);
    color: var(--primary-700);
  }
  .nav-menu a.active {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
  }
  .nav-menu a.active:hover,
  .nav-menu a.active:focus-visible {
    filter: brightness(1.08);
  }
  
  /* Sections */
  .section { 
    padding: 2rem 1rem; 
    scroll-margin-top: calc(var(--header-total) + 8px); 
    position: relative;
  }
  .section.alt { 
    background: var(--alt); 
    position: relative;
  }
  .section.alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
  }
  .container {
    margin: 0 auto; 
    max-width: 1200px;
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  h1, h2, h3 { line-height: 1.3; margin: 0 0 1.25rem; }
  h1 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); font-weight: 800; color: var(--primary-700); letter-spacing: -0.02em; }
  h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
  h3 { font-size: clamp(1.15rem, 2.1vw, 1.3rem); font-weight: 700; color: var(--primary-700); letter-spacing: -0.005em; }
  
  /* Section headings with ternary color */
  .section h2 { color: var(--ternary); }
  .section h3 { color: var(--ternary); }
  
  .subtitle { color: var(--primary-700); font-weight: 600; font-size: 1.1rem; }
  .lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; line-height: 1.6; text-align: justify; text-justify: inter-word; }
  
  /* Text Justification for All Content */
  p, .about-content p, .hackathon-info-content p, .advisory-intro p, 
  .campus-description, .hackathon-info, .flow-caption p, .note-box p,
  .highlights-list li, .payment-notes li, .info-box p, .rules-content li,
  .ps-description-content p, .success-card p, .error-card p,
  .transaction-details, .detail-row, .summary-row, .payment-row {
    text-align: justify;
    text-justify: inter-word;
  }
  
  /* Specific content sections that need justification */
  .about-content, .hackathon-info-content, .advisory-intro,
  .campus-content, .note-box, .info-box, .rules-content,
  .ps-modal-body, .form-container, .payment-form-container {
    text-align: justify;
    text-justify: inter-word;
  }
  
  /* List items justification */
  .highlights-list li, .prize-list li, .ta-list li, .payment-notes li,
  .rewards li, .contact-list li, .facilities-list li, .info-box ul li {
    text-align: justify;
    text-justify: inter-word;
  }
  
  /* Buttons */
  .btn {
    display: inline-block; padding: .9rem 1.5rem; border-radius: 12px;
    font-weight: 700; letter-spacing: .3px; transition: all .2s ease;
    will-change: transform;
    font-size: 1rem;
    text-align: center;
    min-width: 140px;
  }
  .btn:active { transform: translateY(1px); }
  .btn.primary {
    background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; box-shadow: var(--shadow);
  }
  
  .btn.primary:hover { 
    filter: brightness(1.08); 
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(43, 45, 115, 0.25);
  }
  .btn.outline {
    border: 2px solid var(--primary); color: var(--primary-700); background: transparent;
  }
  .btn.outline:hover { 
    background: var(--primary); 
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 45, 115, 0.2);
  }
  
  /* Grid & Cards */
  .grid.two {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start;
  }
  .cards {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem;
  }
  .card {
    background: var(--card); border: 1px solid #e9ebf8; border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); transition: all .3s ease;
    position: relative;
    overflow: hidden;
  }
  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform .3s ease;
  }
  .card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
  .card:hover::before {
    transform: scaleX(1);
  }
  .card p { margin: 0; color: #4a4a4a; line-height: 1.6; text-align: justify; text-justify: inter-word; }
  
  /* Lists */
  .rewards { 
    padding-left: 1.25rem; 
    list-style: none;
  }
  .rewards li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
  }
  .rewards li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
  }
  .contact-list { 
    padding-left: 1.25rem; 
    list-style: none;
  }
  .contact-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
  }
  .contact-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
  }
  .facilities-list {
    list-style: none;
    padding-left: 0;
  }
  .facilities-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.1rem;
  }
  .facilities-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
  }

  /* Campus Images Grid */
  .campus-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
  }

  .campus-image-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .campus-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  }

  .campus-image-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  .image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  }

  .campus-badge {
    background: transparent;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  }

  @media (max-width: 768px) {
    .campus-images-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .campus-badge {
      font-size: 0.9rem;
      padding: 0.6rem 1.2rem;
    }
  }

  @media (max-width: 480px) {
    .campus-badge {
      font-size: 0.85rem;
      padding: 0.5rem 1rem;
    }
  }
  
  /* Home hero */
  .home {
    background:
      radial-gradient(1000px 400px at 80% -10%, rgba(43,45,115,0.12), transparent 50%),
      radial-gradient(900px 380px at 10% 0%, rgba(193,45,107,0.12), transparent 60%),
      linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
    text-align: left;
  }
  .home .container { padding-top: 1rem; }
  
  .hero {
    display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start;
  }

  @media (max-width: 768px) {
    .hero {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }
    .clock-section {
      order: -1;
      margin-bottom: 2rem;
    }
  }

  .clock-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Professional Event Badge */
  .event-badge {
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(43, 45, 115, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .event-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(43, 45, 115, 0.4);
  }

  .event-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
  }

  @keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30%, -30%); }
  }

  @media (max-width: 768px) {
    .event-badge {
      width: 170px;
      height: 170px;
    }
  }

  @media (max-width: 480px) {
    .event-badge {
      width: 150px;
      height: 150px;
    }
  }

  .badge-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  @media (max-width: 768px) {
    .badge-icon {
      width: 40px;
      height: 40px;
    }
  }

  @media (max-width: 480px) {
    .badge-icon {
      width: 35px;
      height: 35px;
    }
  }

  .badge-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  }

  .badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
  }

  .badge-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    letter-spacing: -2px;
  }

  @media (max-width: 768px) {
    .badge-number {
      font-size: 3rem;
    }
  }

  @media (max-width: 480px) {
    .badge-number {
      font-size: 2.5rem;
    }
  }

  .badge-text {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  @media (max-width: 768px) {
    .badge-text {
      font-size: 0.9rem;
      letter-spacing: 1.5px;
    }
  }

  @media (max-width: 480px) {
    .badge-text {
      font-size: 0.8rem;
      letter-spacing: 1px;
    }
  }

  .badge-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    z-index: 1;
  }

  @media (max-width: 768px) {
    .badge-subtitle {
      font-size: 0.7rem;
    }
  }

  @media (max-width: 480px) {
    .badge-subtitle {
      font-size: 0.65rem;
      letter-spacing: 0.5px;
    }
  }
  
  .hero-content { 
    min-width: 0;
  }

  @media (max-width: 768px) {
    .hero-content {
      text-align: center;
    }
  }
  .hero-badges { 
    display: flex; 
    gap: .5rem; 
    flex-wrap: wrap; 
    margin-bottom: .5rem;
  }

  @media (max-width: 768px) {
    .hero-badges {
      justify-content: center;
    }
  }
  .chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .7rem; border-radius: 999px; font-weight: 600; font-size: .85rem;
    background: #eef0ff; color: var(--primary-700); border: 1px solid #e1e5ff;
  }
  .chip.accent { background: #ffe9f2; color: var(--accent); border-color: #E1E5FF; }
  .chip.prize-pool { 
    background: linear-gradient(135deg, #fbbf24, #f59e0b); 
    color: #ffffff; 
    border-color: #f59e0b; 
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: pulse-glow 2s ease-in-out infinite alternate;
  }

  @keyframes pulse-glow {
    0% {
      box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
      transform: scale(1);
    }
    100% {
      box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
      transform: scale(1.02);
    }
  }
  .home .btn { margin-top: 1rem; }
  .cta { 
    display: flex; 
    gap: .75rem; 
    flex-wrap: wrap;
  }

  @media (max-width: 768px) {
    .cta {
      justify-content: center;
    }
  }

  @media (max-width: 480px) {
    .cta {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
    .cta .btn {
      width: 100%;
      max-width: 280px;
    }
  }
  
  /* Countdown Timer Styles */
  .countdown-container {
    margin: 1rem 0 0 0;
    text-align: center;
  }

  @media (max-width: 768px) {
    .countdown-container {
      margin: 1.5rem 0 0 0;
    }
  }

  .countdown-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }

  .countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  @media (max-width: 480px) {
    .countdown-timer {
      gap: 0.3rem;
      flex-wrap: nowrap;
    }
  }

  .time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.5rem 0.4rem;
    border-radius: 8px;
    min-width: 50px;
    box-shadow: 0 3px 10px rgba(43, 45, 115, 0.25);
    transition: transform 0.3s ease;
  }

  @media (max-width: 480px) {
    .time-unit {
      min-width: 45px;
      padding: 0.4rem 0.3rem;
    }
  }

  .time-unit:hover {
    transform: translateY(-2px);
  }

  .time-number {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.15rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }

  @media (max-width: 480px) {
    .time-number {
      font-size: 1rem;
    }
  }

  .time-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.9;
  }

  .event-meta {
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: .75rem; 
    margin: 1rem 0;
  }

  @media (max-width: 768px) {
    .event-meta {
      grid-template-columns: 1fr;
      gap: 1rem;
      margin: 1.5rem 0;
    }
  }
  .meta-item {
    background: #fff; 
    border: 1px dashed #d7daf7; 
    padding: .75rem 1rem; 
    border-radius: 12px;
  }

  @media (max-width: 480px) {
    .meta-item {
      padding: 1rem;
      text-align: center;
    }
  }
  .meta-item .label { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
  .meta-item .value { font-weight: 700; color: var(--primary-700); }
  
  
  /* QR register */
  .qr-wrap { margin-top: 1.25rem; display: grid; place-items: start; }
  .qr-card { background: transparent; border: none; border-radius: 12px; padding: .75rem; width: max-content; box-shadow: none; display: grid; justify-items: center; }
  .qr-card img { width: 180px; height: 180px; object-fit: contain; }
  .qr-note { margin: .35rem 0 0; font-weight: 600; color: var(--primary-700); text-align: center; }

  /* Register row: button + QR side by side */
  .register-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .register-row .qr-wrap { margin-top: 0; }
  .qr-wrap.inline { display: inline-grid; vertical-align: middle; margin-left: 1rem; }
  #eligibility .btn.outline + .qr-wrap.inline { margin-left: 0; }
  /* Keep register button in normal flow to avoid overlap */
  #eligibility .btn.outline { position: static; top: 0; vertical-align: middle; margin-top: .5rem; }
  @media (max-width: 640px) {
    .qr-card img { width: 140px; height: 140px; }
    #eligibility .btn.outline { width: 100%; }
  }
  
  /* Footer + heads row */
  .site-footer {
    background: var(--bg); border-top: 1px solid #eee; padding: 1rem;
    text-align: center; color: var(--muted);
  }
  
  .footer-links {
    margin-top: 0.5rem;
    font-size: 0.9rem;
  }
  
  .footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
  }
  
  .footer-note {
    color: var(--muted);
    font-size: 0.8rem;
    margin-left: 0.5rem;
  }
  
  .heads { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
    margin-top: 2rem; 
    color: var(--primary-700); 
    font-weight: 600; 
  }
  .head { 
    background: #fff; 
    border: 1px solid #e9ebf8; 
    padding: 1rem; 
    border-radius: 12px; 
    text-align: center; 
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .head:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  /* Rules content styling */
  .rules-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #e9ebf8;
  }
  
  .rules-content h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--alt);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .rules-content ul {
    list-style: none;
    padding-left: 0;
  }
  
  .rules-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
  }
  
  .rules-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  /* Responsive */
  @media (max-width: 960px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
    .nav-menu { flex-wrap: wrap; }
    .nav-menu a { padding: .7rem .7rem; }
  }
  @media (max-width: 820px) {
    .event-meta { grid-template-columns: 1fr; }
  }
  @media (max-width: 820px) {
    .gallery-item { width: 320px; height: 220px; }
  }
  @media (max-width: 720px) {
    .header-inner { grid-template-columns: 1fr; row-gap: .5rem; }
    .logo.left, .logo.center, .logo.right { justify-content: center; }
    /* Let the header (logos) scroll away on small screens */
    .site-header { position: static; }
    .grid.two { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .logo img { max-height: 56px; }
    .heads { grid-template-columns: 1fr; }
  }
  /* Tablet nav wrapping */
  @media (max-width: 960px) {
    .nav-menu { flex-wrap: wrap; }
  }
  @media (max-width: 860px) {
    .nav-toggle { display: inline-block; position: absolute; right: .5rem; top: .25rem; }
    .site-nav { position: sticky; }
    .nav-menu {
      display: none; flex-direction: column; align-items: stretch; justify-content: flex-start;
      padding: .5rem; border-top: 1px solid #f2f2fb;
      max-height: calc(100dvh - 64px);
      overflow-y: auto; -webkit-overflow-scrolling: touch;
      gap: .25rem;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { /* padding: .85rem 1rem; */ padding: 10px 5px 10px 5px; border-radius: 10px; text-align: left; }
    .cards { grid-template-columns: 1fr; }
    .section { padding: 3rem 1rem; }
  }

  /* Fix QR/button layout on small screens */
  @media (max-width: 820px) {
    #eligibility .btn.outline { top: 0; }
    .qr-wrap.inline { margin-left: 0; display: block; }
  }

  /* Blinking animation for warning note */
  .blinking {
    animation: blink 1.5s infinite;
  }

  @keyframes blink {
    0%, 50% { 
      color: #dc2626; 
      background-color: rgba(220, 38, 38, 0.1);
    }
    25%, 75% { 
      color: #2563eb; 
      background-color: rgba(37, 99, 235, 0.1);
    }
  }

  .warning-note {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    font-weight: 600;
    border: 2px solid #fbbf24;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
  }
  
  .warning-note::before {
    content: '⚠️';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
  }
  
  .warning-note p {
    margin: 0;
    font-size: 1.1rem;
    color: #92400e;
  }

  /* Note Box Styles */
  .note-box {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 5rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-left: 5px solid #0284c7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
  }

  .note-label {
    position: absolute;
    top: 1.5rem;
    left: 0.75rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0284c7;
    background: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
  }

  .note-box p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #0c4a6e;
  }

  @media (max-width: 768px) {
    .note-box {
      padding: 3.5rem 1.25rem 1.25rem 1.25rem;
    }

    .note-label {
      top: 1rem;
      left: 0.75rem;
    }

    .note-box p {
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .note-box {
      padding: 3.5rem 1rem 1rem 1rem;
    }

    .note-label {
      top: 0.75rem;
      left: 0.5rem;
      font-size: 0.75rem;
      padding: 0.3rem 0.6rem;
    }

    .note-box p {
      font-size: 0.95rem;
    }
  }

  /* Elite Advisory Committee Styles */
  .advisory-intro {
    margin-bottom: 3rem;
    text-align: center;
  }

  .advisory-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    max-width: 900px;
    margin: 0 auto;
  }

  .advisory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }

  .advisory-member {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }

  .advisory-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--primary);
  }

  .member-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--alt);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }

  .advisory-member:hover .member-photo {
    border-color: var(--primary);
    transform: scale(1.05);
  }

  .member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* Specific adjustments for images that don't fit well in circular frame */
  .member-photo img[src="Dr. Kariyappa Rangaiah.jpg"] {
    object-fit: cover;
    object-position: center top;
    transform: scale(1.1);
  }
  
  .member-photo img[src="Mr. Sridharan.jpg"] {
    object-fit: cover;
    object-position: center center;
    transform: scale(1.05);
  }

  .member-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ternary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .member-designation {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
  }

  @media (max-width: 768px) {
    .advisory-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .advisory-intro p {
      font-size: 1rem;
    }

    .member-photo {
      width: 140px;
      height: 140px;
    }

    .member-info h3 {
      font-size: 1.1rem;
    }

    .member-designation {
      font-size: 0.9rem;
    }
  }

  @media (max-width: 480px) {
    .advisory-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .advisory-member {
      padding: 1.5rem;
    }

    .member-photo {
      width: 120px;
      height: 120px;
    }

    .advisory-intro p {
      font-size: 0.95rem;
    }
  }

  /* Gallery Carousel Styles */
  .gallery-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    margin-top: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .gallery-track {
    display: flex;
    align-items: center;
    animation: galleryScroll 40s linear infinite;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  @keyframes galleryScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .gallery-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    width: 400px;
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 0.25rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .gallery-item:hover img {
    transform: scale(1.05);
  }

  /* Pause gallery animation on hover */
  .gallery-carousel:hover .gallery-track {
    animation-play-state: paused;
  }

  /* Campus Showcase Styles */
  .campus-showcase {
    margin-top: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }

  .campus-content {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
  }

  .campus-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .campus-description {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
  }

  .hackathon-info {
    font-size: 1rem;
    color: var(--text);
    max-width: 800px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
    text-align: left;
  }

  .campus-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .campus-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
  }

  .campus-image:hover {
    transform: translateY(-5px);
  }

  .campus-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
  }

  .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .campus-badge {
  /*  background: rgba(255, 250, 250, 0.95); */
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* Responsive Design for Campus Section */
  @media (max-width: 768px) {
    .campus-showcase {
      margin-top: 2rem;
      padding: 2rem 0;
    }
    
    .campus-content h2 {
      font-size: 2rem;
    }
    
    .campus-description {
      font-size: 1.1rem;
    }

    .hackathon-info {
      font-size: 0.95rem;
      text-align: center;
      padding: 0 1rem;
    }
    
    .campus-images {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      max-width: 600px;
    }
    
    .campus-image img {
      height: 300px;
    }
    
    .campus-badge {
      font-size: 0.9rem;
      padding: 0.6rem 1.2rem;
    }
  }

  /* Problem Statement Table Styles */
  .ps-table-container {
    margin-top: 2rem;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #fff;
  }

  .ps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    table-layout: fixed;
    min-width: 720px; /* prevent column overlap on small screens; container scrolls */
  }

  .ps-table thead {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
  }

  .ps-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
  }
  .ps-table th:nth-child(1),
  .ps-table td:nth-child(1) { width: 30%; }
  .ps-table th:nth-child(2),
  .ps-table td:nth-child(2) { width: 20%; white-space: nowrap; }
  .ps-table th:nth-child(3),
  .ps-table td:nth-child(3) { width: 50%; }

  .ps-table th:first-child {
    border-top-left-radius: 12px;
  }

  .ps-table th:last-child {
    border-top-right-radius: 12px;
  }

  .ps-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e9ebf8;
    vertical-align: top;
    word-wrap: break-word;
    word-break: break-word;
  }

  .ps-link { white-space: normal; display: inline-block; }

  @media (max-width: 720px) {
    .ps-table { min-width: 680px; }
  }

  /* Timeline table in Guidelines: avoid overlap on small screens */
  #final-guidelines .ps-table { min-width: 0; table-layout: auto; }
  #final-guidelines .ps-table th,
  #final-guidelines .ps-table td { white-space: normal; }
  #final-guidelines .ps-table th:nth-child(1),
  #final-guidelines .ps-table td:nth-child(1) { width: 22%; }
  #final-guidelines .ps-table th:nth-child(2),
  #final-guidelines .ps-table td:nth-child(2) { width: 28%; }
  #final-guidelines .ps-table th:nth-child(3),
  #final-guidelines .ps-table td:nth-child(3) { width: 50%; }

  .ps-table tbody tr:hover {
    background: #f8fafc;
    transition: background-color 0.2s ease;
  }

  .ps-table tbody tr:last-child td {
    border-bottom: none;
  }

  .ps-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
  }

  .ps-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
  }

  .ps-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    line-height: 1.4;
  }

  .ps-link:hover {
    color: var(--accent);
    text-decoration: underline;
  }

  /* Winners table: specific alignment and column sizing */
  #winners .ps-table-container {
    overflow-x: auto;
  }
  #winners .ps-table {
    table-layout: fixed;
    min-width: 1200px; /* slightly smaller so it fits on one screen better */
    font-size: 0.82rem;
  }
  #winners .ps-table thead th {
    text-align: center;
  }
  #winners .ps-table td {
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    hyphens: auto;
  }
  #winners .ps-table th {
    overflow-wrap: anywhere;
    white-space: normal;
    hyphens: auto;
  }
  /* Column widths for 10 columns */
  #winners .ps-table th:nth-child(1),
  #winners .ps-table td:nth-child(1) { width: 6%; text-align: center; }
  #winners .ps-table th:nth-child(2),
  #winners .ps-table td:nth-child(2) { width: 13%; }
  #winners .ps-table th:nth-child(3),
  #winners .ps-table td:nth-child(3) { width: 12%; }
  #winners .ps-table th:nth-child(4),
  #winners .ps-table td:nth-child(4) { width: 18%; }
  #winners .ps-table th:nth-child(5),
  #winners .ps-table td:nth-child(5) { width: 9%; }
  #winners .ps-table th:nth-child(6),
  #winners .ps-table td:nth-child(6) { width: 9%; }
  #winners .ps-table th:nth-child(7),
  #winners .ps-table td:nth-child(7) { width: 9%; }
  #winners .ps-table th:nth-child(8),
  #winners .ps-table td:nth-child(8) { width: 9%; }
  #winners .ps-table th:nth-child(9),
  #winners .ps-table td:nth-child(9) { width: 9%; }
  #winners .ps-table th:nth-child(10),
  #winners .ps-table td:nth-child(10) { width: 12%; }
  /* Prevent faculty mentor names from breaking awkwardly */
  #winners .ps-table td:nth-child(10),
  #winners .ps-table th:nth-child(10) {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
  }

  /* Visual polish: borders, zebra rows, sticky header for long scrolls */
  #winners .ps-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  #winners .ps-table th,
  #winners .ps-table td {
    border-right: 1px solid #e9ebf8;
  }
  #winners .ps-table th:last-child,
  #winners .ps-table td:last-child {
    border-right: none;
  }
  #winners .ps-table tbody tr:nth-child(odd) {
    background: #fafbff;
  }
  #winners .ps-table tbody tr:hover {
    background: #f3f6ff;
  }
  #winners .ps-table td { padding: .6rem .5rem; line-height: 1.35; }
  #winners .ps-table th { padding: .75rem .55rem; font-size: 0.82rem; }

  /* Problem Statement Modal Styles */
  .ps-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .ps-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from { 
      opacity: 0;
      transform: translateY(-50px) scale(0.95);
    }
    to { 
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .ps-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .ps-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
  }

  .ps-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
  }

  .ps-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .ps-modal-body {
    padding: 2rem 2rem 2.25rem 2rem;
  }

  .ps-detail-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: start;
  }

  .ps-detail-row.full-width {
    grid-template-columns: 1fr;
  }

  .ps-detail-row label {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .ps-detail-row span {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .ps-description {
    background: #f8fafc;
    border: 1px solid #e9ebf8;
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
  }

  .ps-description-content p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
  }

  /* Preserve line breaks in modal description for clean bullet/paragraph layout */
  #psProblemText { white-space: pre-line; }
  .ps-detail-row label { margin-top: .15rem; }

  .ps-description-content p:last-child {
    margin-bottom: 0;
  }

  .ps-description-content strong {
    color: var(--primary);
    font-weight: 700;
  }

  /* Responsive Modal */
  @media (max-width: 768px) {
    .ps-modal-content {
      width: 95%;
      margin: 5% auto;
      max-height: 85vh;
    }

    .ps-modal-header {
      padding: 1rem 1.5rem;
    }

    .ps-modal-header h2 {
      font-size: 1.3rem;
    }

    .ps-modal-body {
      padding: 1.5rem;
    }

    .ps-detail-row {
      grid-template-columns: 1fr;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .ps-detail-row.full-width {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 520px) {
    .campus-content {
      padding: 0 1rem;
    }
    
    .campus-content h2 {
      font-size: 1.8rem;
    }
    
    .campus-description {
      font-size: 1rem;
    }

    .hackathon-info {
      font-size: 0.9rem;
      padding: 0 0.5rem;
    }
    
    .campus-images {
      gap: 1rem;
      padding: 0 0.5rem;
    }
    
    .campus-image img {
      height: 250px;
    }
    
    /* Responsive sponsors section */
    .powered-by-section {
      padding: 2rem 0;
      margin: 1rem 0;
    }
    
    .powered-by-heading {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
    }
    
    .sponsors-carousel {
      height: 120px;
    }
    
    .sponsor-logo {
      height: 80px;
      width: 200px;
      margin: 0 0.125rem;
    }
    
    .sponsor-logo img {
      height: 60px;
      width: 160px;
    }

    /* Scale up these three logos slightly on small screens too */
    .sponsor-logo img[alt="Tata Group"],
    .sponsor-logo img[alt="HackCulture"],
    .sponsor-logo img[alt="Conneqtion"] {
      height: 70px;
      width: 180px;
    }
    
    .sponsors-track {
      gap: 0.75rem;
      padding: 0 0.25rem;
    }
    
    /* Responsive countdown timer */
    .countdown-timer {
      gap: 0.25rem;
      flex-wrap: nowrap;
    }
    
    .time-unit {
      min-width: 45px;
      padding: 0.4rem 0.3rem;
    }
    
    .time-number {
      font-size: 1rem;
    }
    
    .time-label {
      font-size: 0.55rem;
    }
    
    /* Responsive gallery */
    .gallery-carousel {
      height: 200px;
    }
    
    .gallery-item {
      height: 180px;
      width: 280px;
    }
    
    .gallery-track {
      gap: 0.5rem;
    }

    /* Responsive PS Table */
    .ps-table th,
    .ps-table td {
      padding: 0.75rem 0.5rem;
      font-size: 0.85rem;
    }

    .ps-modal-content {
      width: 98%;
      margin: 2% auto;
    }

    .ps-modal-header {
      padding: 1rem;
    }

    .ps-modal-header h2 {
      font-size: 1.2rem;
    }

    .ps-modal-body {
      padding: 1rem;
    }
  }

  /* Ultra-small smartphones */
  @media (max-width: 380px) {
    .logo img { max-height: 48px; }
    .clock-badge { width: 120px; height: 120px; }
    .clock-face { width: 90px; height: 90px; }
    .countdown-timer { gap: 0.2rem; }
    .time-unit { min-width: 42px; padding: 0.35rem 0.25rem; }
    .time-number { font-size: 0.95rem; }
    .time-label { font-size: 0.5rem; }
    .gallery-carousel { height: 180px; }
    .gallery-item { width: 220px; height: 150px; }
    .sponsors-carousel { height: 100px; }
    .sponsor-logo { width: 160px; height: 70px; }
    .sponsor-logo img { width: 130px; height: 50px; }
    .sponsor-logo img[alt="Tata Group"],
    .sponsor-logo img[alt="HackCulture"],
    .sponsor-logo img[alt="Conneqtion"] { width: 150px; height: 60px; }
    .qr-card img { width: 120px; height: 120px; }
  }

  /* Landscape phones with short height (e.g., notches) */
  @media (orientation: landscape) and (max-height: 420px) {
    .site-header { position: static; }
    .logo img { max-height: 44px; }
    .section { padding: 1.25rem 1rem; }
    .powered-by-section { padding: 1.5rem 0; }
  }

  /* Large desktop screens */
  @media (min-width: 1440px) {
    body { font-size: 17px; }
    .container { max-width: 1400px; }
    .gallery-carousel { height: 340px; }
    .gallery-item { width: 460px; height: 280px; }
    .sponsors-carousel { height: 160px; }
    .sponsor-logo { width: 280px; height: 110px; }
    .sponsor-logo img { height: 90px; width: 220px; }
    .sponsor-logo img[alt="Tata Group"],
    .sponsor-logo img[alt="HackCulture"],
    .sponsor-logo img[alt="Conneqtion"] { height: 110px; width: 260px; }
  }

  /* TV / 4K displays */
  @media (min-width: 1920px) {
    body { font-size: 18px; }
    .container { max-width: 1600px; }
    .hero { grid-template-columns: 300px 1fr; }
    .clock-badge { width: 300px; height: 300px; }
    .gallery-carousel { height: 380px; }
    .gallery-item { width: 520px; height: 320px; }
    .sponsors-carousel { height: 180px; }
    .sponsor-logo { width: 320px; height: 120px; }
    .sponsor-logo img { height: 100px; width: 240px; }
    .sponsor-logo img[alt="Tata Group"],
    .sponsor-logo img[alt="HackCulture"],
    .sponsor-logo img[alt="Conneqtion"] { height: 120px; width: 280px; }
  }

  /* Flashing CTA for problem statements link */
  .flash-cta {
    display: inline-block;
    padding: .6rem .9rem;
    border-radius: 10px;
    font-weight: 700;
    border: 2px solid currentColor;
    animation: blink 1s infinite;
  }

  @media (prefers-reduced-motion: reduce) {
    .flash-cta { animation: none; }
  }

  /* Ensure QR caption centers under the image */
  .qr-card { text-align: center; margin-left: auto; margin-right: auto; }
  .qr-note { text-align: center; display: block; }


/* About Section Styles */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.campus-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.campus-image-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campus-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.campus-image-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 2rem 1.5rem 1rem;
}

.campus-badge {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.about-content h3 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.highlights-list {
  list-style: none;
  padding: 0;
}

.highlights-list li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--card);
  border-left: 4px solid var(--ternary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlights-list strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.mission-statement {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(43, 45, 115, 0.05), rgba(193, 45, 107, 0.05));
  border-radius: var(--radius);
  margin-top: 2rem;
}

/* Hackathon Info Section */
.hackathon-info-content {
  max-width: 900px;
  margin: 0 auto;
}

.hackathon-info-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.highlight-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(43, 45, 115, 0.05), rgba(193, 45, 107, 0.05));
  border-radius: var(--radius);
  margin-top: 2rem;
}

/* Domains Grid */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.domain-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--ternary);
}

.domain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.domain-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.domain-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* Prizes & Registration Section */
.prize-section, .ta-section {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prize-list, .ta-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.prize-list li, .ta-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1.05rem;
}

.prize-list li:last-child, .ta-list li:last-child {
  border-bottom: none;
}

.registration-section {
  margin-top: 3rem;
}

.registration-section h3 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.reg-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--ternary);
}

.reg-card h4 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.reg-card ul {
  list-style: none;
  padding: 0;
}

.reg-card ul li {
  padding: 0.5rem 0;
  font-size: 1.05rem;
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

.btn.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Upload Page Styles */
.upload-page {
  min-height: calc(100vh - 300px);
  padding: 3rem 0;
}

.upload-header {
  text-align: center;
  margin-bottom: 3rem;
}

.upload-header h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.upload-header .subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

.form-container {
  max-width: 800px;
  margin: 0 auto 3rem;
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ps-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.required {
  color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.875rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 200px;
}

.form-hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: justify;
  text-justify: inter-word;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.form-actions button {
  flex: 1;
}

.success-message {
  text-align: center;
  padding: 3rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4caf50, #8bc34a);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-message h3 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-message p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.info-box {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(43, 45, 115, 0.05), rgba(193, 45, 107, 0.05));
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--ternary);
}

.info-box h3 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.info-box ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* File Upload Styles */
.file-upload-wrapper {
  position: relative;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed #d0d0d0;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  border-color: var(--primary);
  background: #f0f0f8;
}

.file-upload-label.drag-over {
  border-color: var(--accent);
  background: rgba(193, 45, 107, 0.05);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.upload-text {
  color: var(--muted);
  font-size: 1rem;
}

.file-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.file-item:hover {
  background: #f0f0f4;
}

.file-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.file-name {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 0.85rem;
  color: var(--muted);
  flex-shrink: 0;
}

.file-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.file-remove:hover {
  background: #a02456;
  transform: scale(1.1);
}

.file-remove:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Improved spacing and typography */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2.5rem;
  color: var(--ternary);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section h3 {
  font-size: 1.8rem;
  color: var(--ternary);
  margin-bottom: 1.5rem;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Domains Grid */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.domain-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--ternary);
      display: flex;
    flex-direction: column;
    align-items: center;
}

.domain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.domain-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.domain-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* Powered by Section */
.powered-by-section {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 3rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.powered-by-heading {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.sponsors-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.sponsors-track {
  display: flex;
  gap: 4rem;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.sponsors-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.sponsor-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 0 1.5rem;
}

.sponsor-logo img {
  max-height: 100px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.sponsor-logo img:hover {
  transform: scale(1.1);
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .form-container {
    padding: 2rem 1.5rem;
  }
  
  .upload-header h1 {
    font-size: 2rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .domains-grid {
    grid-template-columns: 1fr;
  }
  
  .grid.two {
    grid-template-columns: 1fr;
  }
  
  .campus-images-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .campus-image-card img {
    height: 250px;
  }
  
  .file-item {
    flex-wrap: wrap;
  }
  
  .file-name {
    flex-basis: 100%;
    margin-bottom: 0.25rem;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .section h3 {
    font-size: 1.5rem;
  }
}

/* Association text styling */
.association-text {
  font-size: 0.85em;
  font-weight: 400;
  opacity: 0.8;
}

/* Hackathon Flow Section Styles */
.hackathon-flow-section {
  margin: 3rem 0;
  padding: 2rem 0;
}

.hackathon-flow-section h3 {
  text-align: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.flow-image-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.flow-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.flow-image-container:hover img {
  transform: scale(1.02);
}

.flow-caption {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(43, 45, 115, 0.05), rgba(193, 45, 107, 0.05));
  text-align: center;
}

.flow-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive Design for Flow Section */
@media (max-width: 768px) {
  .hackathon-flow-section {
    margin: 2rem 0;
    padding: 1rem 0;
  }

  .hackathon-flow-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .flow-image-container {
    margin: 0 1rem;
  }

  .flow-caption {
    padding: 1rem 1.5rem;
  }

  .flow-caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hackathon-flow-section h3 {
    font-size: 1.3rem;
  }

  .flow-image-container {
    margin: 0 0.5rem;
  }

  .flow-caption {
    padding: 1rem;
  }

  .flow-caption p {
    font-size: 0.85rem;
  }
}

/* Association text styling */
.association-text {
  color: #888888 !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  opacity: 0.8;
}

/* More specific selector for association text */
.meta-item .value .association-text {
  color: #999999 !important;
  font-size: 0.7rem !important;
  font-weight: 300 !important;
  opacity: 0.7 !important;
  display: inline-block !important;
}
/* Countdown Timer Styles */
.countdown-section {
  margin-top: 2rem;
  text-align: center;
}

.countdown-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.time-unit {
  background: linear-gradient(135deg, #6b46c1, #c12d6b);
  border-radius: 16px;
  padding: 0.75rem 0.5rem;
  min-width: 55px;
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.3);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-unit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(107, 70, 193, 0.4);
}

.time-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.time-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive countdown timer */
@media (max-width: 768px) {
  .countdown-timer {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .time-unit {
    min-width: 45px;
    padding: 0.6rem 0.3rem;
  }
  
  .time-number {
    font-size: 1.0rem;
  }
  
  .time-label {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .countdown-title {
    font-size: 0.9rem;
  }
  
  .countdown-timer {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }
  
  .time-unit {
    min-width: 40px;
    padding: 0.4rem 0.2rem;
  }
  
  .time-number {
    font-size: 0.9rem;
  }
  
  .time-label {
    font-size: 0.5rem;
  }
}
  
  .time-number {
    font-size: 1rem;
  }
  
  .time-label {
    font-size: 0.55rem;
  }

/* Themes Grid - Updated from Domains */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.theme-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--ternary);
}

.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.theme-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.theme-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* Responsive themes grid */
@media (max-width: 768px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }
}

/* Aligned Hackathon Themes Layout */
.themes-grid-aligned {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.themes-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.themes-row .theme-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--ternary);
  min-width: 200px;
  max-width: 220px;
  min-height: 200px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.themes-row .theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.themes-row .theme-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.themes-row .theme-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* Payment Information Box */
.payment-info-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.payment-info-content {
  flex: 1;
}

.payment-info-content h4 {
  color: #92400e;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.payment-notes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-notes li {
  color: #92400e;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}


@media (max-width:768px) {
  .domains-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
  }
  
  .domain-card {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .domain-card h3 {
    font-size: 0.95rem;
  }
}


.payment-notes li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #d97706;
  font-weight: bold;
  font-size: 1.2rem;
}

.payment-notes li:last-child {
  margin-bottom: 0;
}

/* Responsive Design for Aligned Themes */
@media (min-width: 1400px) {
  .themes-row {
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (max-width: 1200px) {
  .themes-row {
    gap: 1rem;
  }
  
  .themes-row .theme-card {
    min-width: 180px;
    max-width: 200px;
    padding: 1.5rem;
  }
}

@media (max-width: 1000px) {
  .themes-row {
    gap: 3rem;
  }
  
  .themes-row .theme-card {
    min-width: 160px;
    max-width: 180px;
    padding: 1.5rem;
  }
  
  .themes-row .theme-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .themes-grid-aligned {
    gap: 1.5rem;
  }
  
  .themes-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .themes-row .theme-card {
    min-width: 280px;
    max-width: 400px;
    width: 100%;
  }
  
  .payment-info-box {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .warning-icon {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .themes-row .theme-card {
    min-width: 250px;
    padding: 1.5rem;
  }
  
  .themes-row .theme-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .themes-row .theme-card h3 {
    font-size: 1rem;
  }
  
  .payment-info-box {
    padding: 1rem;
  }
  
  .payment-info-content h4 {
    font-size: 1rem;
  }
  
  .payment-notes li {
    font-size: 0.9rem;
  }
}
/* Payment Page Styles */
.payment-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: calc(100vh - 200px);
}

.payment-header {
  text-align: center;
  margin-bottom: 3rem;
}

.payment-header h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.payment-header .subtitle {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Payment Summary */
.payment-summary {
  margin-bottom: 2rem;
}

.payment-summary h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.summary-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .label {
  font-weight: 600;
  color: var(--muted);
}

.summary-row .value {
  font-weight: 700;
  color: var(--text);
}

/* Payment Details */
.payment-details {
  margin-bottom: 2rem;
}

.payment-details h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.payment-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 0 auto;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.payment-row.total {
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.payment-row .label {
  opacity: 0.9;
}

.payment-row .value {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Payment Form */
.payment-form-container {
  max-width: 600px;
  margin: 0 auto 3rem;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.payment-form-container h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.payment-method-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.payment-icon {
  margin-right: 0.5rem;
}

/* Payment Processing */
.payment-processing {
  text-align: center;
  padding: 4rem 2rem;
}

.processing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 0 auto;
}

.processing-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.processing-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* Payment Success */
.payment-success {
  text-align: center;
  padding: 2rem;
}

.success-card, .error-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 0 auto;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-card h3 {
  color: #22c55e;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-card h3 {
  color: #ef4444;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.success-card p, .error-card p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.transaction-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 600;
  color: var(--muted);
}

.detail-row .value {
  font-weight: 700;
  color: var(--text);
  font-family: 'Courier New', monospace;
}

.success-message {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1rem;
}

/* Responsive Design for Payment Page */
@media (max-width: 768px) {
  .payment-header h1 {
    font-size: 2rem;
  }
  
  .payment-form-container {
    padding: 1.5rem;
    margin: 0 1rem 2rem;
  }
  
  .summary-card, .payment-card {
    margin: 0 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .payment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .transaction-details {
    margin: 1rem 0;
    padding: 1rem;
  }
  
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .payment-header h1 {
    font-size: 1.8rem;
  }
  
  .payment-form-container {
    padding: 1rem;
  }
  
  .processing-card, .success-card, .error-card {
    padding: 2rem 1rem;
  }
  
  .success-icon, .error-icon {
    font-size: 3rem;
  }
  
  .success-card h3, .error-card h3 {
    font-size: 1.5rem;
  }
}

/* Theme Count Styles */
.theme-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0 0 0;
  padding: 0 1rem;
}

.stats-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.stats-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 0.85rem;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Theme Card Updates */
.themes-row .theme-card {
  position: relative;
  transition: all 0.3s ease;
}

.theme-count {
  margin-top: 1rem;
  text-align: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.count-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.count-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.25rem;
}

.theme-status {
  margin-top: 0.75rem;
  text-align: center;
}

.status-available {
  background: #dcfce7;
  color: #166534;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-full {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Theme Card States */
.theme-available {
  border-color: #22c55e;
}

.theme-available .theme-count {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.theme-full {
  border-color: #ef4444;
  opacity: 0.7;
  transform: scale(0.98);
}

.theme-full .theme-count {
  background: #fef2f2;
  border-color: #fecaca;
}

.theme-full::after {
  content: 'FULL';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Theme Refresh Section */
.theme-refresh {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.theme-refresh button {
  margin-bottom: 1rem;
}

.refresh-icon {
  margin-right: 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.refresh-icon.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.refresh-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive Design for Theme Counts */
@media (max-width: 768px) {
  .theme-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0 0 0;
  }
  
  .stats-card {
    min-width: 200px;
    max-width: 280px;
    padding: 1.5rem 2rem;
  }
  
  .stats-number {
    font-size: 2.5rem;
  }
  
  .stats-label {
    font-size: 0.8rem;
  }
  
  .theme-count {
    padding: 0.5rem;
  }
  
  .count-number {
    font-size: 1.3rem;
  }
  
  .count-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .theme-stats {
    gap: 1rem;
    margin: 2rem 0 0 0;
    padding: 0 0.5rem;
  }
  
  .stats-card {
    min-width: 160px;
    max-width: 240px;
    padding: 1.25rem 1.5rem;
  }
  
  .stats-number {
    font-size: 2.2rem;
  }
  
  .stats-label {
    font-size: 0.75rem;
  }
}

/* Payment Success and Error Styles */
.payment-success {
    text-align: center;
    padding: 2rem;
}

.success-card, .error-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.error-card {
    border-left: 4px solid #dc3545;
}

.success-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.solution-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #007bff;
}

.error-details {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #ffc107;
}

.solution-box h4 {
    color: #007bff;
    margin-top: 0;
}

.error-details p {
    margin: 0.5rem 0;
}

/* Comprehensive Text Justification */
/* Apply text justification to all paragraph and text content */
p, li, .subtitle, .lead, .campus-description, .hackathon-info,
.about-content p, .hackathon-info-content p, .advisory-intro p,
.note-box p, .info-box p, .highlights-list li, .prize-list li,
.ta-list li, .payment-notes li, .rewards li, .contact-list li,
.facilities-list li, .rules-content li, .ps-description-content p,
.success-card p, .error-card p, .form-hint, .member-designation,
.campus-badge, .flow-caption p, .refresh-note, .upload-text,
.file-name, .warning-note p, .payment-info-content,
.transaction-details, .processing-card p, .detail-row,
.summary-row .label, .payment-row .label, .qr-note {
  text-align: justify !important;
  text-justify: inter-word !important;
}

/* Exceptions for centered content that should remain centered */
.countdown-title, .badge-text, .badge-subtitle, .time-label,
.stats-label, .count-label, .status-available, .status-full,
.nav-menu a, .btn, .chip, .hero-badges, .cta,
h1, h2, h3, h4, h5, h6, .section h2, .section h3,
.upload-header h1, .payment-header h1, .success-card h3,
.error-card h3, .member-info h3, .theme-card h3,
.advisory-member h3, .hackathon-flow-section h3,
.registration-section h3, .payment-details h3,
.payment-summary h3, .powered-by-heading {
  text-align: center !important;
}

/* Keep navigation and button text centered */
.nav-menu, .cta, .hero-badges, .theme-refresh,
.cta-center, .form-actions, .payment-processing {
  text-align: center !important;
}

/* Ensure table content is properly aligned */
.ps-table td, .ps-table th {
  text-align: left !important;
}

/* Keep specific UI elements with their original alignment */
.meta-item .label, .meta-item .value,
.summary-row, .payment-row, .detail-row {
  text-align: left !important;
}




.news-ticker-bar {
  background: #003366;
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
 
.news-label-fixed {
  background: var(--accent);
  color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 5;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.3);
  animation: news-glow 2s infinite alternate;
}
 
.news-ticker-bar marquee {
  flex: 1;
  padding: 10px 0 8px 15px;
  margin: 0;
}
 
@keyframes news-glow {
  0% { background-color: var(--accent); }
  100% { background-color: #db2777; }
}
 
.click-pulse {
  display: inline-block;
  animation: click-pulse-anim 0.8s infinite alternate;
}
 
@keyframes click-pulse-anim {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}
 
