/* --- GLOBAL FIXES (Add these to the top) --- */
* {
  box-sizing: border-box; /* The "One Change" that fixes the right-side gap site-wide */
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevents accidental horizontal scrolling */
  font-family: Arial, sans-serif;
  background: #0b0f2a;
  color: #ffffff;
  line-height: 1.6;
}

/* --- NAVBAR (Identical) --- */
.navbar {
  background: linear-gradient(90deg, #1a1f5a, #3a0ca3);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  color: #ffd700;
}

@media (min-width: 768px) {
  .logo-container img { width: 50px; height: 50px; }
  .logo-text { font-size: 24px; }
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

.hamburger {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: .3s;
}

/* --- SIDEBAR (Identical) --- */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #11163a;
  box-shadow: -2px 0 10px rgba(0, 0, 0, .5);
  transition: right .3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  background: linear-gradient(90deg, #3a0ca3, #7209b7);
  color: #fff;
  padding: 25px 20px;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.sidebar-menu {
  padding: 10px 0;
}

.sidebar-menu h3 {
  margin: 0;
  padding: 15px 20px 10px;
  font-size: 16px;
  color: #ffd700;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar-menu a {
  display: block;
  padding: 15px 20px;
  color: #ddd;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background .2s;
}

.sidebar-menu a:hover {
  background: rgba(255,255,255,0.08);
}

/* --- OVERLAY (Identical) --- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

/* --- HERO SECTION (Identical) --- */
.hero {
  padding: 30px 15px;
  text-align: center;
}

.hero h1 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #ffd700;
}

.hero p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #ccc;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff00cc, #3333ff);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 18px;
  margin: 8px 5px;
  font-size: 14px;
  font-weight: 700;
}

/* --- SECTION (Fixed Padding) --- */
.section {
  padding: 30px 15px;
  width: 100%;
}

.section h2 {
  text-align: center;
  color: #ffd700;
  font-size: 20px;
  margin-bottom: 15px;
}

.card {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  background: #151a4a;
}

/* --- TABLE (Identical) --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: #151a4a;
}

table, th, td {
  border: 1px solid rgba(255,255,255,0.1);
}

th, td {
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

th {
  background: linear-gradient(90deg, #3a0ca3, #7209b7);
  color: #ffd700;
}

tr:hover {
  background: rgba(255,255,255,0.05);
}

.section h3 {
  color: #ddd;
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* --- FOOTER (Identical) --- */
.footer {
  background: #050816;
  color: #ccc;
  padding: 40px 15px;
  font-size: 13px;
}

.footer h3 {
  color: #ffd700;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer li {
  margin-bottom: 8px;
}

/* --- RESPONSIVE & IMAGES (Identical) --- */
@media (min-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 18px; }
  .logo { font-size: 24px; }
}

.images {
  display: block;
  margin: 20px auto;
  max-width: 360px;
  width: 90%;
  border-radius: 30px;
  padding: 0;
}

/* --- BLOGS PAGE TABLES (Identical) --- */
.blogs-page table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.blogs-page th {
    background: linear-gradient(135deg, #3a0ca3, #7209b7);
    color: #ffd700;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.blogs-page td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    line-height: 1.5;
}

.blogs-page tbody tr:hover { background-color: rgba(255,255,255,0.05); }
.blogs-page tbody tr:nth-child(even) { background-color: rgba(255,255,255,0.02); }

.blogs-page a {
    color: #4cc9f0;
    text-decoration: none;
    font-weight: 500;
}

.blogs-page a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.feedback-form {
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-form input,
.feedback-form textarea {
  padding: 10px;
  width: 100%;
}

.feedback-form button {
  padding: 10px;
  cursor: pointer;
  background: black;
  color: white;
  border: none;
}

@media (max-width: 480px) {
  .images { max-width: 340px; padding: 18px; }
}