body {
  background-color: #f2f6ff;
  font-family: Arial, sans-serif;
  margin: 10px;

}


html {
  scroll-behavior: smooth;
}

p{
  margin: 20px;
}

.container {
  width: 80%;
  max-width: 400px;
  margin: 80px auto;
  padding: 25px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  color: #333;
}

.tagline {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
}

ul,li {
  margin-left: 20px;
}

.start-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  font-size: 16px;
  background-color: #0066ff;
  color: white;
  border: none;
  border-radius: 8px;
  text-align: center;
}

.start-btn {
  padding-bottom: 80px;
}


.start-btn:hover {
  background-color: #004dcc;
}
input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f5f5f5;
}



.logo {
  font-size: clamp(16px, 4vw, 24px);
  color: white;
  margin-right: 24px;
}

.nav-links {
  color: white;
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Login box */
.login-container {
  background: white;
  width: 350px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
  margin-bottom: 5px;
  margin: 20px;
}

.login-container p {
  color: gray;
  margin-bottom: 20px;
}

.login-container input {
  width: 100%;
  padding: 20px;
  
}


.login-btn {
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  text-decoration: none;
  width: 80%;
  background-color: black;
  color: white;
  border: none;
  margin: 20px;
  padding: 20px;
}
.start-btn {
    width: 65%;
    height: 45px;
    max-width: 300px;
    padding: 10px 0;
    font-size: 0.95rem;
    border-radius: 25px;
    margin: 25px auto;
    margin-bottom: 120px;
    display: block;
}
form {
    max-width: 350px;
    margin: 30px auto;
    padding: 25px;
}
form button {
    width: 100%;
    padding: 10px;
    background-color: #1e73e8;
    color: white;
    border: none;
    border-radius: 26px;
    font-size: 1rem;
}
h2 {
    margin-bottom: 20px;
}
.c{
  text-align: center;
  color: #333;
}

/* Center & clean login input boxes */
form input[type="text"],
form input[type="password"] {
    width: 100%;
    width: 275px;
    margin-left: 0;       
    margin-right: 0;
    display: block;
}
form label {
    display: block;
    margin-bottom: 5px;
}
form input{
    padding: 8px;
}
form {
    background-color: #ffffff;
    border-radius: 12px;
}
hr{
  width: 300px;
}
.services {
    padding: 40px 20px;
    text-align: center;
}

.services h2 {
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

.service-card {
    background-color: #ffffff;
    padding: 20px 10px;
    border-radius: 12px;
    color: black;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.5s, box-shadow 0.5s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(0,0,0,0.12);
}
.services {
    padding-bottom: 60px;
}

.dropdown {
  position: relative;
  display: inline-block;
}



.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 10px;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: #333;
}

/*.dropdown-content a:hover {
  background: #f2f2f2;*/
}

.payment {
  margin-top: 10px;
  text-align: center;
}

.payment img {
  width: 140px;
  margin-top: 6px;
}
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: black;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px; /* controls spacing between Home/Login and the hamburger icon */
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  
}



/* ===== Dropdown ===== */
/*.dropdown {
  position: relative;
  display: inline-block;
}

.drop-btn {
  background-color: white;
  color: black;
  padding: 10px 18px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  background-color: white;
  min-width: 230px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 10px 0;
  z-index: 99;
}

.dropdown-content a,
.dropdown-content p {
  color: black;
  padding: 10px 10px;
  text-decoration: none;
  display: block;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background-color: white;
  min-width: 230px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  padding: 10px 0;
  z-index: 999;
}
.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;   /* ← THIS is important */
}

.dropdown-list li {
  padding: 10px 15px;
  text-align: left;   /* ensure left alignment */
}*/
.payment-page {
  max-width: 360px;
  margin: 80px auto;
  background: white;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.payment-page h1 {
  margin-bottom: 10px;
}

.payment-page p {
  color: #555;
}

.payment-page img {
  width: 220px;
  margin: 20px 0;
  border-radius: 12px;
}

.upi-id {
  font-weight: bold;
  margin-bottom: 20px;
}

.back-btn {
  width: 80%;
  display: inline-block;
  text-decoration: none;
  color: black;
  font-weight: 600;
  
}
.service-page {
  max-width: 600px;
  margin: 80px auto;
  margin-top: 0;
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-page h1 {
  margin-bottom: 10px;
}

.service-page ul {
  margin: 15px 0;
  padding-left: 20px;
}

.service-page h3 {
  margin: 20px 0;
 /* color: #1e73e8;*/
}
.service-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #1e73e8;
  color: white;
}

.back-btn {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

.service-title {
  font-size: 18px;
  font-weight: 600;
}
a{
  text-decoration: none;
}
.image{
  width:100%;
  object-fit: cover;
  display: block;
  padding : 0;
  margin-bottom: 0;
}
.intro {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.intro h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #111;
}

.intro h2 {
  font-size: 22px;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #111;
}

.intro p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.intro ul {
  margin-left: auto;
  margin-right: auto;
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.intro ul li {
  align-items : center;
  background-color: #f5f5f5;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #111;
}

.intro ul li strong {
  color: #0d6efd;
}

footer{
  padding-top: 20px;
  padding-bottom: 20px;
}

.back-btn {
  display: inline-block;
  margin: 16px 20px;
  color: black;
  text-decoration: none;
  font-weight: 500;
}

.back-btn:hover {
  text-decoration: underline;
}


.code {
  background-color: #f5f5f5;
  color: #333;
  padding:30px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #e0e0e0;
}

.quiz-cta {
  text-align: center;
  margin: 40px 0;
  padding: 24px;
  background-color: #f5f5f5;
  border-radius: 12px;
}

.quiz-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 32px;
  background-color: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
}

.quiz-btn:hover {
  background-color: #1d4ed8;
}


.compiler-wrapper {
  margin: 30px 0;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.compiler-scroll {
  max-height: 450px;
  overflow-y: auto;
}

.compiler-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f0f0;
  padding: 10px 16px;
  font-weight: 600;
}

.compiler-crop {
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ddd;
  position: relative;
}

.compiler-frame {
  width: 100%;
  height: 350px; /* taller than wrapper on purpose */
  border: none;
  position: absolute;
  top: -300px; /* shifts content up, cropping the header out */
}

.fullscreen-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.fullscreen-btn:hover {
  background-color: #1d4ed8;
}

section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

section:last-child {
  border-bottom: none;
}

section h2 {
  margin-top: 30px;
  margin-bottom: 20px;
}

.topic-tag {
  display: inline-block;
  background-color: black;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.output{
  color: green;
}


.compiler-wrapper {
  margin: 30px 0;
  border-radius: 12px;
  border: 1px solid #ddd;
  overflow: hidden;
}

.compiler-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f0f0;
  padding: 10px 16px;
  font-weight: 600;
}

.fullscreen-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.compiler-crop {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.compiler-frame {
  width: 100%;
  height: 900px;
  border: none;
  position: absolute;
  top: -320px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -400px; /* increased from -260px, well past its own width */
  width: 240px;
  height: 100%;
  background-color: #f9f9f9;
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 999;
}


.sidebar.open {
  left: 0;
}

.menu-btn {
  flex-shrink: 0;
  color: white;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.sidebar-nav {
  color:black;
    flex-direction: column;
    gap: 10px;
  }
  .sidebar-nav a {
    display: block;
    padding: 8px 0;
  }


.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

.next-page-cta {
  text-align: center;
  margin: 40px 0;
  padding: 24px;
  background-color: #f5f5f5;
  border-radius: 12px;
}

.next-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 32px;
  background-color: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
}

.next-btn:hover {
  background-color: #1d4ed8;
}


.sidebar-nav hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0;
  width: 100%;
}
.quiz-body{
  background: black;
}


.h1{
  text-align: left;
}

.background {
    background-color: #fff;
    width: 90%;
    max-width: 300px;
    margin: 100px auto 0;
    border-radius: 10px;
    padding: 30px;
    box-sizing: border-box;
}

@media (min-width: 601px) {
    .background {
        max-width: 600px;
    }
}

.background h1{
  font-weight: 25px;
  color: #001e4d;
  font-weight: 600;
  border-bottom: 1px solid #333;
  padding-bottom: 30px;
  
}

.quiz{
  padding: 20px 0;
}

.quiz h2{
  font-size: 18px;
  color : #001e4d;
  font-weight: 600;
}

.btn{
  background: #fff;
  color: #222;
  font-weight: 500;
  width :100%;
  border : 1px solid #222;
  padding: 10px;
  margin: 10px 0;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover:not([disabled]){
  background: #222;
  color: #fff;
  
}


btn:disabled{
  cursor: no-drop;
}

#next-btn{
  background: #001e4d;
  color: #fff;
  font-weight: 500;
  width: 150px;
  border: 0;
  padding: 10px;
  margin: 20px auto 0;
  border-radius: 4px;
  cursor: pointer;
  display: none;
}

.correct{
  background: #9aeabc;
}

.incorrect{
  background: #ff9393;
}

.back-button{
  width: 80%;
  display: inline-block;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

/* ===== Coming Soon Popup ===== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
}

.popup-box {
  width: 100%;
  max-width: 340px;
  box-sizing: border-box;
  padding: 28px 22px;
  text-align: center;
  color: white;
  background: linear-gradient(145deg, #191e2e, #0c0e15);
  border: 1px solid white;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(245, 185, 66, 0.25);
  animation: popupIn 0.3s ease;
}

.popup-icon {
  font-size: 45px;
  margin-bottom: 12px;
}

.popup-box h2 {
  color: #f5b942;
  font-size: 21px;
  margin: 8px 0 16px;
}

.popup-box p {
  color: #c4cad8;
  font-size: 14px;
  line-height: 1.6;
}

.popup-box button {
  width: 100%;
  margin-top: 15px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: white;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.popup-box button:hover {
  background: #ffd36a;
}

.popup-box button:active {
  transform: scale(0.97);
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}