 nav a.active {
  color: orange;
  font-weight: bold;
  border-bottom: 2px solid orange;
}
  /* Custom scrollbar for horizontal courses section on small screens */
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
    }
    
    /* Scroll Arrow Styles */
    .scroll-arrow {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      cursor: pointer;
      z-index: 10;
      animation: bounce 2s infinite;
    }
    
    .scroll-arrow .circle {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    
    .scroll-arrow .circle::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.6s ease;
    }
    
    .scroll-arrow:hover .circle::before {
      left: 100%;
    }
    
    .scroll-arrow:hover .circle {
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
      background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    }
    
    .scroll-arrow svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: white;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    
    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
      }
      40% {
        transform: translateY(-10px) translateX(-50%);
      }
      60% {
        transform: translateY(-5px) translateX(-50%);
      }
    }
    
    /* Mobile responsiveness for scroll arrow */
    @media (max-width: 768px) {
      .scroll-arrow {
        bottom: 30px;
      }
      .scroll-arrow .circle {
        width: 45px;
        height: 45px;
      }
      .scroll-arrow svg {
        width: 20px;
        height: 20px;
      }
    }
    
    @media (max-width: 480px) {
      .scroll-arrow {
        bottom: 20px;
      }
      .scroll-arrow .circle {
        width: 40px;
        height: 40px;
      }
      .scroll-arrow svg {
        width: 18px;
        height: 18px;
      }
    }
    
    

    /* Fix for sticky header covering anchor links */
    section[id] {
      scroll-margin-top: 80px; /* Adjust this value based on your header's height */
    }
	html {
    scroll-behavior: smooth;
}
   a {
        color: blue; /* normal link color */
        text-decoration: none;
        transition: color 0.3s ease; /* smooth transition */
    }
    a:hover {
        color: orange; /* hover color */
		/* Style for popup background */
   
    }
	
	
  

/* -------------------
   TABLET PORTRAIT (580px - 991px)
------------------- */
@media (min-width: 580px) and (max-width: 991px) {
  .mobile-menu {
    display: none;   /* Hide mobile menu */
  }

  nav ul {
    display: flex;   /* Show horizontal menu */
    justify-content: center;
  }

  section {
    padding: 30px 40px;
    font-size: 1rem;
  }
}






  /* Policies Dropdown Styles */
  .policies-dropdown {
      position: relative;
      display: inline-block;
  }

  .policies-btn {
      background: none;
      border: none;
      color: #9ca3af;
      font-size: 0.75rem;
      cursor: pointer;
      text-decoration: none;
      transition: color 0.3s ease;
  }

  .policies-btn:hover {
      color: #e5e7eb;
  }

  .policies-dropdown-content {
      display: none;
      position: absolute;
      bottom: 100%;
      left: 0;
      background-color: #1f2937;
      min-width: 180px;
      box-shadow: 0px -8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1000;
      border-radius: 8px;
      padding: 0.5rem 0;
  }

  .policies-dropdown-content a {
      color: #9ca3af;
      padding: 0.5rem 1rem;
      text-decoration: none;
      display: block;
      font-size: 0.75rem;
      transition: background-color 0.3s ease, color 0.3s ease;
  }

  .policies-dropdown-content a:hover {
      background-color: #374151;
      color: #e5e7eb;
  }

  .policies-dropdown:hover .policies-dropdown-content {
      display: block;
  }

  /* Arrow for dropdown */
  .policies-btn::after {
      content: ' \25b2';
      font-size: 0.6rem;
      margin-left: 0.25rem;
  }

  /* Beautiful YouTube Video Border Styles */
  .video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.1),
      0 8px 16px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  .video-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    border-radius: 22px;
    z-index: -1;
    opacity: 1;
  }

  .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #000;
  }

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
  }

  .video-title {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 0 10px;
  }

  .video-title h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .video-title p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
  }

  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .video-container {
      padding: 15px;
      margin: 0 10px;
    }
    
    .video-title h4 {
      font-size: 1.1rem;
    }
    
    .video-title p {
      font-size: 0.9rem;
    }
  }

  @media (max-width: 480px) {
    .video-container {
      padding: 12px;
      margin: 0 5px;
    }
    
    .video-title h4 {
      font-size: 1rem;
    }
    
    .video-title p {
      font-size: 0.85rem;
    }
  }

  /* ========== COMPREHENSIVE CD LOGO CIRCULAR SHAPE FIXES ========== */
  /* Ultimate solution to prevent cylindrical/oval CD logos on any mobile device */
  .cd-logo-circle,
  [class*="w-12 h-12"][class*="rounded-full"]:has-text("CD"),
  .w-12.h-12.bg-blue-600.rounded-full:contains("CD"),
  footer div[class*="w-12 h-12"][class*="rounded-full"] {
    /* Force perfect square dimensions */
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    
    /* Force perfect circle */
    border-radius: 50% !important;
    
    /* Perfect aspect ratio */
    aspect-ratio: 1/1 !important;
    
    /* Prevent flex distortion */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    
    /* Ensure proper display and alignment */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Prevent overflow issues */
    overflow: hidden !important;
    
    /* Force box-sizing */
    box-sizing: border-box !important;
    
    /* Prevent any scaling issues */
    transform: scale(1) !important;
    
    /* Text alignment */
    text-align: center !important;
    line-height: 1 !important;
  }
  
  /* Mobile-specific CD logo fixes for very small screens */
  @media (max-width: 480px) {
    .cd-logo-circle,
    [class*="w-12 h-12"][class*="rounded-full"],
    footer div[class*="w-12 h-12"][class*="rounded-full"] {
      width: 44px !important;
      height: 44px !important;
      min-width: 44px !important;
      max-width: 44px !important;
      min-height: 44px !important;
      max-height: 44px !important;
      font-size: 1.1rem !important;
    }
  }
  
  @media (max-width: 360px) {
    .cd-logo-circle,
    [class*="w-12 h-12"][class*="rounded-full"],
    footer div[class*="w-12 h-12"][class*="rounded-full"] {
      width: 40px !important;
      height: 40px !important;
      min-width: 40px !important;
      max-width: 40px !important;
      min-height: 40px !important;
      max-height: 40px !important;
      font-size: 1rem !important;
    }
  }
  
  @media (max-width: 320px) {
    .cd-logo-circle,
    [class*="w-12 h-12"][class*="rounded-full"],
    footer div[class*="w-12 h-12"][class*="rounded-full"] {
      width: 36px !important;
      height: 36px !important;
      min-width: 36px !important;
      max-width: 36px !important;
      min-height: 36px !important;
      max-height: 36px !important;
      font-size: 0.9rem !important;
    }
  }
  
  /* Additional fixes for specific mobile devices and orientations */
  @media (max-width: 768px) {
    .cd-logo-circle,
    [class*="w-12 h-12"][class*="rounded-full"],
    footer div[class*="w-12 h-12"][class*="rounded-full"] {
      /* Prevent any responsive framework interference */
      width: 48px !important;
      height: 48px !important;
      border-radius: 50% !important;
      aspect-ratio: 1/1 !important;
    }
  }
  
  /* Landscape mobile fixes */
  @media (max-width: 768px) and (orientation: landscape) {
    .cd-logo-circle,
    [class*="w-12 h-12"][class*="rounded-full"],
    footer div[class*="w-12 h-12"][class*="rounded-full"] {
      width: 44px !important;
      height: 44px !important;
      min-width: 44px !important;
      max-width: 44px !important;
      min-height: 44px !important;
      max-height: 44px !important;
    }
  }
  
  /* High DPI/Retina display fixes */
  @media (-webkit-min-device-pixel-ratio: 2) {
    .cd-logo-circle,
    [class*="w-12 h-12"][class*="rounded-full"],
    footer div[class*="w-12 h-12"][class*="rounded-full"] {
      /* Ensure crisp rendering on high DPI */
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
  }
  
  /* Tablet fixes */
  @media (min-width: 769px) and (max-width: 1024px) {
    .cd-logo-circle,
    [class*="w-12 h-12"][class*="rounded-full"],
    footer div[class*="w-12 h-12"][class*="rounded-full"] {
      width: 50px !important;
      height: 50px !important;
      min-width: 50px !important;
      max-width: 50px !important;
      min-height: 50px !important;
      max-height: 50px !important;
    }
  }
  /* ========== END CD LOGO FIXES ========== */
  /* Modal overlay */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal content */
.modal-content {
    background: #f9fafb;
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow-y: auto;
    max-height: 80vh;
    border: 2px solid #3b82f6;
}

/* Close button */
.close-btn {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
    font-weight: bold;
}
.close-btn:hover { color: #1e40af; }

/* Modal header */
.modal-header {
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 8px;
    margin-bottom: 15px;
}
.modal-header h2 {
    margin: 0;
    color: #1e40af;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Modal body */
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual syllabus card */
.module-card {
    background: #ffffff;
    border-left: 6px solid #3b82f6;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Module heading */
.module-card h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

/* Module description */
.module-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}
