body {
  margin: 0;
  font-family: "Noto Sans Kannada", sans-serif;
  background: #f4f6f8;
  text-align: center;
}

/* Header */
.header {
  background: linear-gradient(#d36a6a, #b94b4b);
  color: white;
  padding: 25px;
  font-size: 26px;
  font-weight: bold;
  border-radius: 0 0 20px 20px;
}

/* Sub header */
.sub-header {
  background: #ffe1e1;
  margin: 15px;
  padding: 10px;
  border-radius: 10px;
  font-size: 16px;
  color: #333;
}

/* Welcome */
.welcome {
  background: #dff6ff;
  margin: 15px;
  padding: 15px;
  font-size: 28px;
  color: #1b8f3a;
  font-weight: bold;
  border-radius: 12px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Cards */
.card {
  padding: 30px 15px;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card small {
  display: block;
  font-size: 14px;
  margin-top: 8px;
}

/* Colors */
.orange { background: #f39c12; }
.purple { background: #7d5ba6; }
.red { background: #c0392b; }
.teal { background: #2fa4b6; }
.green { background: #8abf4f; }
.gray { background: #7f8c8d; }

/* Footer */
.footer {
  background: #4a6fa5;
  color: white;
  padding: 15px;
  font-size: 14px;
  margin-top: 20px;
}
body {
  font-family: sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 20px;
  text-align: center;
}

.page-title {
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

.card {
  padding: 20px;
  color: white;
  font-size: 18px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
}

/* colors */
.green { background: #2ecc71; }
.yellow { background: #f1c40f; color: #000; }
.pink { background: #e84393; }
.lesson {
  padding: 12px;
  margin: 10px 0;
  background: #f3f3f3;
  border-left: 6px solid #673ab7;
  font-weight: bold;
  cursor: pointer;
}

.activities {
  display: none;
  margin-left: 25px;
  margin-bottom: 15px;
}

.activity {
  display: block;
  margin: 8px 0;
  padding: 10px;
  background: #ede7f6;
  color: #4a148c;
  text-decoration: none;
  border-radius: 6px;
}

.activity:hover {
  background: #cfd8ff;
/* ===== BODY ===== */
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans Kannada", Arial, sans-serif;
  background: #f5f5f5;
}

/* ===== HEADER ===== */
header {
  width: 100%;
  background: #b71c1c;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

/* ===== NEW GRID SYSTEM ===== */

.full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 15px;
}

.left-grid {
  background: #e8f5e9;
  padding: 12px;
  border-radius: 10px;
}

.right-grid {
  background: #fff3e0;
  padding: 12px;
  border-radius: 10px;
}

.grid-card {
  display: block;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* COLORS */
.video { background: #1976d2; }
.pdf { background: #d32f2f; }
.ppt { background: #7b1fa2; }
.notice { background: #ef6c00; }

/* BLINK */
.notice {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {opacity: 1;}
  50% {opacity: 0.4;}
  100% {opacity: 1;}
}

/* MOBILE */
@media (max-width: 768px) {
  .full-grid {
    grid-template-columns: 1fr;
  }
}
.scrolling-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.scrolling-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
  font-weight: bold;
  color: #333;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
