:root {
  /* Updated Colors to Match NT Logo */
  --primary-color: #2563eb; /* Blue - matches the T in your logo */
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #dc2626; /* Red - matches the N in your logo */
  --accent-color: #2563eb;
  --red-accent: #dc2626; /* Red accent matching logo */
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-dark: #111827;
  --text-gray: #6b7280;
  --text-dark-blue: #1e40af;
  --text-light-gray: #374151;
  --text-heading: #111827;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-light-blue: #eff6ff;
  --bg-light-red: #fef2f2;
  --bg-gradient-start: #dbeafe;
  --bg-overlay: rgba(37, 99, 235, 0.8);
  
  /* Border Colors */
  --border-light: #e5e7eb;
  --border-gray: #d1d5db;
  --border-focus: #2563eb;
  
  /* Shadow Colors */
  --shadow-light: rgba(37, 99, 235, 0.1);
  --shadow-medium: rgba(37, 99, 235, 0.15);
  --shadow-dark: rgba(37, 99, 235, 0.08);
  --shadow-popup: rgba(37, 99, 235, 0.1);
  --shadow-nav: rgba(37, 99, 235, 0.3);
  --shadow-red: rgba(220, 38, 38, 0.1);
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1A202C;
    background-color: #EDF2F7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    color: var(--primary-color);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    background-color: var(--bg-light-blue);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 19px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-weight: 300;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    font-size: 32px;
    color: #2D3748;
    margin-top: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #289698 100%);
    border-radius: 2px;
}

/* Courses Section */
.courses-section {
    padding: 0px 0;
    background-color: #F7FAFC;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px var(--shadow-light), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px var(--shadow-light), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #289698 100%);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 6px var(--shadow-light);
    position: relative;
    z-index: 1;
}

.card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    color: #2D3748;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.course-description {
    color: #4A5568;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.7;
}

.course-features {
    margin-bottom: 25px;
    padding-left: 20px;
}

.course-features li {
    margin-bottom: 8px;
    position: relative;
    color: #4A5568;
    font-size: 14px;
}

.course-features li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: -20px;
    font-weight: bold;
}

.course-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #289698 100%);
    color: var(--bg-white);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(50, 181, 183, 0.3);
    width: 100%;
}

.course-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 181, 183, 0.4);
}

/* Special Courses Section */
.special-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.special-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: #a0e4e5;
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.special-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: #a0e4e5;
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(-50px, 50px);
}

.special-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px var(--shadow-light), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(50, 181, 183, 0.2);
}

.special-card:hover {
    box-shadow: 0 20px 25px -5px var(--shadow-light), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.special-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #289698 100%);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.special-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.special-title {
    color: var(--bg-white);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.special-subtitle {
    color: var(--bg-white);
    opacity: 0.9;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.special-content {
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.special-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background-color: #F7FAFC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px var(--shadow-light);
}

.special-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.special-text {
    flex-grow: 1;
}

.special-description {
    color: #4A5568;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
}

.special-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.special-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(50, 181, 183, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon img {
    width: 16px;
    height: 16px;
}

.feature-text {
    font-size: 15px;
    color: #4A5568;
}

.special-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #289698 100%);
    color: var(--bg-white);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(50, 181, 183, 0.3);
}

.special-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 181, 183, 0.4);
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--bg-light-blue);
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
    
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-hover);    
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    box-shadow: 0 4px 6px var(--shadow-light);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px var(--shadow-medium);
    background-color: #F7FAFC;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .special-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .special-content {
        flex-direction: column;
        text-align: center;
    }

    .special-icon {
        margin: 0 auto 20px;
    }

    .cta-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
      margin-top: 0px;
        font-size: 29px;
    }

    .special-header {
        padding: 20px;
    }

    .special-title {
        font-size: 29px;
    }

    .special-content {
        padding: 25px;
    }

    .special-features {
        grid-template-columns: 1fr;
    }
}





.course-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1rem;
}

.popup-content {
  background-color: var(--bg-white);
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 25px 50px var(--shadow-popup), 0 10px 30px var(--shadow-medium), 0 0 0 1px var(--border-light);
  text-align: center;
  width: 400px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-light);
}

.popup-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px 20px 0 0;
}

.popup-content h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.popup-content h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.popup-content label {
  display: block;
  margin: 12px 0;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.popup-content label::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--shadow-light), transparent);
  transition: left 0.5s ease;
}

.popup-content label:hover::before {
  left: 100%;
}

.popup-content label:hover {
  border-color: var(--primary-color);
  background: var(--bg-light-blue);
  color: var(--text-dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.popup-content label:has(input:checked) {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--bg-light-blue), var(--bg-gradient-start));
  color: var(--text-dark-blue);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

/* HIDE RADIO BUTTON CIRCLES */
.popup-content input[type="radio"] {
  display: none; /* This hides the radio button circles */
}

.popup-content input[type="radio"]:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.popup-content button {
  margin-top: 20px;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popup-content button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.popup-content button:hover::before {
  left: 100%;
}

.close-btn {
  background: linear-gradient(135deg, var(--secondary-color), var(--red-accent));
  color: var(--bg-white);
  margin-right: 10px;
  box-shadow: 0 4px 15px var(--shadow-red);
  border: 1px solid var(--secondary-color);
}

.close-btn:hover {
  background: linear-gradient(135deg, #b91c1c, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-red);
}

.close-btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.open-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--bg-white);
  box-shadow: 0 4px 15px var(--shadow-light);
  border: 1px solid var(--primary-color);
}

.open-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.open-btn:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.open-btn:disabled {
  background: var(--border-gray);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  border-color: var(--border-gray);
}

/* PDF Viewer Base Styles - Mobile Optimized */
.pdf-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  -webkit-overflow-scrolling: touch;
}

.pdf-viewer {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95vw;
  height: 95vh;
  max-width: 1200px;
  max-height: 800px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.pdf-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  flex-shrink: 0;
  min-height: 60px;
  box-sizing: border-box;
}

.pdf-viewer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 15px;
  line-height: 1.2;
}

.close-pdf-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.close-pdf-btn:hover,
.close-pdf-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

.pdf-frame-container {
  width: 100%;
  height: calc(100% - 60px);
  position: relative;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

#pdfFrame {
  width: 100%;
  height: 100%;
  border: none;
  overflow: auto;
}

/* Mobile Specific Styles */
@media screen and (max-width: 768px) {
  .pdf-viewer {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
  }

  .pdf-viewer-header {
    padding: 12px 16px;
    min-height: 56px;
  }

  .pdf-viewer-header h3 {
    font-size: 16px;
    margin-right: 12px;
  }

  .close-pdf-btn {
    min-width: 40px;
    height: 40px;
    padding: 6px 10px;
    font-size: 22px;
  }

  .pdf-frame-container {
    height: calc(100% - 56px);
  }
}

/* iOS Safari Specific Fixes */
@media screen and (max-width: 768px) {
  @supports (-webkit-touch-callout: none) {
    .pdf-viewer {
      height: 100vh;
      height: -webkit-fill-available;
    }

    .pdf-frame-container {
      height: calc(100vh - 56px);
      height: calc(-webkit-fill-available - 56px);
    }

    #pdfFrame {
      -webkit-overflow-scrolling: touch;
      overflow-clip-margin: touch;
    }
  }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
  .pdf-viewer-header {
    padding: 10px 12px;
    min-height: 50px;
  }

  .pdf-viewer-header h3 {
    font-size: 14px;
    margin-right: 8px;
  }

  .close-pdf-btn {
    min-width: 36px;
    height: 36px;
    font-size: 20px;
    padding: 4px 8px;
  }

  .pdf-frame-container {
    height: calc(100% - 50px);
  }
}

/* Landscape Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .pdf-viewer-header {
    padding: 8px 12px;
    min-height: 44px;
  }

  .pdf-viewer-header h3 {
    font-size: 14px;
  }

  .close-pdf-btn {
    min-width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .pdf-frame-container {
    height: calc(100% - 44px);
  }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
  .close-pdf-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .pdf-overlay {
    -webkit-tap-highlight-color: transparent;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .pdf-viewer {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  }
}

/* Loading Animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Extra Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .popup-content {
    width: 450px;
    padding: 35px 30px;
  }
  .popup-content h3 {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .popup-content label {
    font-size: 18px;
    margin: 15px 0;
    padding: 15px 20px;
  }
  .popup-content button {
    padding: 12px 24px;
    font-size: 16px;
  }
  .pdf-viewer {
    width: 85vw;
    height: 85vh;
    max-width: 1400px;
    max-height: 900px;
  }
  .pdf-viewer-header {
    padding: 20px 25px;
  }
  .pdf-viewer-header h3 {
    font-size: 20px;
  }
  .pdf-frame-container {
    height: calc(100% - 70px);
  }
}

/* Large Desktop (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
  .popup-content {
    width: 420px;
    padding: 30px 25px;
  }
  .popup-content h3 {
    font-size: 22px;
    margin-bottom: 22px;
  }
  .popup-content label {
    font-size: 17px;
    margin: 14px 0;
    padding: 14px 18px;
  }
  .popup-content button {
    padding: 11px 22px;
    font-size: 15px;
  }
  .pdf-viewer {
    width: 88vw;
    height: 88vh;
    max-width: 1200px;
    max-height: 850px;
  }
  .pdf-viewer-header h3 {
    font-size: 19px;
  }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .popup-content {
    width: 380px;
    padding: 28px 22px;
  }
  .popup-content h3 {
    font-size: 21px;
    margin-bottom: 20px;
  }
  .popup-content label {
    font-size: 16px;
    margin: 12px 0;
    padding: 13px 16px;
  }
  .popup-content button {
    padding: 10px 20px;
    font-size: 15px;
  }
  .pdf-viewer {
    width: 92vw;
    height: 92vh;
    max-width: 1000px;
    max-height: 750px;
  }
  .pdf-viewer-header {
    padding: 12px 18px;
  }
  .pdf-viewer-header h3 {
    font-size: 17px;
  }
  .close-pdf-btn {
    font-size: 22px;
    min-width: 36px;
    height: 36px;
  }
}

/* Tablet Landscape (769px - 991px) */
@media (max-width: 991px) and (min-width: 769px) {
  .popup-content {
    width: 350px;
    padding: 25px 20px;
  }
  .popup-content h3 {
    font-size: 19px;
    margin-bottom: 18px;
  }
  .popup-content label {
    font-size: 15px;
    margin: 11px 0;
    padding: 12px 15px;
  }
  .popup-content button {
    padding: 10px 18px;
    font-size: 14px;
  }
  .pdf-viewer {
    width: 95vw;
    height: 95vh;
    max-width: 900px;
    max-height: 700px;
    border-radius: 10px;
  }
  .pdf-viewer-header {
    padding: 12px 16px;
  }
  .pdf-viewer-header h3 {
    font-size: 16px;
  }
  .close-pdf-btn {
    font-size: 20px;
    min-width: 34px;
    height: 34px;
  }
  .pdf-frame-container {
    height: calc(100% - 58px);
  }
}

/* Tablet Portrait (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  .popup {
    padding: 0.75rem;
  }
  .popup-content {
    width: calc(100vw - 3rem);
    max-width: 400px;
    padding: 22px 18px;
    border-radius: 16px;
  }
  .popup-content h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .popup-content label {
    margin: 10px 0;
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 10px;
  }
  .popup-content button {
    margin-top: 18px;
    padding: 11px 18px;
    font-size: 14px;
    border-radius: 10px;
  }
  .pdf-viewer {
    width: 96vw;
    height: 96vh;
    border-radius: 8px;
  }
  .pdf-viewer-header {
    padding: 10px 14px;
  }
  .pdf-viewer-header h3 {
    font-size: 15px;
  }
  .close-pdf-btn {
    font-size: 18px;
    min-width: 32px;
    height: 32px;
  }
  .pdf-frame-container {
    height: calc(100% - 52px);
  }
}

/* Mobile Large (361px - 480px) */
@media (max-width: 480px) and (min-width: 361px) {
  .popup {
    padding: 0.5rem;
  }
  .popup-content {
    width: calc(100vw - 2rem);
    max-width: 350px;
    padding: 20px 16px;
    border-radius: 14px;
  }
  .popup-content h3 {
    font-size: 17px;
    margin-bottom: 15px;
  }
  .popup-content label {
    margin: 9px 0;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 9px;
  }
  .popup-content button {
    margin-top: 16px;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 9px;
  }
  .pdf-viewer {
    width: 98vw;
    height: 98vh;
    border-radius: 6px;
  }
  .pdf-viewer-header {
    padding: 8px 12px;
  }
  .pdf-viewer-header h3 {
    font-size: 14px;
  }
  .close-pdf-btn {
    font-size: 16px;
    min-width: 30px;
    height: 30px;
  }
  .pdf-frame-container {
    height: calc(100% - 46px);
  }
}

/* Mobile Small (320px - 360px) */
@media (max-width: 360px) {
  .popup {
    padding: 0.25rem;
  }
  .popup-content {
    width: calc(100vw - 1rem);
    max-width: 320px;
    padding: 18px 14px;
    border-radius: 12px;
  }
  .popup-content h3 {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .popup-content h3::after {
    width: 50px;
    height: 2px;
  }
  .popup-content label {
    margin: 8px 0;
    padding: 9px 11px;
    font-size: 13px;
    border-radius: 8px;
  }
  .popup-content button {
    margin-top: 14px;
    padding: 9px 14px;
    font-size: 12px;
    border-radius: 8px;
    letter-spacing: 0.3px;
  }
  .pdf-viewer {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
  }
  .pdf-viewer-header {
    padding: 6px 10px;
  }
  .pdf-viewer-header h3 {
    font-size: 13px;
  }
  .close-pdf-btn {
    font-size: 14px;
    min-width: 28px;
    height: 28px;
  }
  .pdf-frame-container {
    height: calc(100% - 40px);
  }
}

/* Landscape Orientation for Mobile/Tablet */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .popup-content {
    max-height: 95vh;
    padding: 15px 12px;
    overflow-y: auto;
  }
  .popup-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .popup-content label {
    margin: 6px 0;
    padding: 8px 12px;
    font-size: 13px;
  }
  .popup-content button {
    margin-top: 12px;
    padding: 8px 14px;
    font-size: 12px;
  }
  .pdf-viewer {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
  }
  .pdf-viewer-header {
    padding: 5px 10px;
  }
  .pdf-viewer-header h3 {
    font-size: 12px;
  }
  .close-pdf-btn {
    font-size: 16px;
    min-width: 26px;
    height: 26px;
  }
  .pdf-frame-container {
    height: calc(100% - 36px);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .popup-content {
    border-width: 0.5px;
  }
  .popup-content label {
    border-width: 1px;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .popup-content,
  .popup-content button,
  .popup-content label,
  .pdf-viewer,
  .close-pdf-btn {
    transition: none;
  }
  .popup-content button::before,
  .popup-content label::before {
    display: none;
  }
  .loading::after {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .popup-content {
    border: 3px solid var(--text-primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  }
  .popup-content label {
    border-width: 2px;
  }
}

/* Focus Styles for Better Accessibility */
.popup-content button:focus,
.popup-content label:focus-within,
.close-pdf-btn:focus {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .popup,
  .pdf-overlay,
  .pdf-viewer {
    display: none !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .popup-content label {
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .popup-content button {
    min-height: 44px;
    padding: 12px 20px;
  }
  .close-pdf-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

