/* --------------------------------------------------
   GLOBAL STYLE
---------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --bg: #f5f6fa;
  --text: #222;
  --card: #ffffff;
  color-scheme: light dark;
}

body {
  background: var(--bg);
  color: var(--text);
  padding: 20px;
  transition: 0.3s ease-in-out;
  animation: fadeIn 0.7s ease-in-out;
  max-width: 1100px;
  padding: 20px 30px;
}

/* Fade Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Dark Mode Colors */
.dark-mode {
  --bg: #1e1e1e;
  --text: #eaeaea;
  --card: #2a2a2a;
}

/* --------------------------------------------------
   HEADER
---------------------------------------------------*/
.header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 999;
}

.profile-img {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4a90e2;
  order: 1;
}

.title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #6e1010;
  order: 1;
}

/* DARK MODE TOGGLE BUTTON */
.theme-btn {
  padding: 10px 16px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
  position: relative;
  z-index: 999;
  overflow: hidden;
  margin-left: auto;
  order: 2;
}

.theme-btn:hover {
  background: #357bd4;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.theme-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transition: 0.35s ease;
}

.theme-btn:hover::after {
  left: 0;
}

/* Responsive: theme button */
@media (max-width: 768px) {
  .theme-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .theme-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------
   HAMBURGER ICON
---------------------------------------------------*/
.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: 0;
  order: 0;
  transition: 0.3s;
  position: relative;
  z-index: 1100;
}

.menu-icon div {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: 0.3s ease;
}

/* X Animation */
.menu-icon.open div:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-icon.open div:nth-child(2) {
  opacity: 0;
}

.menu-icon.open div:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* --------------------------------------------------
   DROPDOWN MENU (Glass + Animation)
---------------------------------------------------*/
.dropdown-menu {
  position: absolute;
  top: 70px;
  left: 20px;
  width: 160px;
  padding: 12px;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: 0.35s ease;
  pointer-events: none;
  z-index: 1000;
}

.dropdown-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0px) scale(1);
  pointer-events: auto;
}

.dropdown-menu a {
  padding: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  border-radius: 6px;
  transition: 0.2s;
}

.dropdown-menu a:hover {
  background: #4a90e2;
  color: white;
}

/* Dark Mode Glass */
.dark-mode .dropdown-menu {
  background: rgba(40, 40, 40, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------
   FOOTER
---------------------------------------------------*/
#footer-text {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: var(--text);
}

/* --------------------------------------------------
   BLOG TABLE STYLES
---------------------------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header */
th {
  background: #007bff;
  color: white;
  padding: 12px;
  cursor: pointer;
  position: relative;
}

/* Dropdown arrow */
th .arrow {
  float: right;
  transition: 0.3s;
}

/* Table cells */
td {
  padding: 12px;
  border-bottom: 1px solid #555;
}

/* Hide column when collapsed */
.hide-col {
  display: none;
}

h2 {
  margin-top: 15px;
  margin-bottom: 5px;
  color: #80a9b9;
  padding: 1px;
  font-size: x-large;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
  margin-top: 5px;
  margin-bottom: 5px;
  color: #974141;
  padding: 1px;
  font-size: x-large;
}

.syllabus {
  margin-top: 15px;
  margin-bottom: 5px;
  color: #406080;
  padding: 1px;
  font-size: xx-large;
  align-self: center;
}

ol {
  margin-left: 30px;
  margin-bottom: 15px;
  padding: 5px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

article {
  margin-bottom: 40px;
}

section {
  margin-bottom: 2px;
}

nav a {
  text-decoration: none;
  color: #333;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #007bff;
}

ul {
  margin-left: 30px;
  margin-bottom: 15px;
  padding: 5px;
  font-family: 'Courier New', Courier, monospace;
}

blockquote {
  font-family: "Georgia", serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  padding: 20px 30px;
  border-left: 6px solid #6a5acd;
  /* Royal purple border */
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Quote icon before text */
blockquote:before {
  content: "“";
  font-size: 55px;
  color: #6a5acd;
  position: absolute;
  left: 15px;
  top: -10px;
  font-family: serif;
  opacity: 0.4;
}

/* Hover effect */
blockquote:hover {
  background: #f1eeff;
  border-left-color: #4a3dbd;
  transform: translatex(20px);
  transition: 0.5s ease;
}

#quickrevision {
  margin-top: 15px;
  margin-bottom: 5px;
  color: #b2e97b;
  padding: 1px;
  font-size: 36px;
  align-self: center;
}

h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 999;
  /* bold for strong headings */
  letter-spacing: 0.5px;
  margin-top: 10px;
  color: #111;
  /* change if needed */
}

.top {
  margin-top: 3px;
  margin-bottom: 10px;
  color: #406080;
  padding: 1px;
}